emoca icon indicating copy to clipboard operation
emoca copied to clipboard

Camera Param

Open RIA1159 opened this issue 1 year ago • 5 comments

I use emoca to reconstruct an image, and get the cam param [9.126064, 0.0031504938, 0.03501865]. I want to know what's these param mean respectively。 Thanks a lot !

RIA1159 avatar Jul 26 '23 09:07 RIA1159

Following, interested in the same thing. @RIA1159 Where are you getting the camera params from?

emlcpfx avatar Jul 28 '23 01:07 emlcpfx

The reconstruct result named 'vals' in https://github.com/radekd91/emoca/blob/fef5472a2fe3c47d8c5ffa56ad13928a790df1ab/gdl_apps/EMOCA/demos/test_emoca_on_images.py#L70 is a dictionary type variable, it contains params like shapes and camera.

RIA1159 avatar Jul 28 '23 02:07 RIA1159

@RIA1159 If I do this... print("vals: " + str(vals)) # Convert vals to a string using str() function ...I get a ton of output. Which part of that are the camera params?

emlcpfx avatar Jul 28 '23 02:07 emlcpfx

@RIA1159 If I do this... print("vals: " + str(vals)) # Convert vals to a string using str() function ...I get a ton of output. Which part of that are the camera params? Just print(vals.keys()) And you will see all the keys.

RIA1159 avatar Jul 28 '23 02:07 RIA1159

@RIA1159 Thank you, I get it now. I appreciate the help. Let me if you’re able to export the camera to a 3D program like Blender.

emlcpfx avatar Jul 28 '23 03:07 emlcpfx