Need better scanning performance?
DeformationResistingModes
Parameter DeformationResistingModes defines how to handle distorted and deformed barcodes.
JSON Structure
Location in template:
BarcodeReaderTaskSettingOptions[i]
├── SectionArray[j]
│ └── StageArray[k] (Stage object)
│ └── DeformationResistingModes
Parent object: ResistDeformationStage object
Example:
{
"DeformationResistingModes": [
{
"Mode": "DRM_SKIP"
}
]
}
- This snippet shows only the
DeformationResistingModesparameter.- To use it, embed this parameter within a Stage object at the
SST_RESIST_DEFORMATIONstage.- For the complete JSON structure, see:
Parameter Details
Parameter DeformationResistingModes consists 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 follows:
| 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 |
|
| 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 Mode Introductions
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.