Liveness Detection iOS SDK
Face Liveness Detection iOS SDK
Last updated
Face Liveness Detection iOS SDK
Last updated
Copy facesdk.framework
directory to the root
folder of your project.
Add SDK framework
to the project in Xcode
Add FaceDemo-Bridging-Header.h
to Build Settings
Input
license (NSString*): The license string
Return value
The SDK activation status code.
0: Success
Non-zero: Activation failed
Input
None
Return value
The SDK initialization status code.
0: Success
-1: License Key Error
-2: License AppID Error
-3: License Expired
-4: Activate Error
-5: Initialize SDK Error
Input
image (UIImage*): The input image
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