| layout | title | description | keywords | needAutoGenerateSidebar | noTitleIndex |
|---|---|---|---|---|---|
default-layout |
interface SimplifiedBarcodeReaderSettings - Dynamsoft Core Module JS Edition API Reference |
This page shows the JS edition of the interface SimplifiedBarcodeReaderSettings in Dynamsoft DBR Module. |
simplified setting, JS |
true |
true |
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;
}A combined value of enumeration BarcodeFormat to specify the targeting barcode formats.
barcodeFormatIds: EnumBarcodeFormat;See also
- [Dynamsoft.DBR.EnumBarcodeFormat]({{ site.js_api }}interfaces/enum-barcode-format.html?lang=js)
Set the expected barcode count. The default value is 0.
expectedBarcodesCount: number;Remarks
- Set
expectedBarcodesCountto 0 if the barcode count is unknown. The library will try to find at least 1 barcode. - Set
expectedBarcodesCountto 1 to reach the highest speed for processing single barcode. - Set
expectedBarcodesCountto "n" if there will be "n" barcodes to process from an image. - Set
expectedBarcodesCountto the highest expected value if there exists multiple barcodes but the exact count is not confirmed.
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
- [Dynamsoft.Core.EnumGrayscaleTransformationMode]({{ site.dcv_js_api }}core/enum-grayscale-transformation-mode.html?lang=js)
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
- [EnumGrayscaleEnhancementMode]({{ site.dcv_js_api }}core/enum-grayscale-enhancement-mode.html?lang=js)
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
- [Dynamsoft.DBR.EnumLocalizationMode]({{ site.js_api }}enum-localization-mode.html?lang=js)
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
- [Dynamsoft.DBR.EnumDeblurMode]({{ site.js_api }}enum-deblur-mode.html?lang=js)
Set the minimum result confidence to filter out the low confidence results. The default value is 30.
minResultConfidence: number;Set the minimum barcode text length to filter out the unqualified results.
minBarcodeTextLength: number;Set the RegEx pattern of the barcode text to filter out the unqualified results.
barcodeTextRegExPattern: string;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;