andrewdcampbell / OpenCV-Document-Scanner

An interactive document scanner built in Python using OpenCV featuring automatic corner detection, image sharpening, and color thresholding.
479 stars 144 forks source link

Change dilate to closing #7

Open IvanShafran opened 5 years ago

IvanShafran commented 5 years ago

Dilate increases the document boundary by a few pixels. It is better to use closing or opening which are a sequantial application of dilation and erosion. And therefore document boundary doesn't change their size.

6