Search Results for

    Show / Hide Table of Contents

    Class Scew

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

    Scew is the small record a deskew measurement returns when IronOCR estimates how far a scanned page is tilted. It pairs the detected tilt with a measure of how trustworthy that estimate is, so a workflow can decide whether to rotate the page straight before recognition.

    The struct carries two read-only values. Angle is the skew angle in degrees, the amount the page would need to rotate to sit level, and Confidence rates how strongly the underlying sweep agreed on that angle. A low confidence is the signal to leave the page as-is rather than rotate on a weak guess. The value is produced by the skew estimation step and consumed when correcting orientation, so a typical flow reads Angle, checks Confidence against a threshold, and rotates only when the measurement is solid. Because it is a value type, instances compare by value through the supplied Equals and equality operators. The orientation correction how-to shows straightening a tilted scan before reading.

    Constructors

    Scew(Single, Single)

    Declaration
    public Scew(float angle, float confidence)
    Parameters
    Type Name Description
    System.Single angle
    System.Single confidence

    Properties

    Angle

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

    Confidence

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

    Methods

    Equals(Scew)

    Declaration
    public bool Equals(Scew other)
    Parameters
    Type Name Description
    Scew other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Operators

    Equality(Scew, Scew)

    Declaration
    public static bool operator ==(Scew lhs, Scew rhs)
    Parameters
    Type Name Description
    Scew lhs
    Scew rhs
    Returns
    Type Description
    System.Boolean

    Inequality(Scew, Scew)

    Declaration
    public static bool operator !=(Scew lhs, Scew rhs)
    Parameters
    Type Name Description
    Scew lhs
    Scew rhs
    Returns
    Type Description
    System.Boolean
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget