Improvements in tests, bugfix in digits_video sample
This commit is contained in:
@@ -27,9 +27,12 @@ def main():
|
||||
if not os.path.exists(classifier_fn):
|
||||
print('"%s" not found, run digits.py first' % classifier_fn)
|
||||
return
|
||||
model = SVM()
|
||||
model.load(classifier_fn)
|
||||
|
||||
if True:
|
||||
model = cv2.ml.SVM_load(classifier_fn)
|
||||
else:
|
||||
model = cv2.ml.SVM_create()
|
||||
model.load_(classifier_fn) #Known bug: https://github.com/Itseez/opencv/issues/4969
|
||||
|
||||
while True:
|
||||
ret, frame = cap.read()
|
||||
|
Reference in New Issue
Block a user