Web-based Python Application (Flask) to predict/recognize faces.
-
Clone project.
-
Create virtual environment for local development and install project dependencies:
pip install -r requirements.txt. -
Configure local dev by creating
.envfile and specifying project config (see the content of.env.example) -
Run
docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.access.yml up -
Access service via browser
127.0.0.1:80(localhost) or usecurlto performPOSTcalls to respective endpoints:/api/v1/predictions/(eg.curl -F "file=@000323.png" http://127.0.0.1/api/v1/predictions/)/api/v1/recognitions/
Project is configured to be deployed in Google Cloud Platform via Google Kubernetes Engine.
To deploy a new version of app just run ./deploy.sh.
Note: Make sure that kubectl and gcloud CLI tools are installed and properly configured.
- Add batch image processing support for face detection.
- Implement face recognition endpoint -
/api/v1/recognitions/. - Add authorization flow.
- Add tests.