conda create -n django_services python=3.6
(3.6 due to some AI library support)conda activate django_services
pip install -r requirements.txt
python manage.py runserver 0.0.0.0:8000
Web services
/web_services
This endpoint is for end-user applications
- GET /web_services/detect_facial_emotions
This application takes a snapshot with webcam of a face and predicts the emotion present in the face among the following tags: 'Angry', 'Fear', 'Happy', 'Sad', 'Surprise' or 'Neutral'. This is a refactoring of this project
- POST /web_services/detect_facial_emotions
You can send a PNG image in base64 format to this endpoint, as result it returns a json with the face emotion prediction
JSON Request
Name | Type |
---|---|
image | Base64 PNG image |
JSON Response
Name | Type |
---|---|
prediction | String |
Projects
/projects
This endpoint is to show projects that cant be used directly by an user
- GET /projects/neat
This project is about Neural Networks and genetic algorithms. Is composed by two parts:
- A set of agents that learns to play Flappy birds
- A set of agents that learns to collect life and try to avoid collision with an enemy, who is walking randomly
Games
/games
This endpoint is for video games made in Unity that actually use artificial intelligence
- GET /games/text101
This application is just a demo/example to be used as reference to setup a Unity game in this app endpoint
.vscode
{
"python.analysis.extraPaths": ["neat"]
}