mtcnn
Multitask Cascaded Convolutional Networks for face detection and alignment (MTCNN) in Python >= 3.10 and TensorFlow >= 2.12
Decision gist · record as of 2026-08-14
Yes, if you need face detection and landmark extraction in Python >= 3.10. The package has low install friction, permissive licensing, no known vulnerabilities, and a stable codebase with 2483 GitHub stars. The main trade-off is dormant maintenance—no active development for 675 days—so expect no new features or rapid bug fixes. It is suitable for production use in stable environments but not for projects requiring ongoing support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >= 3.10 and TensorFlow >= 2.12; TensorFlow must be installed separately or via pip install mtcnn[tensorflow].
- Low friction installation with only joblib and lz4 as runtime dependencies.
- Maintenance is dormant—last release was 675 days ago—but the repository remains active with 2483 stars and has not been archived, suggesting the package is stable rather than actively developed.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2024-10-08 (675 days) · last repo commit 2024-10-08 · 2,483 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,806,628 downloads/mo, #2,493 on PyPI
Alternatives
Verify before relying
pip install mtcnn
from mtcnn import MTCNN
from mtcnn.utils.images import load_image
detector = MTCNN(device="CPU:0")
image = load_image("photo.jpg")
result = detector.detect_faces(image)
print(result)- Whether the package's performance characteristics (speed, accuracy) meet your application's requirements compared to alternatives.
- GPU device support and whether CUDA/GPU acceleration is available beyond the CPU:0 example shown.
- Batch processing capabilities and performance characteristics on large image datasets.
What it is and what it does
MTCNN is a face detection and alignment library that uses a three-stage cascaded convolutional network (PNet, RNet, ONet) to locate faces in images and extract facial landmarks. It returns bounding boxes and keypoint coordinates (eyes, nose, mouth) for each detected face along with confidence scores. The package is designed for Python >= 3.10 and requires TensorFlow >= 2.12 as its primary external dependency.
The library provides a simple API: instantiate an MTCNN detector, load an image, call detect_faces(), and receive structured output with box coordinates, landmark positions, and confidence values. Maintenance is dormant but the codebase is stable; the repository has not been archived and retains 2483 stars. No known vulnerabilities are recorded.
Use it for
- Detect faces in photos for automated cropping, tagging, or privacy masking in image processing pipelines.
- Extract facial landmarks to feed into downstream face recognition or emotion detection models.
- Build face-aware image galleries or applications that need to locate and align faces.
- Perform batch face detection on large image datasets for training or annotation workflows.
- Implement face detection in video frames for security or interactive applications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need face detection and landmark extraction in Python >= 3.10.
The package has low install friction, permissive licensing, no known vulnerabilities, and a stable codebase with 2483 GitHub stars. The main trade-off is dormant maintenance—no active development for 675 days—so expect no new features or rapid bug fixes. It is suitable for production use in stable environments but not for projects requiring ongoing support.
Install
mtcnn on PyPI
Before you install
Low friction installation with only joblib and lz4 as runtime dependencies. Maintenance is dormant—last release was 675 days ago—but the repository remains active with 2483 stars and has not been archived, suggesting the package is stable rather than actively developed.
Requires Python >= 3.10 and TensorFlow >= 2.12; TensorFlow must be installed separately or via pip install mtcnn[tensorflow].
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install mtcnn
from mtcnn import MTCNN
from mtcnn.utils.images import load_image
detector = MTCNN(device="CPU:0")
image = load_image("photo.jpg")
result = detector.detect_faces(image)
print(result)
Verify before relying
- Whether the package's performance characteristics (speed, accuracy) meet your application's requirements compared to alternatives.
- GPU device support and whether CUDA/GPU acceleration is available beyond the CPU:0 example shown.
- Batch processing capabilities and performance characteristics on large image datasets.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesjobliblz4 |
| Maintenance | Dormant 675 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,806,628 / month, #2,493 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Topic :: Scientific/Engineering :: Artificial Intelligence |
Evidence: mtcnn-1.0.0-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 › “mtcnn face detector”
- mtcnnDetects faces and facial landmarks (eyes, nose, mouth) in images…
- facenet-pytorchProvides pretrained PyTorch models for face detection using MTCNN and…
- retinaface-pyDetects and localizes faces in images using a PyTorch implementation…
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 face-alignment · retina-face · facenet-pytorch · face-recognition · facexlib · retinaface-py · face_recognition_models · deepface · tmtools · gfpgan