Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Face gender detection library [closed]

I'm looking for an SDK or library that can detect faces in a webcam stream, and detect gender. Free or paid, C++ or C# under Windows. Any suggestions?

like image 504
Shachar Weis Avatar asked Mar 11 '11 03:03

Shachar Weis


1 Answers

I did an experiment on gender classification with the Fisherfaces method in my blog at: http://bytefish.de/blog/gender_classification and got a 98% recognition rate for geometrically normalized images. I am providing an implementation of the Fisherfaces method for GNU Octave/MATLAB, Python and C++.

libfacerec, a modern face recognition library for the OpenCV C++ API (BSD license), includes an implementation of the Fisherfaces method. The latest revision of the libfacerec is available at:

  • https://github.com/bytefish/libfacerec

libfacerec comes as a CMake project with a well-documented API, there's also a tutorial on gender classification. You can see a HTML version of the documentation at:

  • http://www.bytefish.de/dev/libfacerec/ (Example on Gender Classification)

I am providing a Python and GNU Octave/MATLAB implementation of Fisherfaces at:

  • http://www.github.com/bytefish/facerec
  • http://www.bytefish.de/blog/face_recognition_with_opencv2

For detecting a face in an image simply use the CascadeClassifier coming with OpenCV, but don't expect perfect recognition results on misaligned data.

There's an answer above to use Eigenfaces, which won't work. Eigenfaces use a Principal Component Analysis, an unsupervised algorithm that doesn't know about classes. You must be really lucky if the subspace you embed your data into discriminates between genders. Perhaps it generates some positive predictions by finding the closest image and associated gender.

like image 60
bytefish Avatar answered Oct 27 '22 15:10

bytefish