kby-ai/FaceLivenessDetection-Android
关于
3D passive face liveness detection, face detection, face liveness check, face anti-spoofing, face fraudulent check, face spoof detection, face fraud detection and face analysis on Android.
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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
FaceLivenessDetection-Android
Overview
This repository showcases real-time Face Liveness Detection technology on Android device.
In this repository, we integrated KBY-AI's face liveness(face anti-spoofing) solution into Android platform.
◾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 |
|---|---|---|
| ➡️ | 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 |
| 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 the APK
Google Play
Performance Video
You can visit our YouTube video here to see how well our demo app works.

SDK License
This project uses KBY-AI's liveness detection SDK. The SDK requires a license per application ID.
The code below shows how to use the license: https://github.com/kby-ai/FaceLivenessDetection-Android/blob/f81f001b0a2f65330d2adaabc9b001003af9a112/app/src/main/java/com/kbyai/facelivedemo/CameraActivity.java#L69-L77
To request a license, please contact us:
🧙Email:[email protected]
🧙Telegram:@kbyaisupport
🧙WhatsApp:+1 (334) 840-2323
🧙Discord:KBY-AI Community
About SDK
Set up
Copy the SDK (
libfacesdkfolder) to therootfolder in your project.Add SDK to the project in
settings.gradle.
include ':libfacesdk'
- Add dependency to your
build.gradle.
implementation project(path: ':libfacesdk')
Initializing an SDK
- Step One
To begin, you need to activate the SDK using the license that you have received.
FaceSDK.setActivation("...")
If activation is successful, the return value will be SDK_SUCCESS. Otherwise, an error value will be returned.
- Step Two
After activation, call the SDK's initialization function.
FaceSDK.init(getAssets());
If initialization is successful, the return value will be SDK_SUCCESS. Otherwise, an error value will be returned.
Face Detection and Liveness Detection
The FaceSDK offers a single function for detecting face and liveness detection, which can be used as follows:
FaceSDK.faceDetection(bitmap)
This function takes a single parameter, which is a bitmap object. The return value of the function is a list of FaceBox objects. Each FaceBox object contains the detected face rectangle, liveness score, and facial angles such as yaw, roll, and pitch.
Yuv to Bitmap
The SDK provides a function called yuv2Bitmap, which converts a yuv frame to a bitmap. Since camera frames are typically in yuv format, this function is necessary to convert them to bitmap. The usage of this function is as follows:
Bitmap bitmap = FaceSDK.yuv2Bitmap(nv21, image.getWidth(), image.getHeight(), 7);
The first parameter is an nv21 byte array containing the yuv data.
The second parameter is the width of the yuv frame, and the third parameter is its height.
The fourth parameter is the conversion mode, which is determined by the camera orientation.
To determine the appropriate conversion mode, the following method can be used:
1 2 3 4 5 6 7 8
888888 888888 88 88 8888888888 88 88 8888888888
88 88 88 88 88 88 88 88 88 88 88 88
8888 8888 8888 8888 88 8888888888 8888888888 88
88 88 88 88
88 88 888888 888888
探索相关项目
加载中…