Files
yanshui177 962de04ffb 笔迹鉴别程序
考试的笔迹鉴别程序,分辨出不同人写的笔迹
2017-05-17 16:50:37 +08:00

52 lines
1.2 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* 程序名segmentation.c
功能:总程序:读入图像文件,分析特征,输出效果
*/
//#include "stdafx.h"
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <cv.h>
#include <highgui.h>
#include<io.h> //下面的5个用于读取文件夹下的所有文件名
#include<vector>
#include<iostream>
#include <string.h>
#include<windows.h>
#include<string.h>
using namespace std;
#ifdef WIN32 //屏蔽VC6对STL的一些不完全支持造成
#pragma warning (disable: 4514 4786)
#endif
int searchDir(char* path, vector<string> &dir);//获取目录下一层的所有文件夹
int main()
{
char path[100] = "E:/xiangmu/Img/imgjiaobiao/";
vector<string> dir; //存储目录
char* fpname = "C:/Users/闫帅帅/Desktop/result2.txt";
char record[2400] = { 0 };
FILE* fpzz = NULL;//需要注意
searchDir(path, dir);//获取filePath下的所有一级目录并存储到dir中
int size = dir.size(); //dir的大小就是学生的数量
//开始检测
//-------------------------------------------------------------//
for (int i = 0; i < size; i++)//对每一个学生目录进行循环
{
cout << dir[i].c_str() << endl;
ShellExecute(NULL, "open",
"D:\\CODE\\HWCV\\测试\\HWCV-exe测试\\Release\\HWCV.exe",
dir[i].c_str(),
NULL,
SW_SHOWNORMAL);
}
return 0;
}