mlkit
mlkit copied to clipboard
Barcode scanner detected wrong barcode sometimes
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
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 2016101151D
(correct) but sometimes as 2016022851/
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 https://github.com/googlesamples/mlkit/issues/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:
Blurry barcode

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:
Sharp barcode

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
I am also getting wrong barcode detection when it's EAN-13
The actual barcode : 9100000013510 and it has detected : 2455340606005