Documentation
Table of contents

Thanks for downloading Dynamsoft Label Recognizer Package!

Your download will start shortly. If your download does not begin, click here to retry.

SimplifiedLabelRecognizerSettings

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

typedef struct tagSimplifiedLabelRecognizerSettings
{
    GrayscaleTransformationMode grayscaleTransformationModes[8];
    GrayscaleEnhancementMode grayscaleEnhancementModes[8];
    char characterModelName[64];
    char lineStringRegExPattern[1024];
    int maxThreadsInOneTask;
    int scaleDownThreshold;
    char reserved[508];
} SimplifiedLabelRecognizerSettings;

Attributes Summary

Attribute Type
grayscaleTransformationModes GrayscaleTransformationMode[8]
grayscaleEnhancementModes GrayscaleEnhancementMode[8]
characterModelName char[64]
lineStringRegExPattern char[1024]
maxThreadsInOneTask int
scaleDownThreshold int
reserved char[508]

grayscaleTransformationModes

Set the grayscale transformation modes with an array of enumeration GrayscaleTransformationMode. View the reference page of GrayscaleTransformationMode for more detail about grayscale transformation modes.

GrayscaleTransformationMode grayscaleTransformationModes[8];

grayscaleEnhancementModes

Set the grayscale enhancement modes with an array of enumeration GrayscaleEnhancementMode. View the reference page of GrayscaleEnhancementMode for more detail about grayscale enhancement modes.

GrayscaleEnhancementMode grayscaleEnhancementModes[8];

characterModelName

Specify a character model by its name.

char characterModelName[64];

lineStringRegExPattern

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

char lineStringRegExPattern[1024];

maxThreadsInOneTask

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

int maxThreadsInOneTask;

Value Range

[1, 256]

Default value

4

Remarks

To keep a balance between speed and quality, the library concurrently runs four different threads by default.

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 barcode image and shrink the image to that size before localization. Otherwise, the library will perform label localization on the original image.

reserved

Reserved for future use.

char reserved[508];

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version(3.2.20)
  • Version 3.x
    • 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.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
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support