Linux
Faceplugin open-source Face Recognition Linux SDK. Free on-premise Python sample. Lower accuracy than the commercial Docker Face Recognition API.
Code
Overview
Free open-source Face Recognition sample for Linux (Python). Detect faces, extract embeddings, and compare them on your machine — no Faceplugin cloud.
Accuracy is lower than the commercial Face Recognition Linux SDK. Contact Faceplugin if you need the higher-accuracy native engine.
Setup
Please download anaconda on your computer and install it. We used Linux machine without GPU for testing
Create anaconda environment
conda create -n facesdk python=3.9Activate env
conda activate facesdkInstall dependencies
pip install -r requirements.txtIn
face_util/faceutil.py, confirm the Linux library path points tolibFaceUtil.so(Windows uses
'/C/FaceUtil.dll'instead — see the Windows page.)Compare face images in the
testdirectorypython run.py
APIs and Parameters
GetImageInfo(image, faceMaxCount): returns face bounding boxes, landmarks and feature embedding
get_similarity(feat1, feat2): returns similarity between two feature embeddings. 0 to 100
Threshold: value to determine if two embeddings belong to same person, default = 75
FAQ
Same accuracy as Docker Hub? No. Use Face Recognition Linux SDK (faceplugin/face-recognition) for the commercial Face Recognition API.
Related documentation
Lower accuracy than the commercial Linux HTTP API.
Last updated
