Decoded

data class Decoded(val parse: ParseResult, val recognizedText: RecognizedText, val quality: ScanQuality, val fillerPadding: MrzFillerPadding?) : MrzScanResult

An MRZ-shaped candidate was located and parsed.

parse is the parser's own result, which can be a failure.

Since

0.2.0

Constructors

Link copied to clipboard
constructor(parse: ParseResult, recognizedText: RecognizedText, quality: ScanQuality, fillerPadding: MrzFillerPadding?)
constructor(parse: ParseResult, recognizedText: RecognizedText, quality: ScanQuality)

Creates a result with no filler padding.

Properties

Link copied to clipboard

the < the reader added at the end of a name line that was read short, or null when every line was read at full width. When it is set, parse was made from the padded lines, and recognizedText still holds the line as read. See MrzFillerPadding. Added in 1.0.0.

Link copied to clipboard

the parser's result for the candidate.

Link copied to clipboard
open override val quality: ScanQuality

the quality signals for this frame.

Link copied to clipboard

the raw OCR text the candidate came from; RecognizedLine.secondRead marks a row that came from a second read.

Functions

Link copied to clipboard
open override fun toString(): String

The parse variant and the quality signals; never a document value.