'How to plot pose_world_landmarks in mediapipe?

I'm trying to plot my captured pose_world_landmarks like it is shown on the GitHub Mediapipe homepage (https://google.github.io/mediapipe/solutions/pose.html -> Fig 5. Example of MediaPipe Pose real-world 3D coordinates.)

I've tried it with matplotlib.pyplot but I didn't succeed.

Also:

"mp_drawing.plot_landmarks(results.pose_world_landmarks, mp_pose.POSE_CONNECTIONS)"

opened tons of windows with graphs that also didn't look good. Can someone help me?

I'm working with python.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source