28 best Python Face Recognition libraries in 2023
by ganesh Updated: Aug 11, 2023
Guide Kit
Build smart applications with real-time face recognition, finding and identifying faces in pictures, detecting, and manipulating facial features.
Deep learning face recognition algorithms in python detect an image by finding essential feature points in a picture, such as eyes, nose, eyebrows, corners of the mouth, lips, etc. Whereas traditional face recognition algorithm, such as the Local Binary Patterns Histograms (LBPH), breaks an image into thousands of smaller, bite-sized tasks, also known as classifiers. Certain face recognition python source code support single-shot learning. These systems can train themselves to detect a person through a single picture. However, there are some challenges faced by AI face detection programs, such as different human poses and facial expressions, low resolution, high illumination, etc.
The following is a comprehensive list of the best open-source python libraries for face recognition:
Popular among developers, the face_recognition library boasts a 99.38% accuracy. It can help perform recognition on a single image or a folder of images from the command line itself.
face_recognitionby ageitgey
The world's simplest facial recognition api for Python and the command line
face_recognitionby ageitgey
Python
48536
Version:v1.2.2
License: Permissive (MIT)
The OpenCV python face recognition library detects faces in a picture through machine learning algorithms. It breaks the process into multiple stages called ‘cascade’.
OpenCV-Face-Recognitionby Mjrovai
Real-time face recognition project with OpenCV and Python
OpenCV-Face-Recognitionby Mjrovai
Python
970
Version:Current
License: No License
The dlib face recognition library employs the MMOD (Deep Learning) algorithm to draw a bounding box around every face in the image. It provides output by matching the input face with the dataset.
dlibby davisking
A toolkit for making real world machine learning and data analysis applications in C++
dlibby davisking
C++
11993
Version:v19.24.2
License: Permissive (BSL-1.0)
DeepFaceLabby iperov
DeepFaceLab is the leading software for creating deepfakes.
DeepFaceLabby iperov
Python
40567
Version:DF.wf.288res.384.92.72.22
License: Strong Copyleft (GPL-3.0)
insightfaceby deepinsight
State-of-the-art 2D and 3D Face Analysis Project
insightfaceby deepinsight
Python
15968
Version:v0.7
License: Permissive (MIT)
PaddleDetectionby PaddlePaddle
Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.
PaddleDetectionby PaddlePaddle
Python
10655
Version:v2.6.0
License: Permissive (Apache-2.0)
💎1MB lightweight face detection model (1MB轻量级人脸检测模型)
Ultra-Light-Fast-Generic-Face-Detector-1MBby Linzaer
Python
6706
Version:Current
License: Permissive (MIT)
face_classificationby oarriaga
Real-time face detection and emotion/gender classification using fer2013/imdb datasets with a keras CNN model and openCV.
face_classificationby oarriaga
Python
5337
Version:Current
License: Permissive (MIT)
face-alignmentby 1adrianb
:fire: 2D and 3D Face alignment library build using pytorch
face-alignmentby 1adrianb
Python
6309
Version:v1.4.0
License: Permissive (BSD-3-Clause)
AidLearning-FrameWorkby aidlearning
🔥🔥🔥AidLearning is a powerful AIOT development platform, AidLearning builds a linux env supporting GUI, deep learning and visual IDE on Android...Now Aid supports CPU+GPU+NPU for inference with high performance acceleration...Linux on Android or HarmonyOS
AidLearning-FrameWorkby aidlearning
Python
5166
Version:v1.3.0
License: Others (Non-SPDX)
PRNetby YadiraF
Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network (ECCV 2018)
PRNetby YadiraF
Python
4333
Version:Current
License: Permissive (MIT)
fawkesby Shawn-Shan
Fawkes, privacy preserving tool against facial recognition systems. More info at https://sandlab.cs.uchicago.edu/fawkes
fawkesby Shawn-Shan
Python
4920
Version:v0.3
License: Permissive (BSD-3-Clause)
3DDFAby cleardusk
The PyTorch improved version of TPAMI 2017 paper: Face Alignment in Full Pose Range: A 3D Total Solution.
3DDFAby cleardusk
Python
3431
Version:v0.1
License: Permissive (MIT)
DeepVideoAnalyticsby AKSHAYUBHAT
A distributed visual search and visual data analytics platform.
DeepVideoAnalyticsby AKSHAYUBHAT
Python
2976
Version:docker.container.6
License: No License
howdyby boltgolt
🛡️ Windows Hello™ style facial authentication for Linux
howdyby boltgolt
Python
4729
Version:v2.6.1
License: Permissive (MIT)
face.evoLVe.PyTorchby ZhaoJ9014
🔥🔥High-Performance Face Recognition Library on PyTorch🔥🔥
face.evoLVe.PyTorchby ZhaoJ9014
Python
2420
Version:Current
License: Permissive (MIT)
deepfaceby serengil
A Lightweight Face Recognition and Facial Attribute Analysis (Age, Gender, Emotion and Race) Library for Python
deepfaceby serengil
Python
6607
Version:Current
License: Permissive (MIT)
facenet-pytorchby timesler
Pretrained Pytorch face detection (MTCNN) and facial recognition (InceptionResnet) models
facenet-pytorchby timesler
Python
3538
Version:v2.5.3
License: Permissive (MIT)
3DDFA_V2by cleardusk
The official PyTorch implementation of Towards Fast, Accurate and Stable 3D Dense Face Alignment, ECCV 2020.
3DDFA_V2by cleardusk
Python
2549
Version:v0.12
License: Permissive (MIT)
mtcnnby ipazc
MTCNN face detection implementation for TensorFlow, as a PIP package.
mtcnnby ipazc
Jupyter Notebook
1991
Version:Current
License: Permissive (MIT)
deepgazeby mpatacchiola
Computer Vision library for human-computer interaction. It implements Head Pose and Gaze Direction Estimation Using Convolutional Neural Networks, Skin Detection through Backprojection, Motion Detection and Tracking, Saliency Map.
deepgazeby mpatacchiola
Python
1665
Version:Current
License: Permissive (MIT)
DeepFaceby RiweiChen
Face analysis mainly based on Caffe. At this time, face analysis tasks like detection, alignment and recognition have been done.
DeepFaceby RiweiChen
Python
1465
Version:Current
License: No License
CelebAMask-HQby switchablenorms
A large-scale face dataset for face parsing, recognition, generation and editing.
CelebAMask-HQby switchablenorms
Python
1803
Version:Current
License: No License
DBFaceby dlunion
DBFace is a real-time, single-stage detector for face detection, with faster speed and higher accuracy
DBFaceby dlunion
Python
1303
Version:Current
License: No License
Facial-Expression-Recognition.Pytorchby WuJie1010
A CNN based pytorch implementation on facial expression recognition (FER2013 and CK+), achieving 73.112% (state-of-the-art) in FER2013 and 94.64% in CK+ dataset
Facial-Expression-Recognition.Pytorchby WuJie1010
Python
1493
Version:Current
License: Permissive (MIT)