Table of contents

DocumentNormalizerTaskSetting Object

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

{
    "Name": "ddn_task_default",
    "MaxThreadsInOneTask": 4,
	"ExpectedDocumentsCount": 1,
    "BaseDocumentNormalizerTaskSettingName": "",
    "SectionArray": [
        {
            "Section": "ST_REGION_PREDETECTION",
            "ImageParameterName": "ip_default",
			"StageArray": [
				{
					"Stage": "SST_PREDETECT_REGIONS",
					"RegionPredetectionModes": [
					]
				}
			]
        },
        {
            "Section": "ST_DOCUMENT_DETECTION",
            "ContentType": "CT_DOCUMENT",
            "ImageParameterName": "ip_default",
			"StageArray": [
				{
					"Stage": "SST_ASSEMBLE_LONG_LINES"
				},
				{
					"Stage": "SST_ASSEMBLE_LOGICAL_LINES"
				},						
				{
					"Stage": "SST_DETECT_CORNERS",
					"CornerAngleRange": {
						"MaxValue": 110,
						"MinValue": 70
					}
				},
				{
					"Stage": "SST_DETECT_EDGES"
				},
				{
					"Stage": "SST_DETECT_QUADS",
					"QuadrilateralDetectionModes": [
						{
							"Mode": "QDM_GENERAL"
						}
					]
				}
			]					
        },
        {
            "Section": "ST_DOCUMENT_DESKEWING",
            "ImageParameterName": "ip_default",
			"StageArray":[
				{
					"Stage": "SST_DESKEW_IMAGE",
					"DeskewMode": {
						"ContentDirection": 0,
						"Mode": "DSM_PERSPECTIVE_CORRECTION"
					},
					"PageSize": [
						-1,
						-1
					]							
				}
			]
        },
        {
            "Section": "ST_IMAGE_ENHANCEMENT",
            "ImageParameterName": "ip_0",
			"StageArray":[
				{
					"Stage": "SST_ENHANCE_IMAGE",
					"ColourMode": "ICM_COLOUR",
					"Brightness": 0,
					"Contrast": 0							
				}
			]
        }
    ]
}

Example 1 – Parameters of DocumentNormalizerTaskSetting

Summary of DocumentNormalizerTaskSetting top-level parameters

Parameter Name Description
Name Defines the name of a DocumentNormalizerTaskSetting object, which serves as its unique identifier.
BaseDocumentNormalizerTaskSettingName Represents the name of another DocumentNormalizerTaskSetting object to inherit from.
MaxThreadsInOneTask Defines the maximum threads that can be consumed in one task.
ExpectedDocumentsCount Defines the number of documents expected to be detected.
SectionArray Defines which sections exist under the DocumentNormalizerTaskSetting.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: