The result of OCR recognition.

Constructors

Properties

Methods

Constructors

Properties

pages: OcrPage[]

The array of recognized OCR pages.

recognizedText: string

The OCR result as plain text.

Methods

  • Parameters

    Returns {
        pages?: {
            _type?: "Page";
            blocks?: {
                _type?: "Block";
                confidence?: number;
                lines?: {
                    _type?: (...) | (...);
                    confidence?: (...) | (...);
                    roi?: (...) | (...);
                    text?: (...) | (...);
                    words?: (...) | (...);
                    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...;
                }[];
                roi?: Point[];
                text?: string;
                serialize?(config?): { 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...;
            }[];
            confidence?: number;
            roi?: Point[];
            text?: string;
            serialize?(config?): { 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...;
        }[];
        recognizedText?: string;
        serialize?(config?): { readonly recognizedText?: string | undefined; readonly pages?: { readonly _type?: "Page" | undefined; readonly text?: string | undefined; readonly confidence?: number | undefined; readonly roi?: Point[] | undefined; readonly blocks?: { ...; }[] | undefined; serialize?: ((config?: ToJsonConfiguration | undefined) =...;
    }

    • Optional Readonly pages?: {
          _type?: "Page";
          blocks?: {
              _type?: "Block";
              confidence?: number;
              lines?: {
                  _type?: (...) | (...);
                  confidence?: (...) | (...);
                  roi?: (...) | (...);
                  text?: (...) | (...);
                  words?: (...) | (...);
                  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...;
              }[];
              roi?: Point[];
              text?: string;
              serialize?(config?): { 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...;
          }[];
          confidence?: number;
          roi?: Point[];
          text?: string;
          serialize?(config?): { 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...;
      }[]

      The array of recognized OCR pages.

    • Optional Readonly recognizedText?: string

      The OCR result as plain text.

    • serialize?:function
      • Parameters

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