Skip to content

Finding approximate distance between facial landmarks #310

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

You must be logged in to vote

actually, forget about FOV, i no longer think its needed and will change math in human.
anyhow, is just tested this and seems to be semi-decent. as expected, it does show a lot of varying since iris size itself is small and difficult to predict accurately, but its the only fixed point that math can be based on.

  // iris points are array of [center, left, top, right, bottom] each with [x,y,z] values
  // average size of human iris is 11.7mm - fairly constant for all ages/genders/races
  // average distance between eyes is 65mm - fairly constant for typical adult male, but varies otherwise
  // get annotated keypoints so we dont have to search for them manually
  const face = human.result.f…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Jeandcc
Comment options

Comment options

You must be logged in to vote
2 replies
@Jeandcc
Comment options

@vladmandic
Comment options

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