QRCode扫描仪适用于相机不良的设备

时间:2016-09-08 09:47:45

标签: android zxing

在我的应用程序中,我需要阅读qrcode。为此,我使用zxing journeyapp条码扫描器。它适用于设备,它有一个很好的相机,像索尼z3和它一样。但是在装有1.3 mp相机的设备上,我无法读取qr代码。我尝试设置这样的具体设置:

    final Map<DecodeHintType, Object> map = new HashMap<>();
    map.put(DecodeHintType.TRY_HARDER, Boolean.TRUE);
    Set<BarcodeFormat> formats = EnumSet.noneOf(BarcodeFormat.class);
    formats.add(BarcodeFormat.QR_CODE);
    mScanner.getBarcodeView().setDecoderFactory(new DefaultDecoderFactory(formats, map, "CHARACTER_SET"));

当我尝试使用ggogle play中的其他应用扫描我的qrcode时,效果很好,但不在我的应用中。此外,我尝试zXingScannerView来解决这个问题,但它的工作原理相同。有没有人有想法如何解决它?

0 个答案:

没有答案