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
workonsee : 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 .envIf you want to use the default environment
- Fill only the
REMOTE_DATA_LOGINandREMOTE_DATA_PASSWDfields - Run the command :
tools/get-env
- Run the dev server
./app.pyThe 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