FaceAttribute - Flutter
This Flutter demo app demonstrates face recognition, face liveness detection, face auto-capture, age/gender detection, automatic face capture, face quality facial occlusion, eye closure.
Last updated
This Flutter demo app demonstrates face recognition, face liveness detection, face auto-capture, age/gender detection, automatic face capture, face quality facial occlusion, eye closure.
Last updated
This demo project integrates several facial recognition technologies, including 3D passive face liveness detection, face recognition, automatic face capture, and analysis of various face attributes such as age, gender, face quality, facial occlusion, eye closure, and mouth opening.
The system utilizes face liveness detection technology to generate a real-time liveness score based on a single image captured by the camera.
Additionally, the demo offers face recognition capabilities, enabling enrollment from a gallery and real-time identification of faces captured by the camera.
The demo also features an automatic face capture function that verifies various facial attributes, such as face quality, facial orientation (yaw, roll, pitch), facial occlusion (e.g., mask, sunglass, hand over face), eye closure, mouth opening, and the position of the face within the region of interest (ROI).
Make sure you have Flutter installed.
We have tested the project with Flutter version 3.22.3
.
If you don't have Flutter
installed, please follow the instructions provided in the official Flutter
documentation:
Run the following commands:
If you plan to run the iOS app, please refer to the following link for detailed instructions:
Android
Copy the SDK (libfacesdk
folder) to the android
folder in your project.
Add SDK to the project in settings.gradle
Copy facesdk_plugin
folder to the root folder of your project.
Add the dependency in pubspec.yaml
file.
Import the facesdk_plugin
package.
Activate the FacesdkPlugin
by calling the setActivation
method:
Initialize the FacesdkPlugin
:
Set parameters using the setParam
method:
Extract face feature 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 following file in the Github repository.
This file contains the necessary code for implementing the camera screen and performing face detection.