Sample Application
Windows-Face SDK(lite version) Flask, Gradio, Surveillance Demo
Installation
- Download
Download WinFaceSDKDemo.rar [145M]
The Demo directory contains the following directories and files:
- 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
Run
app.py
script:
To test the Flask Server API, you can use Postman. Here are the endpoints for testing:
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
Run
app.py
script:
Go to http://127.0.0.1:7860/ on a web browser.
- Test 1:N Surveillance
Install sub-dependencies for Surveillance Demo
Run
app.py
script:
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.
Last updated