read
Reads image once and returns the result.
SavedImageScanResult.candidates is filled only when tolerant is on. SavedImageScanResult.captureMetadata is filled only when a metadata reader is set and the policy is not CaptureMetadataPolicy.NONE. An OCR failure is a MrzScanResult.CaptureError, an unparseable candidate is a MrzScanResult.Decoded holding the parser's failure, and an image with no MRZ is a MrzScanResult.NoMrzFound; none of these throw. Coroutine cancellation propagates, and so does an exception from the CaptureMetadataReader.
Return
the scan outcome with any candidates and capture metadata.
Parameters
image
the saved image to read.