Resource Base
Table of contents

TextureDetectionModes

TextureDetectionModes controls how to detect texture on an image. It currently only supports a single mode for texture detection.

Candidate Mode List

  • TDM_GENERAL_WIDTH_CONCENTRATION

TDM_GENERAL_WIDTH_CONCENTRATION

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

Setting Methods

As JSON Parameter

TextureDetectionModes as a JSON parameter is a JSON Object array defined as below.

Parent Json Object Key Name Key Value
ImageParameter TextureDetectionModes A JSON Object array while each Object is defined as below
Key Name Key Value Description
Mode Any one in Candidate Mode List as string (Required) Specifies a mode for text filtering.
Sensitivity A number from value range of Sensitivity (Optional) Sets the Argument Sensitivity.

Default Value

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

JSON Parameter Example

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

Candidate Argument List

Sensitivity

Sets the sensitivity used for texture detection.

Value Type Value Range Default Value Valid For
int [1, 9] 5 TDM_GENERAL_WIDTH_CONCENTRATION

Remarks

A larger value means the library will take more effort to detect texture.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version(2.2.10)
    • Version 2.x
      • Version 2.2.0
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.11
      • Version 2.0.10
      • Version 2.0.0
    • Version 1.x
      • Version 1.0.21
      • Version 1.0.20
      • Version 1.0.12
      • Version 1.0.11
      • Version 1.0.10
      • Version 1.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support