hysts / pytorch_mpiigaze_demo

Gaze estimation using MPIIGaze and MPIIFaceGaze
MIT License
290 stars 66 forks source link

How to get the normalized camera params? #7

Closed Artif-Inteller closed 2 years ago

Artif-Inteller commented 2 years ago

Hi, thanks for sharing this great work. I calculated my camera matrix and distortion coefficients using checkerboard pattern and OpenCV. The gaze estimator model is using normalized camera parameters and distance too.(data/normalized_camera_params).

Could you tell me how to calculate the normalized camera parameters & distance?

Thanks in advance.

hysts commented 2 years ago

Hi, @Artif-Inteller

Those values were chosen by the authors of the paper and used to pre-process the dataset. The values in the config file of this repo are from the authors' implementation. See section 3.5 of this paper.

Artif-Inteller commented 2 years ago

Hi, hysts. Thanks for your reply. So you mean when I am gonna run the model with my camera, I don't need the normalized camera parameters? Just camera matrix and distortion coefficient is enough?

Thanks.

hysts commented 2 years ago

@Artif-Inteller

Well, in a sense, yes. I mean, you need to use the normalized camera parameters that were used to train the model, but they are already written in the sample config files, so you don't need to change them.