Face Recognition React Native SDK
Explore face recognition SDK React Native Plugin from Faceplugin Top-ranked on NIST FRVT , coupled with an advanced iBeta level 2 liveness detection engine that effectively safeguards against printed
Code
How to Run
1. Set Up React-Native Development Environment
You can refer to React Native official document to setup enviroment.
2. How to run Android App
3. How to run the iOS App
And then, open the FaceRecognitionReactNative.xcworkspace in Xcode and run.
4. Install license
This code shows how to use the license
API Usage
1. FaceSDKModule
Activate the FaceSDKModule
Call the setActivation method:
Initialize the FaceSDKModule
Call the initSDK method:
Set Parameters
Use the setParam method to configure settings:
Extract Faces
Use the extractFaces method to detect and extract faces from an image:
Calculate Face Similarity
Compare two face templates using the similarityCalculation method:
2. Working with camera stream
Build the Camera Screen & Process Face Detection
To implement the native camera and process face detection, refer to the example/src/FaceRecognitionPage.tsx file in the repository.
Get Face Detection Results
Use the following code to listen for face detection events:
Start & Stop the Camera
Start Camera
Stop Camera
Last updated