当前位置:网站首页>sprintf和cv::putText
sprintf和cv::putText
2022-07-23 13:32:00 【weixin_51287642】
void cv::putText(
cv::Mat& img, // 待绘制的图像
const string& text, // 待绘制的文字
cv::Point origin, // 文本框的左下角
int fontFace, // 字体 (如cv::FONT_HERSHEY_PLAIN)
double fontScale, // 尺寸因子,值越大文字越大
cv::Scalar color, // 线条的颜色(RGB)
int thickness = 1, // 线条宽度
int lineType = 8, // 线型(4邻域或8邻域,默认8邻域)
bool bottomLeftOrigin = false // true='origin at lower left'
);
char tem[100];
int a = 10;
double b = 10.234123;
std::string sss = "kkkk";
char tem[100];
sprintf(tem, "int:%d,double:%.2lf,str:%s", a, b, sss);
double b2 = 2222.7689;
sprintf(tem, "%s,double2:%.4lf", tem,b2);
cv::putText(img,tem,cv::Point(100,100),cv::FONT_HERSHEY_PLAIN,1,cv::Scalar(255,0,255),1);
边栏推荐
- The protection circuit of IO port inside the single chip microcomputer and the electrical characteristics of IO port, and why is there a resistor in series between IO ports with different voltages?
- Chen Wei, head of CPU technology ecology of Alibaba pingtouge: the development road of pingtouge
- Visualization of gross domestic product (GDP) data
- 阿里平头哥CPU技术生态负责人陈炜:平头哥的发展之路
- Dynamic programming knapsack problem 01 knapsack explanation
- 同花顺上选择券商,网上客户经理开户安全吗
- Royal O'Brien, executive director of o3df: open source has no boundaries, and all shared sounds will become the actual direction
- Distance IOU loss: faster and better learning for bounding box regression
- 微机原理与技术接口笔记
- 学习笔记7--交通环境行为预测
猜你喜欢

ESP8266-NodeMCU——从苏宁API获取实时天气

Tensorflow2.x actual combat series softmax function

YOLOV7

UiPath Studio Enterprise 22.4 Crack

学习笔记7--交通环境行为预测

Basic auth plug-in based on apisik authorizes Minio file upload function

Notes on Microcomputer Principle and technical interface

一款非常棒的开源微社区轻论坛类源码

Numpy 数据分析基础知识第一阶段(NumPy基础)

中国化NFT?NFR横空出世
随机推荐
The working principle of PLL. For example, how can our 8MHz crystal oscillator make MCU work at 48mhz or 72mhz
中国化NFT?NFR横空出世
阿里平头哥CPU技术生态负责人陈炜:平头哥的发展之路
【Web漏洞探索】SQL注入漏洞
Basic auth plug-in based on apisik authorizes Minio file upload function
mysql的常见问题
一款非常棒的开源微社区轻论坛类源码
Nifi 1.16.3 cluster setup +kerberos+ user authentication
距离IoU损失:包围盒回归更快更好的学习(Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression)
Deep learning convolutional neural network paper study alexnet
微机原理与技术接口课后作业总结
Bag of tricks for image classification "with convolutional neural networks"
僧多粥少?程序员要怎样接私活才能有效提高收入?
IE盒模型和标准盒模型
NodeJs实现token登录注册(KOA2)
Distance IOU loss: faster and better learning for bounding box regression
Bag of Tricks for Image Classification with Convolutional Neural Networks(卷积神经网络在图像分类中的技巧)
Priyanka Sharma, general manager of CNCF Foundation: read CNCF operation mechanism
Visualization of gross domestic product (GDP) data
AutoCAD进阶操作