SimplifiedBarcodeReaderSettings
This interface defines simplified settings for barcode reading tasks.
interface SimplifiedBarcodeReaderSettings {
barcodeFormatIds: EnumBarcodeFormat;
expectedBarcodesCount: number;
grayscaleTransformationModes: Array<Dynamsoft.Core.EnumGrayscaleTransformationMode>;
grayscaleEnhancementModes: Array<Dynamsoft.Core.EnumGrayscaleEnhancementMode>;
localizationModes: Array<EnumLocalizationMode>;
deblurModes: Array<EnumDeblurMode>;
minResultConfidence: number;
minBarcodeTextLength: number;
barcodeTextRegExPattern: string;
scaleDownThreshold: number;
}
barcodeFormatIds
A combined value of enumeration BarcodeFormat to specify the targeting barcode formats.
barcodeFormatIds: EnumBarcodeFormat;
See also
expectedBarcodesCount
Set the expected barcode count. The default value is 0.
expectedBarcodesCount: number;
Remarks
- Set
expectedBarcodesCount
to 0 if the barcode count is unknown. The library will try to find at least 1 barcode. - Set
expectedBarcodesCount
to 1 to reach the highest speed for processing single barcode. - Set
expectedBarcodesCount
to “n” if there will be “n” barcodes to process from an image. - Set
expectedBarcodesCount
to the highest expected value if there exists multiple barcodes but the exact count is not confirmed.
grayscaleTransformationModes
Set the grayscale transformation modes with an array of enumeration GrayscaleTransformationMode
. View the reference page of GrayscaleTransformationModes
for more detail about grayscale transformation modes.
grayscaleTransformationModes: Array<Dynamsoft.Core.EnumGrayscaleTransformationMode>;
See also
grayscaleEnhancementModes
Set the grayscale enhancement modes with an array of enumeration GrayscaleEnhancementMode
. View the reference page of GrayscaleEnhancementModes
for more detail about grayscale enhancement modes.
grayscaleEnhancementModes: Array<Dynamsoft.Core.EnumGrayscaleEnhancementMode>;
See also
localizationModes
Set the location modes with an array of enumeration LocalizationMode
. View the reference page of LocalizationModes
for more detail about location modes.
localizationModes: Array<EnumLocalizationMode>;
See also
deblurModes
Set the deblur modes with an array of enumeration DeblurMode
. View the reference page of DeblurModes
for more detail about deblur modes.
deblurModes: Array<EnumDeblurMode>;
See also
minResultConfidence
Set the minimum result confidence to filter out the low confidence results. The default value is 30.
minResultConfidence: number;
minBarcodeTextLength
Set the minimum barcode text length to filter out the unqualified results.
minBarcodeTextLength: number;
barcodeTextRegExPattern
Set the RegEx pattern of the barcode text to filter out the unqualified results.
barcodeTextRegExPattern: string;
scaleDownThreshold
Set the threshold for scaling down the input image during barcode localization. If the shorter edge size of the image is larger than this threshold,the original may be scaled down to reduce processing time. The default value is 2300.
scaleDownThreshold: number;