I installed open cv 3.0 and then installed libsvm.Then I added this to my pycharm packages. But still, when you type this code
svm_params = dict( kernel_type = cv2.SVM_LINEAR,
svm_type = cv2.SVM_C_SVC,
C=2.67, gamma=5.383 )
he shows this error
svm_params = dict( kernel_type = cv2.SVM_LINEAR,
AttributeError: 'module' object has no attribute 'SVM_LINEAR'
I tried to import libsvm, but that did not help. Is opencv 3.0 ok if i go back to 2.4?
user4960127
source
share