获取文件全路径
std::vector<cv::String> files;
cv::glob("/app/images/", files);
for(int i = 0; i < files.size(); i++)
{
std::string file = files[i];
printf("===file: %s\n", file.c_str());
}
获取文件全路径
std::vector<cv::String> files;
cv::glob("/app/images/", files);
for(int i = 0; i < files.size(); i++)
{
std::string file = files[i];
printf("===file: %s\n", file.c_str());
}