title: What is the simplest *correct* method to detect rectangles in an image?
body: <p>I am trying to think of the best method to detect rectangles in an image.</p>
  
  <p>My initial thought is to use the <a href="http://en.wikipedia.org/wiki/Hough_transform" rel="noreferrer">Hough transform</a> for lines, and to select combinations of lines where you have two lines intersected at both the lower portion and upper portion by the same two lines, but this is not sufficient.  </p>
  
  <p>Would using a <a href="http://en.wikipedia.org/wiki/Corner_detection" rel="noreferrer">corner detector</a> along with the Hough transform work?</p>