Sample Application
Linux-Face Recognition SDK(updated version) Flask, Gradio Demo
Last updated
Linux-Face Recognition SDK(updated version) Flask, Gradio Demo
Last updated
Pull the Docker image and run the container:
Download FaceRecognition-Demo.zip[191M]
The Demo directory contains the following directories and files:
Run the install.sh
script to install dependencies:
Online Licensing: Set the online license key as an environment variable:
Offline Licensing: Copy the license.txt
license file to the demo directory.
Run the demo script with the desired option:
To test the Flask Server API, you can use Postman. Here are the endpoints for testing:
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
Perform face match between two face base64 images
Parameters
image1: base64 image for the 1st face
image2: base64 image for the 2nd face
Response
result: face match result
similarity: similarity between two faces
detection: face bounding boxes of two faces
Go to http://127.0.0.1:7860/ on a web browser.
dependency\
Dependency files
engine\
SDK engine files
examples\
Sample images for face recognition
flask\
Flask server side demo code
gradio\
Gradio demo code
Dockerfile
Dockerfile for building a Docker image
install.sh
Script for install environment
license.txt
License key file
run_demo.sh
Script for run demo