Sample Application
Linux-Face Recognition SDK(updated version) Flask, Gradio Demo (1:1 Matching)
Last updated
Linux-Face Recognition SDK(updated version) Flask, Gradio Demo (1:1 Matching)
Last updated
Pull the Docker image and run the container:
Download
The Demo directory contains the following directories and files:
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
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:
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
To test the Flask Server API, you can use . Here are the endpoints for testing:
Go to on a web browser.