Sample Application
Windows-Face SDK(lite version) Flask, Gradio, Surveillance Demo
Last updated
Windows-Face SDK(lite version) Flask, Gradio, Surveillance Demo
Last updated
Download WinFaceSDKDemo.rar [145M]
The Demo directory contains the following directories and files:
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.
Copy the license.txt
license file to the engine
directory.
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:
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
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
Install sub-dependencies for Gradio Demo
Run app.py
script:
Go to http://127.0.0.1:7860/ on a web browser.
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.
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