EAN8Reader

Implements decoding of the EAN-8 format.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
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 fun decodeEnd(row: BitArray, endStart: Int): IntArray
Link copied to clipboard
open override fun decodeRow(rowNumber: Int, row: BitArray, hints: Map<DecodeHintType, *>?): Result

Attempts to decode a one-dimensional barcode format given a single row of an image.

open fun decodeRow(rowNumber: Int, row: BitArray, startGuardRange: IntArray, hints: Map<DecodeHintType, *>?): Result

Like decodeRow, but allows caller to inform method about where the UPC/EAN start pattern is found. This allows this to be computed once and reused across many implementations.

Link copied to clipboard
open override fun getBarcodeFormat(): BarcodeFormat

Get the format of this decoder.

Link copied to clipboard
open override fun reset()

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