1 | initial version |
the syntax has changed a bit from 2.4. to 3:
svm = cv2.ml.SVM_create() self.model.setKernel(cv2.ml.SVM_LINEAR) svm.train(np.array(traindata), cv2.ml.ROW_SAMPLE, np.array(trainlabels))
2 | No.2 Revision |
the syntax has changed a bit from 2.4. to 3:
# it's all in a cv2.ml submodule now
help(cv2.ml)
svm =