Given an image like the left one where findContours is going to fail on detecting the full receipt, what would be the best approach to complete receipt's full contour using the actual image bounds (something like the image on the right)?
Asked
Active
Viewed 26 times
0
-
1You could first draw a border around the image with fixed thickness `cv2.copyMakeBorder()` and then proceed to find the largest contour. To draw borders: https://stackoverflow.com/questions/36255654/how-to-add-border-around-an-image-in-opencv-python – Jeru Luke Apr 28 '22 at 10:54