An API to detect facial expression's either by cam or by uploading image.
- Install the requirements : pip3 install -r requirements.txt
- Now all you have to do it is run : python3 api.py
- The app should be up and running at : http://localhost:5000
- Valid end points are : http://localhost:5000/cam => cam will open up and recognize your expression providing 1st two guesses
- You can modify predict_emotion function in api.py to format the prediction in required format.
- We can also send an image to the API and get the result back : http://localhost:5000/img_upload