-
Notifications
You must be signed in to change notification settings - Fork 6
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
Line detection PR #2 follow-up. #8
Line detection PR #2 follow-up. #8
Conversation
* added sorting for fast clusterization
much better lines identification
* fixed line count
* better noise reduction (i hope)
* shred-dependent line length
… Clean up the code.
_, _, r_w, r_h = cv2.boundingRect(contour) | ||
|
||
# Line len should be at least 50% of shred's width, gap - 20% | ||
# TODO: come up with better threshold value. Come up with better lines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it help to tune it if I provide you some manually classified shreds? If yes — please let me know what kind of info do you need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how classified data would help here. Will think about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we can count f1 score for each combination of input params on a known dataset then we can adjust params to achieve the best score possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about effort/benefit of this. Might make sense to just leave these params loose and add additional posterior filtering.
…, TODOs. AUTHORS file.
Now compatible with master. |
PTAL. Line angle estimation added. |
Line detection PR #2 follow-up.
This PR includes #2 rebased on top of current HEAD + a commit that cleans up the code and adds an improved adaptive thresholding routine.