FaceRecognition - React-Native
This demo app demonstrates face recognition and face liveness detection by mitigating biometric fraud based on React-Native framework for both Android and iOS.
Last updated
This demo app demonstrates face recognition and face liveness detection by mitigating biometric fraud based on React-Native framework for both Android and iOS.
Last updated
The demo project demonstrates both Face Liveness Detection and Face Recognition Technology.
It stands for face recognition React-Native, facial recognition React-Native, face liveness check React-Native, spoofing prevention React-Native, face matching React-Native, face comparison React-Native, face search engine React-Native, face identification React-Native.
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:
Run the following commands:
Android
Copy the SDK (libfacesdk
folder) to the android
folder of your project.
Add SDK to the project in settings.gradle
.
Activate the FaceSDKModule
by calling the setActivation
method:
Initialize the FaceSDKModule
by calling the initSDK
method:
Set parameters using the setParam
method:
Extract faces using the extractFaces
method:
Calculate similarity between faces using the similarityCalculation
method:
To build the native camera screen and process face detection, please refer to the example/src/FaceRecognitionPage.tsx file in the repository.
To obtain the face detection results, use the following code:
To start and stop the camera, use the following code: