googlesamples / mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS
Apache License 2.0
3.51k stars 2.92k forks source link

MLKit Vision is reading code128 barcodes poorly #716

Open leoroh opened 1 year ago

leoroh commented 1 year ago

Describe the bug I performed the tests with the project: https://github.com/googlesamples/mlkit/tree/master/android/vision-quickstart

To Reproduce

This is working image

These are not working. image

If applicable, please include code snippet and sample input(image, video, text, etc)

Expected behavior A clear and concise description of what you expected to happen.

SDK Info:

Smartphone:

andreaMOnline commented 11 months ago

We have a similar experience building and executing the barcode scanner sample project provided in mlkit_code_scanner_sample. The result is poor for the following codes (also code128 length 22 digits)

barcode128 Screenshot 2023-10-19 at 17 38 04 Screenshot 2023-10-19 at 17 38 17

We have the similar wrong results in barcode-scanning:17.2.0 mentioned in this bug report.

Devices: Samsung Galaxy S10 (SM-G973F/DS) Android 12, Nokia 7.2 model TA-1196 Android 11