Table of contents

BarcodeReaderTaskSetting Object

In Dynamsoft Capture Vision(DCV), we use Json files to configure and organize the process tasks. The BarcodeReaderTaskSetting described in this chapter is one of the configurable tasks. If you have more strict requirements for speed or accuracy, it is highly recommended that you start by trying the barcode reader task settings.

Available Settings

All available parameters related to barcode decoding are listed here, along with a brief description.

Parameter Name Description
BarcodeFormatIds Sets which barcode format the current FormatSpecification configuration is applied to.
BarcodeFormatSpecificationNameArray The names of the referenced BarcodeFormatSpecification object(s).
BarcodeColourModes Sets the mode and priority for the barcode colour mode used to process the barcode zone.
BarcodeComplementModes Sets the mode and priority to complement the missing parts in the barcode.
DeblurModes Sets the mode and priority for deblurring.
DeformationResistingModes Sets the mode and priority for deformation resisting.
DPMCodeReadingModes Sets the mode and priority for DPM code reading.
ExpectedBarcodesCount Sets the number of barcodes expected to be detected for each image.
LocalizationModes Sets the mode and priority for barcode localization algorithms.
MaxThreadsInOneTask Represents the maximum number of parallel threads that can be used on a single task.
Name The name of the BarcodeReaderTaskSetting object.
ReturnBarcodeZoneClarity Sets whether or not to return the clarity of the barcode zone.
SectionImageParameterArray Sets image parameters for three different sections, where each section performs image processing stages with different parameters.
StartSection Indicates which Section the task will start executing from.
TerminateSetting Indicates where the task stops, specifically indicating a Stage under a certain Section.
TextResultOrderModes Sets the mode and priority for the order of the text results returned.
BaseBarcodeReaderTaskSettingName Sets the name of a BarcodeReaderTaskSetting object to be Inheritanced.

When DCV executes tasks related to barcode reading, it will process them according to the settings in the BarcodeReaderTaskSetting. Here is a sample:

Barcode Reader Task Setting Example

 {
    "Name": "BR_0",
    "MaxThreadsInOneTask":4, 
    "ExpectedBarcodesCount" : 512,
    "BarcodeFormatIds" : [ "BF_ALL" ],
    "DeblurModes" : null,
    "BarcodeFormatSpecificationNameArray" : null,
    "LocalizationModes" : [
        {
            "LibraryFileName" : "",
            "LibraryParameters" : "",
            "Mode" : "LM_CONNECTED_BLOCKS"
        },
        {
            "LibraryFileName" : "",
            "LibraryParameters" : "",
            "Mode" : "LM_SCAN_DIRECTLY",
            "ScanDirection" : 0,
            "ScanStride" : 0
        },
        {
            "LibraryFileName" : "",
            "LibraryParameters" : "",
            "Mode" : "LM_STATISTICS"
        },
        {
            "LibraryFileName" : "",
            "LibraryParameters" : "",
            "Mode" : "LM_LINES"
        },
        {
            "LibraryFileName" : "",
            "LibraryParameters" : "",
            "Mode" : "LM_STATISTICS_MARKS"
        }
    ],
    "DPMCodeReadingModes" : [
        {
            "Mode" : "DPMCRM_SKIP"
        }
    ],
    "BarcodeColourModes" : [
         {
            "LibraryFileName" : "",
            "LibraryParameters" : "",
            "LightReflection" : 1,
            "Mode" : "BICM_DARK_ON_LIGHT"
         }
    ],
    "BarcodeComplementModes" : [
        {
            "Mode": "BCM_GENERAL" 
        }
    ],
    "DeformationResistingModes" : [
        {
            "Mode" : "DRM_SKIP"
        }
    ],
    "ReturnBarcodeZoneClarity" : 0,
    "TextResultOrderModes" : [
        {
            "Mode" : "TROM_CONFIDENCE"
        },
        {
            "Mode" : "TROM_POSITION"
        },
        {
            "Mode" : "TROM_FORMAT"
        }
    ],    
    "SectionImageParameterArray":[
        {
            "Section": "REGION_PREDETECTION",
            "ImageParameterName": "IP_0"
        },
        {
            "Section": "BARCODE_LOCALIZATION",
            "ImageParameterName": "IP_1"
        },
        {
            "Section": "BARCODE_DECODING",
            "ImageParameterName": "IP_2"
        }
    ],
    "StartSection": "REGION_PREDETECTION", 
    "TerminateSetting": 
    {
        "Section": "REGION_PREDETECTION",
        "Stage": "IRUT_GRAYSCALE_IMAGE" 
    },
    "BaseBarcodeReaderTaskSettingName": ""
}

This page is compatible for:

Is this page helpful?

YesYes NoNo