read
Reads the metadata policy permits from image; absent fields are null.
Under CaptureMetadataPolicy.EXCLUDING_LOCATION an implementation must not read the GPS tags. An unreadable or malformed image gives a CaptureMetadata with null fields and no exception. Only coroutine cancellation propagates. SavedImageMrzReader does not catch exceptions from this call.
Return
the metadata read from image.
Parameters
image
the saved image to read.
policy
how much metadata to read. SavedImageMrzReader never passes CaptureMetadataPolicy.NONE.