#include "stdafx.h"
#include "afx.h"
#include <opencv2\highgui\highgui.hpp>
#include <iostream>
using namespace std;
using namespace cv;
const CString origiImgFilePath = "E:\\expriImg\\17peopleFigure\\*";
const CString proImgFilePath = "E:\\expriImg\\database";
int _tmain(int argc, _TCHAR* argv[])
{
//循环读取文件名称
CFileFind find;
boolean bf = find.FindFile(origiImgFilePath);
while (bf)
{
bf = find.FindNextFile();
CString fileName1 = find.GetFileName();
if (!find.IsDots() && find.IsDirectory())
{
//如果是文件夹,递归,继续往下找
CString fileName = find.GetFileName();
cout << fileName << endl;
}
}
find.Close();
C++ CFileFind() 查找当前路径下所有文件夹名称
最新推荐文章于 2022-08-30 08:47:11 发布