imutils-cpp
Loading...
Searching...
No Matches
text.h
Go to the documentation of this file.
1//
2// Created by thedevmanek on 05/02/22.
3//
4
5#pragma once
6
7#include "opencv2/core/mat.hpp"
8
10/***************************************************************************/
17class Text {
18public:
36 static void putText(cv::Mat &img, const std::string &text, cv::Point origin, int fontFace,
37
38 double fontScale, cv::Scalar color, int thickness = 1, int lineType = 8,
39 bool bottomLeftOrigin = false);
40
56 static void putCenteredText(cv::Mat &img, const std::string &text, int fontFace,
57
58 double fontScale, cv::Scalar color, int thickness = 1, int lineType = 8);
59
60};
The helps in writing text on images.
Definition: text.h:17
static void putText(cv::Mat &img, const std::string &text, cv::Point origin, int fontFace, double fontScale, cv::Scalar color, int thickness=1, int lineType=8, bool bottomLeftOrigin=false)
Utility for drawing text with line breaks.
static void putCenteredText(cv::Mat &img, const std::string &text, int fontFace, double fontScale, cv::Scalar color, int thickness=1, int lineType=8)
Utility for drawing vertically & horizontally centered text with line breaks.