ExtractionSettings

data class ExtractionSettings(val extractIban: Boolean = true, val extractExpiryDate: Boolean = true, val extractCardholderName: Boolean = true, val extractCvv: Boolean = true, val extractInvalidCardNumber: Boolean = false) : Parcelable

Controls which fields and images should be extracted from the payment card.

Disabling extraction of unused fields can improve recognition performance or reduce memory usage.

Constructors

Link copied to clipboard
constructor(extractIban: Boolean = true, extractExpiryDate: Boolean = true, extractCardholderName: Boolean = true, extractCvv: Boolean = true, extractInvalidCardNumber: Boolean = false)

Properties

Link copied to clipboard

Whether to extract the cardholder name. Defaults to true.

Link copied to clipboard
val extractCvv: Boolean = true

Whether to extract the CVV (Card Verification Value) security code. Usually found on the back of the card. Required for secure transactions. Defaults to true.

Link copied to clipboard

Whether to extract the card expiry date. Defaults to true.

Link copied to clipboard
val extractIban: Boolean = true

Whether to extract the IBAN (International Bank Account Number). Defaults to true.

Link copied to clipboard

Indicates whether card numbers that fail checksum validation should be accepted. Card numbers are validated using the Luhn algorithm. A value of false (default) means only card numbers that pass the checksum validation will be accepted. A value of true means card numbers that fail checksum validation will still be accepted. This may be useful for testing purposes or when processing damaged/worn cards. The cardNumberValid field in the result will still indicate whether the checksum passed. Defaults to false.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)