//MultiFormatReader
MultiFormatReader reader = new MultiFormatReader();
Map<DecodeHintType, Object> hints = new HashMap<>();
List<BarcodeFormat> formatList = new ArrayList<>();
hints.put(DecodeHintType.TRY_HARDER, Boolean.TRUE);
hints.put(DecodeHintType.POSSIBLE_FORMATS,
EnumSet.allOf(BarcodeFormat.class));
hints.put(DecodeHintType.PURE_BARCODE, Boolean.FALSE);
hints.put(DecodeHintType.ASSUME_GS1, Boolean.TRUE);
//encode
reader.decode(binaryBitmap, hints);
其他代码完美解码 qrcode ,可能是什么问题?我想开发一个可以解码qrcode或条码的应用。