0

enter image description here

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)?

dembo
  • 61
  • 4
  • 1
    You 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

0 Answers0