mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Implement cv::gapi::wip::draw::FText
This commit is contained in:
@@ -30,7 +30,7 @@ namespace draw
|
||||
/**
|
||||
* A structure allows using freetype library for text rendering
|
||||
*/
|
||||
struct use_freetype
|
||||
struct freetype_font
|
||||
{
|
||||
/*@{*/
|
||||
std::string path; //!< The path to font file (.ttf)
|
||||
@@ -54,6 +54,19 @@ struct Text
|
||||
/*@{*/
|
||||
};
|
||||
|
||||
/**
|
||||
* A structure to represent parameters for drawing a text string using FreeType library
|
||||
*/
|
||||
struct FText
|
||||
{
|
||||
/*@{*/
|
||||
std::wstring text; //!< The text string to be drawn
|
||||
cv::Point org; //!< The bottom-left corner of the text string in the image
|
||||
int fh; //!< The height of text
|
||||
cv::Scalar color; //!< The text color
|
||||
/*@{*/
|
||||
};
|
||||
|
||||
/**
|
||||
* A structure to represent parameters for drawing a rectangle
|
||||
*/
|
||||
@@ -126,6 +139,7 @@ struct Poly
|
||||
|
||||
using Prim = util::variant
|
||||
< Text
|
||||
, FText
|
||||
, Rect
|
||||
, Circle
|
||||
, Line
|
||||
|
||||
Reference in New Issue
Block a user