This API provides all the necessary endpoints to give the emotions recognition
capability to Surirobot.
- Extract emotion from picture
- Microsoft Face API
- Python3
- Virtualenvwrapper
pip install virtualenvwrapper
- If you have some trouble with the command
workon
see : https://stackoverflow.com/questions/29900090/virtualenv-workon-doesnt-work
docker build . -t api-emotions
docker run -e MICROSOFT_API_KEY=<YOUR_API_KEY> -e MICROSOFT_API_URL=<API_URL> -p 8000:8000 api-emotions
- Clone repository
- Create virtualenv
mkvirtualenv api-emotions && workon api-emotions
- Install dependencies
pip install -r requirements.txt
- Configure .env
cp .env.example .env
If you want to use the default environment
- Fill only the
REMOTE_DATA_LOGIN
andREMOTE_DATA_PASSWD
fields - Run the command :
tools/get-env
- Run the dev server
./app.py
The Openapi spec and a postman collection are available in the docs
folder.
You can render the documentation by pointing your browser at the url given by the server.
The input file should be formated by script located in dir /scripts/ exemple: ./convert_wav your_file.wav