Reader

interface Reader

Implementations of this interface can decode an image of a barcode in some format into the String it encodes. For example, com.jeluchu.jchucomponents.utils.zxing.qrcode.QRCodeReader can decode a QR code. The decoder may optionally receive hints from the caller which may help it decode more quickly or accurately.

Inheritors

Functions

Link copied to clipboard
abstract fun decode(image: BinaryBitmap?): Result?

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

abstract 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
abstract fun reset()

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