Class ByQuadrantReader
This class attempts to decode a barcode from an image, not by scanning the whole image, but by scanning subsets of the image. This is important when there may be multiple barcodes in an image, and detecting a barcode may find parts of multiple barcode and fail to decode (e.g. QR Codes). Instead this scans the four quadrants of the image -- and also the center 'quadrant' to cover the case where a barcode is found in the center.
public sealed class ByQuadrantReader : Reader
- Inheritance
-
ByQuadrantReader
- Implements
- Inherited Members
Constructors
ByQuadrantReader(Reader)
Initializes a new instance of the ByQuadrantReader class.
public ByQuadrantReader(Reader @delegate)
Parameters
delegate
ReaderThe @delegate.
- See Also
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
- See Also
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
- See Also
reset()
Resets any internal state the implementation has after a decode, to prepare it for reuse.
public void reset()
- See Also