开发者

Face gender detection library [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or ext开发者_运维技巧ended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

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:

  • 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.


Eigenfaces uses PCA, and this is implemented in OpenCV. This algorithm can be used to perform gender recognition: http://campillos.ucmerced.edu/~jboiser/eigfaces.pdf

To use eigenfaces with OpenCV, see http://www.cognotics.com/opencv/servo_2007_series/part_5/index.html

It will take a bit of coding on your part though.


At first sight, I would say OpenCV, but your surely already tested it...

Seems this blog talk a lot about face and gender recognition. Hope it will help: http://www.computer-vision-software.com/blog/


You can use OpenCV built in face detector. For gender you can train your own gender detector using Haartraining. You should find a database of Male and Female faces and train it with HaarTraining module in OpenCV.


I think you are looking for Intel AIM.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜