Here i have added face recognition code in a flask app. The Face app contains registration, training model and recognition where each having a separate end point.
To access the endpoints please follow cUrls-
For Respiration-
curl -X POST \
http://127.0.0.1:5000/upload \
-H 'cache-control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-H 'postman-token: 2bf86477-f928-9ff2-d677-9b42a802e381' \
-F file=@WIN_20220123_00_56_49_Pro.jpg \
-F id=jp
For training-
curl -X POST \
http://127.0.0.1:5000/train \
-H 'cache-control: no-cache' \
-H 'postman-token: 374826ca-15b5-7508-5052-f3ec43b1ca07'
For Recognition-
curl -X POST \
http://127.0.0.1:5000/recognize \
-H 'cache-control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-H 'postman-token: 4183a550-5278-a7fe-c618-f100d164c7f8' \
-F file=@WIN_20220123_00_57_28_Pro.jpg
No comments:
Post a Comment