1
0
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:
Talamanov, Anatoliy
2019-12-03 13:13:06 +03:00
parent 4b0132ed7a
commit 63b154396a
18 changed files with 648 additions and 39 deletions
@@ -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