flutter_qr_reader
flutter_qr_reader copied to clipboard
HINTS中DecodeHintType.TRY_HARDER参数设置错误
https://zxing.github.io/zxing/apidocs/com/google/zxing/DecodeHintType.html#TRY_HARDER
HINTS.put(DecodeHintType.TRY_HARDER, BarcodeFormat.QR_CODE);
HINTS.put(DecodeHintType.POSSIBLE_FORMATS, allFormats);
HINTS.put(DecodeHintType.CHARACTER_SET, "utf-8");
TRY_HARDER
public static final DecodeHintType TRY_HARDER
Spend more time to try to find a barcode; optimize for accuracy, not speed. Doesn't matter what it maps to; use Boolean.TRUE.