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

Quad refinements are randomly selected #25

Open
qbonnard opened this issue Mar 26, 2014 · 3 comments
Open

Quad refinements are randomly selected #25

qbonnard opened this issue Mar 26, 2014 · 3 comments

Comments

@qbonnard
Copy link
Member

If multiple quads are found to contain a tag, the latest detected is chosen. This may explain why the corners are sometimes "shaking".
There should be a better way to pick the best quad for a detected tag.

@severin-lemaignan
Copy link
Member

What about keeping the one with the smallest perimeter? this should be the one the closest to the actual marker.

@qbonnard
Copy link
Member Author

Sounded good, but it doesn't work perfectly. Now it flickers towards the inside. Do you want me to share my branch ?

@qbonnard qbonnard changed the title Quad refinments are randomly selected Quad refinements are randomly selected Apr 18, 2014
@severin-lemaignan
Copy link
Member

One option that could help mitigate: use thresholding instead of Canny:

l.90 of FindQuads:

cv::threshold(mGrayPyramid[i], mBinaryPyramid[i], -1, 1, cv::THRESH_BINARY | cv::THRESH_OTSU);

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

No branches or pull requests

2 participants