How to set appropriate DBR parameter configurations
Dynamsoft Barcode Reader (DBR) offers flexible parameters to meet the decoding requirements of different scenario-settings and requirements. Here you can learn how to choose the appropriate parameter configurations for your project.
- DBR Parameter Configuration Methods
- DBR Barcode Format and Expected Barcode Counts
- DBR Algorithm Flow
- Control Terminate Phase for DBR
- Configuration parameters for specific barcode formats
DBR Parameter Configuration Methods
DBR provides two parameter configuration methods: RuntimeSetting
and JSON template.
For more information, please refer to this article: How to set DBR parameters.
DBR Barcode Format and Expected Barcode Counts
It is common that you may want to specify Barcode Format and Expected Barcode Counts for the scanning process.
For more information, please refer to: How to set the barcode format and the number of barcodes expected to be detected.
DBR Algorithm Flow
Understanding the general flow of the DBR algorithm can help you better choose the appropriate parameters for your project. The general processing process of DBR for images consists the below:
- Determine Regions Of Interest (ROI) in the image
- Barcode region localization in ROI(s)
- Identify the type of located barcode
- Decode located barcodes
- Return results
Determine the Region Of Interest in the image
Region Of Interest (ROI) in an image usually refers to the characteristic area of the image that contains the barcode region that you care about. This step involves the following:
- Get raw image data
For more information, please refer to this article: How to read images from different sources and How to process multi-page TIF & PDF. - Image scale and colour conversion
For more information, please refer to this article: How to set image scaling and colour transformation. - Detect ROI
For more information, please refer to this article: Manually define Region Of Interest and How to use region pre-detection.
Barcode Region Localization in ROI
This part is to locate the barcode region in ROI. Main steps:
- Grayscale Pre-processing
Learn more: How to preprocess images based on different scenario-settings. - Grayscale Binarization
Learn more: How to configure the binarization parameters. - Texture Detection
Learn more: How to deal with image textures. - Text Filter
Learn more: How to filter text. - Localization
Learn more: How to set localization modes.
Identify the type of located barcode region
This step will identify and standardize the type of located Barcode Region, including the following steps:
- Find the exact boundary of barcode region
- Barcode region standardization
- In the process of barcode region standardization, the barcode region that is too small may be enlarged. For more information, please refer to this article: How to read barcodes with small module size.
Decode Located Barcode Region
This part includes the following steps:
- Resist Deformation
Read more: How to deal with deformed barcodes. - Barcode Complementation
Read more: How to decode incomplete barcodes. - Sample Decoding
Sample decoding process mainly involves Deblur Level and DPM Decoding.
Return Results
DBR’s returned results include the decoding results and intermediate results.
For more information, please refer to this article: How to filter and sort decoding results and How to obtain and use intermediate results.
Control Terminate Phase
Learn how to set timeout for decoding and also specify a certain stage to terminate the DBR algorithm.
For more information, please refer to this article: How to control the Terminate Phase.
Configure parameters for specific barcode formats
In addition to common configuration parameters, DBR also provides code-specific configuration parameters to meet the diverse user needs.
For more information, please refer to this article: Configure parameters for specific barcode formats.