SavedImageScanResult

data class SavedImageScanResult(val scan: MrzScanResult, val candidates: List<MrzCandidate>, val captureMetadata: CaptureMetadata?)

The result of reading one saved image: the scan outcome, any candidates, and capture metadata.

scan has the same shape as a live-camera result and differs only in its reading method, PRE_CAPTURED_IMAGE. The type holds document data and can hold a precise location: do not log it verbatim. toString() shows no document values; they are in the properties.

Since

0.3.0

Constructors

Link copied to clipboard
constructor(scan: MrzScanResult, candidates: List<MrzCandidate>, captureMetadata: CaptureMetadata?)

Properties

Link copied to clipboard

The reconstructions listed by tolerant reading, unranked and alongside scan.

Link copied to clipboard

The capture metadata read from the image.

Link copied to clipboard

The MRZ read outcome: Decoded, NoMrzFound, or CaptureError.

Functions

Link copied to clipboard
open override fun toString(): String

The scan variant and the counts; never a document value.