#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <time.h> /*用到了time函数,所以要有这个头文件*/
#include <fstream>
#include <sstream>
#include <exception>
#include <vector>
#include <io.h>
#include <highgui.h>
#include <cv.h>
#define showSteps 0
using namespace std;
//config.txt为要处理的跟目录,在训练model中,config.txt中的内容为训练是的样本库,1-13分类好了。--
//在样本筛选model中,config.txt里的内容为要筛选的样本库,未分类。---
char * configFile = "config.txt";
//读取config文件里的内容--
char* trainSetPosPath = (char *)
windows下批量读取文件夹及子文件夹下的文件名字,方便制作训练样本
最新推荐文章于 2024-06-04 10:01:27 发布