Represents a single glyph, i.e. a character.

Constructors

Properties

Methods

Constructors

  • Parameters

    • Optional source: DeepPartial<Glyph>

    Returns Glyph

Properties

_type: "Glyph"
confidence: number

Text confidence. Range is [0-1].

roi: Point[]

Quad where the text was found in image coordinates. The order of the points is clockwise starting from the top left.

text: string

The recognized text.

Methods

  • Parameters

    Returns {
        _type?: "Glyph";
        confidence?: number;
        roi?: Point[];
        text?: string;
        serialize?(config?): { readonly _type?: "Glyph" | undefined; readonly text?: string | undefined; readonly confidence?: number | undefined; readonly roi?: Point[] | undefined; serialize?: ((config?: ToJsonConfiguration | undefined) => ...) | undefined; };
    }

    • Optional Readonly _type?: "Glyph"
    • Optional Readonly confidence?: number

      Text confidence. Range is [0-1].

    • Optional Readonly roi?: Point[]

      Quad where the text was found in image coordinates. The order of the points is clockwise starting from the top left.

    • Optional Readonly text?: string

      The recognized text.

    • serialize?:function
      • Parameters

        Returns { readonly _type?: "Glyph" | undefined; readonly text?: string | undefined; readonly confidence?: number | undefined; readonly roi?: Point[] | undefined; serialize?: ((config?: ToJsonConfiguration | undefined) => ...) | undefined; }