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