Element

data class Element(val value: String, val positions: List<StringPosition>)

Represents an element extracted from a Machine Readable Zone (MRZ) according to the ICAO Doc 9303.

An element is typically a specific piece of information such as a document code, nationality, or sex.

Constructors

Link copied to clipboard
fun Element(value: String, positions: List<StringPosition>)

Properties

Link copied to clipboard

The list of string positions within the MRZ where this element appears.

Link copied to clipboard

The string value of the element.