Search Results for

    Show / Hide Table of Contents

    Class OcrPageOrientationResult

    Represents the result of page orientation detection.

    Inheritance
    System.Object
    OcrPageOrientationResult
    Namespace: IronOcr
    Assembly: IronOcr.dll
    Syntax
    public class OcrPageOrientationResult : Object

    The rotation a page needs before its text reads correctly arrives in C# as an OcrPageOrientationResult. It reports, per page, how far the content is turned and whether the detection was confident, so a workflow can rotate a sideways or upside-down scan before recognition rather than feeding skewed pages to the engine. It is the orientation-detection counterpart that travels with OrientationConfidence, which carries the underlying confidence values this result summarizes into a single flag.

    The members are read straight off the object. PageNumber identifies which page the result describes, RotationAngle gives the detected rotation in degrees that the page should be corrected by, and HighConfidence is a boolean that reports whether the detection was reliable enough to act on automatically. Branch on HighConfidence first: when it is true, apply RotationAngle to straighten the page; when it is false, route the page for review or fall back to a more thorough detection mode rather than trusting an uncertain angle.

    The detect page rotation how-to shows orientation detection in a read, and the image orientation correction how-to straightens pages before recognition.

    Constructors

    OcrPageOrientationResult()

    Declaration
    public OcrPageOrientationResult()

    Properties

    HighConfidence

    Gets or sets a value indicating whether there is high confidence in the orientation result.

    Declaration
    public bool HighConfidence { get; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    True when independent detectors agree on RotationAngle (Fast: Tesseract and Leptonica; Balanced and Detailed: Tesseract OSD and text-line orientation).

    PageNumber

    Gets or sets the page number. (Starting from 0)

    Declaration
    public int PageNumber { get; }
    Property Value
    Type Description
    System.Int32

    RotationAngle

    Gets or sets the corrective rotation angle in degrees.

    Declaration
    public int RotationAngle { get; }
    Property Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget