recognize

abstract suspend fun recognize(frame: F): RecognizedText

Runs OCR on frame and returns the recognized lines in reading order (top to bottom).

CameraXMrzScanner and AVCaptureMrzScanner call it on Dispatchers.Default, never on the main thread; MrzFrameAnalyzer.analyse calls it on the caller's coroutine context.

Return

the recognized lines.

Parameters

frame

the frame to read.