journeyapps / zxing-android-embedded

Barcode scanner library for Android, based on the ZXing decoder
https://journeyapps.com/
Apache License 2.0
5.68k stars 1.26k forks source link

At the 4.3.0 version, the library is not working for some types of QR formats. #741

Closed Nurlibay closed 11 months ago

Nurlibay commented 11 months ago

Description of the problem:

** I'm using 4.3.0 version

** Device - Xiomi Redmi 10C, Android 13

** This problem happening my device (above)

** Issue happening qr format here

** Project link here

rkistner commented 11 months ago

QR code specifies black dots on a white background, this is the other way around.

You can scan this using inverted or MIXED_SCAN mode.

Nurlibay commented 11 months ago

How to set

val options = ScanOptions()
                    .addExtra(Intents.Scan.SCAN_TYPE, Intents.Scan.MIXED_SCAN)
                    .setOrientationLocked(false)
                    .setCaptureActivity(CustomScannerActivity::class.java)
                    .setCameraId(0)
                    .setBeepEnabled(false)
                    .setBarcodeImageEnabled(true)
                    .setDesiredBarcodeFormats(ScanOptions.QR_CODE)

to dialog?

I open camera in DialogFragment.