iOS
About SDK
Set up
Copy the SDK (facesdk.framework folder) to the root folder of your project.
Add SDK framework to the project in xcode
Project Navigator -> General -> Frameworks, Libraries, and Embedded Content
Add the bridging header to your project settings
Project Navigator -> Build Settings -> Swift Compiler - General
Initializing an SDK
Step One
To begin, you need to activate the SDK using the license that you have received.
FaceSDK.setActivation("...") If activation is successful, the return value will be SDK_SUCCESS. Otherwise, an error value will be returned.
Step Two
After activation, call the SDK's initialization function.
If initialization is successful, the return value will be SDK_SUCCESS. Otherwise, an error value will be returned.
Face Detection and Liveness Detection
The FaceSDK offers a single function for detecting face and liveness detection, which can be used as follows:
Lines 101 to 113 -> This function takes a single parameter, which is a UIImage object. The return value of the function is a list of FaceBox objects. Each FaceBox object contains the detected face rectangle, liveness score, and facial angles such as yaw, roll, and pitch.
Create Templates
The FaceSDK provides a function that can generate a template from a UIImage. This template can then be used to verify the identity of the individual captured in the image.
Lines 128 to 132 -> The SDK's template extraction function takes two parameters: a UIImage object and an object of FaceBox.
The function returns a Data, which contains the template that can be used for person verification.
Calculation similiarity
The "similarityCalculation" function takes a byte array of two templates as a parameter.
It returns the similarity value between the two templates, which can be used to determine the degree of similarity between the two individuals.
Last updated

