Table of contents

Need better scanning performance?

Get a FREE customized reading template.

OrientationDetectionModes

Parameter OrientationDetectionModes is an array of orientation detection mode objects used in the SST_LOCALIZE_TEXT_LINES stage. Each object specifies a method for determining the orientation of detected text lines. Once a mode successfully determines the orientation, subsequent modes in the array are not evaluated. By default, this parameter is null and no orientation detection is performed.

Remarks

  • Introduced in Dynamsoft Capture Vision version 3.6.1000.

JSON Structure

Location in template:

LabelRecognizerTaskSettingOptions[i]
    └── SectionArray[j] (Section object)
        └── StageArray[k] (Stage object where Stage = "SST_LOCALIZE_TEXT_LINES")
            └── OrientationDetectionModes

Parent object: LocalizeTextLinesStage

Example:

{
    "OrientationDetectionModes": [
        {
            "Mode": "ODM_SPATIAL_REFERENCES"
        },
        {
            "Mode": "ODM_CHARS_ORIENTATION_NEURAL_NETWORK",
            "ModelNameArray": ["TextLineOrientationCls"]
        }
    ]
}

Parameter Details

Parameter OrientationDetectionModes consists of a group of orientation detection mode objects. Each orientation detection mode object includes a candidate mode and a series of mode arguments. The mode arguments of the orientation detection mode object are shown as follows:

Mode Arguments

Mode Argument Name Mode Argument Summary
Mode
(Required)
Description
Any one in Candidate Mode List as string
Type
String
Candidate Mode List
ODM_SPATIAL_REFERENCES
ODM_CHARS_ORIENTATION_NEURAL_NETWORK
Default Value
N/A
ModelNameArray
(Optional)
Description
An array of model names used for neural network-based orientation detection. The default model TextLineOrientationCls supports 0° and 180° orientation detection.
Type
array of string
Default Value
["TextLineOrientationCls"]
Valid For
ODM_CHARS_ORIENTATION_NEURAL_NETWORK

Candidate Modes

ODM_SPATIAL_REFERENCES

Determines text line orientation by analyzing the spatial relationships between reference objects. No additional arguments are available for this mode.

ODM_CHARS_ORIENTATION_NEURAL_NETWORK

Determines text line orientation using a neural network model applied to individual text lines. Supports 0° and 180° orientation classification.

Available Mode Arguments:

  • ModelNameArray

This page is compatible for: