juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
811 stars 475 forks source link

[Bug] Scanner doesn't work with single char barcode #1120

Open burekas7 opened 1 month ago

burekas7 commented 1 month ago

Hi, Scanner doesn't work with single char barcode Is it a known issue?

For example: https://barcode.tec-it.com/en/?data=2

arnabonetraker commented 1 month ago

641 Yeah it's a known issue.

I believe the problem is with ML Kit. I've had to deal with this issue before. I tested various ML Kit scanners, and they all had the same problem: single char/digit barcodes couldn't be scanned. Although that has not caused any problems for me because in real life scenario, a barcode will most likely contain more than one character.

burekas7 commented 1 month ago

@arnabonetraker Thanks. The thing is that I do have such a situation and I am currently in a problem :/

So what can I do right now? Is there a solution that will be soon?

arnabonetraker commented 1 month ago

@arnabonetraker Thanks. The thing is that I do have such a situation and I am currently in a problem :/

So what can I do right now? Is there a solution that will be soon?

I don't really have proper solution. If possible use QR codes. Otherwise check the scanner packages that utilises Zxing library until a fix come for ML kit.