gapi_wip_draw_Text
import { gapi_wip_draw_Text } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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
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;The this result.
text
The text string to be drawn
set text(value: EmbindString);valuevalue argument (EmbindString).
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.