List of document formats to be extracted.
Barcodes that decode to one of the extracted document formats will have extractedDocument field in BarcodeItem populated with the parsed document.
By default all supported barcode document formats are accepted.
If empty, no barcodes will be parsed into documents.
To only accept the document formats listed in extractedDocumentFormats, the property onlyAcceptDocuments must be true.
If true and extractedDocumentFormats is not empty, then barcodes that don't decode to one of the extracted document formats will be ignored.
Default Value
false;
OptionaloptimizedForOverlays?: boolean
If true, the quads of linear (1D) barcodes will be further refined to more closely match the barcode's outline in the input image.
This will also produce stabler barcode outlines across frames for use cases such as AR.
Scanners 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.
Default Value
"AUTO";
OptionalreturnBarcodeImage?: boolean
If true, the barcode image will be returned in the BarcodeItem.
Document detection to be performed in addition to scanning the machine-readable data in the check.
By default only the machine-readable data is extracted during check scanning. Optionally, the coordinates and a crop of the entire check document can be returned, in addition to the check data.
A check scan result may still be successful even if the whole document is not visible in the input image and the complete document could not be located.
If cropping is enabled, check recognition will be performed on the cropped image of the check, which may improve recognition results.
Scanners 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.
Scanners 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.
Default Value
"AUTO";
OptionalrequireCardholderName?: boolean
Whether the cardholder name is required for a successful scan.
Default Value
true;
OptionalrequireExpiryDate?: boolean
Whether the expiry date is required for a successful scan.
If true, the credit card image will be returned in creditCard field of CreditCardScanningResult.
Default Value
false;
OptionaluseDocumentDetector?: boolean
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.
Scanners 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.
The configuration to use for the document quality analyzer.
OptionaldetectOrientation?: boolean
Enable orientation detection. Document orientation will be returned in DocumentQualityAnalyzerResult.orientation.
Default Value
false;
OptionalinspectSmallText?: boolean
Inspect small text (typically less than 12 pixels height) when analyzing the document quality.
If true, processing will be slower, but when the quality issue with a document is the low resolution of the text,
then the issue will be caught.
Default Value
false;
OptionalmaxImageSize?: number
Maximum image size in pixels, if image is bigger, it will be resized.
Default Value
2000;
OptionalmaxProcessedFraction?: number
At most this fraction of the image will be processed, range is from 0 to 1.
Decreasing this value below 1.0 can lead to faster processing but may result in
less accurate prediction, as only a subset of the image tiles will be analyzed.
Default Value
1.0;
OptionalminEstimatedNumberOfSymbolsForDocument?: number
If estimated number of symbols is less than this value, return that document is not found.
Default Value
20;
OptionalminNumberOfRequiredSymbols?: number
If this number of symbols is found and minProcessedFraction of the image is processed, the processing stops.
Default Value
100;
OptionalminProcessedFraction?: number
At least this fraction of the image will be processed, range is from 0 to 1.
Decreasing this value below 1.0 can lead to faster processing but may result in
less accurate prediction, as only a subset of the image tiles will be analyzed.
Default Value
1.0;
OptionalminRequiredOrientationConfidence?: number
If detectOrientation is True, minNumberOfRequiredSymbols is found, and orientationConfidence is bigger than this threshold, the processing stops.
If the maxProcessedFraction part of the image is processed and orientationConfidence is lower than the threshold, the returned orientation will be 0.
If true, will return the quality heatmap as a part of the result.
In this case, the entire image will be processed and the minProcessedFraction will be ignored.
Useful for debugging situations where the returned quality doesn't appear to match the perceived quality.
Default Value
false;
OptionaltileSize?: number
Image will be processed in tiles of this size; will be ignored if image is small.
In live mode, the document scanner will return only the best document contour. In single-shot mode it will return additional document contours, suitable for use in the cropping screen.
Initialize the barcode document parser.