Hugging Face - Here
Open Source FaceSDK- Here
Documentation- Here
Explore our face recognition SDK
Top-ranked on NIST FRVT , coupled with an advanced iBeta level 2 liveness detection
engine that effectively safeguards against printed photos, video replay, 3D masks, and deepfake threats, ensuring top-tier security.
This is on-premise face recognition SDK
which means everything is processed in your phone and NO data leaves the device
The code below shows how to use the license:
Please contact us to get the license.
Copy the SDK (
libfacesdk
folder) to the root
folder in your project.
Add SDK to the project in settings.gradle
rootProject.name = "YourProjectName"
include ':app'
include ':libfacesdk'
Add dependency to your build.gradle
implementation project(path: ':libfacesdk')
public static native int setActivation(java.lang.String s);
public static native int init(AssetManager var0);
public static native Bitmap yuv2Bitmap(byte[] var0, int var1, int var2, int var3);
public static native List<FaceBox> faceDetection(Bitmap var0, FaceDetectionParam var1);
public static native byte[] templateExtraction(Bitmap var0, FaceBox var1);
public static native float similarityCalculation(byte[] var0, byte[] var1);
Code | Status |
---|---|
0 | Activate SDK successfully |
-1 | Invalid License Key |
-2 | Invalid AppID |
-3 | Expired License Key |
-4 | Activation Failed |
-5 | SDK Failed |
Type | Name | Description |
---|---|---|
Rect | rect | Bounding box for face |
int | liveness | Liveness status: 0 for spoof, 1 for real, less than 0 for unknown |
int | gender | Gender classification result |
int | mask | Mask presence: 0 for no mask, 1 for mask |
int | age | Age estimation result |
float | yaw | Yaw angle: -45 to 45 degrees |
float | roll | Roll angle: -45 to 45 degrees |
float | pitch | Pitch angle: -45 to 45 degrees |
byte[] | feature | 2056-byte facial feature data |
byte[] | faceData | Encrypted facial data |
int | orient | Face orientation: 1 for no rotation, 2 for 90° rotation, 3 for 270° rotation, 4 for 180° rotation |
int | faceId | Face ID in the tracking face mode |
public class FaceResult {
public Rect rect;
public int liveness;
public int gender;
public int mask;
public int age;
public float yaw;
public float roll;
public float pitch;
public byte[] feature;
public byte[] faceData;
public int orient;
public int faceId;
public FaceResult() {
}
}
Here's our official document
- FaceRecognition-LivenessDetection-Android
- FaceRecognition-LivenessDetection-iOS
- FaceRecognition-LivenessDetection-Javascript
- FaceLivenessDetection-Android
- FaceLivenessDetection-iOS
- FaceLivenessDetection-Linux
- FaceRecognition-LivenessDetection-React
- FaceRecognition-LivenessDetection-Vue
- Face Recognition SDK
- Liveness Detection SDK
- ID Card Recognition