笔迹鉴别程序

考试的笔迹鉴别程序,分辨出不同人写的笔迹
This commit is contained in:
yanshui177
2017-05-17 16:50:37 +08:00
parent abe00d2e02
commit 962de04ffb
205 changed files with 17672 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
//图像的二值化
#include <cv.h>
#include <highgui.h>
#include <string>
using namespace std;
int* Binary2(IplImage *g_pGrayImage,int bithro)
{
IplImage *g_pBinaryImage = NULL;
// 转为二值图
cvThreshold(g_pGrayImage, g_pBinaryImage, bithro, 255, CV_THRESH_BINARY);
cvCopy(g_pGrayImage, g_pBinaryImage,NULL);
return 0;
}