rajkundu / libmp-example

Use Mediapipe with CMake: Example LibMP Usage Application
Apache License 2.0
20 stars 3 forks source link

Problem in run holisitic #2

Open lucasjinreal opened 1 year ago

lucasjinreal commented 1 year ago

Hi!

the wrapper works great! But seems runing holisitic got some issue, the pose tracking not working, it was stucked at first frame.

Can u help me out? I have sent you an email, thanks so much!

rajkundu commented 1 year ago

My best guess is that you need to clear the queue of the pose output stream. For example, in this repository's face mesh example, I don't just grab the next packet available in the multi_face_landmarks output stream. Instead, I clear the queue until it is empty:

https://github.com/rajkundu/libmp-example/blob/d682b1236025ca12a0a053911a63b57fa6dbe2d7/main.cpp#L29-L38

Remember that if you don't use a smart pointer, then you have to delete packets yourself, otherwise they will stay in memory.