putText函数绘制int类型
时间: 2024-04-25 15:23:32 浏览: 74
putText函数无法直接绘制int类型的文字。它只能绘制string类型的文字。如果要绘制int类型的文字,需要先将int类型转换为string类型,然后再调用putText函数进行绘制。例如,可以使用to_string函数将int类型转换为string类型,然后再调用putText函数进行绘制。
#### 引用[.reference_title]
- *1* [OpenCV入门教程之putText函数](https://blog.csdn.net/weixin_43322104/article/details/100677731)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [putText函数的用法](https://blog.csdn.net/weixin_43491924/article/details/85108339)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [【opencv-c++】cv::putText文字绘制](https://blog.csdn.net/jn10010537/article/details/127189434)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文