decode

open override fun decode(image: BinaryBitmap): Result

This version of decode honors the intent of Reader.decode(BinaryBitmap) in that it passes null as a hint to the decoders. However, that makes it inefficient to call repeatedly. Use setHints() followed by decodeWithState() for continuous scan applications.

Return

The contents of the image

Parameters

image

The pixel data to decode

Throws

Any errors which occurred


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

Decode an image using the hints provided. Does not honor existing state.

Return

The contents of the image

Parameters

image

The pixel data to decode

hints

The hints to use, clearing the previous state.

Throws

Any errors which occurred