read

abstract fun read(bgraRawImage: BgraRawImage, documentDetectorResult: DocumentDetector.Result, 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.

documentDetectorResult

Detection data. See DocumentDetector.

travelDocumentType

ravel document type according to ICAO Doc 9303.

Throws

If any of the arguments are not valid.