Documentation
Table of contents

DeblurModes

Parameter DeblurModes defines the mode and priority for deblurring.

Example

{
    "DeblurModes":
    [
        {
            "Mode": "DM_BASED_ON_LOC_BIN"
        },
        {
            "Mode": "DM_THRESHOLD_BINARIZATION" 
        }
    ]
}

Parameter Summary

Parameter DeblurModes consist of a group of deblur mode objects. Each deblur mode object includes a candidate mode and a series of auxiliary mode arguments.

Mode Arguments

The mode arguments of the deblur mode object are shown as follow:

Mode Argument Name Mode Argument Summary
Mode
(Required)
Description
Specifies a deblur mode.
Type
String
Candidate Mode List
DM_DIRECT_BINARIZATION
DM_THRESHOLD_BINARIZATION
DM_GRAY_EQUALIZATION
DM_SMOOTHING
DM_MORPHING
DM_DEEP_ANALYSIS
DM_SHARPENING
DM_BASED_ON_LOC_BIN
DM_SHARPENING_SMOOTHING
DM_SKIP
LibraryFileName
(Optional)
Description
Sets the file name of the library to load dynamically.
Type
String
Range
A string value representing file name.
Default Value
""
Valid For
All modes.
LibraryParameters
(Optional)
Description
The library must be in the same place with Dynamsoft Barcode Reader Library.
Type
String
Range
A string value representing parameters.
Default Value
""
Valid For
All modes.

Default Setting

If the DeblurModes is not configured in your template file, the following settings will be used as the default settings.

{
    "DeblurModes": null
}

Candidate Modes Introduction

DM_DIRECT_BINARIZATION

Performs deblur process using the binarization algorithm. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • LibraryFileName
  • LibraryParameters

DM_THRESHOLD_BINARIZATION

Performs deblur process using the threshold binarization algorithm.

When processing OneD barcodes, you can add two DM_THRESHOLD_BINARIZATION to your DeblurModes settings. If you do, the second round DM_THRESHOLD_BINARIZATION will detect and fill in the blurry area with predicted barcode modules. The second round DM_THRESHOLD_BINARIZATION can sharpenly improve the read-rate of blurry OneD barcodes but sacrifice the accuracy.

This mode has the following arguments for further customizing.

Available Mode Arguments:

  • LibraryFileName
  • LibraryParameters

DM_GRAY_EQUALIZATION

Performs deblur process using the gray equalization algorithm. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • LibraryFileName
  • LibraryParameters

DM_SMOOTHING

Performs deblur process using the smoothing algorithm. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • LibraryFileName
  • LibraryParameters

DM_MORPHING

Performs deblur process using the morphing algorithm. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • LibraryFileName
  • LibraryParameters

DM_DEEP_ANALYSIS

Performs deblur process using the deep analysis algorithm. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • LibraryFileName
  • LibraryParameters

DM_SHARPENING

Performs deblur process using the sharpening algorithm. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • LibraryFileName
  • LibraryParameters

DM_BASED_ON_LOC_BIN

Performs deblur process based on the binary image from the localization process. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • LibraryFileName
  • LibraryParameters

DM_SHARPENING_SMOOTHING

Performs deblur process using the sharpening and smoothing algorithm. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • LibraryFileName
  • LibraryParameters

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version (2.2.20)
    • Version 2.x
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.30
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support