Documentation
Table of contents

TextureDetectionModes

Parameter TextureDetectionModes controls how to detect texture on an image.

Example

{
    "TextureDetectionModes": 
    [
        {
            "Mode": "TDM_GENERAL_WIDTH_CONCENTRATION", 
            "Sensitivity": 1
        },
        {
            "Mode": "TDM_GENERAL_WIDTH_CONCENTRATION", 
            "Sensitivity": 9
        }
    ]
}

Parameter Summary

Parameter TextureDetectionModes consist of a group of texture detection mode objects. Each texture detection mode object includes a candidate mode and a series of mode arguments. The mode arguments of the texture detection mode object is shown as follow:

Mode Arguments

Mode Argument Name Mode Argument Summary
Mode
(Required)
Description
Any one in Candidate Mode List as string
Type
String
Candidate Mode List
TDM_GENERAL_WIDTH_CONCENTRATION
TDM_AUTO (Not supported yet.)
TDM_SKIP
Default Value
TDM_GENERAL_WIDTH_CONCENTRATION
Sensitivity
(Optional)
Description
Sets the sensitivity used for texture detection. A larger value means the library will take more effort to detect texture.
Type
int
Range
[1, 9]
Default Value
5
Valid For

TDM_GENERAL_WIDTH_CONCENTRATION
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 TextureDetectionModes is not configured in your template file, the following setting will be used as the default setting.

{
    "TextureDetectionModes":
    [
        {
            "Mode": "TDM_GENERAL_WIDTH_CONCENTRATION",
            "Sensitivity": 5
        }
    ]
}

Candidate Modes Introduction

TDM_GENERAL_WIDTH_CONCENTRATION

Detects texture using the general algorithm. This mode has the following arguments for further customization.

Available Mode Arguments:

  • Sensitivity

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