OpenCV  4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cv::gapi::wip::draw::Text Struct Reference

This structure represents a text string to draw. More...

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

Collaboration diagram for cv::gapi::wip::draw::Text:

Public Member Functions

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 constructor.
 

Public Attributes

GAPI_PROP_RW bool bottom_left_origin
 When true, the image data origin is at the bottom-left corner. Otherwise, it is at the top-left corner.
 
GAPI_PROP_RW cv::Scalar color
 The text color.
 
GAPI_PROP_RW int ff
 The font type, see HersheyFonts.
 
GAPI_PROP_RW double fs
 The font scale factor that is multiplied by the font-specific base size.
 
GAPI_PROP_RW int lt
 The line type. See LineTypes.
 
GAPI_PROP_RW cv::Point org
 The bottom-left corner of the text string in the image.
 
GAPI_PROP_RW std::string text
 The text string to be drawn.
 
GAPI_PROP_RW int thick
 The thickness of the lines used to draw a text.
 

Detailed Description

This structure represents a text string to draw.

Parameters match cv::putText().

Constructor & Destructor Documentation

◆ 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 constructor.

Parameters
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

◆ Text() [2/2]

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

Member Data Documentation

◆ bottom_left_origin

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

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

◆ color

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

The text color.

◆ ff

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

The font type, see HersheyFonts.

◆ fs

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

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

◆ lt

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

The line type. See LineTypes.

◆ org

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

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

◆ text

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

The text string to be drawn.

◆ thick

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

The thickness of the lines used to draw a text.


The documentation for this struct was generated from the following file: