3.2 OnLivenessListener

void onInitialized()

SDK initialization is complete.

void onFaceStatusChanged(int facePosition, final FaceOcclusion faceOcclusion, int faceDistance, LightIntensity int lightIntensity)

Update alignment status.

Parameter

Description

facePosition

Detected face position

faceOcclusion

Detected face occlusion information

faceDistance

Detected face distance

LightIntensity

Detected light Intensity

Return value

Description

None

None

void onFailure(ResultCode errorCode, byte[] protobufData, List images, List faceRects)

Failed liveness detection.

Parameter

Description

errorCode

Error code

protobufData

The encrypted file returned by detection

images

Pictures returned by detection

faceRects

Position information of the face frame in the detection result picture

Return value

Description

None

None

void onSuccess(byte[] protobufData, List images, List faceRects)

Successful liveness detection.

Parameter

Description

protobufData

The encrypted file returned by detection

images

Pictures returned by detection

faceRect

Position information of the face frame in the detection result picture

Return value

Description

None

None

Last updated