GenerationResult

sealed class GenerationResult

The result of generating an MRZ: Success or Failure.

Success holds the MRZ lines of the document. toString() on each of them shows no document values; they are in the properties.

Since

0.1.0

Inheritors

Types

Link copied to clipboard
data class Failure(val error: MrzGenerationError, val metadata: ResultMetadata) : GenerationResult

Generation could not produce an MRZ.

Link copied to clipboard
data class Success(val mrz: List<String>, val metadata: ResultMetadata) : GenerationResult

Generation produced the MRZ.

Properties

Link copied to clipboard
abstract val metadata: ResultMetadata

The reading method and transliteration details of this result.