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

How to convert the 2D gaze vector in the output into a 3D gaze vector? #111

Closed DarkstartsUp closed 3 years ago

DarkstartsUp commented 3 years ago

Hello, in estimate_gaze_standalone.py, how can I get the 3D gaze vector (x, y, z) in the camera coordinate system from the 2D vector in the output? Thanks!

Tobias-Fischer commented 3 years ago

Hi,

Does that help? https://github.com/Tobias-Fischer/rt_gene/blob/aef31be7031f2f93cdd71e603d73375c0fcd4887/rt_gene/src/rt_gene/gaze_tools.py#L131-L133

If not feel free to reopen.