title: Remove similar lines provided by Hough transform
body: <p>I found with Hough transform more lines but somethings are very similar for my final target.</p>
  
  <p>For example</p>
  
  <p><a href="https://i.stack.imgur.com/dUzTy.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dUzTy.jpg" alt="enter image description here"></a></p>
  
  <p>In this image I have 5 lines but I really need just 2 lines. </p>
  
  <p>How I can remove the unnecessary lines?</p>
  
  <p>My code is</p>
  
  <pre><code>image = cv.Canny(image, 200);
  
  lines = cv.HoughLinesP(image,'Threshold',80,'MinLineLength',100,'MaxLineGap',50);
  </code></pre>
  
  <p>A simple way can be with lines intersecting, but lines can be parallel and very close in certain situations.</p>
  
  <p>Any idea?</p>