1 | initial version |
maybe you should use opencv's glob() instead:
vector<String> fn;
glob("C:/Users/Sam/Images2/", fn);
for (auto f:fn) {
Mat img = imread(f);
}
2 | No.2 Revision |
maybe you should use opencv's glob() instead:
vector<String> fn;
glob("C:/Users/Sam/Images2/", fn);
for (auto f:fn) {
{ // f contains the complete path to the file
Mat img = imread(f);
}