/test-vision-systems

Backend to detect faces on image and compare to existing faces in db to find the same one

Primary LanguagePython

Установка

git clone 
cd test-vision-systems
docker-compose up -d

Использование

Endpoint 1 - /api/v1/face/detection

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]
        ]
    }
]

Endpoint 2 - /api/v1/face/comparison

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
}