googlesamples / googlesamples/mlkit

[Bug report] Zeros are dropped in barcodes

Open
#803 7 comments 5 reactions 1 assignee Claimed by @zhouyiself View on GitHub
Dominant language
Kotlin
Stars
4.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

**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](https://github.com/googlesamples/mlkit/assets/6509252/f2bf98c4-15ea-418f-8c61-7bed73a30411)

**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]](com.google.mlkit:barcode-scanning:17.2.0)

**Smartphone:**
- Device/Simulator: Samsung Galaxy Tab S7

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.