title: How to segment binary blob(s) into rectangles
body: <p>I have structured forms I'm processing and I want to identify zones that should logically be processed together by OCR. </p>
  
  <p>I am able to get decent results when I have a clean tables with fully bounded boxes but I have issues with open tables with missing edges or plain tabulated data separated by lines. </p>
  
  <p>I was hoping I could detect the edges (vertical and horizontal) and split the black blob into the largest rectangles possible within the blob. </p>
  
  <p>As an image is worth a thousand words here is what I am starting with: </p>
  
  <p><img src="https://i.imgur.com/xws5sKX.jpg" alt="start"></p>
  
  <p>And the regions I want to identify (more to be shown but you get the idea): </p>
  
  <p><img src="https://i.imgur.com/WOFDix1.jpg" alt="target"></p>
  
  <p>I've looked at blob detection and segmentation but I haven't figured out exactly how to approach this yet. Thoughts?</p>