read

abstract fun read(bgraRawImage: BgraRawImage, document: DocumentDetector.Document, travelDocumentType: TravelDocumentType? = null): MrzReader.Result

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

Return

Structured Machine Readable Zone.

Parameters

bgraRawImage

BGRA raw image of the document. It does not have to be normalized. The document card edges must be clearly visible and be placed at least 10 px inside the image area.

document

Detection data. See DocumentDetector.

travelDocumentType

Travel document type according to ICAO Doc 9303.

Throws

If any of the arguments are not valid.