mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

Barcode scanning -> ITF, Code 128, and Code 39 returning some wrong values

Open nickdimiCiQ opened this issue 3 years ago • 9 comments

When i try to scan continuously (without stopping after a successful scan) ITF, Code 128, and Code 39 barcodes, some times the first characters of the barcode are returned wrong. I used the vision-quickstart app and the only change i made was to add a log line in the BarcodeScannerProcessor class to log the barcodes scanned. The issue appeared on com.google.mlkit:barcode-scanning:17.0.0 it doesn't happen on earlier versions

Example: Scanning an ITF barcode with the value 2401234567 it could return the value 1401234567

These are some barcodes with which i manage to reproduce the issue BarcodeTesting.docx

The models on which i manage to reproduce the issue: Pixel 3a Android 11, Pixel Android 10, Xcover 4 Android 7

nickdimiCiQ avatar Oct 06 '21 09:10 nickdimiCiQ

Thanks for reporting this issue! Just want to double-check to confirm that it happens "sometimes" on com.google.mlkit:barcode-scanning:17.0.0 but not every time, and it didn't happen on earlier versions before, correct?

SilverDestiny avatar Oct 09 '21 01:10 SilverDestiny

Yes, exactly

nickdimiCiQ avatar Oct 11 '21 13:10 nickdimiCiQ

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

Hi everyone!

I testing with quickstart project and I have similar error. In my case a partial result is detected (see images below).

Device: Redmi 5 plus OS: 8.1.0 MLKit Library: com.google.mlkit:barcode-scanning MlKiit Library Versions: 16.1.2 and 17.0.0

16.1.2 17.0.0
partial_scan_16 1 2 partial_scan_17 0 0

tramalhoml avatar Nov 25 '21 18:11 tramalhoml

Hi 16.2.0 seems to work great, but 17.0.0 is really bad. At least it was when I tried it on Code 39 barcodes.

svangsgaard avatar Dec 08 '21 07:12 svangsgaard

Hello @SilverDestiny, there is updates about this issue?

tramalhoml avatar Jan 06 '22 19:01 tramalhoml

comment1 was created a bug and we're working on it. I raised the priority for that.

For https://github.com/googlesamples/mlkit/issues/367#issuecomment-979399927, it looks like this is a different issue with partial barcodes are detected. Could you create another issue for it so that we can work on it separately? Thanks!

SilverDestiny avatar Jan 06 '22 23:01 SilverDestiny

comment1 was created a bug and we're working on it. I raised the priority for that.

For #367 (comment), it looks like this is a different issue with partial barcodes are detected. Could you create another issue for it so that we can work on it separately? Thanks!

Hello @SilverDestiny there is a issue created in issue tracker: https://issuetracker.google.com/u/1/issues/207732702

Do you need another issue in github too?

tramalhoml avatar Jan 07 '22 18:01 tramalhoml

https://issuetracker.google.com/u/1/issues/207732702 this one is enough Thanks for the link! Our internal team is working on it.

SilverDestiny avatar Jan 07 '22 21:01 SilverDestiny

I'm afraid with the shift of priority in our team, there is no plan in the near future to address this.

miworking3 avatar Jun 26 '23 15:06 miworking3