RecognizedText

data class RecognizedText(val lines: List<RecognizedLine>)

The text an OCR engine recognized in one frame, as lines in reading order.

Every character is an engine read, never edited by the SDK. A short MRZ row may be the engine's second read of the same region; RecognizedLine.secondRead marks that row.

It is raw OCR output, not an MRZ: lines can be in any case, hold non-MRZ characters, or carry stray spaces. It can hold MRZ text, so do not log it verbatim. toString() on it and on RecognizedLine shows no document values; they are in the properties.

Since

0.2.0

Constructors

Link copied to clipboard
constructor(lines: List<RecognizedLine>)

Properties

Link copied to clipboard

Every line the engine recognized, in reading order. Empty when it found no text.

Functions

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

How many lines were recognized; never their text.