python - Custom SVM for cv2.HOGDescriptor.setSVMDetector() -
how obtain weights svm in opencv 2.4.6 python 2.7.5?
i need calculate primal form of cv2.svm()
feed cv2.hogdescriptor().setsvmdetector
.
found this , this sof useful, seems svm.decision_func
protected , cannot access variable obtain weights.
are there other ways in python+opencv?
you can use save method save svm hard drive.
if need weights think need modify code or closer @ format in opencv svm saved.
here info opencv svm output file format
Comments
Post a Comment