Emotion detection from (almost) scratch in Python.
- Install Docker
- Run
git clone https://github.com/johnpaulada/emotion-detection-docker.gitin your console - Run
cd emotion-detection-dockerin your console - Run
docker pull johnpaulada/emotion-detectionordocker load -i emotion-detection.tarin your console - Run
docker run -v 'pwd'/app:/home/app -it johnpaulada/emotion-detectionin your console - Run
cd app - You're all set!
For help, you can run python3 app.py -h.
To extract data, run python3 app.py --data path-to-images-folder.
For example:
python3 app.py --data ./imagesTo train the program, run python3 app.py --train.
To predict the emotions of input images, run python3 app.py --predict path-to-input-image.
The command supports the prediction of multiple images.
For example:
python3 app.py --predict ./happy-person.jpg ./angry_face.jpg- Python
- Numpy
- OpenCV
- dlib
- imutils
- Scikit-Learn
- Docker
MIT