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
as always: pinhole model
indeed ! (you probably had that in school already !)
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...]
@ConceptRa Thank you, it is very helpful!