TemugeB / bodypose3d

Real time 3D body pose estimation with Mediapipe
MIT License
184 stars 32 forks source link

Different T pose angles #4

Open RaminAkhtar opened 2 years ago

RaminAkhtar commented 2 years ago

Hi @TemugeB, thanks for your work, it has helped me alot. I have a question. Would you help me, how could I calculate the joint angles if we have different axes directions at each joint?

TemugeB commented 2 years ago

Hi. Sorry for the late reply. The T pose is a convenience pose from which you are deciding to calculate the joint angles. Technically you can calculate joint angles starting from any initial body pose. On the other hand, it is also possible to put any keypoints into T pose angles. So I'm not sure what you mean calculate joint angles from different axis directions. You have the 3D coordinates of each joint? Then simply calculate joint angles with respect to T pose. If you have joint angles with different axis directions now and you want joint angles from T pose, then you need to calculate 3D coordinates first then calculate the joint angles from T pose. I think that would be the easiest way to do it.

RaminAkhtar commented 2 years ago

Hi, thank you for your reply. Yes I have 3D coordinates of each joint. In your defined T pose each joint has its own axes such that the "z" axis points forward, but i want some joints have different axes directions. for example "hips" (mid point of the hips) and "lefthip" have the following axes: hip

but the "righthip" has the following axes: r_hip

My question is, if we want to define dissimilar axes for joints, how could calculate rotation of each joint w.r.t its parent(s)?

SeanHu2100 commented 2 years ago

Hi @TemugeB, Your resources on github helped me greatly, so if I want to cite "joint_angles_calculate", should I just illustrate the github address? Thanks.

TemugeB commented 2 years ago

@SeanHu2100 Thanks for checking out my repo. Sure just cite the github page if you need to.

TemugeB commented 2 years ago

@RaminAkhtar Sorry I went on vacation and forgot about this issue. Did you figure out the problem? If yes, I will close the issue.

RaminAkhtar commented 2 years ago

@TemugeB Not quite yet. I will appreciate if you help me.