Liveness processing

Allows you to start liveness processing:

Swift
Objective-C
Swift
Face.service.startLiveness(from: self, animated: true) { (livenessResponse: LivenessResponse?) in
print(livenessResponse)
} completion: {
// do smth
}
Objective-C
[RGLFace.service startLivenessFrom:self animated:YES onLiveness:^(RGLLivenessResponse * _Nonnull livenessResponse) {
NSLog(@"%@", livenessResponse);
} completion:^{
// do smth
}];

There is a possibility to stop liveness processing programmatically:

Swift
Objective-C
Swift
Face.service.stopLivenessProcessing()
Objective-C
[RGLFace.service stopLivenessProcessing];

Response

LivenessResponse
└── image
└── liveness
└── error

Parameter

Description

image

Image

liveness

Liveness result, one of LivenessStatus enum values

error

Error