MrzFrameAnalyzer
Analyses one camera frame: runs OCR, locates an MRZ, parses it, and returns a MrzScanResult.
Before parsing it folds case to upper and maps out-of-alphabet chevron glyphs to <; ParsingMode.LENIENT also removes spaces. When no MRZ of exact width is found, a name line read short is padded with < at the end, and the result says so (see MrzFillerPadding). The raw OCR text stays on every result. The analyzer emits one CameraFrameEvent per frame. It reads a frame but never closes or retains it: the caller releases the frame after analyse returns.
Since
0.2.0
Parameters
the OCR engine.
how tolerant candidate extraction is of OCR formatting noise. The default is ParsingMode.STRICT.
where per-frame CameraFrameEvents go. The default is the sink registered when the analyzer is constructed, or NoOpTelemetrySink when none is registered.
supplies the reference instant for date parsing. The default is the system clock.
Type Parameters
the platform frame type, for example ImageProxy on Android.
Constructors
Creates an analyzer that stamps provenance as the reading method of every result.
Functions
Analyses a single frame and returns the result.
Turns a stream of platform frames into MrzScanResults, one per frame, in order.