Class BarcodeFormatCommonTwoDConfiguration

Convenience configuration for enabling the scanning of multiple 2D codes with a common configuration. Add to scanner configuration to enable and configure the scanning of multiple 2D codes.

The given configuration will be applied to all enabled barcode formats, if they support it. You can override the common configuration for individual barcode formats by additionally adding their specific configuration to the scanner's configuration.

Hierarchy

Constructors

Properties

_type: "BarcodeFormatCommonTwoDConfiguration"
addAdditionalQuietZone: boolean

If true, we process the barcode scanning with an artificial quiet zone that we add to the input image. This flag should be used to scan sharp crops of a barcode.

Default Value

false;
formats: BarcodeFormat[]

List of 2D codes to scan.

Default Value

["AZTEC", "DATA_MATRIX", "MAXI_CODE", "MICRO_QR_CODE", "MICRO_PDF_417", "PDF_417", "QR_CODE", "RMQR_CODE"];
gs1Handling: Gs1Handling

GS1 message handling options.

Default Value

"PARSE";
minimumSizeScore: number

Minimum acceptable value of a result BarcodeItem's sizeScore (between 0 and 1). Barcodes with a sizeScore less than this value will not be scanned. When set to 0, barcodes are returned no matter what their size is.

Default Value

0.0;
regexFilter: string

Regular expression filter for barcode text. If the barcode text does not match the regular expression, it will not be scanned. The default is an empty string (setting is turned off).

Default Value

"";
strictMode: boolean

If true, the barcode scanner will only return barcodes that pass the strict validation checks according to standards to avoid false positives.

Default Value

true;

Generated using TypeDoc