Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get svm predict socres?

image read:

Mat image = imread(buffer, IMREAD_GRAYSCALE);

predict:

SVM->predict(imgDescriptor, testResponse,cv::ml::SVM::UPDATE_MODEL);
cout << "rows: " << testResponse.rows << endl;
cout << "cols: " << testResponse.cols << endl;
cout << "res: " << res << endl;

out put:

rows: 1
cols: 1
res: 0

How to get svm predict socres?

image read:

Mat image = imread(buffer, IMREAD_GRAYSCALE);

predict:

SVM->predict(imgDescriptor, testResponse,cv::ml::SVM::UPDATE_MODEL);
cout << "rows: " << testResponse.rows << endl;
cout << "cols: " << testResponse.cols << endl;
cout << "res: " << res << endl;

out put:

rows: 1
cols: 1
res: 0

How to get svm predict socres?

click to hide/show revision 3
None

updated 2019-11-23 00:52:17 -0600

berak gravatar image

How to get svm predict socres?

image read:

Mat image = imread(buffer, IMREAD_GRAYSCALE);

predict:

SVM->predict(imgDescriptor, testResponse,cv::ml::SVM::UPDATE_MODEL);
cout << "rows: " << testResponse.rows << endl;
cout << "cols: " << testResponse.cols << endl;
cout << "res: " << res << endl;

out put:

rows: 1
cols: 1
res: 0

How to get svm predict socres?