Skip to content

The Maths behind gesture: 'facing center' #150

Answered by vladmandic
YaraAmin asked this question in Q&A
Discussion options

You must be logged in to vote

i'd consider actual value of iris: facing center gesture less important than similar one face: facing center which looks at the Z coordinates of corners of the eyes (not corners of the face as with higher angles face corner is likely not visible to start with)

iris: facing center is weird, but i've tried different methods and this algorithm gave ok results on average
it first calculates square area of each eye (areaLeft and areaRight) based on corners of the eye
and then if difference in eye areas is less than 25% it states facing center - meaning both eyes are of similar size so thus face is not turned to either side

you can think of iris: facing center as an intermediate result towards i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vladmandic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants