layout | title | description | keywords | needAutoGenerateSidebar |
---|---|---|---|---|
default-layout |
GrayscaleTransformationModes - Dynamsoft Label Recognition Parameter Reference for LabelRecognitionParameter Object |
This page shows Dynamsoft Label Recognition Parameter Reference for LabelRecognitionParameter Object - GrayscaleTransformationModes. |
GrayscaleTransformationModes, LabelRecognitionParameter, parameter reference, parameter |
true |
Parameter Name | Description |
---|---|
LabelRecognitionParameter.Name |
The name of the LabelRecognitionParameter object. |
LabelRecognitionParameter.BinarizationModes |
Sets the mode and priority for binarization. |
LabelRecognitionParameter.CharacterModelName |
Sets the name of a white list of recognizable characters. |
LabelRecognitionParameter.GrayscaleTransformationModes |
Sets the mode and priority for the grayscale image conversion. |
LabelRecognitionParameter.LetterHeightRange |
Sets the range of letter height (in pixel or a percentage value relative to the height of the text area). |
LabelRecognitionParameter.LinesCount |
Sets the text lines count of the text area. |
LabelRecognitionParameter.LineStringRegExPattern |
Specifies the regular expression pattern of each line string text in current image to recognize. |
LabelRecognitionParameter.MaxThreadCount |
Sets the maximum number of threads the algorithm will use to recognize text. |
LabelRecognitionParameter.ReferenceRegionNameArray |
The name array of the ReferenceRegion object(s). |
LabelRecognitionParameter.RegionPredetectionModes |
Sets the region pre-detection mode for searching target regions. |
LabelRecognitionParameter.TextRegExPattern |
Specifies the regular expression pattern of the text to recognize. |
GrayscaleTransformationModes
is a parameter for setting the mode for the grayscale image conversion. It consisits of one or more DLRGrayscaleTransformationMode
items. The array index represents the priority of the item. The smaller index is, the higher priority is.
Value Type | Value Range | Default Value |
---|---|---|
[DLRGrayscaleTransformationMode ]({{ site.enumerations }}parameter-mode-enums.html#dlrgrayscaletransformationmode) array |
"DLR_GTM_SKIP" "DLR_GTM_INVERTED" "DLR_GTM_ORIGINAL" |
["DLR_GTM_ORIGINAL", "DLR_GTM_SKIP", "DLR_GTM_SKIP", "DLR_GTM_SKIP", "DLR_GTM_SKIP", "DLR_GTM_SKIP", "DLR_GTM_SKIP", "DLR_GTM_SKIP"] |
- See also:
[DLRGrayscaleTransformationMode
Enumeration]({{ site.enumerations }}parameter-mode-enums.html#dlrgrayscaletransformationmode)
Sets the file name of the library to load dynamically.
Value Type | Value Range | Default Value | Valid Modes |
---|---|---|---|
string | A string value representing file name. | "" | All DLRGrayscaleTransformationMode items except DLR_GTM_SKIP |
Remarks
- The library must be in the same place with Dynamsoft Label Recognition Library.
Sets the parameters passed to the library to load dynamically.
Value Type | Value Range | Default Value | Valid Modes |
---|---|---|---|
string | A string value representing parameters. | "" | All DLRGrayscaleTransformationMode items except DLR_GTM_SKIP |
GrayscaleTransformationModes
as a JSON parameter is a JSON Object array. ach JSON Object has a key Mode
for setting the mode, and the array index decides the priority of the mode for the grayscale image conversion. Default values will be used if there is no manual setting.
Json Object | Json Parameter Name | Value Type |
---|---|---|
LabelRecognitionParameter | GrayscaleTransformationModes | JSON Object Array |
Json Parameter Example
{
"GrayscaleTransformationModes": [
{
"Mode": "DLR_GTM_INVERTED"
},
{
"Mode": "DLR_GTM_ORIGINAL"
}
]
}
GrayscaleTransformationModes
is a [DLRGrayscaleTransformationMode
]({{ site.enumerations }}parameter-mode-enums.html#dlrgrayscaletransformationmode) array defines in furtherModes
which is a struct member of DLRRuntimeSettings
. It is used for setting the modes and the priority for the grayscale image conversion. Default value will be used if there is no manual setting.
Struct | Struct Member Name | Value Type |
---|---|---|
[DLRRuntimeSettings ]({{ site.c-cplusplus-structs }}dlr-runtime-settings.html) |
[grayscaleTransformationModes ]({{ site.c-cplusplus-structs }}dlr-runtime-settings.html#grayscaletransformationmodes) |
[DLRGrayscaleTransformationMode ]({{ site.enumerations }}parameter-mode-enums.html#dlrgrayscaletransformationmode)[8] |
See Also
- [
DLRRuntimeSettings
Struct]({{ site.c-cplusplus-structs }}dlr-runtime-settings.html) - [
DLRGrayscaleTransformationMode
Enumeration]({{ site.enumerations }}parameter-mode-enums.html#dlrgrayscaletransformationmode)