数字识别HOG+SVM
2016-08-23
0 0 0
4.0 分
其他
如何获取积分?
#include "stdafx.h"
#include
#include "windows.h"
#include "fstream"
#include
using namespace std;
using namespace cv;
//为了方便,这一部分是利用提取HOG特征,SVM对图片进行分类。
int _tmain(int argc, _TCHAR* argv[])
{
vector img_path;////输入文件名变量
vector img_cat;//category类型
int nLine=0; //定义行
string buf;
ifstream svm_data("C:\\Users\\dell\\Desktop\\CharReg\\CharReg\\hb1.txt");
//训练样本图片的路径都写在这个txt文件中使用bat批处理文件可以得到这个txt文件.
unsigned long n;
while (svm_data) //将训练样本文件依次读取进来
{
if (getline(svm_data,buf))
#include
#include "windows.h"
#include "fstream"
#include
using namespace std;
using namespace cv;
//为了方便,这一部分是利用提取HOG特征,SVM对图片进行分类。
int _tmain(int argc, _TCHAR* argv[])
{
vector
vector
int nLine=0; //定义行
string buf;
ifstream svm_data("C:\\Users\\dell\\Desktop\\CharReg\\CharReg\\hb1.txt");
//训练样本图片的路径都写在这个txt文件中使用bat批处理文件可以得到这个txt文件.
unsigned long n;
while (svm_data) //将训练样本文件依次读取进来
{
if (getline(svm_data,buf))
c++
识别
数字
HOGSVM
相关源码推荐
局部路径规划算法-DWA算法
0
0
暂无评分
enDAQ-Shock-Data-Share-SRS-Blog
0
0
暂无评分
在Windows应用程序里调用chatGPT
0
0
暂无评分
测试Hello world
0
0
暂无评分
单向射线追踪计算RCS
0
0
暂无评分
暂无评论