OpenCV 5.0.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

この構造体は描画するテキスト文字列を表す。詳細...

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

Collaboration diagram for 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

テキストの描画に使う線の太さ。


この構造体詳解は次のファイルから抽出されました: