Our facial recognition algorithm is globally top-ranked by NIST in the FRVT 1:1 leaderboards. 
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
FaceRecognition-Flutter
Overview
This repository demonstrates both face liveness detection and face recognition technology for Flutter on Android and iOS platforms.
In this repository, we integrated
KBY-AI'sface liveness detectionandface recognitiontechnology into thisFlutterproject for bothAndroidandiOS.◾FaceSDK(Mobile) Details
| 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 |
◾FaceSDK(Mobile) Product List
| 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 |
| ➡️ | Face Recognition + Face Liveness Detection - Flutter | Standard SDK |
| 6 | Face Recognition + Face Liveness Detection - Ionic-Cordova | Standard SDK |
| 7 | 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.
Try with Demo App
Google Play
App Store
Performance Video
You can visit our YouTube video here to see how well our demo app works.

Screenshots
SDK License
This repo integrated KBY-AI's face recognition SDK, which requires a license for each application ID.
-
The code below shows how to use the license: https://github.com/kby-ai/FaceRecognition-Flutter/blob/76f1982ed301e219d864f22b584e9e34222464ea/lib/main.dart#L68-L90
-
To request a license, please contact us: 🧙
Email:[email protected] 🧙Telegram:@kbyaisupport 🧙WhatsApp:+19092802609 🧙Discord:KBY-AI 🧙Teams:KBY-AI
How To Run
1. Flutter Setup
Make sure you have Flutter installed.
We have tested the project with Flutter version 3.35.7.
If you don't have Flutter installed, please follow the instructions provided in the official Flutter documentation here.
2. Running the App
Run the following commands:
flutter clean
flutter pub get
flutter run
If you plan to run the iOS app, please refer to the following link for detailed instructions.
3. Building the APK for Release
To create a release APK, configure ProGuard as described in this file:https://github.com/kby-ai/FaceRecognition-Flutter/blob/76f1982ed301e219d864f22b584e9e34222464ea/android/app/proguard-rules.pro#L22-L22
About SDK
1. Setup
1.1 Setting Up Face SDK library
Android
-
Copy the
Face SDKlibrary(folderlibfacesdk) to the folderandroidin your project. -
Add
Face SDKlibrary to the project insettings.gradlein the folderandroidin your project.include ':libfacesdk'1.2 Setting Up Fotoapparat library
Android
-
Copy
Fotoapparatlibrary (folderlibfotoapparat) to the folderandroidin your project. -
Add
Fotoapparatlibrary to the project insettings.gradlein the folderandroidin your project.include ':libfotoapparat'1.3 Setting Up Face SDK Plugin
-
Copy the folder
facesdk_pluginto the root folder of your project. -
Add the dependency in your
pubspec.yamlfile.facesdk_plugin: path: ./facesdk_plugin -
Import the
facesdk_pluginpackage.import 'package:facesdk_plugin/facesdk_plugin.dart'; import 'package:facesdk_plugin/facedetection_interface.dart';2 API Usages
2.1 Facesdk Plugin
-
Activate the
FacesdkPluginby calling thesetActivationmethod:final _facesdkPlugin = FacesdkPlugin(); ... await _facesdkPlugin .setActivation( "Os8QQO1k4+7MpzJ00bVHLv3UENK8YEB04ohoJsU29wwW1u4fBzrpF6MYoqxpxXw9m5LGd0fKsuiK" "fETuwulmSR/gzdSndn8M/XrEMXnOtUs1W+XmB1SfKlNUkjUApax82KztTASiMsRyJ635xj8C6oE1" "gzCe9fN0CT1ysqCQuD3fA66HPZ/Dhpae2GdKIZtZVOK8mXzuWvhnNOPb1lRLg4K1IL95djy0PKTh" "BNPKNpI6nfDMnzcbpw0612xwHO3YKKvR7B9iqRbalL0jLblDsmnOqV7u1glLvAfSCL7F5G1grwxL" "Yo1VrNPVGDWA/Qj6Z2tPC0ENQaB4u/vXAS0ipg==") .then((value) => facepluginState = value ?? -1); -
Initialize the
FacesdkPlugin:await _facesdkPlugin .init() .then((value) => facepluginState = value ?? -1) -
Set parameters using the
setParammethod:await _facesdkPlugin .setParam({'check_liveness_level': livenessLevel ?? 0}) -
Extract faces using the
extractFacesmethod:final faces = await _facesdkPlugin.extractFaces(image.path) -
Calculate the similarity between faces using the
similarityCalculationmethod:double similarity = await _facesdkPlugin.similarityCalculation( face['templates'], person.templates) ?? -1;2.2 FaceDetectionInterface
To build the native camera screen and process face detection, please refer to the lib/facedetectionview.dart file in the repository.
This file contains the necessary code for implementing the camera screen and performing face detection.