title: How to recognize rectangles in this image?
body: <p>I have a image with horizontal and vertical lines. In fact, this image is the BBC website converted to horizontal and vertical lines.
  My problem is that I want to be able to find all the rectangles in the image. I want to write a computer program to find all the rectangles.
  Does anyone know how to do this or suggest ideas on how to get started? This task is easy for me as a person to find the visual rectangles, but I am not sure how to describe it as a program.</p>
  
  <p>Image is the BBC website here <a href="http://www.bbc.co.uk/" rel="noreferrer">http://www.bbc.co.uk/</a></p>
  
  <hr>
  
  <p>Update to this, I wrote the code which converts the BBC website image to the horizontal and vertical line, the problem is these lines do not completely meet at the corners and sometimes they do not completely form a rectangle. Thanks!</p>