FORTH-ModelBasedTracker / PyOpenPose

Python bindings for the Openpose library
BSD 3-Clause "New" or "Revised" License
287 stars 80 forks source link

Deleting op object #47

Closed pfabreu closed 6 years ago

pfabreu commented 6 years ago

How could I delete the OpenPose wrapper object and effectively free memory and then recreate another one? I need to parse different sized videos in a loop.

padeler commented 6 years ago

Hello,

In the current version there is no way to do that (since i never needed it, i did not provision for it, sorry) you will have to right a proper destructor for OpenPoseWrapper to free all OP resources.

paperManu commented 6 years ago

Out of curiosity, which member of OpenPoseWrapper would need special handling in the destructor? It seems to me that everything should be destroyed automatically as import members are inside a shared_ptr.