Search Results for

    Show / Hide Table of Contents

    Class ElementProperties

    Inheritance
    System.Object
    ElementProperties
    Namespace: DynamicTesseract
    Assembly: IronOcr.dll
    Syntax
    public sealed class ElementProperties : ValueType

    When low-level code needs the layout orientation of a recognized page element, ElementProperties carries it. The value groups the geometric facts Tesseract reports about a region, the rotation it sits at, the order its text lines run in, and the direction the script is written, into one struct the interop layer hands back during analysis.

    Four members describe the element. Orientation gives the rotation of the region as an Orientation value, TextLineOrder reports how its lines are stacked as a TextLineOrder value, and WritingDirection reports left-to-right or right-to-left as a WritingDirection value. DeskewAngle is a Single holding the fine skew angle, the small tilt to correct after the coarse orientation is known. The constructor takes all four in that order. Being a value type, an ElementProperties is copied by value and read after layout analysis to decide how to deskew or reorder a region. This sits in the DynamicTesseract interop layer; for ordinary page-rotation handling, IronOCR's high-level orientation features are the simpler path.

    The detect page rotation how-to reads orientation at the IronOCR level, and the orientation correction how-to straightens a skewed image.

    Constructors

    ElementProperties(Orientation, TextLineOrder, WritingDirection, Single)

    Declaration
    public ElementProperties(Orientation orientation, TextLineOrder textLineOrder, WritingDirection writingDirection, float deskewAngle)
    Parameters
    Type Name Description
    Orientation orientation
    TextLineOrder textLineOrder
    WritingDirection writingDirection
    System.Single deskewAngle

    Properties

    DeskewAngle

    Declaration
    public float DeskewAngle { get; }
    Property Value
    Type Description
    System.Single

    Orientation

    Declaration
    public Orientation Orientation { get; }
    Property Value
    Type Description
    Orientation

    TextLineOrder

    Declaration
    public TextLineOrder TextLineOrder { get; }
    Property Value
    Type Description
    TextLineOrder

    WritingDirection

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