Need better scanning performance?
DocumentDetectionSection
DocumentDetectionSection detects the edges of a document. In JSON, it is represented as a Section object with "Section": "ST_DOCUMENT_DETECTION".
JSON Structure
Location in template:
DocumentNormalizerTaskSettingOptions[i]
└── SectionArray[j] (Section object where Section = "ST_DOCUMENT_DETECTION")
Parent object: SectionArray
Example:
{
"Section": "ST_DOCUMENT_DETECTION",
"ImageParameterName": "ip_ddnDefault",
"StageArray": [
{
"Stage": "SST_DETECT_QUADS"
}
]
}
- This snippet shows a Section object configured for document detection.
- To use it, add this object to the SectionArray of a DocumentNormalizerTaskSetting.
- For the complete JSON structure, see:
Parameters
Section
Specifies the section type. Fixed value: ST_DOCUMENT_DETECTION.
| Parameter Details |
|---|
| Type string |
| Required Yes |
Default Value"ST_DOCUMENT_DETECTION" |
ImageParameterName
Specifies the name of an ImageParameter object to apply in the stages of this section.
| Parameter Details |
|---|
| Type string |
| Range Must be the name of an ImageParameter object defined under ImageParameterOptions |
Default Value"" |
StageArray
Specifies the stage objects within this section. The DocumentDetectionSection consists of the following stages:
| Stage | Description |
|---|---|
AssembleLongLinesStage (SST_ASSEMBLE_LONG_LINES) |
Assembles relatively long line segments to facilitate the assembly of more advanced line segments. |
AssembleLogicalLinesStage (SST_ASSEMBLE_LOGICAL_LINES) |
Assembles line segments based on certain criteria to serve the assembly of quadrilateral corners. |
DetectCornersStage (SST_DETECT_CORNERS) |
Detects corners of quadrilaterals that meet the specified conditions. |
DetectEdgesStage (SST_DETECT_EDGES) |
Detects edges of quadrilaterals that meet the specified conditions. |
DetectQuadsStage (SST_DETECT_QUADS) |
Detects complete quadrilaterals. |