Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to calculate the global root (or camera) 3D translation? #50

Open
RockyXu66 opened this issue Nov 17, 2022 · 4 comments
Open

How to calculate the global root (or camera) 3D translation? #50

RockyXu66 opened this issue Nov 17, 2022 · 4 comments

Comments

@RockyXu66
Copy link

Hi.
I have two questions.

  1. There are only cam_trans in the output in demo.py. It's a little confused with focal length (with what unit), camera_3d_size(why you use this) in config.py file. How can I get the body's global root (or you can say camera) 3D translation in the real world with meter unit.
  2. I find that cam_param is the output of body_rotation_net and cam_trans is calculated by get_camera_trans function. Could you explain what they actually mean?
@mks0601
Copy link
Owner

mks0601 commented Nov 17, 2022

Please look at Fig.6 and Section 1 of the suppl. The 3D global translation d can be calculated from focal lengths in x- and y-axis (unit: pixel), A_real (xy area of real human. meter x meter), and A_image (xy area of human in the image. unit: pixel x pixel).
(x,y) of cam_param are directly used to get cam_trans, which means they are 3D global translation of (x,y).
Directly calculating z of cam_trans could be ambiguous. Hence, we define initial z of the 3D global translation and refine it following Fig. 5 of the paper. camera_3d_size is to calculate A_real.

@linjing7
Copy link

Hi, @mks0601, which paper do you mean? I do not find related information in the supplementary of Hand4Whole.
image

@mks0601
Copy link
Owner

mks0601 commented Dec 16, 2022

Sorry I forgot to add link.
https://arxiv.org/abs/1907.11346

@linjing7
Copy link

Okay, thank you very mucn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants