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.

LabelRecognitionParameter Object

Parameter Name Description
LabelRecognitionParameter.Name The name of the LabelRecognitionParameter object.
LabelRecognitionParameter.BinarizationModes Sets the mode and priority for binarization.
LabelRecognitionParameter.CharacterModelName Sets the name of a white list of recognizable characters.
LabelRecognitionParameter.GrayscaleTransformationModes Sets the mode and priority for the grayscale image conversion.
LabelRecognitionParameter.LetterHeightRange Sets the range of letter height (in pixel or a percentage value relative to the height of the text area).
LabelRecognitionParameter.LinesCount Sets the text lines count of the text area.
LabelRecognitionParameter.LineStringRegExPattern Specifies the regular expression pattern of each line string text in current image to recognize.
LabelRecognitionParameter.MaxThreadCount Sets the maximum number of threads the algorithm will use to recognize text.
LabelRecognitionParameter.ReferenceRegionNameArray The name array of the ReferenceRegion object(s).
LabelRecognitionParameter.RegionPredetectionModes Sets the region pre-detection mode for searching target regions.
LabelRecognitionParameter.TextRegExPattern Specifies the regular expression pattern of the text to recognize.

Name

The name of the LabelRecognitionParameter object.

Remarks
It must be a unique name.

As Json Parameter

Json Object Json Parameter Name Value Type Default Value
LabelRecognitionParameter Name string It must be a mandatory setting value.

Json Parameter Example

{
    "Name":"LabelRecognitionParameter1"
}

 

BinarizationModes

 

CharacterModelName

Sets the name of a white list of recognizable characters.

Remarks
If you set a character model, the result will only contain characters within the model.
All TextArea Objects without CharacterModelName set will be set from this setting.

As Json Parameter

Json Object Json Parameter Name Value Type Default Value
LabelRecognitionParameter CharacterModelName string ””

Json Parameter Example

{
    "CharacterModelName":"CharacterModel_Name1"
}

 

GrayscaleTransformationModes

 

LetterHeightRange

Sets the range of letter height (in pixel or a percentage value relative to the height of the text area).

Remarks
Format: [MinHeight, MaxHeight, ByPercentage]
The allowed values for MinHeight/MaxHeight:
ByPercentage=0, [1, 0x7fffffff]
ByPercentage=1, [1, 100]
The allowed values for ByPercentage: [0,1]
All TextArea Objects without LetterHeightRange set will be set from this setting.

As Json Parameter

Json Object Json Parameter Name Value Type Default Value
LabelRecognitionParameter LetterHeightRange int array [1,100,1]

Json Parameter Example

{
    "LetterHeightRange":[40,60,1]
}

 

LinesCount

Sets the text lines count of the text area.

Remarks
0: line count is not certain.
All TextArea Objects without LinesCount set will be set from this setting.

As Json Parameter

Json Object Json Parameter Name Value Type Value Range Default Value
LabelRecognitionParameter LinesCount int [0, 200] 0

Json Parameter Example

{
    "LinesCount":1
}

 

LineStringRegExPattern

Specifies the regular expression pattern of each line string text in current image to recognize.

Remarks
All TextArea Objects without LineStringRegExPattern set will be set from this setting.

As Json Parameter

Json Object Json Parameter Name Value Type Default Value
LabelRecognitionParameter LineStringRegExPattern string ””

Json Parameter Example

{
    "LineStringRegExPattern":""
}

 

MaxThreadCount

Sets the maximum number of threads the algorithm will use to recognize text.

As Json Parameter

Json Object Json Parameter Name Value Type Value Range Default Value
LabelRecognitionParameter MaxThreadCount int [1, 4] 4

Json Parameter Example

{
    "MaxThreadCount":1
}

 

ReferenceRegionNameArray

The name array of the ReferenceRegion object(s).

Remarks
An array item is a name of any available ReferenceRegion.

As Json Parameter

Json Object Json Parameter Name Value Type Default Value
LabelRecognitionParameter ReferenceRegionNameArray string Array null

Json Parameter Example

{
    "ReferenceRegionNameArray":[
        "Region1",
        "Region2"
    ]
}

 

RegionPredetectionModes

 

TextRegExPattern

Specifies the regular expression pattern of the text to recognize.

Remarks
All TextArea Objects without TextRegExPattern set will be set from this setting.

As Json Parameter

Json Object Json Parameter Name Value Type Default Value
LabelRecognitionParameter TextRegExPattern string ””

Json Parameter Example

{
    "TextRegExPattern":""
}

 

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

version 1.0

  • 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 1.x
    • Version 1.2.1
    • Version 1.2
    • Version 1.0
Change +