当前位置:网站首页>Sprintf and cv:: puttext
Sprintf and cv:: puttext
2022-07-23 16:57:00 【weixin_ fifty-one million two hundred and eighty-seven thousand】
void cv::putText(
cv::Mat& img, // The image to be drawn
const string& text, // The text to be drawn
cv::Point origin, // Bottom left corner of text box
int fontFace, // typeface ( Such as cv::FONT_HERSHEY_PLAIN)
double fontScale, // Size factor , The larger the value, the larger the text
cv::Scalar color, // The color of the line (RGB)
int thickness = 1, // Line width
int lineType = 8, // Linetype (4 Neighborhood or 8 Neighborhood , Default 8 Neighborhood )
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);
边栏推荐
- Summary of after class homework of Microcomputer Principle and technical interface
- go语言的基础语法(变量、常量、基本数据类型,for、switch,case、数组、slice(切片)、make和new、map)
- 一道反序列化的CTF题分享
- leetcode-67.二进制求和
- TOPSIS法(MATLAB)
- Priyanka Sharma, general manager of CNCF Foundation: read CNCF operation mechanism
- 微机原理与技术接口随堂练习
- Scale Match for Tiny Person Detection
- Heartless sword English Chinese bilingual poem 006. to my wife
- Squeeze-and-Excitation Networks(挤压和激励网络)
猜你喜欢

Liupeng, vice president of copu: China's open source has approached or reached the world's advanced level in some areas

YOLOv4: Optimal Speed and Accuracy of Object Detection

Convolutional neural network model -- googlenet network structure and code implementation

微机原理与技术接口笔记

pwn入门(3)堆

卷积神经网络模型之——GoogLeNet网络结构与代码实现

低代码搭建校园信息化管理系统案例分析

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

FreeRTOS个人笔记-挂起/解挂任务

已解决(selenium 操作火狐Firefox浏览器报错)AttributeError: ‘WebDriver’ object has no attribute ‘execute_cdp_cmd’
随机推荐
Nifi 1.16.3 cluster setup +kerberos+ user authentication
主成分分析(MATLAB)
浏览器同源策略
JS if the decimal is 0, subtract it, not keep it
层次分析法(MATLAB)
一道反序列化的CTF题分享
Distance IOU loss: faster and better learning for bounding box regression
pwn入门(3)堆
48:第五章:开发admin管理服务:1:创建子工程【imooc-news-dev-service-admin】,管理服务模块;
移动、电信、联通:5G To B的花式解法
Case analysis of building campus information management system with low code
Priyanka Sharma, general manager of CNCF Foundation: read CNCF operation mechanism
tensorflow一层神经网络训练手写体数字识别
Frequently asked questions about MySQL
Bag of Tricks for Image Classification with Convolutional Neural Networks(卷积神经网络在图像分类中的技巧)
【TensorFlow】检测TensorFlow GPU是否可用
Numpy 数据分析基础知识第一阶段(NumPy基础)
YOLOv4: Optimal Speed and Accuracy of Object Detection
Ie box model and standard box model
anchor free yolov1