hub icon indicating copy to clipboard operation
hub copied to clipboard

Regarding Keypoints for joint angles in MoveNet

Open Adhithiyan03 opened this issue 3 years ago • 4 comments

Hi,

I am using the MoveNet Thunder model for pose-estimation and used the model on google colab for calculating the keypoints of the estimated markers. I, then used the markers to calculate the joint angles of the knee and Hip. The angles and the graph which I got from the markers are good enough but the values of the angles are differing by 20 degrees at the maximum image (6) . In the fig, the angle estimated is coming roughly around 60 degrees, but we were getting around 40 degrees as the maxmimum. image (4) Please refer the above diagram for better understanding.

At first, we thought that we had calculated it wrong but then we realised that it had something to do with MoveNet code. I have also attached the marker file we got.

sample5boy_movenet-Thunder.csv

Please look into and resolve the matter as soon as possible

Adhithiyan03 avatar Oct 13 '21 16:10 Adhithiyan03

@Adhithiyan03

Can you please refer this Pose Estimation guide and confirm if this helps. Thanks.

pindinagesh avatar Oct 14 '21 08:10 pindinagesh

Yes. I have gone through the guide as the well as the github Readme files. There is no brief specification of the markers keypoints and how to use it for calculation of joint angles. Hoping for a desirable response Thanks

Adhithiyan03 avatar Oct 14 '21 16:10 Adhithiyan03

Hi, A gentle reminder for guiding me to resolve this issue, as it would be helpful to continue further with my work.

Adhithiyan03 avatar Oct 21 '21 18:10 Adhithiyan03

Hi,

Sorry I'm a bit confused about the issue. Could you help me answer the following questions?

  1. When you say "differing by 20 degrees", what is the "groundtruth" angles you are comparing with? It seems like there are three possible values: a) The angle measured directly from the image/keypoint visualizations as the image you attached. b) The angle computed using the MoveNet keypoint locations. c) The angle computed using the OpenPose keypoint locations.

  2. When you say "realized that it had something to do with MoveNet code", could you elaborate what exactly that makes you think there is something wrong in the code? For example: a) Does the MoveNet model give you inaccurate/biased keypoint predictions? If so, did you notice it by visualizing the keypoint? Could you share the example image with us?

  3. MoveNet model has no notion about the joint angles but just to predict where it believes the keypoints are. If your lgoic is to estimate the joint angle from the keypoint coordinates and you are getting different values between different models, I'd recommend double checking whether the two models share the same coordination systems, e.g. whether they produce absolute coordinate/normalized coordinate. If it is the latter, does your logic multiply the image height/width to the normalized coordinates to get the absolute coordinates back?

Thanks, Yu-Hui

yuhuichen1015 avatar Nov 08 '21 22:11 yuhuichen1015