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

Binarization algorithm not smart enough #2

Open
lberki opened this issue Feb 11, 2017 · 0 comments
Open

Binarization algorithm not smart enough #2

lberki opened this issue Feb 11, 2017 · 0 comments

Comments

@lberki
Copy link
Owner

lberki commented Feb 11, 2017

It compares every pixel to its local neighborhood of a constant size. Thus, if the module size is larger than that, it will fail (because a module is full-black or full-white).

Was surprising to learn that a perfectly aligned, crisp, black-and-white QR code image cannot be scanned for this reason.

One solution would be to run binarize after the finder patterns were found and use only the pixels in the run being checked for the black/and white decision during pattern finding. However, it would make things even slower.

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

No branches or pull requests

1 participant