Skip to main content

Veritran Docs

Face Capture

This function obtains a face image that is suitable to be verified.

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

2

Input Registers

Register

Description

Mandatory

Value

390

Face Capture's Parameters

No

Parameters in JSON format. For example:

{ 
   'cameraFacing':'CAMERA_FACING_FRONT',
   'cameraPreviewScaleType':'CENTER_INSIDE'
}

Note

To learn more about the parameters you can use for this function, refer to the Innovatrics' developers documentation. Please note that this is a third-party documentation site.

391

Captured Image ID

No

ID where the captured image is stored. By default, the ID is "faceCapture".

392

Compression Percentage

No

Values go from 0 to 100, being 0 the maximum compression, and 100 being no compression. The default value is 70.

393

Quality Providers

No

List of quality providers separated by a comma. If you want to add new quality providers, you need to add POSITION, PROXIMITY, LIGHT, and FACE_CONFIDENCE.

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

004

INTERRUPTED

005

CAMERA_INIT_FAILED

006

CAMERA_ACCESS_FAILED

007

NO_CAMERA_PERMISSION

014

COMPRESSION_PARAMETER_NOT_IN_RANGE. Only available for iOS.