Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Detect and fix incomplete rectangle

Hi all, I am trying to detect the numbers within the white rectangle. My thought process as follows:

  1. binarize the image
  2. detect canny edges
  3. use findContours to detect the contours
  4. for each contour, check for numbers

I am stuck at step 3 for this photo. There is a hand cutting the rectangle which lets findContours detect no rectangle. So my question is how to detect and fix an incomplete rectangle.

image description image description