hysts/pytorch_mpiigaze_demo

Dummy Camera Params - Focal Length

Opened this issue · 0 comments

It looks like in generate_dummy_camera_params, when generating the camera matrix, the focal length is assumed to be the width:

'data': [w, 0., w // 2, 0., w, h // 2, 0., 0., 1.]
and I am curious where that logic came from?

Ideally you would have the focal length in mm and the sensor size and then would use logic like this: https://github.com/google/mediapipe/blob/ecb5b5f44ab23ea620ef97a479407c699e424aa7/mediapipe/calculators/image/image_file_properties_calculator.cc#L52-L77