Get SVM classification score in multiclass classification with OpenCV

前端 未结 1 1659
予麋鹿
予麋鹿 2020-12-10 08:38

I\'m working on a project where I\'m doing multiclass classification with SVM in OpenCV.

My goal is to get the confidence score of the classification as well as the

相关标签:
1条回答
  • 2020-12-10 08:51

    In opencv/include/opencv2/ml/ml.hpp, there is a struct called CvSVMDecisionFunc.. It has been used in line 546 as a Protected Variable,

    CvSVMDecisionFunc* decision_func;
    

    What you need to do is to cut that line and paste it as Public and then do a complete rebuild of OpenCV.. This variable, decision_func contains all the data for specific support vectors (ie, the alpha and rho values)..

    0 讨论(0)
提交回复
热议问题