norfair
Lightweight Python library for adding real-time multi-object tracking to any detector.
Decision gist · record as of 2026-08-14
Yes, with conditions. Norfair is production-stable and well-maintained for its core use case: adding tracking to any detector with minimal code. Install it if you need real-time multi-object tracking in video and already have a detector. The low install friction and permissive license make adoption straightforward. However, the aging maintenance status (471 days since last release) means you should verify that its Kalman filter and distance-matching approach fit your specific tracking problem before committing to it in a new project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later.
- Optional features (video helpers, MOT metrics) need additional dependencies installable via norfair[video] or norfair[metrics].
- Low friction: pure Python wheel with five runtime dependencies (numpy, scipy, filterpy, rich, importlib-metadata).
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use, modify, and distribute Norfair with minimal restrictions, provided you include the license notice.
last release 2025-04-30 (471 days) · last repo commit 2025-04-30 · 2,675 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 123,406 downloads/mo, #11,910 on PyPI
Alternatives
Verify before relying
pip install norfair
from norfair import Tracker
tracker = Tracker(distance_function=your_distance_fn)
tracked_objects = tracker.update(detections=new_detections)- Actual performance characteristics (latency, throughput) on typical video resolutions and frame rates.
- Maturity of re-identification and camera-motion features relative to production use.
- Community adoption and real-world deployment feedback beyond the 2,675 GitHub stars.
What it is and what it does
Norfair is a Python library that integrates tracking into video processing pipelines by taking detections (expressed as coordinate sets) from any object or keypoint detector and assigning consistent identities across frames. It uses Kalman filtering to predict object positions and matches predictions to new detections via customizable distance functions, enabling you to track centroids, bounding boxes, human keypoints, or 3D points with minimal code changes.
The library is designed for modularity and speed: it plugs into existing detection workflows (YOLO, Detectron2, OpenPose, etc.) and supports advanced scenarios including moving cameras, appearance-based re-identification, and n-dimensional tracking. It depends on numpy, scipy, and filterpy for numerical computation, and rich for terminal output, making it lightweight enough for embedded systems when optional video and metrics features are not needed.
Use it for
- Track vehicle or pedestrian centroids in traffic monitoring or surveillance video with a YOLO or Detectron2 detector.
- Track human body keypoints across video frames for pose-based analytics or sports performance analysis.
- Maintain object identity in scenes with camera motion by estimating and compensating for pan, tilt, rotation, and zoom.
- Re-identify occluded or briefly lost objects using appearance embeddings to improve tracking robustness in crowded scenes.
- Track 3D points from depth sensors or multi-view systems for robotics or 3D reconstruction workflows.
- Integrate tracking into a custom video inference loop without external frameworks, using only Norfair and a detector.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Norfair is production-stable and well-maintained for its core use case: adding tracking to any detector with minimal code. Install it if you need real-time multi-object tracking in video and already have a detector. The low install friction and permissive license make adoption straightforward. However, the aging maintenance status (471 days since last release) means you should verify that its Kalman filter and distance-matching approach fit your specific tracking problem before committing to it in a new project.
Install
norfair on PyPI
Before you install
Low friction: pure Python wheel with five runtime dependencies (numpy, scipy, filterpy, rich, importlib-metadata). Status is aging—last release 471 days ago—but the repository remains active with recent commits and no archived flag.
Requires Python 3.8 or later. Optional features (video helpers, MOT metrics) need additional dependencies installable via norfair[video] or norfair[metrics].
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute Norfair with minimal restrictions, provided you include the license notice.
Quickstart
pip install norfair
from norfair import Tracker
tracker = Tracker(distance_function=your_distance_fn)
tracked_objects = tracker.update(detections=new_detections)
Verify before relying
- Actual performance characteristics (latency, throughput) on typical video resolutions and frame rates.
- Maturity of re-identification and camera-motion features relative to production use.
- Community adoption and real-world deployment feedback beyond the 2,675 GitHub stars.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesfilterpyrichscipynumpyimportlib-metadata |
| Maintenance | Aging 471 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 123,406 / month, #11,910 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Multimedia :: VideoTopic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Image RecognitionTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: norfair-2.3.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 › “real-time object tracking”
- norfairNorfair adds real-time multi-object tracking to any detector by…
- mediapipeMediaPipe provides pre-built machine learning models and…
- jupyterlab_notebook_awarenessA JupyterLab extension that tracks which notebook and cell each user…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also boxmot · pupil-apriltags · filterpy · motmetrics · pykalman · yolov5 · ultralytics · mtcnn · simdkalman