OpenCV-Document-Scanner icon indicating copy to clipboard operation
OpenCV-Document-Scanner copied to clipboard

Replace dilate to closing or opening

Open IvanShafran opened this issue 5 years ago • 2 comments

Hi!

I noticed that the edged image has edges bigger than the original document boundary. It happens because of dilation. It would be better to replace it to closing or opening. On my tests closing works a bit greater score. cv2.morphologyEx(gray, cv2.MORPH_CLOSE, kernel)

https://github.com/andrewdcampbell/OpenCV-Document-Scanner/blob/412fbd2ffcdc190c37c1d97c3b7fa0cc904d8d96/scan.py#L194

IvanShafran avatar May 27 '19 22:05 IvanShafran

Ivan I'm having a hard time finding the PHP library. Or in javascript are there missing files?

Momarthe1 avatar Jun 15 '19 12:06 Momarthe1

@Momarthe1 This rep uses OpenCV on Python. I'm not an expert in web libraries, so I can't recommend any.

IvanShafran avatar Jun 18 '19 20:06 IvanShafran