BWS 3 Face Recognition is in preview now!
Performs a one-to-one comparison of the uploaded face image with a stored biometric template in order to verify whether the individual is the person he or she claims to be.
POST /api/face/v1/verify/{classId}
classId
The HTTP request body contains the image to verify.
Content type: application/json
{
"image": "string"
}
The base64 encoded facial image to verify.
The maximum API request size is 50 MB
.
This API requires a valid JWT in the Authorization request header and accepts an optional reference number.
Authorization | Required Bearer authentication. Please refer to BWS API Authentication for a description of how to provide a valid JWT here. |
Reference-Number | Optional, client specific reference number, which will be added to the BWS bookkeeping as well as to the response header. You typically use this reference to link the resulting BWS bookkeeping entries with your logs. |
Content type: application/json
{
"status": "SUCCEEDED",
"errors": [
{
"errorCode": "string",
"message": "string"
}
],
"imageProperties": {
"rotated": 0,
"faces": [
{
"leftEye": {
"x": 0,
"y": 0
},
"rightEye": {
"x": 0,
"y": 0
},
"textureLivenessScore": 0,
"motionLivenessScore": 0,
"movementDirection": 0
}
],
"qualityScore": 0,
"qualityAssessments": [
{
"check": "string",
"score": 0,
"message": "string"
}
],
"frameNumber": 0
},
"verified": true,
"score": 0
}
On success the API returns an Verification response object with the fields as follows:
status
errors
imageProperties
verified
true
, when the person specified by the given class ID could have been verified successfully with the given sample;
false
otherwise, or when errors occurred (see errors
for details).
score
The calculated verification score (a value between 0.0 and 1.0) that led to the verified
decision.
The higher the score, the more likely the face in the image and the template referenced by the class ID belong to the same person.
In case that the verified
field is set to false
, some errors
might have been reported:
The call returns one of the standard HTTP status codes, e.g.:
code
and message
.All successful BWS calls return a response header containing additional information about the request:
jobid | The Job-ID (a GUID) that has been assigned to this BWS call. |
bws-version | The version of the BWS gRPC service. |
reference-number | An optional reference number as provided in the request header. |
date | The timestamp when the request has been received at the server. |
... | Other headers that might have been added by the server (NGINX, Kestrel, ...) that was handling the request. |