Tobias-Fischer / rt_gene

RT-GENE: Real-Time Eye Gaze and Blink Estimation in Natural Environments
http://www.imperial.ac.uk/personal-robotics
Other
374 stars 71 forks source link

Masking eyetracking glasses region #119

Closed ChiwoongLEE closed 1 year ago

ChiwoongLEE commented 1 year ago

Hello. First of all, thank you for your excellent research.

Hello. First of all, thank you for your excellent research.

Analyzing the code for GlassesCompletion.py, I found out that original/face/face.png andmask/mask_overlay.png are needed.

I could not find any information on how to create an image in the mask folder in that github. If possible, can I ask you about the detailed method?

Tobias-Fischer commented 1 year ago

Please see the paper for information how the masks were created - in a nutshell, we used OptiTrack to obtain the pose of the glasses and, given a 3D model of the eyetracking glasses, projected the model in the camera image, which provides you with the mask. We do not provide code for the generation of the masks.

ChiwoongLEE commented 1 year ago

Thank you for the good information. If you don't mind, could you provide me with a code on how to project the model onto the camera image?

Tobias-Fischer commented 1 year ago

This should be fairly straightforward using opencv. Unfortunately I don’t have any more code for rt-gene than what’s provided here.