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

Vertices for contours duplicated with small targets #2

Open
king-shak opened this issue Jan 12, 2020 · 0 comments
Open

Vertices for contours duplicated with small targets #2

king-shak opened this issue Jan 12, 2020 · 0 comments
Assignees
Labels
Feature A new feature or request Priority: High WIP Work in progress

Comments

@king-shak
Copy link
Contributor

If a target is too small or the corners are too round the pipeline will detect multiple points in one corner. So it normally just makes duplicates of the vertices - it doesn't come up with random points. Because of this, we can solve this issue by adding k-means clustering to the pipeline for the vertices. You essentially pass in the points, how many vertices (clusters) you want and a few other parameters. So it will basically return the average of any duplicate points in one area.
This also means we need to add a slider in the web interface to specify how many vertices are desired.
This solution has already been tested, just hasn't been implemented in the pipeline yet. Should come in the next commit.
Some docs on the method: https://docs.opencv.org/2.4/modules/core/doc/clustering.html#kmeans

@king-shak king-shak added Feature A new feature or request Priority: High WIP Work in progress labels Jan 12, 2020
@king-shak king-shak self-assigned this Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A new feature or request Priority: High WIP Work in progress
Projects
None yet
Development

No branches or pull requests

1 participant