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();
}
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