Machine learning OpenCV SVM SVM classification pro
2016-08-23
0 0 0
no vote
Other
Earn points
OpenCV SVM SVM classification procedure of machine learning and can be used for multi-class pattern recognition. Also used for experiments or projects, I'm using the opencv243 library, part of the code is as follows: # include "opencv243.h"
#include
#include
#include
using namespace std;
int main(int argc, char* argv[])
{
int size = 400; height and widht of image
const int s = 1000; number of data
int i, j,sv_num;
IplImage* img;
CvSVM svm = CvSVM();
CvSVMParams param;
CvTermCriteria criteria; Stops the iteration criteria
CvRNG rng = cvRNG(time(NULL));
CvPoint pts[s]; Define 1000 points
float data[s*2]; Coordinates of a point
int res[s]; Point categories
CvMat data_mat, res_mat;
CvScalar rcolor;
#include
#include
#include
using namespace std;
int main(int argc, char* argv[])
{
int size = 400; height and widht of image
const int s = 1000; number of data
int i, j,sv_num;
IplImage* img;
CvSVM svm = CvSVM();
CvSVMParams param;
CvTermCriteria criteria; Stops the iteration criteria
CvRNG rng = cvRNG(time(NULL));
CvPoint pts[s]; Define 1000 points
float data[s*2]; Coordinates of a point
int res[s]; Point categories
CvMat data_mat, res_mat;
CvScalar rcolor;
c++
opencv
分类
svm
程序
学习
机器
支持
向量
Related Source Codes
naive Bayesian
0
0
no vote
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
No comment