X-Git-Url: http://git.rot13.org/?p=zxing.git;a=blobdiff_plain;f=core%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fqrcode%2FQRCodeReader.java;h=52002ae7c547eaa6b22b8b8104e37c3281c9b131;hp=0341f91df31125720c8f1a588c06a6e491586131;hb=de6f57f5cfd923b42c2c9665b2db381c3a7a3f53;hpb=e935d6b248a82ff6ee4974e6508b0668d948a3d2 diff --git a/core/src/com/google/zxing/qrcode/QRCodeReader.java b/core/src/com/google/zxing/qrcode/QRCodeReader.java index 0341f91d..52002ae7 100644 --- a/core/src/com/google/zxing/qrcode/QRCodeReader.java +++ b/core/src/com/google/zxing/qrcode/QRCodeReader.java @@ -63,11 +63,11 @@ public class QRCodeReader implements Reader { ResultPoint[] points; if (hints != null && hints.containsKey(DecodeHintType.PURE_BARCODE)) { BitMatrix bits = extractPureBits(image.getBlackMatrix()); - decoderResult = decoder.decode(bits); + decoderResult = decoder.decode(bits, hints); points = NO_POINTS; } else { DetectorResult detectorResult = new Detector(image.getBlackMatrix()).detect(hints); - decoderResult = decoder.decode(detectorResult.getBits()); + decoderResult = decoder.decode(detectorResult.getBits(), hints); points = detectorResult.getPoints(); } @@ -81,6 +81,10 @@ public class QRCodeReader implements Reader { return result; } + public void reset() { + // do nothing + } + /** * This method detects a barcode in a "pure" image -- that is, pure monochrome image * which contains only an unrotated, unskewed, image of a barcode, with some white border