Represents a single line. A line is made up of words.

Constructors

Properties

Methods

Constructors

  • Parameters

    • Optional source: DeepPartial<Line>

    Returns Line

Properties

_type: "Line"
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.

words: Word[]

List of words.

Methods

  • Parameters

    Returns {
        _type?: "Line";
        confidence?: number;
        roi?: Point[];
        text?: string;
        words?: {
            _type?: "Word";
            confidence?: number;
            glyphs?: {
                _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; };
            }[];
            roi?: Point[];
            text?: string;
            serialize?(config?): { readonly _type?: "Word" | undefined; readonly text?: string | undefined; readonly confidence?: number | undefined; readonly roi?: Point[] | undefined; readonly glyphs?: { readonly _type?: "Glyph" | undefined; readonly text?: string | undefined; readonly confidence?: number | undefined; readonly roi?: Point[] | und...;
        }[];
        serialize?(config?): { readonly _type?: "Line" | undefined; readonly text?: string | undefined; readonly confidence?: number | undefined; readonly roi?: Point[] | undefined; readonly words?: { readonly _type?: "Word" | undefined; ... 4 more ...; serialize?: ((config?: ToJsonConfiguration | undefined) => ...) | undefined; }[] | undefined...;
    }

    • Optional Readonly _type?: "Line"
    • 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.

    • Optional Readonly words?: {
          _type?: "Word";
          confidence?: number;
          glyphs?: {
              _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; };
          }[];
          roi?: Point[];
          text?: string;
          serialize?(config?): { readonly _type?: "Word" | undefined; readonly text?: string | undefined; readonly confidence?: number | undefined; readonly roi?: Point[] | undefined; readonly glyphs?: { readonly _type?: "Glyph" | undefined; readonly text?: string | undefined; readonly confidence?: number | undefined; readonly roi?: Point[] | und...;
      }[]

      List of words.

    • serialize?:function
      • Parameters

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