Face recognition webservice using python sanic
Needs Python 3.5 +
- Install all dependency
$ pip install -r requirements.txt
- Run application
$ python main.py
- Go to train folder then run
python3 train.py
to train all images inside train folder then save all training result to folder model in root dir- Note: this may take sometime to wait train all images to finish.
- Or you can use prebuild model inside folder model instead.
Routes:
* [GET] - `/api/hello` check if api is live
* [POST] - `/api/recognize` to recognize an image and return result as base64 image