MrzReader

Machine Readable Zone component.

Types

Link copied to clipboard
data class Configuration(val context: Context)

Configuration for the Machine Readable Zone component.

Link copied to clipboard
class ReadingException(val message: String, val cause: Throwable) : RuntimeException

Thrown if travel document type resolution, text recognition, or text parsing are unsuccessful.

Link copied to clipboard
data class Result(val rawLines: List<String> = emptyList(), val travelDocumentType: TravelDocumentType? = null, val machineReadableZone: MachineReadableZone? = null, val exception: MrzReader.ReadingException? = null)

MRZ Reading result.

Functions

Link copied to clipboard
abstract fun read(image: Image, document: DocumentDetector.Document, travelDocumentType: TravelDocumentType? = null): MrzReader.Result

Read Machine Readable Zone (MRZ) in the document image.