-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Barcode scanner detected wrong barcode sometimes #17
Comments
I wonder if it's as simple as the algorithm is not checking the check digit in code128? We're also having the same issue as @longld103. The above barcode is sometimes pickedup as |
Bug posted on the Google ML Kit bug tracker: https://issuetracker.google.com/u/1/issues/159876630 |
Hi, have similar issue. Added comment to this issue #32 and to the tracker https://issuetracker.google.com/u/1/issues/159876630 |
We're having a similar problem with wrong detection, especially if the barcodes are a bit blurry. The following image contains an EAN-13 code ("4014531682860"), but sometimes we get completely different EAN-8 codes (e.g. "12544059" or "12541249") as a result: Other scanners (e.g. Google Lens) get a perfect detection, even though the quality is bad. If we use a sharp image, everything works fine: |
I have the version com.google.mlkit:barcode-scanning:16.0.2 and the same problem happens https://github.com/googlesamples/mlkit/tree/master/android/vision-quickstart https://github.com/googlesamples/mlkit/tree/master/android/material-showcase |
These are results of detector. String 1209-002558GK28E21060524860000321 is correct
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-, 9ZGK18E210523242150321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
3410702717477
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-, 9ZGK18E210523242150321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
4309-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-, 9ZGK18E210523242150321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-, 9ZGK28EO1060524860000321
1209-002558GK28E21060524860000321
2118516866763
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
1209-002558DK28E2,*'P6$#5
1209-002558GK28E21060524860000321
1209-002558GK28E21060524860000321
4309-, 9ZGK28E21060522760000321
1209-002558GK28E21060524860000321
5411302311520
The text was updated successfully, but these errors were encountered: