Questions tagged [opencv-ml]

machine learning module of opencv

3 questions
2
votes
0 answers

Prediction Confidence SVM OpenCV 3.0 returns 0

I am looking for a way to get the prediction confidence for a multi-class prediction with an opencv SVM. What I found so far: //data is a cv::Mat containing the samples to be predicted in format (num_samples,dimension,CV_32F) //SVM_classifier is a…
Seastar
  • 386
  • 2
  • 19
1
vote
1 answer

Determine type of StatModel in opencv c++

I am currently implementing a general classification program where the user inputs a labeled dataset and a machine learning technique from opencv and the program trains this Classifier. Since for some classifiers (in my example Neural Nets) the…
Seastar
  • 386
  • 2
  • 19
1
vote
1 answer

What is return value of CvMLData::read_csv?

The documentation doesn't mention it: http://docs.opencv.org/2.4/modules/ml/doc/mldata.html Is it number of read lines or OK/ERROR ?
Valentin H
  • 7,240
  • 12
  • 61
  • 111