Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Random Trees in OpenCV with Python (load method missing)

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?