The repo contains the code for running the All-in-one face detection/recognition + expression recognition
Requires several libraries to get the demo running.
- Caffe + PyCaffe Installation
- Tensorflow for Face expression Installation
- OpenCV
- Currently the code supports NVIDIA GPUs. For CPU runs we may need to modify the code.
- Requires Python 2.7
- Download the model files from here
- Untar the contents and place the content in the models directory
- Place the images that you want to be identified in the data directory. Then run
python utils/generate_train_features.py
- Next, run
python demo.py
A window will open and will start detecting the faces
- Experimental feature. For detecting the facial expressions, modify utils/MTCNN.py and change EXPRESSION_DETECTION_ENABLED = True and restart the demo.py
TODO: Expression recognition is buggy and the trained model is inaccurate. Need a better model for improved accuracy.
For major changes, please open an issue first to discuss what you would like to change.