Skip to main content

Veritran Docs

Face Detector

This function provides face detection for an image.

Parameter Configuration

This function doesn't require the configuration of any mandatory parameters. Read Input Registers to learn about any optional parameters you can configure.

Function ID

Register

Value

110

4

Input Registers

Register

Description

Mandatory

Value

390

Max. number of faces to detect

No

The default number is 5, and the max. number is 10.

391

ID that stores the image to be analyzed

No

The default ID is "documentAutocapture".

Output Registers

Register

Description

Value

112

Call Result

000

NO_ERROR

001

API_GENERIC_ERROR

002

API_WRONG_PARAMETERS_ERROR

003

API_SDK_NOT_INITIALIZED

012

NO_FACES_DETECTED

290

Json that contains data from a face detected in an image

<<JSONObject>>. At the end of the json file, there is an "image identifier" field from where you can obtain the ID where the analyzed image is stored.

Note

If more faces are detected in the image, the results will be stored in an output parameter that ranges between 291 and 299. If no faces are detected, the result will be the 012 response, as shown in the table above.