摘要: 采用鼠标事件,手动选择样本点,包括目标样本和背景样本。组成训练数据进行训练1、主函数#include "stdafx.h"#include "opencv2/opencv.hpp"using namespace cv;using namespace cv::ml;Mat img,image;Mat ... 阅读全文
posted @ 2015-12-04 21:26 denny402 阅读(34639) 评论(3) 推荐(3)
摘要: svm分类算法在opencv3中有了很大的变动,取消了CvSVMParams这个类,因此在参数设定上会有些改变。opencv中的svm分类代码,来源于libsvm。#include "stdafx.h"#include "opencv2/opencv.hpp"using namespace cv;u... 阅读全文
posted @ 2015-12-04 14:35 denny402 阅读(22076) 评论(1) 推荐(0)