How to obtain the weights for SVM in OpenCV 2.4.6 for Python 2.7.5?
I need this to calculate the primal form of my cv2.SVM()
to feed it to a cv2.HOGDescriptor().setSVMDetector
.
Found this and this SOF useful, but it seems like SVM.decision_func
is protected and I cannot access this variable to obtain the weights.
Are there any other ways to do this in Python+OpenCV?