Emotion detection from (almost) scratch in Python.
- Install Docker
- Run
git clone https://github.com/johnpaulada/emotion-detection-docker.git
in your console - Run
cd emotion-detection-docker
in your console - Run
docker pull johnpaulada/emotion-detection
ordocker load -i emotion-detection.tar
in your console - Run
docker run -v 'pwd'/app:/home/app -it johnpaulada/emotion-detection
in 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 ./images
To 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