Documentation
Table of contents

DeformationResistingModes

Parameter DeformationResistingModes defines how to handle distorted and deformed barcodes.

Example

{
    "DeformationResistingModes" :
    [
        {
            "Mode" : "DRM_SKIP"
        }
    ]
}

Parameter Summary

Parameter DeformationResistingModes consist of a group of deformation resisting mode objects. Each deformation resisting mode object includes a candidate mode and a series of auxiliary mode arguments.

Mode Arguments

The mode arguments of the deformation resisting mode object are shown as follow:

Mode Argument Name Mode Argument Summary
Mode
(Required)
Description
Specifies a mode for deformation resisting.
Type
String
Candidate Mode List
DRM_GENERAL
DRM_BROAD_WARP
DRM_LOCAL_REFERENCE
DRM_DEWRINKLE
DRM_AUTO
DRM_SKIP
Default Value
Level
(Optional)
Description
Sets the Argument Level.
Type
int
Range
[1,9]
Default Value
5
GrayscaleEnhancementMode
(Optional)
Description
Sets the Argument GrayscaleEnhancementMode.
Type
GrayScaleEnhancementMode object
Remarks
View GrayScaleEnhancementModes page for how to set this mode.
BinarizationMode
(Optional)
Description
Sets the Argument BinarizationMode.
Type
BinarizationMode object
Remarks
View BinarizationMode page for how to set this parameter.
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 Settings

"DeformationResistingModes" : 
[
    {
        "Mode" : "DRM_SKIP"
    }
]

Candidate Modes Introduction

DRM_GENERAL

Resists deformation using the general algorithm. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • Level
  • LibraryFileName
  • LibraryParameters

DRM_BROAD_WARP

Resists deformation when the barcode is warped gently. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • BinarizationMode
  • GrayscaleEnhancementMode

DRM_LOCAL_REFERENCE

Resists deformation for barcodes with minor deformation in local modules. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • BinarizationMode
  • GrayscaleEnhancementMode

DRM_DEWRINKLE

Resists deformation for barcodes on a wrinkled surface. This mode has the following arguments for further customizing.

Available Mode Arguments:

  • BinarizationMode
  • GrayscaleEnhancementMode

DRM_AUTO

Lets the library choose a mode automatically.

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