Software Archive
Read-only legacy content
17061 Discussions

Look forward detection using landmark information

Mona_J_1
Beginner
569 Views

How can I detect if someone is looking forward (even if their head is tilted or turned up/right/down/left) using eye landmark information say "landmark_eye_right_center" or something like "landmark_group_left_eye"?

I am asking this because I was using expression_eyes_up along with eyes_turn_left/right and writing functions for seeing if head is turning up/down/right/left or tilted left/right and still it is not precise at all to detect if someone is looking forward. I wonder if using eye landmark information directly would be more precise? however if that is the answer, I could find no single code sample that makes use of this info. I wonder if someone can walk me through a sample code that uses landmark (or other info) for looks forward detection.

 

 

0 Kudos
1 Reply
samontab
Valued Contributor II
569 Views

I guess you can always check the position of the eyes, and if they are both horizontally aligned, and at a maximum distance, the person is looking forward.

Otherwise, if you are tracking a full 3D model of the head (which could be done by getting the head pose from face landmarks), then it should be straight forward to know if it is looking straight to the camera.

0 Kudos
Reply