#include<opencv2/opencv.hpp>
#include<iostream>
#include<fstream>
#include<string>
#include<sstream>
#include<time.h>
#include<math.h>
#include<direct.h>
using namespace cv;
using namespace std;
static void read_imgList(const string& filename) {
std::ifstream file(filename, ios::in);
if (!file) {
string error_message = "No valid input file was given, please check the given filename.";
CV_Error(CV_StsBadArg, error_message);
}
string cate;
string line;
int num;
int i=0;
ostringstream path;
while (!file.eof()) {
#include<iostream>
#include<fstream>
#include<string>
#include<sstream>
#include<time.h>
#include<math.h>
#include<direct.h>
using namespace cv;
using namespace std;
static void read_imgList(const string& filename) {
std::ifstream file(filename, ios::in);
if (!file) {
string error_message = "No valid input file was given, please check the given filename.";
CV_Error(CV_StsBadArg, error_message);
}
string cate;
string line;
int num;
int i=0;
ostringstream path;
while (!file.eof()) {