Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Face Type Detection

I have to detect the face type - oval, rectangular, diamond, hear shape in my application. I have done the face detection using open CV and coreimage framework, but it does not tell the type of the face.

what I actually need to do is detect the type of the face and show a celebrity face having the same type of face shape displaying your face matches with her/him.

Any help would be great.

Thanks in Advance!

like image 973
Swati Avatar asked Nov 12 '22 23:11

Swati


1 Answers

You have to train a face recognizer for your four classes: oval, rectangular, diamond, heart shape. Therefore you will have to find examples of many different people with that face shape. Give each of your classes a label and train a normal FaceRecognizer with that.

If you want to get an idea about the actual steps check out the gender classification with OpenCV, and do exactly the same. In gender classification it is done for 2 classes (male / female). You have to do it for 4 classes (4 different shape types).

like image 114
Kenyakorn Ketsombut Avatar answered Nov 15 '22 06:11

Kenyakorn Ketsombut