Skip to main content

/extractFacial

Description

Service that performs face detection and validation from an open or tokenized image.

Request:

curl --location '{IDENTITY_API_BASE_URL}/services/extractFacial' \
--header 'x-api-key: {API_KEY}' \
--header 'Content-Type: application/json' \
--data '{
"tokenBuffer": "{TOKEN_BUFFER}"
}'

Request parameters:

ParameterType (Content)RequiredDescription
tokenBufferString (Base64)YesBase64 encoded or tokenized image for face detection.

Example response:

{
"serviceResultCode": 0,
"serviceResultLog": "Service request successfully processed",
"serviceTime": "864",
"serviceFacialExtractionResult": "{\"faceConfidence\":0.9999948143959045,\"age\":30,\"glasses\":\"None\",\"gender\":\"Male\",\"iod\":154}",
"serviceTransactionId": "b2f6297b-01ca-4aa3-afd7-6cb3c9d74141"
}

Response fields:

IdentifierTypeDescription
serviceResultCodeIntegerCode indicating the overall result of the service execution.
serviceResultLogStringDescriptive field of the result or error message if any.
serviceTimeStringProcessing time of the request.
serviceTransactionIdStringTransaction ID associated with the request processed by the API.
serviceFacialExtractionResultJSONObject representing face detection and validation.
    ageIntegerIndicates the possible detected age.
    glassesStringIndicates glasses detection. Possible values: Eye, None, Sun
    genderStringReturns detected gender. Possible values: Male, Female, None
    iodIntegerIndicates interpupillary distance.
    faceConfidenceFloatIndicates the confidence level of the evaluated face.
caution

Please note that all values returned are estimates based on the facial image provided. Actual accuracy and reliability may vary depending on the quality and characteristics of the input image.