OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::gapi::wip::draw::Text 结构参考

此结构体表示要绘制的文本字符串。 更多...

#include <opencv2/gapi/render/render_types.hpp>

cv::gapi::wip::draw::Text 的协作图

公共成员函数

GAPI_WRAP Text ()=default
 
GAPI_WRAP Text (const std::string &text_, const cv::Point &org_, int ff_, double fs_, const cv::Scalar &color_, int thick_=1, int lt_=8, bool bottom_left_origin_=false)
 Text 构造函数。
 

公共属性

GAPI_PROP_RW bool bottom_left_origin
 为 true 时,图像数据原点位于左下角。 否则,它位于左上角。
 
GAPI_PROP_RW cv::Scalar color
 文本颜色。
 
GAPI_PROP_RW int ff
 字体类型,请参见 HersheyFonts
 
GAPI_PROP_RW double fs
 字体比例因子,它与字体特定的基本大小相乘。
 
GAPI_PROP_RW int lt
 线条类型。 请参见 LineTypes
 
GAPI_PROP_RW cv::Point org
 文本字符串在图像中的左下角。
 
GAPI_PROP_RW std::string text
 要绘制的文本字符串。
 
GAPI_PROP_RW int thick
 用于绘制文本的线条粗细。
 

详细描述

此结构体表示要绘制的文本字符串。

参数匹配 cv::putText()

构造函数 & 析构函数文档

◆ Text() [1/2]

GAPI_WRAP cv::gapi::wip::draw::Text::Text ( const std::string & text_,
const cv::Point & org_,
int ff_,
double fs_,
const cv::Scalar & color_,
int thick_ = 1,
int lt_ = 8,
bool bottom_left_origin_ = false )
inline

Text 构造函数。

参数
text_要绘制的文本字符串
org_文本字符串在图像中的左下角
ff_字体类型,请参见 HersheyFonts
fs_字体比例因子,它与字体特定的基本大小相乘
color_文本颜色
thick_用于绘制文本的线条粗细
lt_线条类型。 请参见 LineTypes
bottom_left_origin_为 true 时,图像数据原点位于左下角。 否则,它位于左上角

◆ Text() [2/2]

GAPI_WRAP cv::gapi::wip::draw::Text::Text ( )
default

成员数据文档

◆ bottom_left_origin

GAPI_PROP_RW bool cv::gapi::wip::draw::Text::bottom_left_origin

为 true 时,图像数据原点位于左下角。 否则,它位于左上角。

◆ color

GAPI_PROP_RW cv::Scalar cv::gapi::wip::draw::Text::color

文本颜色。

◆ ff

GAPI_PROP_RW int cv::gapi::wip::draw::Text::ff

字体类型,请参见 HersheyFonts

◆ fs

GAPI_PROP_RW double cv::gapi::wip::draw::Text::fs

字体比例因子,它与字体特定的基本大小相乘。

◆ lt

GAPI_PROP_RW int cv::gapi::wip::draw::Text::lt

线条类型。 请参见 LineTypes

◆ org

GAPI_PROP_RW cv::Point cv::gapi::wip::draw::Text::org

文本字符串在图像中的左下角。

◆ text

GAPI_PROP_RW std::string cv::gapi::wip::draw::Text::text

要绘制的文本字符串。

◆ thick

GAPI_PROP_RW int cv::gapi::wip::draw::Text::thick

用于绘制文本的线条粗细。


此结构体的文档由以下文件生成