SimplifiedLabelRecognizerSettings
The SimplifiedLabelRecognizerSettings
class contains settings for label recognition. It is a sub-parameter of SimplifiedCaptureVisionSettings
Definition
Namespace: com.dynamsoft.dlr
Assembly: DynamsoftLabelRecognizer.aar
class SimplifiedLabelRecognizerSettings
Methods & Attributes
Method | Description |
---|---|
toJSON |
Generate the current SimplifiedLabelRecognizerSettings object to a JSON string. |
fromJSON |
Generate a SimplifiedLabelRecognizerSettings object from a JSON string. |
Attribute | Type | Description |
---|---|---|
grayscaleTransformationModes |
EnumGrayscaleTransformationMode[] | Set the grayscale transformation modes with an array of enumeration GrayscaleTransformationMode . |
grayscaleEnhancementModes |
EnumGrayscaleEnhancementMode[] | Set the grayscale enhancement modes with an array of enumeration GrayscaleEnhancementMode . |
characterModelName |
String | Specify a character model by its name. |
lineStringRegExPattern |
String | Set the RegEx pattern of the text line string to filter out the unqualified results. |
maxThreadsInOneTask |
int | Set the maximum available threads count in one label recognition task. |
scaleDownThreshold |
int | Set the threshold for image shrinking when dealing with large images. |
toJSON
Transform the current SimplifiedLabelRecognizerSettings
object to a JSON string.
String toJSON();
Return Value
The string that generated from the current SimplifiedLabelRecognizerSettings
object.
fromJSON
Generate a SimplifiedLabelRecognizerSettings
object from a JSON string.
static SimplifiedLabelRecognizerSettings fromJSON(String jsonString);
Return Value
The generated SimplifiedLabelRecognizerSettings
object.
grayscaleTransformationModes
Set the grayscale transformation modes with an array of enumeration GrayscaleTransformationMode
.
int[] grayscaleTransformationModes;
Remarks
View the parameter reference page of GrayscaleTransformationMode
for more detail about how to set grayscale transformation modes.
grayscaleEnhancementModes
Set the grayscale enhancement modes with an array of enumeration GrayscaleEnhancementMode
.
int[] grayscaleEnhancementModes;
Remarks
View the reference page of GrayscaleEnhancementMode
for more detail about how to set grayscale enhancement modes.
characterModelName
Specify a character model by its name.
String characterModelName;
Remarks
View the parameter reference of CharacterModelName for more details about how to use the parameter.
lineStringRegExPattern
Set the RegEx pattern of the text line string to filter out the unqualified results.
String lineStringRegExPattern;
Remarks
maxThreadsInOneTask
Set the maximum available threads count in one label recognition task.
int maxThreadsInOneTask;
Remarks
scaleDownThreshold
Set the threshold for image shrinking when dealing with large images.
int scaleDownThreshold;