Credit Card Scanner Configuration
data class CreditCardScannerConfiguration(var useDocumentDetector: Boolean = true, var requireExpiryDate: Boolean = true, var requireCardholderName: Boolean = true, var resultAccumulationConfig: ResultAccumulationConfiguration = ResultAccumulationConfiguration( ), var returnCreditCardImage: Boolean = false, var processingMode: ProcessingMode = ProcessingMode.AUTO) : Parcelable
Configuration for the credit card scanner.
Constructors
Link copied to clipboard
constructor(useDocumentDetector: Boolean = true, requireExpiryDate: Boolean = true, requireCardholderName: Boolean = true, resultAccumulationConfig: ResultAccumulationConfiguration = ResultAccumulationConfiguration( ), returnCreditCardImage: Boolean = false, processingMode: ProcessingMode = ProcessingMode.AUTO)
Properties
Link copied to clipboard
Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it.
Link copied to clipboard
Whether the cardholder name is required for a successful scan.
Link copied to clipboard
Whether the expiry date is required for a successful scan.
Link copied to clipboard
Configuration for how to accumulate results.
Link copied to clipboard
If true, the credit card image will be returned in creditCard field of CreditCardScanningResult.
Link copied to clipboard
If true, the document detector will be used to find where the credit card is in the input image. If false, the scanner will assume that the credit card has been pre-cropped and takes the entirety of the input image.