Skip to content

MiniAiLive/FaceLivenessDetection-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face Liveness Detection Android SDK

MiniAiLive Logo

Welcome to the MiniAiLive!

Upgrade your Android app with MiniAiLive's 3D Passive Face Liveness Detection! With our advanced computer vision techniques, you can now enhance security and accuracy on your Android platform. Check out our latest repository containing a demonstration of 2D & 3D passive face liveness detection (face anti-spoofing) capabilities. Try it out today!

Note

SDK is fully on-premise, processing all happens on hosting server and no data leaves server.

Latest Face LivenessDetection SDK Download Link Here

Face LivenessDetection APK

Liveness Test Results

Test4 Test5 Test2 Test3 Test1



Passive.Liveness.Detection.App.mp4

Request license

Feel free to Contact US to get a trial License. We are 24/7 online on WhatsApp.

SDK License

This project uses MiniAiLive's liveness detection SDK. The SDK requires a license per application ID.

  • The code below shows how to use the license:
var ret = FaceSDK.setActivation(
            "amDMEN2mo3JxYzYk5QWixuN5J45EpOYzPbUIzt+sMpw1zqbXPEE672e/r6RZFMsCsaqHb+vTi0UxuFmc" + 
                 "T/E78V2jjH0XAxRbI7GcIq3kg4rqz9YRZ5or9cwioSyT999iK02j1zCn4FEGqt6ufEGSqTsKEqGYMif2vMsqG" + 
                 "yN0GBNNk/yARzchJbElKkCRzkYlWRhThhK8BLPeZCQYPGif6ssQIM55/4EOTzwN4BHzyajYuzAOBBSedveC2I+" + 
                 "HyvSE9q+bpLmn+oMf0ZoUaMCmM6AUB2VXE1/uE0+IrhgWaXeCGqDJ6AOihm0QMqHdnf0Ks7qFcpg/zAYppeJlyd6tMw=="
        )

About SDK

Set up

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

  2. Add SDK to the project in settings.gradle.

include ':libfacesdk'
  1. 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

Face & IDSDK Online Demo, Resources

Our Products

Face Recognition SDK

No Project Features
1 FaceRecognition-SDK-Docker 1:1 & 1:N Face Matching SDK
2 FaceRecognition-SDK-Windows 1:1 & 1:N Face Matching SDK
3 FaceRecognition-SDK-Linux 1:1 & 1:N Face Matching SDK
4 FaceRecognition-LivenessDetection-SDK-Android 1:1 & 1:N Face Matching, 2D & 3D Face Passive Liveness Detection SDK
5 FaceRecognition-LivenessDetection-SDK-iOS 1:1 & 1:N Face Matching, 2D & 3D Face Passive Liveness Detection SDK
6 FaceRecognition-LivenessDetection-SDK-CPP 1:1 & 1:N Face Matching, 2D & 3D Face Passive Liveness Detection SDK
7 FaceMatching-SDK-Android 1:1 Face Matching SDK
8 FaceAttributes-SDK-Android Face Attributes, Age & Gender Estimation SDK

Face Liveness Detection SDK

No Project Features
1 FaceLivenessDetection-SDK-Docker 2D & 3D Face Passive Liveness Detection SDK
2 FaceLivenessDetection-SDK-Windows 2D & 3D Face Passive Liveness Detection SDK
3 FaceLivenessDetection-SDK-Linux 2D & 3D Face Passive Liveness Detection SDK
4 FaceLivenessDetection-SDK-Android 2D & 3D Face Passive Liveness Detection SDK
5 FaceLivenessDetection-SDK-iOS 2D & 3D Face Passive Liveness Detection SDK

ID Document Recognition SDK

No Project Features
1 ID-DocumentRecognition-SDK-Docker ID Document, Passport, Driver License, Credit Card, MRZ Recognition SDK
2 ID-DocumentRecognition-SDK-Windows ID Document, Passport, Driver License, Credit Card, MRZ Recognition SDK
3 ID-DocumentRecognition-SDK-Linux ID Document, Passport, Driver License, Credit Card, MRZ Recognition SDK
4 ID-DocumentRecognition-SDK-Android ID Document, Passport, Driver License, Credit Card, MRZ Recognition SDK

ID Document Liveness Detection SDK

No Project Features
1 ID-DocumentLivenessDetection-SDK-Docker ID Document Liveness Detection SDK
2 ID-DocumentLivenessDetection-SDK-Windows ID Document Liveness Detection SDK
3 ID-DocumentLivenessDetection-SDK-Linux ID Document Liveness Detection SDK

Web & Desktop Demo

No Project Features
1 FaceRecognition-IDRecognition-Playground-Next.JS FaceSDK & IDSDK Playground
2 FaceCapture-LivenessDetection-Next.JS Face Capture, Face LivenessDetection, Face Attributes
3 FaceMatching-Windows-App 1:1 Face Matching Windows Demo Application

About MiniAiLive

MiniAiLive is a leading AI solutions company specializing in computer vision and machine learning technologies. We provide cutting-edge solutions for various industries, leveraging the power of AI to drive innovation and efficiency.

Contact US

For any inquiries or questions, please contact us on WhatsApp.

www.miniai.livewww.miniai.live

About

3D Passive Face Liveness Detection! Supports Face Detection, Face Matching, Face Analysis, Face Sentiment, Face Alignment, Face Identification && Face Verification && Face Representation; Face Reconstruction; Face Tracking; Face Super-Resolution on Android

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors