Skip to main content

Veritran Docs

Liveness Check 2

This function runs a liveness check in second mode, where there is a moving or disappearing object on screen.

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

3

Input Registers

Register

Description

Mandatory

Value

390

Liveness Check'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 "livenessCheck2".

392

ID list for every segment's captured images

No

This string contains the IDs where images for all segments are stored. IDs are separated with commas. By defect, the IDs that are used are: livenessCheck21, livenessCheck22, livenessCheck23, livenessCheck24, livenessCheck25, livenessCheck26, livenessCheck27.

393

Segments List

No

This string contains a list of segments that are used during the liveness check, separated with commas. Possible segments to be used are: TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT and BOTTOM_RIGHT.

394

Minimum Segments

No

Numeric value that ranges from 4 to 7 and determines the number of segments that need to be available after the liveness check to be considered valid. Default number is 4, which is the minimum value.

395

Compression Percentage

No

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

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

008

NO_MORE_SEGMENTS

009

EYES_NOT_DETECTED

010

FACE_TRACKING_FAILED

013

LESS_SEGMENTS_THAN_REQUIRED

014

COMPRESSION_PARAMETER_NOT_IN_RANGE. Only available for iOS.

290

Liveness Score