【问题标题】:Xamarin Forms Zxing scan problem with Black Background and White Qr Codes on Andriod DeviceXamarin 在 Android 设备上使用黑色背景和白色二维码形成 Zxing 扫描问题
【发布时间】:2020-11-27 06:56:06
【问题描述】:

Zxing Forms Mobile的问题是无法扫描黑色背景,白色二维码。我已经尝试扫描黑色二维码,白色背景,它可以工作。我的测试设备是Android。

我尝试使用我在 Play 商店中找到的扫描仪扫描白色二维码,它可以工作。所以二维码还不错。

我已经尝试了 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,
                }
            };

那么有什么解决办法吗?

【问题讨论】:

标签: xamarin xamarin.forms xamarin.android zxing zxing.net


【解决方案1】:

尝试在 qr 中放置一个框架,这样我就可以扫描了。

This work for me

This dont

【讨论】:

  • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-12
  • 2013-01-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多