Ask Your Question
0

Did they remove SVM's trainAuto in the newest OpenCV release?

asked 2017-07-18 10:09:17 -0600

I'm using python 3.5 with OpenCV 3.2 and this is the error I'm getting "Traceback (most recent call last): File "/home/etrokie/Downloads/pycharm-community-2017.1.4/helpers/pydev/_pydevd_bundle/pydevd_exec2.py", line 3, in Exec exec(exp, global_vars, local_vars) File "<input>", line 1, in <module> AttributeError: 'cv2.ml_SVM' object has no attribute 'trainAuto' "

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-07-19 01:55:05 -0600

berak gravatar image

trainAuto() was indeed removed from the python api in opencv3.0 (due to problems wrapping the gridparams structures) , but it was recently re-added.

your opencv3.2 release won't have this fix, so either wait for 3.3 (any minute now ..) or build from latest github master branch locally.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-07-18 10:07:06 -0600

Seen: 516 times

Last updated: Jul 19 '17