$ git clone https://github.com/guesswh0/face_comparison.git
$ pip3 install -r requirements.txt
To use default models:
- Install dlib (requires cmake):
$ pip install dlib
- Fetch model pre-trained files:
$ fetch_models
To use custom models, configure .env
.
flask run
To deploy see flask deployment options
Sample Call:
curl -X POST [host:port]/api/compare_faces \
-F source=@face_image1.jpg \
-F target=@face_image2.jpg