Documentation
Table of contents

SimplifiedLabelRecognizerSettings

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

Definition

Package: com.dynamsoft.dlr

public class SimplifiedLabelRecognizerSettings

Properties

Property Type
grayscaleTransformationModes int[]
grayscaleEnhancementModes int[]
characterModelName String
lineStringRegExPattern String
maxThreadsInOneTask int
scaleDownThreshold int

grayscaleTransformationModes

Specifies how grayscale transformations should be applied, including whether to process inverted grayscale images and the specific transformation mode to use.

It is an array of integers, where each integer represents a mode specified by the EnumGrayscaleTransformationMode enumeration.

View the parameter reference page of GrayscaleTransformationModes for more detail about grayscale transformation modes.

grayscaleEnhancementModes

Specifies how to enhance the quality of the grayscale image.

It is an array of integers, where each integer represents a mode specified by the EnumGrayscaleEnhancementMode enumeration.

View the parameter reference page of GrayscaleEnhancementModes for more detail about grayscale enhancement modes.

characterModelName

Specifies a character model by its name.

lineStringRegExPattern

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

maxThreadsInOneTask

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

Value Range

[1, 256]

Default value

4

scaleDownThreshold

Specifies the threshold for the image shrinking.

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: