Liveness Detection iOS SDK
Face Liveness Detection iOS SDK
Code
Setup
Copy
facesdk.framework
directory to theroot
folder of your project.Add
SDK framework
to the project inXcode
Add
FaceDemo-Bridging-Header.h
to Build Settings
APIs
setActivation: This API is used to activate the SDK
Input |
|
Return value | The SDK activation status code.
|
initSDK: This API is used to initialize the SDK
Input | None |
Return value | The SDK initialization status code.
|
faceDetection: This API is used to detect faces and determine if the faces are real or fake
Input |
|
Return value | An array of FaceBox objects representing the detected faces and their liveness scores. |
FaceBox
The liveness score ranges from 0.0 to 1.0
If it's greater than the threshold, it's real face
Last updated