#2222nd of 22 in ML frameworks and libraries

face_recognition

Python library and CLI for face detection, landmarks and matching, built on dlib

Stars
56.8k
License
MIT
Last commit
Jun 2026
Last release
Apr 2018
Language
Python
Stars, last 29 weeks+971
25 Mar 2026: 55,850 stars1 Apr 2026: 55,888 stars8 Apr 2026: 55,921 stars15 Apr 2026: 55,964 stars22 Apr 2026: 55,991 stars29 Apr 2026: 56,030 stars6 May 2026: 56,075 stars13 May 2026: 56,101 stars20 May 2026: 56,125 stars27 May 2026: 56,143 stars3 Jun 2026: 56,218 stars10 Jun 2026: 56,272 stars17 Jun 2026: 56,312 stars24 Jun 2026: 56,338 stars1 Jul 2026: 56,371 stars8 Jul 2026: 56,401 stars15 Jul 2026: 56,424 stars22 Jul 2026: 56,466 stars29 Jul 2026: 56,500 stars5 Aug 2026: 56,535 stars12 Aug 2026: 56,551 stars19 Aug 2026: 56,582 stars26 Aug 2026: 56,609 stars2 Sept 2026: 56,644 stars9 Sept 2026: 56,677 stars16 Sept 2026: 56,713 stars23 Sept 2026: 56,739 stars30 Sept 2026: 56,762 stars7 Oct 2026: 56,788 stars14 Oct 2026: 56,821 stars

55,850 on 25 Mar 202656,821 on 14 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Python library built on dlib that finds faces in images, returns landmarks for eyes, nose, mouth and chin, and compares face encodings to identify people. It also installs `face_recognition` and `face_detection` CLI tools that process folders of images, with a `--tolerance` setting (default 0.6) and `--cpus` for parallel runs. The README cites 99.38% accuracy on Labeled Faces in the Wild.

Who it is for: Python developers adding face detection or matching to scripts and apps

Strengths

  • Few-line Python API: face_locations, face_landmarks, face_encodings, compare_faces
  • CLI tools identify faces across image folders, with --cpus for multi-core runs
  • Many runnable examples: webcam, video file, Raspberry Pi, Flask service, KNN and SVM
  • Optional CNN detector with GPU batch support when dlib is built with CUDA

Weaknesses

  • Last release is 2018-04-02, so PyPI lags the repository
  • Requires building dlib with cmake; Windows is not officially supported
  • README says accuracy is weaker on children and varies between ethnic groups
  • CNN detection model needs a GPU for good performance

What it needs

  • GPU optional
  • Docker + Compose
  • Needs dlib, cmake, Python 3.3+ or 2.7, OpenCV (webcam/video examples), Flask (web service example)
  • Models: dlib HOG face detector, dlib CNN face detector, dlib ResNet face encodings

Also in ML frameworks and libraries

See all 22
Also in ML frameworks and libraries
RankProjectScore
1transformersModel-definition library for text, vision, audio and multimodal models167.7k starsApache-2.094 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd for deep learning104.7k starscustom license93 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models62.5k starsAGPL-3.088 out of 100
#4supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.2k starsMIT84 out of 100
#5pytorch-image-modelsPyTorch library of image models, pretrained weights and reference training scripts37.2k starsApache-2.082 out of 100