Open Source
Free on-premise Python Face Recognition sample for Windows and Linux. Detect, embed, and compare faces locally. Lower accuracy than Faceplugin’s commercial HTTP API on port 8083.
Code
Overview
The Open Source Face Recognition SDK is a free Python sample for Windows and Linux. It detects faces, extracts embeddings, and compares them on your machine (no Faceplugin cloud).
Accuracy is lower than the commercial Face Recognition SDK. Contact Faceplugin if you need the higher-accuracy native engine. This sample is not the commercial Android/iOS or HTTP engine.
Setup
Prerequisites
Python 3.9 or higher
Anaconda (recommended for dependency management)
Windows or Linux operating system
Setup Instructions
Install Anaconda (if not already installed)
Create and activate conda environment
Install dependencies
Test the installation
Quick Start
Basic Usage
Example: Face Comparison
APIs
Core Functions
GetImageInfo(image_path, faceMaxCount)
Extracts face information from an image.
Parameters:
image_path(str): Path to the input imagefaceMaxCount(int): Maximum number of faces to detect
Returns:
List of dictionaries containing:
bbox: Face bounding box coordinateslandmarks: Facial landmark pointsembedding: Feature embedding vector
get_similarity(feature1, feature2)
Compares two face feature embeddings.
Parameters:
feature1(array): First face embeddingfeature2(array): Second face embedding
Returns:
Similarity score (0-100), where higher values indicate greater similarity
Configuration
Default Threshold: 75 (for determining if two faces belong to the same person)
Supported Formats: JPG, PNG, BMP, TIFF
Face Detection: Automatic detection of multiple faces per image
FAQ
Is this the commercial SDK? No. Contact Faceplugin for the higher-accuracy native engine.
Does it run on-premise? Yes. Processing stays on the user’s Windows or Linux machine.
Related documentation
Last updated