Face Recognition, Face Liveness Detection, Face Anti-Spoofing, Face Detection, Face Landmarks, Face Compare, Face Matching, Face Pose, Face Expression, Face Attributes, Face Templates Extraction, Face Landmarks
See the code
The world's first completely free and open-source face recognition SDK for Windows and Linux from Faceplugin
The Open Source Face Recognition SDK by Faceplugin is a powerful, privacy-focused solution for integrating face recognition capabilities into your applications. Built with deep learning models, this SDK provides high-accuracy face detection and recognition while ensuring complete data privacy through on-premise processing.
Install Anaconda (if not already installed)
# Download from: https://www.anaconda.com/products/distribution
Create and activate conda environment
conda create -n facesdk python=3.9
conda activate facesdk
Install dependencies
pip install -r requirements.txt
Test the installation
python run.py
from face_recognition_sdk import FaceRecognition
# Initialize the SDK
face_sdk = FaceRecognition()
# Process an image
image_path = "path/to/your/image.jpg"
face_info = face_sdk.GetImageInfo(image_path, faceMaxCount=10)
# Compare two faces
similarity = face_sdk.get_similarity(feature1, feature2)
# Compare two images
image1 = "test/1.jpg"
image2 = "test/2.png"
# Get face information from both images
faces1 = face_sdk.GetImageInfo(image1, faceMaxCount=1)
faces2 = face_sdk.GetImageInfo(image2, faceMaxCount=1)
if faces1 and faces2:
# Compare the first face from each image
similarity = face_sdk.get_similarity(faces1[0]['embedding'], faces2[0]['embedding'])
print(f"Similarity: {similarity}%")
# Check if it's the same person (threshold = 75)
is_same_person = similarity >= 75
print(f"Same person: {is_same_person}")
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 detectReturns:
bbox: Face bounding box coordinateslandmarks: Facial landmark pointsembedding: Feature embedding vectorget_similarity(feature1, feature2)Compares two face feature embeddings.
Parameters:
feature1 (array): First face embeddingfeature2 (array): Second face embeddingReturns:
This SDK is ideal for various applications:
This project is developed by Faceplugin, a provider of on-premise biometric and identity verification SDKs.
If you need capabilities beyond this open-source SDK, explore Faceplugin's commercial SDKs for:
| Solution | Description |
|---|---|
| π€ Face Recognition | Face recognition, verification, identification, attributes, and biometric authentication |
| π‘οΈ Face Liveness Detection | Detect presentation attacks during face verification and authentication |
| π ID Document Recognition | OCR, MRZ, barcode recognition, and document classification |
| π ID Document Liveness Detection | Detect presentation attacks involving identity documents |
Explore our complete suite of biometric and identity verification solutions, including face recognition, face liveness detection, ID document recognition and ID document liveness detection SDKs.
While there are many ways to support this project, starring βοΈ this GitHub repository is one of the simplest and most impactful. It increases discoverability and helps the project reach a wider audience. Thank you for your support π
251 followers Β· starred Sep 2026
22 followers Β· starred Nov 2025
109 followers Β· starred Aug 2026
29 followers Β· starred Feb 2026
Face Recognition, Face Liveness Detection, Face Anti-Spoofing, Face Detection, Face Landmarks, Face Compare, Face Matching, Face Pose, Face Expression, Face Attributes, Face Templates Extraction, Face Landmarks
See the code
The world's first completely free and open-source face recognition SDK for Windows and Linux from Faceplugin
The Open Source Face Recognition SDK by Faceplugin is a powerful, privacy-focused solution for integrating face recognition capabilities into your applications. Built with deep learning models, this SDK provides high-accuracy face detection and recognition while ensuring complete data privacy through on-premise processing.
Install Anaconda (if not already installed)
# Download from: https://www.anaconda.com/products/distribution
Create and activate conda environment
conda create -n facesdk python=3.9
conda activate facesdk
Install dependencies
pip install -r requirements.txt
Test the installation
python run.py
from face_recognition_sdk import FaceRecognition
# Initialize the SDK
face_sdk = FaceRecognition()
# Process an image
image_path = "path/to/your/image.jpg"
face_info = face_sdk.GetImageInfo(image_path, faceMaxCount=10)
# Compare two faces
similarity = face_sdk.get_similarity(feature1, feature2)
# Compare two images
image1 = "test/1.jpg"
image2 = "test/2.png"
# Get face information from both images
faces1 = face_sdk.GetImageInfo(image1, faceMaxCount=1)
faces2 = face_sdk.GetImageInfo(image2, faceMaxCount=1)
if faces1 and faces2:
# Compare the first face from each image
similarity = face_sdk.get_similarity(faces1[0]['embedding'], faces2[0]['embedding'])
print(f"Similarity: {similarity}%")
# Check if it's the same person (threshold = 75)
is_same_person = similarity >= 75
print(f"Same person: {is_same_person}")
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 detectReturns:
bbox: Face bounding box coordinateslandmarks: Facial landmark pointsembedding: Feature embedding vectorget_similarity(feature1, feature2)Compares two face feature embeddings.
Parameters:
feature1 (array): First face embeddingfeature2 (array): Second face embeddingReturns:
This SDK is ideal for various applications:
This project is developed by Faceplugin, a provider of on-premise biometric and identity verification SDKs.
If you need capabilities beyond this open-source SDK, explore Faceplugin's commercial SDKs for:
| Solution | Description |
|---|---|
| π€ Face Recognition | Face recognition, verification, identification, attributes, and biometric authentication |
| π‘οΈ Face Liveness Detection | Detect presentation attacks during face verification and authentication |
| π ID Document Recognition | OCR, MRZ, barcode recognition, and document classification |
| π ID Document Liveness Detection | Detect presentation attacks involving identity documents |
Explore our complete suite of biometric and identity verification solutions, including face recognition, face liveness detection, ID document recognition and ID document liveness detection SDKs.
While there are many ways to support this project, starring βοΈ this GitHub repository is one of the simplest and most impactful. It increases discoverability and helps the project reach a wider audience. Thank you for your support π
251 followers Β· starred Sep 2026
22 followers Β· starred Nov 2025
109 followers Β· starred Aug 2026
29 followers Β· starred Feb 2026