1

I am working on a project where I detect poses from a stickfigure and I am trying to extract the z coordinates from the landmarks via mediapipe/blazepose. The next step would be to calculate the distance between the z-coordinate from the hips to the hand and show the value on the image. Overview set-up with distance hips-hand

Can someone explain to me how the z coordinate extraction for mediapipe works? And what code I can use for my goal? I am really new at programming so until now I only made a program that can detect the landmarks and draw them on the image.

Amy de Lange
  • 21
  • 1
  • 2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community May 06 '22 at 16:32

1 Answers1

0

You need the world coordinates. To do that, use results.pose_world_landmarks and then the distance of the hand to the hips in z will just be the z coordinate of the hand

koegl
  • 505
  • 2
  • 13