Constructors
constructor
- new OcrPage(source?): OcrPage
Parameters
Optional source: DeepPartial<OcrPage>
Properties
Readonly _type
_type: "Page"
Readonly confidence
confidence: number
Readonly text
text: string
Methods
serialize
- serialize(config?): {
_type?: "Page";
blocks?: {
_type?: "Block";
confidence?: number;
lines?: {
_type?: "Line";
confidence?: number;
roi?: Point[];
text?: string;
words?: {
_type?: (...) | (...);
confidence?: (...) | (...);
glyphs?: (...) | (...);
roi?: (...) | (...);
text?: (...) | (...);
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...;
}[];
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...;
} Returns {
_type?: "Page";
blocks?: {
_type?: "Block";
confidence?: number;
lines?: {
_type?: "Line";
confidence?: number;
roi?: Point[];
text?: string;
words?: {
_type?: (...) | (...);
confidence?: (...) | (...);
glyphs?: (...) | (...);
roi?: (...) | (...);
text?: (...) | (...);
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...;
}[];
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...;
}
Optional Readonly _type?: "Page"
Optional Readonly blocks?: {
_type?: "Block";
confidence?: number;
lines?: {
_type?: "Line";
confidence?: number;
roi?: Point[];
text?: string;
words?: {
_type?: (...) | (...);
confidence?: (...) | (...);
glyphs?: (...) | (...);
roi?: (...) | (...);
text?: (...) | (...);
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...;
}[];
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...;
}[]
Optional Readonly confidence?: number
Optional Readonly roi?: Point[]
Optional Readonly text?: string
serialize?:function
- 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...
Returns { 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...
Represents result of performing OCR on an image. A page is made up of blocks.