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

用於繪製文字的線條粗細。


此結構體的文件由以下檔案生成