Hello,
I am working on a project where we need to marshal python objects at runtime, without knowing in advance the types of the objects that need to be saved to disk (and then loaded back in a different python context). We are using callbacks based on the object types, whenever we need specialised functions (e.g. using hdf5 format for Tensorflow models), otherwise falling back to dill
.
I am having a hard time finding a general way to save openCV objects. In my specific case, I am trying to save to disk a CascadeClassifier
object, but I notice that it implements just load
and road
and not write
or save
. What can I do? I noticed that some other cv objects implement the save
or write
function. Why doesn't CascadeClassifier
implement it as well?
And more generally, what is the best approach to save OpenCV objects to disk and the load them back? Thanks!!