Class OrientationDetectionMode
Define how IronOcr detect orientation angle of pages in an OcrInput
Inheritance
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public sealed class OrientationDetectionMode : Enum
Choose OrientationDetectionMode to set how hard IronOCR works to detect the rotation angle of pages in an OcrInput. Balanced trades speed against accuracy and is the right pick for default or production reads. Fast favors speed for draft or bulk processing, while Detailed and ExtremeDetailed spend more time for higher accuracy, with ExtremeDetailed even recovering skewed text. The Detailed and ExtremeDetailed modes require the IronOcr.Extensions.AdvancedScan package and are unavailable on Windows x86 and Mac ARM.
input.OrientationDetectionMode = OrientationDetectionMode.Balanced;The detect page rotation how-to shows orientation detection in context.
Fields
Balanced
Determine orientation angle with balance speed and accuracy, suitable to use for default or production task
Declaration
public const OrientationDetectionMode Balanced
Field Value
| Type | Description |
|---|---|
| OrientationDetectionMode |
Remarks
Require installation of IronOcr.Extensions.AdvancedScan package
Cannot be used on Windows x86 and Mac ARM
Detailed
Determine orientation angle with low speed but high accuracy, suitable to use for precise or critical task
Declaration
public const OrientationDetectionMode Detailed
Field Value
| Type | Description |
|---|---|
| OrientationDetectionMode |
ExtremeDetailed
Determine orientation angle with the slowest speed provide highest accuracy capable of detecting even an input containing skewed text.
Declaration
public const OrientationDetectionMode ExtremeDetailed
Field Value
| Type | Description |
|---|---|
| OrientationDetectionMode |
Remarks
Require installation of IronOcr.Extensions.AdvancedScan package
Cannot be used on Windows x86 and Mac ARM
Fast
Determine orientation angle with high speed but low accuracy, suitable for draft or bulk processing
Declaration
public const OrientationDetectionMode Fast
Field Value
| Type | Description |
|---|---|
| OrientationDetectionMode |
Remarks
System.Runtime.InteropServices.OSPlatform.OSX has some limitation when using this mode and always return HighConfidence as false (low confidence)
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |