API Reference
setActivation
Name
setActivation
Description
Activate SDK
Input
license (NSString*): The license string
Output
The SDK activation status code.
0: Success
Non-zero: Activation failed
initSDK
Name
initSDK
Description
Initiate SDK
Input
None
Output
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
faceDetection
Name
faceDetection
Description
Detect Face
Input
image (UIImage*): The input image
Output
An array of FaceBox objects representing the detected faces.
FaceBox
The liveness score ranges from 0.0 to 1.0 Default Liveness Threshold is 0.7
templateExtraction
Name
templateExtraction
Description
Extract face feature
Input
image (UIImage*): The input image
faceBox (FaceBox*): The bounding box of the detected face
Output
A NSData representing the extracted template from the face
similarityCalculation
Name
similarityCalculation
Description
Calculate similarity between two face features
Input
templates1 (NSData*): The first face template
templates2 (NSData*): The second face template
Output
A float value representing the similarity score between the two face templates The score ranges from 0.0 to 1.0 Default Threshold is 0.8
Last updated