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:
committed by
dmitriy.anisimov
parent
74fbe96b6f
commit
a5351d9e86
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user