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

Line detection PR #2 follow-up. #8

Merged
merged 13 commits into from
Nov 2, 2014

Conversation

parabolala
Copy link
Contributor

This PR includes #2 rebased on top of current HEAD + a commit that cleans up the code and adds an improved adaptive thresholding routine.

_, _, 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
Copy link
Owner

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.

Copy link
Contributor Author

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.

Copy link
Owner

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.

Copy link
Contributor Author

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.

@parabolala
Copy link
Contributor Author

Now compatible with master.

@parabolala
Copy link
Contributor Author

PTAL. Line angle estimation added.

dchaplinsky added a commit that referenced this pull request Nov 2, 2014
@dchaplinsky dchaplinsky merged commit 38a8178 into dchaplinsky:master Nov 2, 2014
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

Successfully merging this pull request may close these issues.

3 participants