-
Notifications
You must be signed in to change notification settings - Fork 10
get_contours enhancement #1
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needednew-contributorsup-for-grabs
Description
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needednew-contributorsup-for-grabs
get_contours is the core function, it is the one that detects the 4 corners of the document. Unfortunately it doesn't work all the times. I think the preprocessing of the image before the call to
cv2.getContoursshould be improved: as you can see in examples/ or trying the code yourself, the document is often not detected at all, or not detected right.If you have any ideas, please write it in a comment or submit a pull request.
Work just on scanner.py, the code is small but if you can't understand some parts don't hesitate to ask questions.
EDIT:
In the last commits I introduced the function
white(), which improves the performances drastically. However, I think there's still room for improvement.