Package com.google.zxing.multi
Class GenericMultipleBarcodeReader
java.lang.Object
com.google.zxing.multi.GenericMultipleBarcodeReader
- All Implemented Interfaces:
MultipleBarcodeReader
Attempts to locate multiple barcodes in an image by repeatedly decoding portion of the image.
After one barcode is found, the areas left, above, right and below the barcode's
ResultPoint
s are scanned, recursively.
A caller may want to also employ ByQuadrantReader
when attempting to find multiple
2D barcodes, like QR Codes, in an image, where the presence of multiple barcodes might prevent
detecting any one of them.
That is, instead of passing a Reader
a caller might pass
new ByQuadrantReader(reader)
.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResult[]
decodeMultiple
(BinaryBitmap image) Result[]
decodeMultiple
(BinaryBitmap image, Map<DecodeHintType, ?> hints) private void
doDecodeMultiple
(BinaryBitmap image, Map<DecodeHintType, ?> hints, List<Result> results, int xOffset, int yOffset, int currentDepth) private static Result
translateResultPoints
(Result result, int xOffset, int yOffset)
-
Field Details
-
MIN_DIMENSION_TO_RECUR
private static final int MIN_DIMENSION_TO_RECUR- See Also:
-
MAX_DEPTH
private static final int MAX_DEPTH- See Also:
-
EMPTY_RESULT_ARRAY
-
delegate
-
-
Constructor Details
-
GenericMultipleBarcodeReader
-
-
Method Details
-
decodeMultiple
- Specified by:
decodeMultiple
in interfaceMultipleBarcodeReader
- Throws:
NotFoundException
-
decodeMultiple
public Result[] decodeMultiple(BinaryBitmap image, Map<DecodeHintType, ?> hints) throws NotFoundException- Specified by:
decodeMultiple
in interfaceMultipleBarcodeReader
- Throws:
NotFoundException
-
doDecodeMultiple
private void doDecodeMultiple(BinaryBitmap image, Map<DecodeHintType, ?> hints, List<Result> results, int xOffset, int yOffset, int currentDepth) -
translateResultPoints
-