Faceplugin-ltd / Open-Source-Face-Recognition-SDK
git clone https://github.com/Faceplugin-ltd/Open-Source-Face-Recognition-SDK.git
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
+24
stars, 24h Β· #633
+~168
stars, 7 days Β· #770
+~720
stars, 30 days Β· #753
2.7k
β
total Β· +7% this week
467
forks Β· 0 open issues
Star history (as recorded here)
LanguagePython
Licenseβ
Created2025-01-17 (1y ago)
Last push20d ago
Watchers14
OwnerOrganization
GitHub topics
deep-learningface-detectionface-landmark-detectionface-recognitionidentity-verificationmachine-learningopen-sourcepython
Links
- GitHub: github.com/Faceplugin-ltd/Open-Source-Face-Recognition-SDK
- Homepage: https://faceplugin.com/
- Releases Β· Issues Β· Hacker News mentions
README excerpt
# Open Source Face Recognition SDK **The world's first completely free and open-source face recognition SDK for Windows and Linux from Faceplugin** --- ## π Overview 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. ### β¨ Key Features - π **100% On-Premise**: All processing happens locally - no data leaves your device - π― **High Accuracy**: Powered by state-of-the-art deep learning models - β‘ **Real-Time Processing**: Fast face detection and recognition capabilities - π§ **Easy Integration**: Simple Python APIs for seamless development - π **Cross-Platform**: Compatible with Windows and Linux systems - π± **GPU Optional**: Works efficiently on CPU-only systems - π **Completely Free**: Open source with no licensing fees ### π― Current Capabilities - Face detection and bounding box extraction - Facial landmark detection - Feature embedding generation - Face similarity comparison - Support for multiple image formats (JPG, PNG, etc.) --- ## π οΈ Installation ### Prerequisites - **Python 3.9 or higher** - **Anaconda** (recommended for dependency management) - **Windows or Linux** operating system ### Setup Instructions 1. **Install Anaconda** (if not already installed) [code] 2. **Create and activate conda environment** [code] 3. **Install dependencies** [code] 4. **Test the installation** [code] --- ## π Quick Start ### Basic Usage [code] ### Example: Face Comparison [code] --- ## π§ API Reference ### Core Functions #### `GetImageInfo(image_path, faceMaxCount)` Extracts face information from an image. **Parameters:** - `image_path` (str): Path to the input image - `faceMaxCount` (int): Maximum number of faces to detect **Returns:** - List of dictionaries containing: - `bbox`: Face bounding box coordinates - `landmarks`: Facial landmark points - `embedding`: Feature embedding vector #### `get_similarity(feature1, feature2)` Compares two face feature embeddings. **Parameters:** - `feature1` (array): First face embedding - `feature2` (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 --- ## π― Use Cases This SDK is ideal for various applications: ### π Security & Authentication - **Access Control Systems**: Secure entry points with face recognition - **User Authentication**: Biometric login for applications - **Surveillance**: Real-time monitoring and alerting ### π₯ Business Applications - **Time & Attendance**: Automated employee check-in/check-out - **Customer Analytics**: Retail custome