retina-face
RetinaFace: Deep Face Detection Framework in TensorFlow for Python
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers low install friction. It is well-suited if you need face detection and landmark extraction as part of a Python computer vision workflow. Install it if you are building a face recognition pipeline or need facial landmarks for alignment; skip it if you only need bounding boxes and can tolerate heavier dependencies like tensorflow.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires tensorflow and opencv-python, which may take time to install on first setup depending on system configuration.
- Low install friction with a pure-Python wheel.
- Depends on numpy, Pillow, opencv-python, and tensorflow—all stable, widely-used libraries.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT, a permissive license that allows commercial and private use with minimal restrictions.
last release 2026-06-01 (74 days) · last repo commit 2026-06-01 · 2,023 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 219,069 downloads/mo, #9,329 on PyPI
Alternatives
Verify before relying
pip install retina-face
from retinaface import RetinaFace
resp = RetinaFace.detect_faces("img.jpg")
faces = RetinaFace.extract_faces(img_path="img.jpg", align=True)- Whether pre-trained model weights are downloaded automatically on first use and where they are cached.
- Performance characteristics (inference time, memory usage) on typical hardware.
- Accuracy metrics on standard face detection benchmarks beyond the description's crowd-detection claim.
What it is and what it does
RetinaFace is a TensorFlow-based face detection library that identifies faces in images and returns their bounding boxes along with five facial landmarks (both eyes, nose, and mouth corners). It is designed as a preprocessing step for face recognition pipelines, where it can also align detected faces to improve downstream recognition accuracy. The package wraps a re-implementation of the original RetinaFace model from the insightface project, simplifying the API for pip installation while preserving the reference architecture and pre-trained weights.
The library exposes two main functions: detect_faces() returns face coordinates and landmarks with confidence scores, while extract_faces() crops and optionally aligns detected faces for use in recognition workflows. It depends on numpy, Pillow, opencv-python, and tensorflow, making it suitable for environments where those libraries are already present or acceptable as dependencies.
Use it for
- Preprocessing images for a face recognition system by detecting and aligning faces before passing them to a recognition model.
- Extracting facial landmarks for face alignment or geometric analysis in computer vision applications.
- Building a face detection API or service that returns bounding boxes and confidence scores for detected faces in bulk image processing.
- Integrating face detection into a larger pipeline (e.g., with deepface) for end-to-end face verification or identification tasks.
- Analyzing crowd images to locate and extract individual faces for further processing or annotation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers low install friction. It is well-suited if you need face detection and landmark extraction as part of a Python computer vision workflow. Install it if you are building a face recognition pipeline or need facial landmarks for alignment; skip it if you only need bounding boxes and can tolerate heavier dependencies like tensorflow.
Install
retina-face on PyPI
Before you install
Low install friction with a pure-Python wheel. Depends on numpy, Pillow, opencv-python, and tensorflow—all stable, widely-used libraries. Repository is active with a recent commit and no archived status.
Requires tensorflow and opencv-python, which may take time to install on first setup depending on system configuration.
License in practice
Licensed under MIT, a permissive license that allows commercial and private use with minimal restrictions.
Quickstart
pip install retina-face
from retinaface import RetinaFace
resp = RetinaFace.detect_faces("img.jpg")
faces = RetinaFace.extract_faces(img_path="img.jpg", align=True)
Verify before relying
- Whether pre-trained model weights are downloaded automatically on first use and where they are cached.
- Performance characteristics (inference time, memory usage) on typical hardware.
- Accuracy metrics on standard face detection benchmarks beyond the description's crowd-detection claim.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.5.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesnumpygdownPillowopencv-pythontensorflow |
| Maintenance | Actively maintained 74 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 219,069 / month, #9,329 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: retina_face-0.0.18-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “detect faces in images”
- retina-faceDetects faces in images and extracts facial landmarks (eyes, nose,…
- facenet-pytorchProvides pretrained PyTorch models for face detection using MTCNN and…
- gfpganGFPGAN restores and enhances degraded faces in images using a…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also deepface · face-alignment · insightface · mtcnn · retinaface-py · face-recognition · facexlib · face_recognition_models · facenet-pytorch · gfpgan