建立文件夹

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hk121/article/details/82835687
//先在Bin32下新建result
					CString Path = _T("..//..//Bin32//result");
					CreateDirectory(Path, NULL);
 
					//以识别的图片建立文件夹
						string prepath = "..//..//Bin32//result//";
						string picturename = GetPictureName(path);
						string filefold = prepath + picturename;
						CreateDirectory(filefold.c_str(), NULL);
 
					//写检测的图片
					const char * a = filefold.data();
					sprintf(filename, "%s%s%d%s", a, "//detect_", iPicNum, ".jpg");
					imwrite(filename, image_roi);

猜你喜欢

转载自blog.csdn.net/hk121/article/details/82835687