MrzScannerConfiguration

data class MrzScannerConfiguration(var frameAccumulationConfiguration: AccumulatedResultsVerifierConfiguration = AccumulatedResultsVerifierConfiguration( ), var enableDetection: Boolean = true, var incompleteResultHandling: MrzIncompleteResultHandling = MrzIncompleteResultHandling.REJECT, var returnCrops: Boolean = false) : Parcelable

Configuration for MRZ scanner.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(frameAccumulationConfiguration: AccumulatedResultsVerifierConfiguration = AccumulatedResultsVerifierConfiguration( ), enableDetection: Boolean = true, incompleteResultHandling: MrzIncompleteResultHandling = MrzIncompleteResultHandling.REJECT, returnCrops: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Enable MRZ detection. If disabled, the scanner skips the detection step and assumes that the input image is a crop of the MRZ area.

Link copied to clipboard

Configure the frame accumulation process.

Link copied to clipboard

Defines how to handle incomplete MRZ results (e.g. caused by failed validation).

Link copied to clipboard

If true, crops of the detected MRZ and its fields will be returned in the result.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject