Git Product home page Git Product logo

miniailive / miniai-face-recognition-serversdk Goto Github PK

View Code? Open in Web Editor NEW
84.0 4.0 71.0 104.53 MB

iBeta (Level 2) Certified, Single-Image Based Face Liveness Detection (Face Anti Spoofing) Server SDK

Home Page: https://www.miniai.live/

Python 100.00%
face-alignment face-anti-spoofing face-detection face-liveness-detection-sdk face-mask-detection face-matching face-recognition face-tracking faceapi liveness-detection on-premise age-gender-estimation attendence-system authentication biometrics ekyc-verification idv nist-frvt onboarding passive-liveness

miniai-face-recognition-serversdk's Introduction

MiniAiLive Face Liveness Detection Windows SDK

MiniAiLive Logo

Welcome to the MiniAiLive!

A 100% spoofing-prevention rate for both 3D printed and resin facial masks, confirms MiniAiLive® as a leading facial recognition solution for preventing biometric fraud in remote applications, such as online banking, requiring identity verification before granting access to sensitive data or valuable assets. Feel free to use our MiniAI 3D Face Passive Liveness Detection (face anti-spoofing) Windows SDK.

Note

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

Table of Contents

Installation Guide

Prerequisites

  • Python 3.6+
  • Windows
  • CPU: 2cores or more
  • RAM: 4GB or more

Installation Steps

  1. Download the Face Liveness Detection Windows Server Installer:

    Download the Server installer for your operating system from the following link:

    Download the On-premise Server Installer

  2. Install the On-premise Server:

    Run the installer and follow the on-screen instructions to complete the installation.

  3. Request License and Update:

    Run MIRequest.exe file to generate a license request file. You can find it here.

    C:\Users\Dev-1{Your User name}\AppData\Local\MiniAiLive\MiniAiLive-FaceLiveness-WinServer

    Open it, generate a license request file, and send it to us via email or WhatsApp. We will send the license based on your Unique Request file, then you can upload the license file to allow to use. Refer the below images.

  4. Verify Installation:

    After installation, verify that the On-premise Server is correctly installed by checking the task manager:

API Details

Endpoint

  • POST http://127.0.0.1:8092/api/check_liveness Face Liveness Detection API
  • POST http://127.0.0.1:8092/api/check_liveness_base64 Face Liveness Detection API

Request

  • URL: http://127.0.0.1:8092/api/check_liveness
  • Method: POST
  • Form Data:
    • image: The image file (PNG, JPG, etc.) to be analyzed. This should be provided as a file upload.
Screenshot 2024-07-16 at 5 12 01 AM
  • URL: http://127.0.0.1:8092/api/check_liveness_base64
  • Method: POST
  • Raw Data:
    • JSON Format: { "image": "--base64 image data here--" }
Screenshot 2024-07-16 at 5 11 34 AM

Response

The API returns a JSON object with the liveness result of the input face image. Here is an example response:

Gradio Demo

We have included a Gradio demo to showcase the capabilities of our Face Liveness Detection SDK. Gradio is a Python library that allows you to quickly create user interfaces for machine learning models.

How to Run the Gradio Demo

  1. Install Gradio:

    First, you need to install Gradio. You can do this using pip:

    git clone https://github.com/MiniAiLive/FaceLivenessDetection-Windows-SDK.git
    pip install -r requirement.txt
    cd gradio
  2. Run Gradio Demo:

    python app.py

Python Test API Example

To help you get started with using the API, here is a comprehensive example of how to interact with the Face Liveness Detection API using Python. You can use API with another language you want to use like C++, C#, Ruby, Java, Javascript, and more

Prerequisites

  • Python 3.6+
  • requests library (you can install it using pip install requests)

Example Script

This example demonstrates how to send an image file to the API endpoint and process the response.

import requests

# URL of the web API endpoint
url = 'http://127.0.0.1:8092/api/check_liveness'

# Path to the image file you want to send
image_path = './test_image.jpg'

# Read the image file and send it as form data
files = {'image': open(image_path, 'rb')}

try:
    # Send POST request
    response = requests.post(url, files=files)

    # Check if the request was successful
    if response.status_code == 200:
        print('Request was successful!')
        # Parse the JSON response
        response_data = response.json()
        print('Response Data:', response_data)
    else:
        print('Request failed with status code:', response.status_code)
        print('Response content:', response.text)

except requests.exceptions.RequestException as e:
    print('An error occurred:', e)

Request license

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

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Make your changes and commit them with descriptive messages.
4. Push your changes to your forked repository.
5. Submit a pull request to the original repository.

Try Online Demo

Please visit our Face Liveness Detection API Web Demo here. https://demo.miniai.live

Related Product

No Project Feature
1 FaceRecognition-LivenessDetection-Android-SDK Face Matching, 3D Face Passive Liveness
2 FaceRecognition-LivenessDetection-Windows-SDK Face Matching, 3D Face Passive Liveness
3 FaceLivenessDetection-Android-SDK 3D Face Passive Liveness
4 FaceLivenessDetection-Linux-SDK 3D Face Passive Liveness
5 FaceLivenessDetection-Windows-SDK 3D Face Passive Liveness
6 FaceMatching-Android-SDK 1:1 Face Matching
7 FaceMatching-Windows-Demo 1:1 Face Matching
8 FaceAttributes-Android-SDK Face Attributes
9 ID-Document-Recognition-Android-SDK ID Document, Credit, MRZ Recognition
10 ID-Document-Recognition-Linux-SDK ID Document, Credit, MRZ Recognition
11 ID-Document-Recognition-Windows-SDK ID Document, Credit, MRZ Recognition
12 ID-Document-LivenessDetection-Linux-SDK ID Document Liveness Detection
13 ID-Document-LivenessDetection-Windows-SDK ID Document Liveness Detection

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

www.miniai.livewww.miniai.livewww.miniai.live

miniai-face-recognition-serversdk's People

Contributors

assam0215 avatar dc086989 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.