Xamarin Forms Zxing scan problem with Black Background and White Qr Codes on Andriod Device

787 views Asked by At

The problem about Zxing Forms Mobile is cannot scan black background, white color qr code. I've already tried to scan black color qr code,white background and it works.My test device is Android.

I've tried scan white color qr code by using a scanner which i found in play store and it works.So qr code is not bad.

I've tried all the variations in MobileBarcodeScanningOptions.

            var options = new MobileBarcodeScanningOptions
            {
                UseNativeScanning = true,
                TryHarder = true,
                TryInverted = true,
                AutoRotate = true,
                DisableAutofocus = false,
                UseFrontCameraIfAvailable = false,                         
                DelayBetweenAnalyzingFrames = 150,
                InitialDelayBeforeAnalyzingFrames = 300,
                DelayBetweenContinuousScans = 1000,               
                PossibleFormats = new List<BarcodeFormat>
                {
                    BarcodeFormat.QR_CODE,
                }
            };

So Is there anything for solution?

1

There are 1 answers

1
Gencina On

Try to put a frame in the qr, with that it allowed me to scan.

This work for me

This dont