Ask Your Question
0

Random Trees in OpenCV with Python (load method missing)

asked 2017-02-19 09:38:53 -0600

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-20 03:09:01 -0600

berak gravatar image

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

edit flag offensive delete link more

Comments

Thank you for the answer.

macpirkimas gravatar imagemacpirkimas ( 2017-02-20 05:40:33 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-02-19 09:38:53 -0600

Seen: 287 times

Last updated: Feb 20 '17