Face analyzing by caffe for gender and age predict
I rewrite it just for fun. The network and algorithm is not SOTA anymore...
The DNN on OpenCV now is incredible. This version maybe friendly for beginner of deep learning^^
This repository contains a pyCaffe-based implementation of face analyzing such as age, gender and emotion etc...
You can read the paper in following link:
Age & Gender http://www.openu.ac.il/home/hassner/projects/cnn_agegender/
Emotion http://www.openu.ac.il/home/hassner/projects/cnn_emotions/
Face detect https://github.com/opencv/opencv/tree/master/samples/dnn/face_detector
the model above are all available in caffe model zoo or OpenCV git
according my test, only gender predict is reliable... HaHa
- Python >= 3.0
- OpenCV
python FaceAnalyzing_by_opencv.py -i <image>
if you do not input image name it will use default image for demo.