MrzFrameAnalyzer

constructor(recognizer: MrzTextRecognizer<F>, mode: ParsingMode = ParsingMode.STRICT, telemetry: TelemetrySink = TelemetrySinkRegistry.current, referenceTimeProvider: () -> Instant = { Clock.System.now() })

Parameters

recognizer

the OCR engine.

mode

how tolerant candidate extraction is of OCR formatting noise. The default is ParsingMode.STRICT.

telemetry

where per-frame CameraFrameEvents go. The default is the sink registered when the analyzer is constructed, or NoOpTelemetrySink when none is registered.

referenceTimeProvider

supplies the reference instant for date parsing. The default is the system clock.

Type Parameters

F

the platform frame type, for example ImageProxy on Android.


constructor(recognizer: MrzTextRecognizer<F>, provenance: FrameProvenance, mode: ParsingMode = ParsingMode.STRICT, telemetry: TelemetrySink = TelemetrySinkRegistry.current, referenceTimeProvider: () -> Instant = { Clock.System.now() })

Creates an analyzer that stamps provenance as the reading method of every result.

Since

0.3.0

Parameters

recognizer

the OCR engine.

provenance

where the frames come from.

mode

how tolerant candidate extraction is of OCR formatting noise. The default is ParsingMode.STRICT.

telemetry

where per-frame CameraFrameEvents go. The default is the registered sink.

referenceTimeProvider

supplies the reference instant for date parsing. The default is the system clock.