1 | initial version |
SVM labels should be integer in case of a classification (float, if you wanted a regression) , so:
Mat labels(70,1,CV_32SC1);
2 | No.2 Revision |
SVM labels should be integer integer in case of a classification (float, if you wanted a regression) , so: the type of the matrix is relevant here, so make it:
Mat labels(70,1,CV_32SC1);