Sourcify
Effortlessly find and manage open-source dependencies for your projects.

A lightweight face recognition and facial attribute analysis library for Python.

DeepFace is a Python framework for face recognition and facial attribute analysis. It wraps state-of-the-art models like VGG-Face, FaceNet, OpenFace, DeepID, ArcFace, Dlib, SFace, GhostFaceNet, and Buffalo_L. The pipeline encompasses detect, align, normalize, represent, and verify stages, handled in the background for ease of use. It offers functions for face verification (determining if two images belong to the same person), face recognition (finding a face in a database), and facial attribute analysis (age, gender, emotion, race prediction). DeepFace supports directory-based and database-backed search functionalities with backends like postgres, mongo, neo4j, pgvector, pinecone, and weaviate. Approximate Nearest Neighbor (ANN) search is supported via Faiss for faster large-scale database searches. It can be used for real-time video analysis and offers a React UI for browser-based applications.
DeepFace is a Python framework for face recognition and facial attribute analysis.
Explore all tools that specialize in face verification. This domain focus ensures DeepFace delivers optimized results for this specific requirement.
Wraps multiple state-of-the-art face recognition models, allowing selection based on performance and resource constraints.
Supports multiple database backends (Postgres, MongoDB, Neo4j, Pinecone, Weaviate) for storing and querying face embeddings.
Integrates Faiss for fast approximate nearest neighbor search in large databases, improving search performance.
Provides functionality for real-time face recognition and facial attribute analysis from video streams using webcam.
Predicts age, gender, emotion, and race from facial images, providing valuable demographic and emotional insights.
Allows extracting multi-dimensional vector representations of facial images for custom applications.
Install DeepFace from PyPI: `pip install deepface`
Alternatively, install from source: `git clone https://github.com/serengil/deepface.git`
Navigate to the DeepFace directory: `cd deepface`
Install the package in editable mode: `pip install -e .`
Import the library: `from deepface import DeepFace`
Use the verification function: `result = DeepFace.verify(img1_path='img1.jpg', img2_path='img2.jpg')`
Use the find function: `dfs = DeepFace.find(img_path='img1.jpg', db_path='C:/my_db')`
Use the analysis function: `objs = DeepFace.analyze(img_path='img4.jpg', actions=['age', 'gender', 'race', 'emotion'])`
All Set
Ready to go
Verified feedback from other users.
"Users praise DeepFace for its ease of use, comprehensive features, and accurate results, though some note performance limitations with very large datasets."
Post questions, share tips, and help other users.
Effortlessly find and manage open-source dependencies for your projects.

End-to-end typesafe APIs made easy.

Page speed monitoring with Lighthouse, focusing on user experience metrics and data visualization.

Topcoder is a pioneer in crowdsourcing, connecting businesses with a global talent network to solve technical challenges.

Explore millions of Discord Bots and Discord Apps.

Build internal tools 10x faster with an open-source low-code platform.

Open-source RAG evaluation tool for assessing accuracy, context quality, and latency of RAG systems.

AI-powered synthetic data generation for software and AI development, ensuring compliance and accelerating engineering velocity.