Documentation
Table of contents

SimplifiedLabelRecognizerSettings

The SimplifiedLabelRecognizerSettings class contains settings for label recognition. It is a sub-parameter of SimplifiedCaptureVisionSettings.

Definition

public class SimplifiedLabelRecognizerSettings

Attributes

Attribute Type
grayscaleTransformationModes EnumGrayscaleTransformationMode[]
grayscaleEnhancementModes EnumGrayscaleEnhancementMode[]
characterModelName string
lineStringRegExPattern string
maxThreadsInOneTask int
scaleDownThreshold int

grayscaleTransformationModes

Set the grayscale transformation modes using an EnumGrayscaleEnhancementMode array with 8 elements. View the reference page of GrayscaleTransformationModes for more detail about grayscale transformation modes.

EnumGrayscaleEnhancementMode[] grayscaleTransformationModes;

grayscaleEnhancementModes

Set the grayscale enhancement modes using an EnumGrayscaleTransformationMode array with 8 elements. View the reference page of GrayscaleEnhancementModes for more detail about grayscale enhancement modes.

EnumGrayscaleTransformationMode[] grayscaleEnhancementModes;

characterModelName

Specify a character model by its name.

string characterModelName;

lineStringRegExPattern

Set the RegEx pattern of the text line string to filter out the unqualified results.

string lineStringRegExPattern;

maxThreadsInOneTask

Set the maximum available threads count in one label recognition task.

int maxThreadsInOneTask;

Value Range

[1, 256]

Default value

4

scaleDownThreshold

Sets the threshold for the image shrinking.

int scaleDownThreshold;

Value Range

[512, 0x7fffffff]

Default Value

2300

Remarks

If the shorter edge size is larger than the given threshold value, the library will calculate the required height and width of the target image and shrink the image to that size before further operation. Otherwise, the library will perform operation on the original image.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: