mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

Barcode scanner detected wrong barcode sometimes

Open longld103 opened this issue 4 years ago • 6 comments

failed 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

longld103 avatar Jun 17 '20 09:06 longld103

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. image

The above barcode is sometimes pickedup as 2016101151D (correct) but sometimes as 2016022851/

baversjo avatar Jun 25 '20 13:06 baversjo

Bug posted on the Google ML Kit bug tracker: https://issuetracker.google.com/u/1/issues/159876630

baversjo avatar Jun 25 '20 13:06 baversjo

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

ruslan-podurets avatar Aug 14 '20 11:08 ruslan-podurets

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 barcode-blurry

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 barcode-sharp

tobi512 avatar Sep 04 '20 12:09 tobi512

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 barcode_com google mlkit vision demo

https://github.com/googlesamples/mlkit/tree/master/android/material-showcase barcode_com google mlkit md

felipetce avatar Oct 30 '21 02:10 felipetce

I am also getting wrong barcode detection when it's EAN-13 image

The actual barcode : 9100000013510 and it has detected : 2455340606005

ViralInfocusp avatar Feb 10 '23 08:02 ViralInfocusp