26 best Python Face Recognition

by ganesh

Python finds its applications far and wide across the digital world. Be it web development, data science, data analytics, AI, and whatnot. Even in the case of Computer Vision, Python is the only language that comes to mind. Especially when it comes to the subdomain of facial recognition, industrial applications are far-reaching. This technology is being used to validate human faces through images and videos. And to support it, there are numerous libraries in Python that power face detection, recognition, tracking, and authentication.

Let’s take a look at some of these well-established libraries. face_recognition has an active ecosystem with more than 40k GitHub stars and 11k forks. While the last major release was a year ago, it remains the simplest face recognition library with a model which has 99.38% accuracy. We also have the faceswap library, which is developed by Deepfakes. Powered by Keras, Tensorflow, and Python, it is a leading free and Open Source multi-platform software that runs on all major operating systems. FaceNet is another face recognition system that’s been developed by researchers at Google. It takes the person’s face as input and outputs a vector of 128 numbers representing the most important features of a face. It leverages triplet loss along with deep convolutional networks to achieve the highest order of accuracy.

Use the open source, cloud APIs, or public libraries listed below in your application development based on your technology preferences, such as primary language. The below list also provides a view of the components' rating on different dimensions such as community support availability, security vulnerability, and overall quality, helping you make an informed choice for implementation and maintenance of your application. Please review the components carefully, having a no license alert or proprietary license, and use them appropriately in your applications. Please check the component page for the exact license of the component. You can also get information on the component's features, installation steps, top code snippets, and top community discussions on the component details page. The links to package managers are listed for download, where packages are readily available. Otherwise, build from the respective repositories for use in your application. You can also use the source code from the repositories in your applications based on the respective license types.
f

face_recognitionby ageitgey

The world's simplest facial recognition api for Python and the command line

Python Updated: 3 mo ago License: Permissive

Support
Quality
Security
License
Reuse
f

faceswapby deepfakes

Deepfakes Software For All

Python Updated: 3 mo ago License: Strong Copyleft

Support
Quality
Security
License
Reuse
D

DeepFaceLabby iperov

DeepFaceLab is the leading software for creating deepfakes.

Python Updated: 3 mo ago License: Strong Copyleft

Support
Quality
Security
License
Reuse
f

facenetby davidsandberg

Face recognition using Tensorflow

Python Updated: 3 mo ago License: Permissive

Support
Quality
Security
License
Reuse
i

insightfaceby deepinsight

State-of-the-art 2D and 3D Face Analysis Project

Python Updated: 3 mo ago License: Permissive

Support
Quality
Security
License
Reuse
U

Ultra-Light-Fast-Generic-Face-Detector-1MBby Linzaer

💎1MB lightweight face detection model (1MB轻量级人脸检测模型)

Python Updated: 3 mo ago License: Permissive

Support
Quality
Security
License
Reuse
P

PaddleDetectionby PaddlePaddle

Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.

Python Updated: 9 d ago License: Permissive

Support
Quality
Security
License
Reuse
f

face_classificationby oarriaga

Real-time face detection and emotion/gender classification using fer2013/imdb datasets with a keras CNN model and openCV.

Python Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
f

face-alignmentby 1adrianb

:fire: 2D and 3D Face alignment library build using pytorch

Python Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
A

AidLearning-FrameWorkby aidlearning

🔥🔥AidLearning is a powerful mobile development platform, AidLearning builds a linux env supporting GUI, deep learning and visual IDE on Android...Now Aid supports OpenCL (GPU+NPU) for high performance acceleration...Linux on Android or HarmonyOS

Python Updated: 1 mo ago License: Proprietary

Support
Quality
Security
License
Reuse
P

PRNetby YadiraF

Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network (ECCV 2018)

Python Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
f

fawkesby Shawn-Shan

Fawkes, privacy preserving tool against facial recognition systems. More info at https://sandlab.cs.uchicago.edu/fawkes

Python Updated: 3 mo ago License: Permissive

Support
Quality
Security
License
Reuse
A

ALAEby podgorskiy

[CVPR2020] Adversarial Latent Autoencoders

Python Updated: 3 mo ago License: No License

Support
Quality
Security
License
Reuse
3

3DDFAby cleardusk

The PyTorch improved version of TPAMI 2017 paper: Face Alignment in Full Pose Range: A 3D Total Solution.

Python Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
D

DeepVideoAnalyticsby AKSHAYUBHAT

A distributed visual search and visual data analytics platform.

Python Updated: 8 mo ago License: No License

Support
Quality
Security
License
Reuse
h

howdyby boltgolt

🛡️ Windows Hello™ style facial authentication for Linux

Python Updated: 4 mo ago License: Permissive

Support
Quality
Security
License
Reuse
f

face.evoLVe.PyTorchby ZhaoJ9014

🔥🔥High-Performance Face Recognition Library on PyTorch🔥🔥

Python Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
d

deepfaceby serengil

A Lightweight Face Recognition and Facial Attribute Analysis (Age, Gender, Emotion and Race) Library for Python

Python Updated: 3 mo ago License: Permissive

Support
Quality
Security
License
Reuse
f

facenet-pytorchby timesler

Pretrained Pytorch face detection (MTCNN) and facial recognition (InceptionResnet) models

Python Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
3

3DDFA_V2by cleardusk

The official PyTorch implementation of Towards Fast, Accurate and Stable 3D Dense Face Alignment, ECCV 2020.

Python Updated: 3 mo ago License: Permissive

Support
Quality
Security
License
Reuse
m

mtcnnby ipazc

MTCNN face detection implementation for TensorFlow, as a PIP package.

Jupyter Notebook Updated: 4 mo ago License: Permissive

Support
Quality
Security
License
Reuse
d

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.

Python Updated: 6 mo ago License: Permissive

Support
Quality
Security
License
Reuse
D

DeepFaceby RiweiChen

Face analysis mainly based on Caffe. At this time, face analysis tasks like detection, alignment and recognition have been done.

Python Updated: 7 mo ago License: No License

Support
Quality
Security
License
Reuse
C

CelebAMask-HQby switchablenorms

A large-scale face dataset for face parsing, recognition, generation and editing.

Python Updated: 5 mo ago License: No License

Support
Quality
Security
License
Reuse
D

DBFaceby dlunion

DBFace is a real-time, single-stage detector for face detection, with faster speed and higher accuracy

Python Updated: 6 mo ago License: No License

Support
Quality
Security
License
Reuse
F

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

Python Updated: 3 mo ago License: Permissive

Support
Quality
Security
License
Reuse
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items