iLive Docs
API ReferenceFace Services

Compare Faces

Compare the largest face in each image. Returns similarity and is_match.

POST
/api/v2/faces:compare
/api/v2/faces:compare

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

multipart/form-dataRequired

source_image
Required
Source Image

First face image

Format: "binary"

target_image
Required
Target Image

Second face image

Format: "binary"

thresholdThreshold

curl -X POST "https://docs.localhost:8543/api/v2/faces:compare" \
  -H "Authorization: Bearer <token>" \
  -F source_image="string" \
  -F target_image="string" \
  -F threshold="0"

Successful Response

{
  "similarity": 0,
  "is_match": true,
  "threshold": 0,
  "source_face": {
    "left": 0,
    "top": 0,
    "width": 0,
    "height": 0
  },
  "target_face": {
    "left": 0,
    "top": 0,
    "width": 0,
    "height": 0
  }
}