yakhyo/uniface

Pythonyakhyo.github.io/uniface/

UniFace: A Unified Face Analysis Library for Python | Detection, alignment, landmarks, face-mesh, recognition, parsing, gaze, attributes and anti-spoofing under one API.

face-detectionface-recognitionface-analysisgaze-estimationface-parsingface-segmentationonnxruntimeface-meshcomputer-visiondeep-learningface-anonymizationface-anti-spoofing
Crescimento de estrelas
Estrelas
1.6k
Forks
221
Crescimento semanal
+63
Issues
2
5001k1.5k
nov. de 25fev. de 26mai. de 26set. de 26
ArtefatosPyPI
README

UniFace: A Unified Face Analysis Library for Python

PyPI Version Python Version License Github Build Status PyPI Downloads Kaggle Badge Hugging Face Spaces

UniFace - A Unified Face Analysis Library for Python

UniFace is a lightweight, production-ready Python library for face detection, recognition,
tracking, landmark analysis, face parsing, gaze estimation, and face attributes.

Get Started   Model Zoo   Notebooks   Full Docs

pip install "uniface[cpu]"          # CPU and Apple Silicon
pip install "uniface[gpu]"          # NVIDIA CUDA
pip install --pre "uniface[cpu]"    # latest pre-release
A first script

FaceAnalyzer runs detection, alignment and recognition in one call. Attribute models are opt-in.

import cv2
from uniface import FaceAnalyzer, FairFace

analyzer = FaceAnalyzer(predictors=[FairFace()])

for face in analyzer.analyze(cv2.imread("photo.jpg")):
    print(face.bbox, face.sex, face.age_group, face.embedding.shape)

bbox, confidence, landmarks and embedding are always set. Age, sex, race, emotion, quality and the face states stay None until you pass the predictor that fills them.

All fifteen tasks, and which model does each
Task Models
Face Detection RetinaFace, SCRFD, CenterFace, YOLOv5-Face, YOLOv8-Face, BlazeFace
Face Recognition AdaFace, ArcFace, EdgeFace, MobileFace, SphereFace
Face Tracking BYTETracker, persistent IDs across video frames
Facial Landmarks 2d106det (106), PIPNet (98 / 68), Face Mesh (468 / 478, 3D)
Face Parsing BiSeNet (19 classes), XSeg masking
Portrait Matting MODNet, trimap-free
Gaze Estimation MobileGaze (ResNet-18 / 34 / 50, MobileNetV2)
Head Pose 6D rotation representation, pitch / yaw / roll
Demographics AgeGender, FairFace (age group, sex, race)
Emotion AffectNet-7 and AffectNet-8
Face States FaceAttribNet: eyes, glasses, sunglasses, mask
Face Quality eDifFIQA (T / S / M / L)
Anti-Spoofing MiniFASNet liveness
Anonymization 5 blur methods
Vector Store FAISS-backed embedding search

Runs on CPU, Apple Silicon and CUDA. Weights download on first use, verified by SHA-256.


Find and measure faces

Face Detection  ·  docs

Facial Landmarks  ·  docs

Face Mesh  ·  docs

Face Quality  ·  docs

Cut faces out

Face Parsing  ·  docs

Face Segmentation  ·  docs

Portrait Matting  ·  docs

Read where a head is pointing

Head Pose  ·  docs

Gaze Estimation  ·  docs

Read a face

Age and Sex  ·  docs

Emotion  ·  docs

Face States  ·  docs

Tell a real face from a replay

Anti-Spoofing  ·  docs

Match a face, or hide one

Face Recognition  ·  docs

Face Anonymization  ·  docs


Get Started  ·  Model Zoo  ·  Notebooks  ·  Model licences  ·  Contributing  ·  Discord  ·  Issues

Runs on CPU, Apple Silicon and CUDA. Weights download on first use, verified by SHA-256.
UniFace is MIT; some pretrained weights are not, so check licences before shipping commercially.
Not affiliated with Uniface by Rocket Software.

Repositórios relacionados
ageitgey/face_recognition

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

PythonPyPIMIT Licensemachine-learningface-detection
56.7k13.7k
deepinsight/insightface

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

PythonPyPIface-recognitionface-detection
insightface.ai
29.7k6.1k
justadudewhohacks/face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js

TypeScriptnpmMIT Licenseface-recognitionjavascript
18k3.9k
PaddlePaddle/PaddleDetection

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

PythonPyPIApache License 2.0object-detectioninstance-segmentation
14.4k3k
davidsandberg/facenet

Face recognition using Tensorflow

PythonPyPIMIT Licenseface-recognitiontensorflow
14.3k4.8k
ShiqiYu/libfacedetection

An open source library for face detection in images. The face detection speed can reach 1000FPS.

C++libraryOtherface-detectioncnn
12.8k3k
esimov/caire

Content aware image resize library

GoGo ModulesMIT Licenseseam-carvingimage-processing
10.5k386
react-native-camera/react-native-camera

A Camera component for React Native. Also supports barcode scanning!

JavaMavenreact-nativeface-detection
react-native-camera.github.io/react-native-camera/
9.6k3.5k
exadel-inc/CompreFace

Leading free and open-source face recognition system

JavaMavenApache License 2.0face-recognitioncomputer-vision
exadel.com/accelerator-showcase/compreface/
8.3k1.2k
Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB

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

PythonPyPIlibraryMIT Licenseface-detectionarm
7.5k1.5k
1adrianb/face-alignment

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

PythonPyPIBSD 3-Clause "New" or "Revised" Licensepythondeep-learning
adrianbulat.com
7.5k1.4k
amusi/daily-paper-computer-vision

记录每天整理的计算机视觉/深度学习/机器学习相关方向的论文

paperdeep-learning
6.8k1.3k