Skip to content

gapi_wip_draw_Text

gapiclassOpenCV 5.0.0
import { gapi_wip_draw_Text } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSgapi_wip_draw_Text
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

This structure represents a text string to draw.

Parameters match cv::putText().

Constructors and members

static new

Text constructor

new(): gapi_wip_draw_Text;
5 available overloads
new(text_: EmbindString, org_: Point, ff_: number, fs_: number, color_: Scalar): gapi_wip_draw_Text;
new(text_: EmbindString, org_: Point, ff_: number, fs_: number, color_: Scalar, thick_: number): gapi_wip_draw_Text;
new(text_: EmbindString, org_: Point, ff_: number, fs_: number, color_: Scalar, thick_: number, lt_: number): gapi_wip_draw_Text;
new(text_: EmbindString, org_: Point, ff_: number, fs_: number, color_: Scalar, thick_: number, lt_: number, bottom_left_origin_: boolean): gapi_wip_draw_Text;
new(): gapi_wip_draw_Text;
text_

The text string to be drawn

org_

The bottom-left corner of the text string in the image

ff_

The font type, see #HersheyFonts

fs_

The font scale factor that is multiplied by the font-specific base size

color_

The text color

thick_

The thickness of the lines used to draw a text

lt_

The line type. See #LineTypes

bottom_left_origin_

When true, the image data origin is at the bottom-left corner. Otherwise, it is at the top-left corner

Returns

The gapi_wip_draw_Text result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

text

The text string to be drawn

set text(value: EmbindString);
2 available overloads
get text(): string;
set text(value: EmbindString);
value

value argument (EmbindString).

Returns

The string result.

org

The bottom-left corner of the text string in the image

org: Point;

ff

The font type, see #HersheyFonts

ff: number;

fs

The font scale factor that is multiplied by the font-specific base size

fs: number;

color

gapi_wip_draw_Text.color: The text color

color: Scalar;

thick

The thickness of the lines used to draw a text

thick: number;

lt

The line type. See #LineTypes

lt: number;

bottom_left_origin

When true, the image data origin is at the bottom-left corner. Otherwise, it is at the top-left corner

bottom_left_origin: boolean;

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.