Class BarcodeFormatCommonOneDConfiguration

Convenience configuration for enabling the scanning of multiple linear (1D) barcode formats with a common configuration. Add to scanner configuration to enable and configure the scanning of multiple linear (1D) barcode formats.

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: "BarcodeFormatCommonOneDConfiguration"
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 linear (1D) barcode formats to scan.

Default Value

["CODABAR", "CODE_11", "CODE_25", "CODE_32", "CODE_39", "CODE_93", "CODE_128", "DATABAR", "DATABAR_EXPANDED", "DATABAR_LIMITED", "EAN_8", "EAN_13", "IATA_2_OF_5", "INDUSTRIAL_2_OF_5", "ITF", "MSI_PLESSEY", "PHARMA_CODE", "PZN_7", "PZN_8", "UPC_A", "UPC_E"];
gs1Handling: Gs1Handling

GS1 message handling options.

Default Value

"PARSE";
maximumTextLength: number

Maximum text length. 0 implies no maximum. Applied only to linear barcode formats that allow variable length.

Default Value

0;
minimum1DQuietZoneSize: number

Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.

Default Value

6;
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;
minimumTextLength: number

Minimum text length. Applied only to linear barcode formats that allow variable length.

Default Value

1;
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;
stripCheckDigits: boolean

If true, the check digits are stripped from the result.

Default Value

false;

Generated using TypeDoc