Class GenericMultipleBarcodeReader
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 {@link com.google.zxing.ResultPoint}s are scanned, recursively.
A caller may want to also employ {@link 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 {@link Reader} a caller might pass
new ByQuadrantReader(reader)
.
public sealed class GenericMultipleBarcodeReader : MultipleBarcodeReader, Reader
- Inheritance
-
GenericMultipleBarcodeReader
- Implements
- Inherited Members
Constructors
GenericMultipleBarcodeReader(Reader)
Initializes a new instance of the GenericMultipleBarcodeReader class.
public GenericMultipleBarcodeReader(Reader @delegate)
Parameters
delegate
ReaderThe @delegate.
Methods
decode(BinaryBitmap)
Locates and decodes a barcode in some format within an image.
public Result decode(BinaryBitmap image)
Parameters
image
BinaryBitmapimage of barcode to decode
Returns
- Result
String which the barcode encodes
decode(BinaryBitmap, IDictionary<DecodeHintType, object>)
Locates and decodes a barcode in some format within an image. This method also accepts hints, each possibly associated to some data, which may help the implementation decode.
public Result decode(BinaryBitmap image, IDictionary<DecodeHintType, object> hints)
Parameters
image
BinaryBitmapimage of barcode to decode
hints
IDictionary<DecodeHintType, object>passed as a IDictionary<TKey, TValue> from DecodeHintType to arbitrary data. The meaning of the data depends upon the hint type. The implementation may or may not do anything with these hints.
Returns
- Result
String which the barcode encodes
decodeMultiple(BinaryBitmap)
Decodes the multiple.
public Result[] decodeMultiple(BinaryBitmap image)
Parameters
image
BinaryBitmapThe image.
Returns
- Result[]
decodeMultiple(BinaryBitmap, IDictionary<DecodeHintType, object>)
Decodes the multiple.
public Result[] decodeMultiple(BinaryBitmap image, IDictionary<DecodeHintType, object> hints)
Parameters
image
BinaryBitmapThe image.
hints
IDictionary<DecodeHintType, object>The hints.
Returns
- Result[]
reset()
Resets any internal state the implementation has after a decode, to prepare it for reuse.
public void reset()