android / camera-samples

Multiple samples showing the best practices in camera APIs on Android.
Apache License 2.0
5k stars 2.34k forks source link

Scan EAN-13 Not Detected #523

Open lukaskris opened 1 year ago

lukaskris commented 1 year ago

I tried scan ean-13 product but not detected this is sample of ean-13, but using zxing old libraries normal, i tried also code_128, code_39 detect faster nice! image

donovanfm commented 1 year ago

Hi, Lukas! Can you share whether this is with CameraX or Camera2?

The CameraX-MlKit sample is a great example of using MlKit's barcode scanning if you're open to moving away from ZXing. The CameraX-MlKit sample does QR code detection, but it's straightforward to configure your barcode scanner for EAN-13.