3.3 STSilentLivenessDetectorDelegate

STSilentLivenessDetectorDelegate class encapsulates the delegate methods that need to be called to perform silent liveness detection.

- (void)silentLivenessSuccessWithProtobufData:(NSData )protobufData images:(NSArray )images faceRects:(NSArray *)faceRects;

Callback for successful liveness detection.

Parameter

Description

protobufData

Return encrypted binary data

images

Return STSilentImage array according to the specified output scheme. Refer to STSilentImage.h for STSilentImage properties.

faceRects

Return STSilentRect array according to thespecified output scheme. Refer to STSilentRect.h for STSilentRect properties.

Return value

Description

None

None

- (void)silentLivenessFailureWithErrorCode:(STIDSilentLivenessResult)livenessResult protobufData:(NSData )protobufData images:(NSArray )images faceRects:(NSArray *)faceRects;

Callback for liveness detection failure.

Parameter

Description

livenessResult

Run result

protobufData

Return encrypted binary data

images

Return STSilentImage array according to the specified output scheme. Refer to STSilentImage.h for STSilentImage properties.

faceRects

Return STSilentRect array according to the specified output scheme. Refer to STSilentRect.h for STSilentRect properties.

Return value

Description

None

None

- (void)silentLivenessFaceStatusChangedWithFaceDistance:(STIDSilentLivenessFaceDistanceStatus)faceDistance facePosition:(STIDSilentLivenessFacePositionStatus)facePosition faceOcclusion:(STSilentLivenessFace *)faceOcclusion;

Face status during liveness detection.

Parameter

Description

faceDistance

Face distance

facePosition

Face position

faceQuality

Face Quality

faceOcclusion

Face occlusion properties

Return value

Description

None

None

Last updated