Recognito
  • About RECOGNITO
  • Face Recognition SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Windows
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Android
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • iOS
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Flutter
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • Face Liveness Detection SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Windows
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Android
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • iOS
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Flutter
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • ID Document Recognition SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • Android
        • Installation
        • API Reference
        • Licensing
        • Sample Application
      • iOS
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • ID Document Liveness Detection SDK
    • Performance Overview
    • Integration Guide
      • Linux
        • Installation
        • API Reference
        • Licensing
        • Sample Application
  • License Option
  • How to implement 1:N identification with RECOGNITO SDK
  • Contact & Support
Powered by GitBook
On this page
  • Docker
  • Installation
  • - Download
  • - Install dependencies
  • - Setting Up SDK License Key
  • Test
  • - Run Demo
  • - Test Flask Server APIs
  • - Test Gradio
  1. ID Document Liveness Detection SDK
  2. Integration Guide
  3. Linux

Sample Application

Linux-ID Document Liveness Detection SDK Flask, Gradio Demo

Docker

Pull the Docker image and run the container:

sudo docker pull recognito/id-live:latest
sudo docker run -it -e LICENSE_KEY="xxxxxxxxxxxxx" -p 9001:9000 -p 7861:7860 recognito/id-live:latest [OPTION --gradio(-g), --flask(-f)]

or

sudo docker pull recognito/id-live:latest
sudo docker run -it -v ./license.txt:/app/license.txt -p 9001:9000 -p 7861:7860 recognito/id-live:latest [OPTION --gradio(-g), --flask(-f)]

Installation

- Download

Download ID_Live.zip

The Demo directory contains the following directories and files:

dependency\

Dependency files

engine\

SDK engine files

examples\

Sample images

flask\

Flask server side demo code

gradio\

Gradio demo code

Dockerfile

Dockerfile for building a Docker image

install.sh

Script for install environment

readme.txt

Installation Guide

requirements.txt

Python requirements file

run.sh

Script for run demo

- Install dependencies

Run the install.sh script to install dependencies:

./install.sh

- Setting Up SDK License Key

  • Offline Licensing: Copy the license.txt license file to the demo directory.


Test

- Run Demo

Run the demo script with the desired option:

./run.sh [OPTION --gradio(-g), --flask(-f), --help(-h)]

- Test Flask Server APIs

To test the Flask Server API, you can use Postman. Here are the endpoints for testing:

POST /process_image

Check Liveness from image file

Parameters

image: image file for the ID document

Response

result: Liveness check result

POST /process_image_base64

Check Liveness from base64 image

Parameters

base64: base64 image for the ID document image

Response

result: Liveness check result

- Test Gradio

Go to http://127.0.0.1:7860/ on a web browser.

PreviousLicensingNextLicense Option

Last updated 8 days ago

Postman usage guide for Flask Demo
Gradio Demo