API Reference
setActivation
Name | setActivation |
Description | Activate SDK |
Input |
|
Output | The SDK activation status code.
|
init
Name | init |
Description | Initiate SDK |
Input |
|
Output | The SDK initialization status code.
|
yuv2Bitmap
Name | yuv2Bitmap |
Description | Convert YUV camera frame to Bitmap image |
Input |
1 -> No processing 2 -> Flip horizontally 3 -> Flip horizontally first and then flip vertically 4 -> Vertical flip 5 -> Transpose 6 -> Rotate 90° clockwise 7 -> Horizontal and vertical flip --> Transpose 8 -> Rotate 90° counterclockwise |
Output | A Bitmap object representing the converted image |
faceDetection
Name | faceDetection |
Description | Detect Face |
Input |
|
Output | A list of FaceBox objects representing the detected faces. |
FaceDetectionParam
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 |
|
Output | A byte array representing the extracted template from the face |
similarityCalculation
Name | similarityCalculation |
Description | Calculate similarity between two face features |
Input |
|
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