Search code examples
pythonopencvimage-processingpython-imaging-librarysimplecv

Differentiate between faces of men and women


I need to make an app that tells if the only face in a certain picture is that of a man or a woman It would be better if it was done using python. Any suggestions are welcome


Solution

  • I think this will solve your problem. Gender detection is what you need to do. Recently I have done gender detection using the below link and got a decent accuracy. Follow the link step by step.

    http://docs.opencv.org/trunk/modules/contrib/doc/facerec/tutorial/facerec_gender_classification.html

    And there is a C++ code in the above link for Face-recognizer which does this. You can get the equivalent python API's in opencv documentation.

    This SO Answer has few more links and information.