Adapt Face

To perform an adaption to the user’s biometric face sample registered on the engine, the method to be used is Adapt Face. Similar to the face verification process, this method is expecting a user’s face sample. In case of success, the system will replace the face registry by the new sample provided and respond that this process is complete with success. In case of failure, it’s necessary to repeat this process until the adaption process is completed with success.

Adapt Face

POST Https://api.biometrid.com/api/1.0/users/:userId/dialogue/adapt/face

Adapt User's face enroll on provider.

Path Parameters

Name
Type
Description

userID

string

BiometrID user ID

Headers

Name
Type
Description

Content-type

string

Request content type (This is not required to be set. Referenced only to show how we expect data to be sent). { "Content-Type": "multipart/form-data" }

x-biometrid-key

string

Application Client Key

x-biometrid-secret

string

Application Client Secret

Request Body

Name
Type
Description

liveness

boolean

Optional liveness state flag. For now, just implemented on the biometrid SDK.

photo

object

Image file containing user's face for biometric analysis. File format: jpeg, png or jpg. Maximum file size 1 Mb.

HTTP/1.1 200 OK
//Adapt Face
{
    "status": true,
    "data": {
      "message": "FACE_ADAPTED_WITH_SUCCESS",
      "adapted": true,
      "faceImg" 'http://static.findface.pro/uploads/5836b930a43d246605076eb8(...).jpg'
    }
}

//Adapt Face Failed
{
    "status": false,
    "data": {
        "message": "FACE_ADAPT_FAILED",
        "reason": "No faces found on 'photo'"
      }
}

//Adapt Face Failed
{
    "status": false,
    "data": {
        "message": "FACE_NOT_REALIABLE_TO_ADAPT",
        "alreadyExists": false
      }
}
Example (JSON)
{
    "photo": face.jpeg
    "liveness": true
}

Last updated

Was this helpful?