Ask Your Question

Revision history [back]

v3 python bindings missing artificial neural network load method

Hi, I've been using artificial neural nets with cv2 within python for a while. Previously, in the v2.x bindings, there was a load method (to load an output ANN saved via the corresponding save method). This doesn't seem to exist anymore (in the v3.x bindings). So, how can I load my output ANN?

>>> import cv2
>>> ann = cv2.ml.ANN_MLP_create()
>>> help(ann)
Help on ml_ANN_MLP object:

    class ml_ANN_MLP(ml_StatModel)
    <snip>
 |  ----------------------------------------------------------------------
 |  Methods inherited from Algorithm:
 |
 |  clear(...)
 |      clear() -> None
 |
 |  getDefaultName(...)
 |      getDefaultName() -> retval
 |
 |  save(...)
 |      save(filename) -> None