decode

open override fun decode(image: BinaryBitmap): Result

Locates and decodes a PDF417 code in an image.

Return

a String representing the content encoded by the PDF417 code

Throws

if a PDF417 code cannot be found,

if a PDF417 cannot be decoded


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.

Return

String which the barcode encodes

Parameters

image

image of barcode to decode

hints

passed as a Map 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.

Throws

if no potential barcode is found

if a potential barcode is found but does not pass its checksum

if a potential barcode is found but format is invalid