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.45k stars 2.9k forks source link

[Bug report] Zeros are dropped in barcodes #803

Open brianbabcockapps opened 3 months ago

brianbabcockapps commented 3 months ago

Describe the bug When scanning barcodes with 4 or more zeros in the center of the barcode the return value sometime is missing a zero or two.

To Reproduce Scan any 128 or 39 barcode with 4 or more zeros in the middle. This problem was seen in both our app and the demo app from mlkit.

sample barcodes: image

Expected behavior Scan REQ0000001 barcode and we expect to see the value REQ0000001 returned. Instead we sometimes see REQ000001

SDK Info:

Smartphone:

tobika commented 2 months ago

I can confirm the same problem in my project.