Scan the credit card in the given image.
The image to scan.
Optional consumeImage: Config.ConsumeTypeControls if the image can still be used after calling this method, or if it will be consumed by the method. See ConsumeType for more details.
The scanning result.
Static createOptional configuration: { Optional processingScanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it.
On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results. The processing mode tells the scanner whether to optimize for single or multiple images of a subject.
"AUTO";
Optional requireWhether the cardholder name is required for a successful scan.
true;
Optional requireWhether the expiry date is required for a successful scan.
true;
Optional resultConfiguration for how to accumulate results.
new ResultAccumulationConfiguration({});
Optional returnIf true, the credit card image will be returned in creditCard field of CreditCardScanningResult.
false;
Optional useIf 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.
true;
Generated using TypeDoc
API for credit card scanning.
Required licence feature(s): CreditCardScanner.