capacitor-plugin-scanbot-sdk
    Preparing search index...

    Class Block

    Represents a single block, e.g. a paragraph. A block is made up of lines.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • Optionalsource: DeepPartial<Block>

      Returns Block

    Properties

    _type: "Block"
    confidence: number

    Text confidence. Range is [0-1].

    lines: Line[]

    List of lines.

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

      • Optional Readonly_type?: "Block"
      • Optional Readonlyconfidence?: number

        Text confidence. Range is [0-1].

      • Optional Readonlylines?: {
            _type?: "Line";
            confidence?: number;
            roi?: Point[];
            serialize?: (
                config?: ToJsonConfiguration,
            ) => { 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...;
            text?: string;
            words?: {
                _type?: "Word";
                confidence?: number;
                glyphs?: {
                    _type?: (...) | (...);
                    confidence?: (...) | (...);
                    roi?: (...) | (...);
                    serialize?: (...) | (...);
                    text?: (...) | (...);
                }[];
                roi?: Point[];
                serialize?: (
                    config?: ToJsonConfiguration,
                ) => { 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...;
                text?: string;
            }[];
        }[]

        List of lines.

      • Optional Readonlyroi?: Point[]

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

      • Optionalserialize?: (
            config?: ToJsonConfiguration,
        ) => { readonly _type?: "Block" | undefined; readonly text?: string | undefined; readonly confidence?: number | undefined; readonly roi?: Point[] | undefined; readonly lines?: { readonly _type?: "Line" | undefined; ... 4 more ...; serialize?: ((config?: ToJsonConfiguration | undefined) => ...) | undefined; }[] | undefine...
      • Optional Readonlytext?: string

        The recognized text.