mirror of
https://github.com/opencv/opencv.git
synced 2026-10-06 04:03:36 +03:00
fixed digits.py sample
This commit is contained in:
1 parent
4c1c0b108d
commit
ba71caca04
1 file changed
+1
-1
@@ -99,7 +99,7 @@ class SVM(StatModel):
|
||||
self.model.train(samples, cv2.ml.ROW_SAMPLE, responses)
|
||||
|
||||
def predict(self, samples):
|
||||
return self.model.predict(samples)[1][0].ravel()
|
||||
return self.model.predict(samples)[1].ravel()
|
||||
|
||||
|
||||
def evaluate_model(model, digits, samples, labels):
|
||||
|
||||
Reference in new issue
Block a user