How to identify incomplete rectangles in openCV

Viewed 7474

How would I go around identifying and extracting rectangles from an image such as the one shown below.

Note that my rectangles might be incomplete and have some missing edges and some sides might be partial lines.

Thanks !

image sample

2 Answers
Related