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
823 stars 478 forks source link

Can't recognize ISBN barcode #1176

Open hoangduchuu opened 1 week ago

hoangduchuu commented 1 week ago

Cannot scan barcode with ISBN format, It can be scanned with qr_code_scanner, but this library cannot, Some sample codes I attach below

image image

image
navaronbracke commented 1 week ago

If I test this with my Android device, I can scan all 3 images properly. What device are you testing this on?

hoangduchuu commented 6 days ago

If I test this with my Android device, I can scan all 3 images properly. What device are you testing this on?

@navaronbracke We test on the iPhone device

navaronbracke commented 6 days ago

@hoangduchuu I tested this on mobile_scanner 5.2.3 and it does detect these barcodes also on iPhone.

I do see the following, though:

5060198641183 is detected as BarcodeType.product 9780760378045 is detected as BarcodeType.isbn 9780593076118 is detected as BarcodeType.isbn

So MLKit does not detect that first one as an ISBN barcode, but that one seems like an actual product? (the product details indicate a weight of grams)