antoinelame / GazeTracking

👀 Eye Tracking library easily implementable to your projects
MIT License
1.85k stars 505 forks source link

Method to track Gaze #13

Open Madankumar90 opened 5 years ago

Madankumar90 commented 5 years ago

Hey Antoine, Very Good solution there. Can i please know on what method/basis have you tracked the gaze from iris center/s . Thank you.

antoinelame commented 5 years ago

Hi @Madankumar90 Thank you! This part is quite simple. I made a function horizontal_ratio() that returns a number between 0.0 and 1.0 that indicates the horizontal direction of the gaze. The extreme right is 0.0, the center is 0.5 and the extreme left is 1.0. To do that, I divide the iris coordinate (that I calculated previously) with the eye width.

Madankumar90 commented 5 years ago

Thank you for the earliest reply Antoine.