Constructors
constructor
- new Word(source?): Word
Parameters
Optional source: DeepPartial<Word>
Properties
Readonly _type
_type: "Word"
Readonly confidence
confidence: number
Readonly text
text: string
Methods
serialize
- serialize(config?): {
_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...;
} Returns {
_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...;
}
Optional Readonly _type?: "Word"
Optional Readonly confidence?: number
Optional Readonly 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; };
}[]
Optional Readonly roi?: Point[]
Optional Readonly text?: string
serialize?:function
- 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...
Returns { 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...
Represents a single word. A word is made up of glyphs.