Documentation
Table of contents

SimplifiedLabelRecognizerSettings

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

Definition

class SimplifiedLabelRecognizerSettings(object)

Properties

Property Type
grayscale_transformation_modes List[int]
grayscale_enhancement_modes List[int]
character_model_name str
line_string_regex_pattern str
max_threads_in_one_task int
scale_down_threshold int

grayscale_transformation_modes

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

It is a list of 8 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.

grayscale_enhancement_modes

Specifies how to enhance the quality of the grayscale image.

It is a list of 8 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.

character_model_name

Specifies a character model by its name.

line_string_regex_pattern

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

max_threads_in_one_task

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

Value Range

[1, 256]

Default value

4

scale_down_threshold

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.

Methods

Method Description
__init__ Initializes a new instance of the SimplifiedLabelRecognizerSettings class.

__init__

Initializes a new instance of the SimplifiedLabelRecognizerSettings class.

def __init__(self):

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 3.x
      • Version 3.2.30
      • Version 3.2.20
      • Version 3.2.10
      • Version 3.2.0
      • Version 3.0.30
      • Version 3.0.20
      • Version 3.0.10
      • Version 3.0.0
    • Version 2.x
      • Version 2.2.20
      • Version 2.2.11
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.0
      • Version 2.2.20
      • Version 2.2.11
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.0
      • Version 2.0.0
      • Version 2.2.10
      • Version 2.0.0
    • Version 1.x
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
    • Documentation Homepage
    Change +