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
  • Installation
  • - Download
  • - Install dependencies
  • - Setting Up SDK License Key
  • Test
  • - Test Flask Server APIs
  • - Test Gradio
  • - Test 1:N Surveillance
  1. Face Recognition SDK
  2. Integration Guide
  3. Windows

Sample Application

Windows-Face SDK(lite version) Flask, Gradio, Surveillance Demo

PreviousLicensingNextAndroid

Last updated 12 months ago

Installation

- Download

Download

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

video_surveillance_demo\

1:N Video Surveillance demo code

- Install dependencies

Install python-3.8.9.exe, VC_redist.2013.exe, VC_redist.2015-2022.exe files from dependency directory.

When install python-3.8.9.exe, have to tick the Add Python3.8 to PATH option.

- Setting Up SDK License Key

Copy the license.txt license file to the engine directory.


Test

- Test Flask Server APIs

  • Install sub-dependencies for Flask Demo

cd flask
python -m pip install -r requirements.txt
  • Run app.py script:

python app.py

POST /api/analyze_face

Perform face analysis on an image file

Parameters

image: image file

Response

result: face detection result

face_rect: face bounding box of detected face

attribute: attributes(age, gender, liveness, mask, wear_glass) of detected face

POST /api/compare_face

Perform face match between two face image files

Parameters

image1: image file for the 1st face

image2: image file for the 2nd face

Response

result: face match result

similarity: similarity between two faces

detection: face bounding boxes of two faces

- Test Gradio

  • Install sub-dependencies for Gradio Demo

cd gradio
python -m pip install -r requirements.txt
  • Run app.py script:

python app.py

- Test 1:N Surveillance

  • Install sub-dependencies for Surveillance Demo

cd video_surveillance_demo
python -m pip install -r requirements.txt
  • Run app.py script:

python app.py
  • Main Page

When you run the app.py script, the main page appears first.

  • Register Person Page

You can enroll user from image.

  • User List Page

The registered user list is displayed.

  • Photo Match Page

You can identify registered users from selected image.

  • Video Surveillance Page

You can identify registered users from video stream.

Media file, RTSP stream, Web Camera can be used as video stream.

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

Go to on a web browser.

Postman
http://127.0.0.1:7860/
WinFaceSDKDemo.rar [145M]
Postman usage guide for Flask Demo (analyze_face)
Postman usage guide for Flask Demo (compare_face)
Gradio Demo (face attribute)
Gradio Demo (face recognition)
main page in 1:N surveillance
user registration page
user list page
photo match page
select video stream page
video surveillance page