Detect and fix incomplete rectangle
Hi all, I am trying to detect the numbers within the white rectangle. My thought process as follows:
- binarize the image
- detect canny edges
- use findContours to detect the contours
- 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.
I tested Hough Lines on this and it detected nothing, so i think it's more than just using findContours now. Any ideas? I'm trying (1) locate the 'rectangle' then recognise the numbers.