diff --git a/lib-zxing/src/main/java/com/uuzuche/lib_zxing/activity/CodeUtils.java b/lib-zxing/src/main/java/com/uuzuche/lib_zxing/activity/CodeUtils.java index 4026c54..44fbfa8 100644 --- a/lib-zxing/src/main/java/com/uuzuche/lib_zxing/activity/CodeUtils.java +++ b/lib-zxing/src/main/java/com/uuzuche/lib_zxing/activity/CodeUtils.java @@ -78,6 +78,12 @@ public static void analyzeBitmap(String path, AnalyzeCallback analyzeCallback) { decodeFormats.addAll(DecodeFormatManager.DATA_MATRIX_FORMATS); } hints.put(DecodeHintType.POSSIBLE_FORMATS, decodeFormats); + //精度 + hints.put(DecodeHintType.TRY_HARDER,Boolean.TRUE); + //复杂 + hints.put(DecodeHintType.PURE_BARCODE,Boolean.TRUE); + // 设置继续的字符编码格式为UTF8 + hints.put(DecodeHintType.CHARACTER_SET, "UTF-8"); // 设置继续的字符编码格式为UTF8 // hints.put(DecodeHintType.CHARACTER_SET, "UTF8"); // 设置解析配置参数