1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-24 11:33:26 +08:00

added Caltech Pedestrian dataset loading

This commit is contained in:
Dmitriy Anisimov
2014-09-20 21:27:41 +04:00
committed by dmitriy.anisimov
parent 74fbe96b6f
commit a5351d9e86
27 changed files with 411 additions and 2 deletions

View File

@@ -48,6 +48,7 @@
#ifdef __GNUC__
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
#else
#include <io.h>
#include <direct.h>
@@ -70,6 +71,15 @@ void split(const string &s, vector<string> &elems, char delim)
}
}
void createDirectory(const string &path)
{
#ifdef __GNUC__
mkdir(path.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
#else
mkdir(path.c_str());
#endif
}
void getDirList(const string &dirName, vector<string> &fileNames)
{
#ifdef __GNUC__