First time here? Check out the FAQ!

Ask Your Question
0

Random Trees in OpenCV with Python (load method missing)

asked Feb 19 '17

macpirkimas gravatar image

In OpenCV 3.2.0 with Python can't find load function to load pre-trained model, it's clearly explained in C++ StatModel::load<rtrees>(filename). How to load pre-trained model with Python?

import cv2

help(cv2.ml.RTrees_create())

....

 |  Methods inherited from Algorithm:
 |  
 |  clear(...)
 |      clear() -> None
 |  
 |  getDefaultName(...)
 |      getDefaultName() -> retval
 |  
 |  save(...)
 |      save(filename) -> None

load(...) missing?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Feb 20 '17

berak gravatar image

this has been fixed recently , so please update to latest master branch and rebuild.

Preview: (hide)

Comments

Thank you for the answer.

macpirkimas gravatar imagemacpirkimas (Feb 20 '17)edit

Question Tools

1 follower

Stats

Asked: Feb 19 '17

Seen: 310 times

Last updated: Feb 20 '17