Dev Center
Table of contents

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;

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version(10.2.10)
    • Version 10.x
      • Version 10.0.21
      • Version 10.0.20
    • Version 9.x
      • Version 9.6.42
      • Version 9.6.40
      • Version 9.6.33
      • Version 9.6.32
      • Version 9.6.31
      • Version 9.6.30
      • Version 9.6.21
      • Version 9.6.20
      • Version 9.6.11
      • Version 9.6.10
      • Version 9.6.2
      • Version 9.6.1
      • Version 9.6.0
      • Version 9.3.1
      • Version 9.3.0
      • Version 9.2.13
      • Version 9.2.12
      • Version 9.2.11
      • Version 9.0.2
      • Version 9.0.1
      • Version 9.0.0
    • Version 8.x
      • Version 8.8.7
      • Version 8.8.5
      • Version 8.8.3
      • Version 8.8.0
      • Version 8.6.3
      • Version 8.6.0
      • Version 8.4.0
      • Version 8.2.5
      • Version 8.2.3
      • Version 8.2.1
      • Version 8.2.0
      • Version 8.1.3
      • Version 8.1.2
      • Version 8.1.0
      • Version 8.0.0
    • Version 7.x
      • Version 7.6.0
      • Version 7.5.0
    Change +