Ask Your Question
0

What happened to cv2.NormalBayesClassifier python API?

asked 2016-03-02 08:42:07 -0500

wunjo gravatar image

Hi there,

Does anyone know why OpenCV 3.X+ does not include the python API for the Normal Bayes Classifier anymore? I can still use version 2.9 but I don't want to be tied back to using an older version. Is there a better alternative now? Thanks!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-03-02 08:49:23 -0500

berak gravatar image

with opencv3,

  • all ml classes have been moved to a cv2.ml submodule, try >>> help(cv2.ml)
  • all classes have a create function, like cv2.ml.KNearest_create()

please have a look at the tutorial here

edit flag offensive delete link more

Comments

Ok, I got it! Thank you so much!

wunjo gravatar imagewunjo ( 2016-03-02 10:10:20 -0500 )edit
0

answered 2016-03-02 08:45:35 -0500

The search function seems broken, but it is still there in the ML module!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-02 08:42:07 -0500

Seen: 224 times

Last updated: Mar 02 '16