Latest NIST FRVT evaluation report 2024-12-20
π ID Document Liveness Detection - Linux - Here 
π€ Hugging Face - Here
π Product & Resources - Here
π Help Center - Here
πΌ KYC Verification Demo - Here
πββοΈ Docker Hub - Here
This repository demonstrates both face liveness detection and face recognition technology for React-Native on Android and iOS platforms.
In this repository, we integrated
KBY-AI'sface liveness detectionandface recognitiontechnology into theReact-Nativeproject for bothAndroidandiOS.
| Basic | π½ Standard | Premium |
|---|---|---|
| Face Detection | Face Detection | Face Detection |
| Face Liveness Detection | Face Liveness Detection | Face Liveness Detection |
| Pose Estimation | Pose Estimation | Pose Estimation |
| Face Recognition | Face Recognition | |
| 68 points Face Landmark Detection | ||
| Face Quality Calculation | ||
| Face Occlusion Detection | ||
| Eye Closure Detection | ||
| Age, Gender Estimation |
| No. | Repository | SDK Details |
|---|---|---|
| 1 | Face Liveness Detection - Android | Basic SDK |
| 2 | Face Liveness Detection - iOS | Basic SDK |
| 3 | Face Recognition + Face Liveness Detection - Android | Standard SDK |
| 4 | Face Recognition + Face Liveness Detection - iOS | Standard SDK |
| 5 | Face Recognition + Face Liveness Detection - Flutter | Standard SDK |
| 6 | Face Recognition + Face Liveness Detection - Ionic-Cordova | Standard SDK |
| β‘οΈ | Face Recognition + Face Liveness Detection - React-Native | Standard SDK |
| 8 | Face Attribute - Android | Premium SDK |
| 9 | Face Attribute - iOS | Premium SDK |
| 10 | Face Attribute - Flutter | Premium SDK |
To get
Face SDK(server), please visit products here.
You can visit our YouTube video here to see how well our demo app works.
The face recognition project relies on KBY-AI's SDK, which requires a license for each application ID.
-
The code below shows how to use the license:
FaceRecognition-React-Native/example/src/MainPage.tsx
Lines 17 to 34 in 170b598
-
To request a license, please contact us:
π§Email:contact@kby-ai.com
π§Telegram:@kbyaisupport
π§WhatsApp:+19092802609
π§Discord:KBY-AI
π§Teams:KBY-AI
Make sure you have React-Native installed.
If you don't have React-Native installed, please follow the instructions provided in the official React-Native documentation here.
Run the following commands:
yarn
cd example
yarn
yarn androidOr you can run build by npm instead of yarn as follows:
npm i
cd example
npm i
npx react-native run-androidRun the following commands:
yarn
cd example
yarn
cd ios
pod install
cd ..
yarn iosPlease open the FaceRecognitionSdkExample.xcworkspace in Xcode and run the app.
Or you can build project by npm instead of yarn as follows:
npm i
cd example
npm i
cd ios
pod install
cd ..
npx react-native run-iosAndroid
- Copy the SDK (folder:
libfacesdk) to the folderandroidin your project path. - Add the SDK to the project in
settings.gradle
include ':libfacesdk'- Activate the
FaceSDKModuleby calling thesetActivationmethod:
var ret = await FaceSDKModule.setActivation("...");
console.log("set activation:", ret);- Initialize the
FaceSDKModuleby calling theinitSDKmethod:
var ret = await FaceSDKModule.initSDK();- Set parameters using the
setParammethod:
var ret = await FaceSDKModule.setParam(checkLivenessLevel);- Extract faces using the
extractFacesmethod:
var faceBoxes = await FaceSDKModule.extractFaces(uri);- Calculate the similarity between faces using the
similarityCalculationmethod:
const similarity = await FaceSDKModule.similarityCalculation(
face.templates,
person.templates
);- To build the native camera screen and process face detection, please refer to the example/src/FaceRecognitionPage.tsx file in the repository.
<FaceRecognitionSdkView style={styles.box} livenessLevel={1} cameraLens={1} />- To obtain the face detection results, use the following code:
const eventEmitter = new NativeEventEmitter(FaceSDKModule);
let eventListener = eventEmitter.addListener('onFaceDetected', (event) => {
setFaces(event);
if (recognized == false) {
identifyPerson(event);
}
});- To start and stop the camera, use the following code:
//Start Camera
const startCamera = async () => {
await FaceSDKModule.startCamera();
}
//Stop Camera
const stopCamera = async () => {
await FaceSDKModule.stopCamera();
}







