Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace dilate to closing or opening #6

Open
IvanShafran opened this issue May 27, 2019 · 2 comments
Open

Replace dilate to closing or opening #6

IvanShafran opened this issue May 27, 2019 · 2 comments

Comments

@IvanShafran
Copy link

IvanShafran commented May 27, 2019

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)

dilated = cv2.dilate(gray, kernel)

@Momarthe1
Copy link

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

@IvanShafran
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants