LabelRecognizerParameter Object
TextureDetectionModes
Mode Properties
TextureDetectionModes
is a parameter for setting the mode for texture detection. It consists of one or more TextureDetectionMode
items and each item has its own arguments. The array index represents the priority of the item. The smaller index is, the higher priority is.
Value Type | Value Range | Default Value |
---|---|---|
string array or TextureDetectionMode array |
“TDM_SKIP” “TDM_AUTO” “TDM_GENERAL_WIDTH_CONCENTRATION” |
[“TDM_GENERAL_WIDTH_CONCENTRATION”, “TDM_SKIP”, “TDM_SKIP”, “TDM_SKIP”, “TDM_SKIP”, “TDM_SKIP”, “TDM_SKIP”, “TDM_SKIP”] |
- See also:
TextureDetectionMode
Enumeration
Mode Arguments
Sensitivity
Sets the sensitivity used for texture detection.
Value Type | Value Range | Default Value |
---|---|---|
int | [1, 9] | 5 |
Remarks
A larger value means the library will take more effort to detect texture.
LibraryFileName
Sets the file name of the library to load dynamically.
Value Type | Value Range | Default Value | Valid For |
---|---|---|---|
string | A string value representing file name. | ”” | All TextureDetectionMode items except TDM_SKIP and TDM_AUTO |
Remarks
The library must be in the same place with Dynamsoft Label Recognizer Library.
LibraryParameters
Sets the parameters passed to the library to load dynamically.
Value Type | Value Range | Default Value | Valid For |
---|---|---|---|
string | A string value representing parameters. | ”” | All TextureDetectionMode items except TDM_SKIP and TDM_AUTO |
Setting Methods
As JSON Parameter
TextureDetectionModes
as a JSON parameter is a JSON Object array. Each JSON Object has several keys for setting the mode and the value of arguments. The array index decides the priority the mode for texture detection. Default values will be used if there is no manual setting.
Json Object | Json Parameter Name | Value Type |
---|---|---|
ImageParameter | TextureDetectionModes | JSON Object Array |
Json Parameter Example
{
"TextureDetectionModes": [
{
"Mode": "TDM_GENERAL_WIDTH_CONCENTRATION",
"Sensitivity": 5
}
]
}
As DLR_RuntimeSettings
Member
TextureDetectionModes
is a TextureDetectionMode
array defines in furtherModes
which is a struct member of DLR_RuntimeSettings
. It is used for setting the modes and the priority for texture detection. Default value will be used if there is no manual setting.
Struct | Struct Member Name | Value Type |
---|---|---|
DLR_RuntimeSettings ->furtherModes |
textureDetectionModes |
TextureDetectionMode [8] |
See Also