Установка
git clone
cd test-vision-systems
docker-compose up -d
Использование
/api/v1/face/detection
Endpoint 1 - request:
curl -X POST -F \
"image=@/home/user/image.jpg" \
http://0.0.0.0:5000/api/v1/face/detection
response - HTTP 200 OK
[
{
"bounding_box": [0, 0, 100, 100],
"landmarks": [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
]
},
{
"bounding_box": [0, 0, 100, 100],
"landmarks": [
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]
]
}
]
/api/v1/face/comparison
Endpoint 2 - request:
curl -X POST -F \
"image=@/home/user/image.jpg" \
http://0.0.0.0:5000/api/v1/face/comparison
response - HTTP 200 OK
{
"faces": 2,
"matches": 1
}