Table of contents

LabelRecognizerTaskSetting Object

The LabelRecognizerTaskSetting object is used to configure settings for a label recognition task to be performed on certain regions of interest (ROIs) in an image.

{
    "Name": "dlr_task_default",
    "MaxThreadsInOneTask": 4,
    "TextLineSpecificationNameArray": [ "tls_default" ],
    "BaseLabelRecognizerTaskSettingName": "",
    "SectionArray": [
        {
            "Section": "ST_REGION_PREDETECTION",
            "ImageParameterName": "ip_default",
            "StageArray": [
                {
                    "Stage": "SST_PREDETECT_REGIONS",
                    "RegionPredetectionModes": [
                    ]
                }
            ]
        },
        {
            "Section": "ST_TEXT_LINE_LOCALIZATION",
            "ImageParameterName": "ip_default",
            "StageArray": [
                {
                    "Stage": "SST_LOCALIZE_TEXT_LINES"
                }
            ]
        },
        {
            "Section": "ST_TEXT_LINE_RECOGNITION",
            "ImageParameterName": "ip_default",
            "StageArray": [
                {
                    "Stage": "SST_RECOGNIZE_RAW_TEXT_LINES",
                    "DictionaryPath": "",
                    "DictionaryCorrectionThresholds": [
                        {
                            "MaxWordLength": 256,
                            "MinWordLength": 3,
                            "Threshold": 1
                        }
                    ],
                    "ConfusableCharactersPath": "ConfusableChars.data",
                    "ClusterSamplesCountThreshold": 0,
                    "OverlappingCharactersPath": "OverlappingChars.data", 
                    "EnableRegexForceCorrection": 1
                },
                {
                    "Stage": "SST_ASSEMBLE_TEXT_LINES",
                    "StringLengthRange": [
                        3,
                        200
                    ],
                    "StringRegExPattern": ""
                }
            ]
            
        }
    ]
}

Example 1 – Parameters of LabelRecognizerTaskSetting

Summary of LabelRecognizerTaskSetting top-level parameters

Parameter Name Description
Name Defines the name of a LabelRecognizerTaskSetting object, which serves as its unique identifier.
BaseLabelRecognizerTaskSettingName Represents the name of another LabelRecognizerTaskSetting object to inherit from.
MaxThreadsInOneTask Defines the maximum threads that can be consumed in one task.
TextLineSpecificationNameArray Defines the collection of text line specification object names.
SectionArray Defines which sections exist under the LabelRecognizerTaskSetting.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: