dylan
dylan

Reputation: 63

MediaPipe Pose Detection: Conditional on Previous Estimates

I am working on a system that relies on MediaPipe's pose detection to track a person's movement. It currently continuously processes frames from a video stream.

The issue is the landmark predictions sometimes move to another area of the screen suddenly. I am hoping to have landmark predictions that are conditional on previous estimates to avoid this problem.

Does MediaPipe have a way to support this? If not, how could I implement it?

Relevant code:

# Initialization
self.mp_poseObject = mp.solutions.pose
self.pose = self.mp_poseObject.Pose()
...    
# For each given frame from the video feed:
poseResults = self.pose.process(self.videoFrame_RGB)
self.landmarks = poseResults.pose_landmarks

Upvotes: 0

Views: 427

Answers (0)

Related Questions