# Measure the size of face

Hi everybody

I am trying to measure the size of face and eyes on the photo. I am using Python and library OpenCV. To detect eyes and face on photo I used auxiliary files shape_predictor_68_face_landmarks.dat and haarcascade_frontalface_alt.xml.

The result is :

This is correct, but I want also to get the size of nose and eyes etc in centimeters. Is the way how I can do this?

Sorry if this is a bit basic of a question, but for some reason I could not find much online to guide me on this. I have googled a lot, read different articles but nothing helps me.

Thanks

edit retag close merge delete

as always: pinhole model

if this is a bit basic of a question,

indeed ! (you probably had that in school already !)

( 2018-10-06 10:27:59 -0600 )edit

Not that I've actually used OpenCV but what about having a reference face shot that you know the dimensions of the features. Then line up both with the same reference symmetry and calculate the difference from reference to supplied face. I'm just thinking out loud on this one.

I've played with an Android app called "ON 3D-CameraMeasure" [https://play.google.com/store/apps/de...]. It gets you to place a reference object (A4 paper, Credit Card) in the photo to then use for calculating the size and distance of other objects in the scene. Obviously the photo you've provided doesn't have a reference object available but this may provide some clues.

Also have a read of this [http://www.cs.columbia.edu/CAVE/proje...]

( 2018-10-06 18:59:04 -0600 )edit

@ConceptRa Thank you, it is very helpful!

( 2018-10-12 08:09:08 -0600 )edit

Sort by ยป oldest newest most voted

so, there's fov, size and distance, you need to know 2 of them, to calculate the third.

and you probably don't have any of it, given arbitrary images as input.

(you can get the fov from calibrating your camera, also you can get the distance, if you're using a stereo rig or a depth cam, like kinect)

(again, as long as long as you use arbitrary images, and have no control about the camera params -- what you want is simply not possible)

more

If I have two of this how can I measure size of eyes?

( 2018-10-06 12:38:14 -0600 )edit
1

apply maths

( 2018-10-06 12:41:22 -0600 )edit

Official site

GitHub

Wiki

Documentation

## Stats

Asked: 2018-10-06 10:17:28 -0600

Seen: 1,474 times

Last updated: Oct 06 '18