ByQuadrantReader

class ByQuadrantReader(delegate: Reader) : Reader

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.

See also

Constructors

Link copied to clipboard
constructor(delegate: Reader)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun decode(image: BinaryBitmap): Result

Locates and decodes a barcode in some format within an image.

open override fun decode(image: BinaryBitmap, hints: Map<DecodeHintType, *>?): Result

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.

Link copied to clipboard
open override fun reset()

Resets any internal state the implementation has after a decode, to prepare it for reuse.