facebookresearch / InterWild

Official PyTorch implementation of "Bringing Inputs to Shared Domains for 3D Interacting Hands Recovery in the Wild", CVPR 2023
Other
159 stars 16 forks source link

how to calculate Camera_FOV by focal and princpt in dataset?? #32

Open MouseChannel opened 4 months ago

MouseChannel commented 4 months ago

thanks

mks0601 commented 4 months ago

https://www.edmundoptics.com/knowledge-center/application-notes/imaging/understanding-focal-length-and-field-of-view/

MouseChannel commented 4 months ago

https://www.edmundoptics.com/knowledge-center/application-notes/imaging/understanding-focal-length-and-field-of-view/

so fov_x = 2 * np.arctan(667 / (2 * camera_param['focal'][1])) where the 667 means the image width. Is that right? and princpt is not neccessary in calculate FOV

MouseChannel commented 4 months ago

https://www.edmundoptics.com/knowledge-center/application-notes/imaging/understanding-focal-length-and-field-of-view/

and the result of fov is about 0.25, there must be something I did wrong

MouseChannel commented 4 months ago

https://www.edmundoptics.com/knowledge-center/application-notes/imaging/understanding-focal-length-and-field-of-view/

I think image size is not the same thing as Camera_Sensor_size and where I can get the Sensor_Size?