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?
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:
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:
I am providing a Python and GNU Octave/MATLAB implementation of Fisherfaces at:
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.