Need better scanning performance?
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.
Example
{
"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
}
]
}
]
}
Parameters
| Parameter Name | Type | Required/Optional | Description |
|---|---|---|---|
Name |
String | Required | The unique identifier for this DocumentNormalizerTaskSetting object. |
BaseDocumentNormalizerTaskSettingName |
String | Optional | The name of another DocumentNormalizerTaskSetting object to inherit settings from. |
MaxThreadsInOneTask |
Integer | Optional | The maximum number of threads that can be used for this task. |
ExpectedDocumentsCount |
Integer | Optional | The expected number of documents to be detected in the image. |
SectionArray |
Array | Optional | An array of section objects that define the processing workflow for document normalization. |