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

    Class OcrPage

    Represents result of performing OCR on an image. A page is made up of blocks.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • Optionalsource: DeepPartial<OcrPage>

      Returns OcrPage

    Properties

    _type: "Page"
    blocks: Block[]

    List of blocks.

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

      • Optional Readonly_type?: "Page"
      • Optional Readonlyblocks?: {
            _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?: (...) | (...);
                    confidence?: (...) | (...);
                    glyphs?: (...) | (...);
                    roi?: (...) | (...);
                    serialize?: (...) | (...);
                    text?: (...) | (...);
                }[];
            }[];
            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;
        }[]

        List of blocks.

      • Optional Readonlyconfidence?: number

        Text confidence. Range is [0-1].

      • 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?: "Page" | undefined; readonly text?: string | undefined; readonly confidence?: number | undefined; readonly roi?: Point[] | undefined; readonly blocks?: { readonly _type?: "Block" | undefined; ... 4 more ...; serialize?: ((config?: ToJsonConfiguration | undefined) => ...) | undefined; }[] | undefin...
      • Optional Readonlytext?: string

        The recognized text.