An open API service indexing awesome lists of open source software.

https://github.com/faceplugin-ltd/facerecognition-android

Face recognition SDK Android with 3D passive face liveness detection (Face Detection, Face Landmarks, Face Recognition, Face Liveness, Face Pose, Face Expression, Face attributes)
https://github.com/faceplugin-ltd/facerecognition-android

age-estimation anti-spoofing biometric-authentication deep-learning ekyc eye-detection face-anti-spoofing face-anti-spoofing-sdk face-landmark-detection face-liveness-detection face-liveness-detection-sdk face-recognition face-recognition-sdk fraud-detection fraud-prevention gender-recognition identity-verification liveness-detection machine-learning nist-database

Last synced: 21 days ago
JSON representation

Face recognition SDK Android with 3D passive face liveness detection (Face Detection, Face Landmarks, Face Recognition, Face Liveness, Face Pose, Face Expression, Face attributes)

Awesome Lists containing this project

README

        



#### Hugging Face - [Here](https://huggingface.co/spaces/FacePlugin-Ltd/FaceRecognition-LivenessDetection-SDK)
#### Documentation- [Here](https://doc.faceplugin.com)

# Face Recognition SDK Android with 3D Passive Liveness Detection - Fully On Premise
## Overview
Explore `face recognition SDK` from [Faceplugin](https://faceplugin.com/) Top-ranked on NIST FRVT , coupled with an advanced `iBeta level 2 liveness detection` engine that effectively safeguards against **printed photos, video replay, 3D masks, and deepfake threats**, ensuring top-tier security.

This is `on-premise face recognition SDK` which means everything is processed in your phone and **NO** data leaves the device.

## Try this APP on Google Play





Awesome Badge
Star Badge
issue
pr

## Screenshots






## On the Youtube



Watch the video

## Install License
The code below shows how to use the license: https://github.com/Faceplugin-ltd/FaceRecognition-Android/blob/370ecadae564788eaa84f288e342da742fde0c1a/app/src/main/java/com/faceplugin/facerecognition/MainActivity.kt#L30-L45

Please [contact us](#contact) to get the license.

## Documentation

Setup


Copy the SDK (`libfacesdk` folder) to the `root` folder in your project.

Add SDK to the project in `settings.gradle`

```
rootProject.name = "YourProjectName"
include ':app'
include ':libfacesdk'
```
Add dependency to your build.gradle

```
implementation project(path: ':libfacesdk')
```

APIs


Activate SDK using license

```java
public static native int setActivation(java.lang.String s);
```

Init model for face recognition and liveness detection

```java
public static native int init(AssetManager var0);
```

Convert camera frame in YUV to Bitmap

```java
public static native Bitmap yuv2Bitmap(byte[] var0, int var1, int var2, int var3);
```

Run face recognition and liveness detection

```java
public static native List faceDetection(Bitmap var0, FaceDetectionParam var1);
```

Extract feature vector for the enrollment

```java
public static native byte[] templateExtraction(Bitmap var0, FaceBox var1);
```

Calculate cosine similarity for the matching

```java
public static native float similarityCalculation(byte[] var0, byte[] var1);
```

SDK Codes



| Code | Status |
|:------:|------|
|0|Activate SDK successfully|
|-1|Invalid License Key |
|-2|Invalid AppID |
|-3|Expired License Key|
|-4|Activation Failed|
|-5|SDK Failed|

Classes


FaceResult

| Type | Name | Description |
|------------------|------------------|------------------|
| Rect | rect | Bounding box for face |
| int | liveness | Liveness status: 0 for spoof, 1 for real, less than 0 for unknown |
| int | gender | Gender classification result |
| int | mask | Mask presence: 0 for no mask, 1 for mask |
| int | age | Age estimation result |
| float | yaw | Yaw angle: -45 to 45 degrees |
| float | roll | Roll angle: -45 to 45 degrees |
| float | pitch | Pitch angle: -45 to 45 degrees |
| byte[] | feature | 2056-byte facial feature data |
| byte[] | faceData | Encrypted facial data |
| int | orient | Face orientation: 1 for no rotation, 2 for 90° rotation, 3 for 270° rotation, 4 for 180° rotation |
| int | faceId | Face ID in the tracking face mode |

```java
public class FaceResult {
public Rect rect;
public int liveness;
public int gender;
public int mask;
public int age;
public float yaw;
public float roll;
public float pitch;
public byte[] feature;
public byte[] faceData;
public int orient;
public int faceId;

public FaceResult() {
}
}
```

Here's our official [document](https://doc.faceplugin.com/)

## List of our Products

* **[Face Recognition with Liveness Detection-Android (Java, Kotlin)](https://github.com/Faceplugin-ltd/FaceRecognition-Android)**
* **[Face Recognition with Liveness Detection-iOS (Objective C, Swift)](https://github.com/Faceplugin-ltd/FaceRecognition-iOS)**
* **[Face Recognition with Liveness Detection-React Native](https://github.com/Faceplugin-ltd/FaceRecognition-React-Native)**
* **[Face Recognition with Liveness Detection-Flutter](https://github.com/Faceplugin-ltd/FaceRecognition-Flutter)**
* **[Face Recognition with Liveness Detection-Ionic Cordova](https://github.com/Faceplugin-ltd/FaceRecognition-Ionic-Cordova)**
* **[Face Recognition with Liveness Detection-.Net MAUI](https://github.com/Faceplugin-ltd/FaceRecognition-.Net)**
* **[Face Recognition with Liveness Detection-.Net WPF](https://github.com/Faceplugin-ltd/FaceRecognition-WPF-.Net)**
* **[Face Recognition with Liveness Detection-Javascript](https://github.com/Faceplugin-ltd/FaceRecognition-LivenessDetection-Javascript)**
* **[Face Recognition with LivenessDetection-React](https://github.com/Faceplugin-ltd/FaceRecognition-LivenessDetection-React)**
* **[Face Recognition with LivenessDetection-Vue](https://github.com/Faceplugin-ltd/FaceRecognition-LivenessDetection-Vue)**
* **[Face Liveness Detection-Android (Java, Kotlin)](https://github.com/Faceplugin-ltd/FaceLivenessDetection-Android)**
* **[Face Liveness Detection-iOS (Objective C, Swift)](https://github.com/Faceplugin-ltd/FaceLivenessDetection-iOS)**
* **[Face Liveness Detection-Linux](https://github.com/Faceplugin-ltd/FaceLivenessDetection-Linux)**
* **[Face Liveness Detection-Docker](https://github.com/Faceplugin-ltd/FaceLivenessDetection-Docker)**
* **[Open Source Face Recognition SDK](https://github.com/Faceplugin-ltd/Open-Source-Face-Recognition-SDK)**
* **[Face Recognition SDK](https://github.com/Faceplugin-ltd/Face-Recognition-SDK)**
* **[Liveness Detection SDK](https://github.com/Faceplugin-ltd/Face-Liveness-Detection-SDK)**
* **[Palm Recognition SDK](https://github.com/Faceplugin-ltd/Palm-Recognition)**
* **[ID Card Recognition](https://github.com/Faceplugin-ltd/ID-Card-Recognition)**
* **[ID Document Liveness Detection](https://github.com/Faceplugin-ltd/ID-Document-Liveness-Detection)**

## Contact


faceplugin.com
faceplugin.com
faceplugin.com