c++ 输出 txt文件
发布日期:2021-06-29 13:43:35 浏览次数:2 分类:技术文章

本文共 361 字,大约阅读时间需要 1 分钟。

做样本集的时候需要用到txt的描述文件;

这是一个简单的输出txt文件代码

#include 
#include
using namespace std;int main(int argc, const char * argv[]) { ofstream myout("/Users/TNC/Desktop/codebase/traincascade/traincascade/bg.txt"); for(int i=1; i<=3900; i++) { myout<< "bg/" << i << ".jpg" << endl; } myout.close(); printf("over\n"); return 0;}

转载地址:https://chenlinwei.blog.csdn.net/article/details/92833146 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:第一次尝试opencv级联分类器训练,过程全记载
下一篇:遍历多个文件夹,统一输出图像到一个文件夹

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年04月20日 22时40分19秒