Flask application to host face recognition model.
- Here
form-dataandform-fileis used to send data. - In authorization header
Bearertoken is used.
curl -X POST http://localhost:8000/register_face \
-H "Authorization: Bearer <your-secret-key>" \
-F "name=John Doe" \
-F "student_id=12345" \
-F "face_image=@face_image.jpg"
curl -X POST http://localhost:8000/check_face \
-H "Authorization: Bearer <your-secret-key>" \
-F "face_image=@face_image.jpg"
gunicorn -w 4 'server:create_app()'