Skip to content

Latest commit

 

History

History
89 lines (83 loc) · 4.43 KB

document-normalizer-task-settings.md

File metadata and controls

89 lines (83 loc) · 4.43 KB
layout title description needAutoGenerateSidebar needGenerateH3Content noTitleIndex permalink
default-layout
DocumentNormalizerTaskSetting - Dynamsoft Capture Vision Parameter File
The DocumentNormalizerTaskSetting object in the Dynamsoft Capture Vision Parameter File.
true
false
true
/parameters/file/task-settings/document-normalizer-task-settings.html

DocumentNormalizerTaskSetting Object

Parameter Organization

A DocumentNormalizerTaskSetting object is defined as below:

Key Name Value Type Required or Optional Description
Name string Mandatory Sets the name of current DocumentNormalizerTaskSetting object. The value must be unique between all task-setting objects.
Brightness string Optional Sets the value for parameter Brightness
ColourMode string Optional Sets the value for parameter ColourMode
ContentType string Optional Sets the value for parameter ContentType
Contrast string Optional Sets the value for parameter Contrast
CornerAngleRange string Optional Sets the value for parameter CornerAngleRange
DeskewMode string Optional Sets the value for parameter DeskewMode
LineExtractionModes string Optional Sets the value for parameter LineExtractionModes
MaxThreadsInOneTask string array Optional Sets the value for parameter MaxThreadsInOneTask
PageSize string Optional Sets the value for parameter PageSize
QuadrilateralDetectionModes string Optional Sets the value for parameter QuadrilateralDetectionModes
SectionImageParameterArray string Optional Sets the value for parameter SectionImageParameterArray
StartSection string Optional Sets the value for parameter StartSection
TerminateSetting string Optional Sets the value for parameter TerminateSetting
BaseDocumentNormalizerTaskSettingName string Optional Sets the value for parameter BaseDocumentNormalizerTaskSettingName

Here is a sample:

{
    "Name": "DR_1",
    "MaxThreadsInOneTask":4,
    "LineExtractionModes" : [
        {
            "Mode": "LEM_GENERAL"
        }
    ],
    "Brightness" : 0,
    "ColourMode" : "ICM_COLOUR",
    "ContentType" : "CT_DOCUMENT",
    "Contrast" : 0,
    "DeskewMode" : 
    {
        "ContentDirection" : 0,
        "Mode" : "DM_PERSPECTIVE_CORRECTION"
    },
    "CornerAngleRange" : [
        {
            "MaxValue" : 110,
            "MinValue" : 70
        }
    ],
    "PageSize" : [-1, -1],
    "QuadrilateralDetectionModes" : [
        {
            "Mode" : "QDM_GENERAL"
        }
    ],
    "SectionImageParameterArray" : [
        {
            "Section": "REGION_PREDETECTION",
            "ImageParameterName": "IP_0"
        },
        {
            "Section": "DOCUMENT_DETECTION",
            "ImageParameterName": "IP_1"
        },
        {
            "Section": "DOCUMENT_NORMALIZATION",
            "ImageParameterName": "IP_2"
        }
    ],
    "StartSection": "REGION_PREDETECTION",
    "TerminateSetting":
    {
        "Section": "REGION_PREDETECTION",
        "Stage": "IRUT_GRAYSCALE_IMAGE",
    },    
    "BaseDocumentNormalizerTaskSettingName": "",
}