googlesamples / mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug report] Zeros are dropped in barcodes

brianbabcockapps opened this issue · comments

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:

  • SDK Name & Version [e.g. com.google.mlkit:face-detection:16.1.3]

Smartphone:

  • Device/Simulator: Samsung Galaxy Tab S7

I can confirm the same problem in my project.