SavedImageMrzReader
Reads an MRZ from one saved image.
Saved-image reading is off unless you pass a SavedImageReadingAcknowledgement. Results carry the reading method PRE_CAPTURED_IMAGE. The reader wraps a MrzFrameAnalyzer, so parsing and validation match a camera read. Close the reader to release the recognizer.
Since
0.3.0
Parameters
the required acknowledgement. It has no default.
the OCR engine for saved images.
how tolerant line detection is of OCR formatting noise. The default is ParsingMode.LENIENT, because saved-image OCR can put stray spaces in an MRZ line and ParsingMode.STRICT then reports no MRZ.
when true, SavedImageScanResult.candidates lists the reconstructions of ambiguous characters (see MrzCandidate). The default is false.
reads the capture metadata. When null, none is read. The default is null.
how much capture metadata to read. The default is CaptureMetadataPolicy.NONE.
where per-read CameraFrameEvents go. The default is the registered sink (TelemetrySinkRegistry.current).
supplies the reference instant for date parsing. The default is the system clock.
Type Parameters
the saved-image input type that recognizer reads, for example android.net.Uri or NSURL.
Constructors
Functions
Closes the recognizer if it is AutoCloseable.
Reads image once and returns the result.