A face recognition service using dlib library. This service exposes a REST API which will take two face images and identify whether they are from same person or not.
The service is built over flask-rebar framework and containerization support is provided using dockerfile.
Features:
- Expose dlib face recognition service by REST API
- Expose underline parameters of dlib in the API for both face detections and recognition
Packaging:
The service provides standard production packaging as follows.
- Environment (dev/ prod/ test) configuration management
- Logger configuration
- Error management in HTTP layer
- DTO management
- Containerization with docker
- Unit test support
python3
build-essential
cmake
$ pip install -r requirements.txt
$ sh run.dev.sh
http://localhost:5001/v1/apidocs-ui
$ sh run.prod.sh
$ python -m unittest tests.controllers.recognition
$ python -m unittest tests.services.recognition
# To build the image and up the container
$ docker-compose up --detach
# To stop the container
$ docker-compose down