2017-02-22 01:08:03 -0600 | received badge | ● Editor (source) |
2017-02-22 01:03:13 -0600 | asked a question | Save custom object in .yml Hi, does anyone know how to save a custom object in .yml using FileStorage ? According to the online document: http://docs.opencv.org/3.0-rc1/dd/d74... I add the following snippet in my custom class ColorSample:
Does anyone know how to solve the first two lines in ColorSample::read() ? Thanks |
2017-01-04 02:29:00 -0600 | received badge | ● Necromancer (source) |
2017-01-03 22:47:50 -0600 | received badge | ● Supporter (source) |
2017-01-03 20:11:06 -0600 | asked a question | SVM class count Hi there, It should be a very simple question but I just can't found the way to get the class count from the SVM model instance, i.e., something like Ptr<svm> svmModel = StatModel::load<svm>("xxx.yml"); int classCount = svmModel->getClassCount(); The variable classCount is stored in xxx.yml just like another variable VarConut. I found the method getVarCount() but fail to find getClassCount(), any suggestions? Thanks |
2017-01-03 20:04:09 -0600 | answered a question | How do I load a pre-trained SVM using C++? Try: StatModel::load<svm>("YourSVMFile"); |