Skip to content

Software

BoxMOT

From github.com/mikel-brostrom/boxmot (opens in a new tab)

  • Perception
  • Library
  • AGPL-3.0-only

A Python and C++ library of multi-object tracking modules that work with axis-aligned or oriented bounding box detections from any detector, with a CLI for tracking, evaluation, and ReID workflows.

Facts

GitHub stars
8,331read on 27 Nov 2026
Last update
20 Nov 2026Newest commit on master
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate

Checked on GitHub on 27 Nov 2026.

Licenses

Code
AGPL-3.0-only (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (AGPL-3.0-only) at commit 8351f5c (opens in a new tab), on 20 Nov 2026.

Commercial use
Yes

Copyleft: Modified source must be published, also when it runs as a service.

At a glance

What it is
  • Provides swappable detector, segmentor, appearance-encoder, and tracker components that pipelines compose.
  • Offers a CLI covering tracking, dataset materialization, evaluation, tuning, research, ReID training and export.
  • Supports both axis-aligned and oriented bounding box tracking paths.
  • Includes optional native C++ tracker implementations selectable with a backend flag and embeddable via CMake.
  • Exposes a Python API so components and pipelines can be used directly in applications, with NumPy detections and BGR frames.
  • Reports benchmark results on MOT17, SportsMOT and MMOT for many trackers, scored in Python and C++.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
AGPL-3.0-only. Commercial use: Yes. Where it was read
Install
pip install boxmotEvery step
Maintenance
Active, last commit on 20 Nov 2026.

Use it

Copied word for word from the creator's own documentation; each block links to the lines it comes from.

Installation

pip install boxmot
boxmot --help

From README.md at fc8c62e, lines 58–59 (opens in a new tab)

Minimal Usage

boxmot track --detector yolo26n --reid lmbn_n_duke --tracker occluboost \
  --source 0 --save --show

From README.md at fc8c62e, lines 244–245 (opens in a new tab)

Docker

docker run --rm -it --gpus all \
  -v "$PWD:/workspace" \
  --workdir /workspace \
  boxmot/boxmot:24.0.0

From docs/getting-started/installation.md at fc8c62e, lines 119–122 (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 8351f5c

Robotheca read the repository at three versions: the summary at 060f85a, the facts and the README at 8351f5c (read on 27 Nov 2026) and the install commands at fc8c62e (read on 6 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by @mikel-brostrom, at commit 8351f5c, under AGPL-3.0-only (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

BoxMOT provides independent detector, segmentor, appearance-encoder, and tracker components built around validated Torch structures. Pipelines compose those components; the CLI owns sources, outputs, materialized datasets, evaluation, tuning, research, and ReID workflows.

Why BoxMOT
  • One interface for track, materialize, materialize --time-variant, eval, tune, research, train-reid, eval-reid, compare-reid, export, install, and native build workflows.
  • Swappable components with explicit capabilities and requirements.
  • Immutable, keyed Parquet builds with reusable detections, masks, and embeddings.
  • Support for both AABB and OBB tracking paths.
  • Optional native C++ tracker implementations selected with --tracker-backend cpp, with shared detection/output contracts and documented backend differences. They are also embeddable in standalone C++ projects through CMake (see Native C++ Integration (opens in a new tab) and platform dependency installation (opens in a new tab)).
  • A structured Python API for embedding components and pipelines in applications.
Installation

Requires Python 3.10–3.13.

Install from PyPI:

pip install boxmot "ultralytics>=8.4.58"
boxmot --help

Or, from a source checkout, run in the repository root:

pip install "uv==0.12.4"
uv sync --extra cpu --extra yolo
uv run --no-sync python -m boxmot.engine.cli --help

Replace --extra cpu with --extra cu130 for CUDA 13.0.

See installation options (opens in a new tab), source and CPU/CUDA setup (opens in a new tab), and GPU batch sizing (opens in a new tab).

Benchmark Results

Scores are Python first and C++ in parentheses.

MMOT reported metrics are 'class average'. See Experiment Workflows (opens in a new tab) for details.

Related guides:

Minimal Usage

Choose a workflow and settings with the terminal UI (opens in a new tab):

boxmot ui

Track a webcam from the CLI:

boxmot track --detector yolo26n --reid lmbn_n_duke --tracker occluboost \
  --source 0 --save --show

Python with axis-aligned boxes (AABB):

import numpy as np

from boxmot import OccluBoost

tracker = OccluBoost()
# x1, y1, x2, y2, confidence, class_id
dets = np.array([[100, 200, 300, 400, 0.9, 0]])
frame = np.zeros((480, 640, 3), dtype=np.uint8)  # BGR image
tracks = tracker.update(dets, frame)
print(tracks[:, 4].astype(int))  # track IDs

Python with oriented boxes (OBB) (opens in a new tab):

import numpy as np

from boxmot import OccluBoost

tracker = OccluBoost(is_obb=True)
# cx, cy, width, height, angle in radians, confidence, class_id
dets = np.array([[200, 300, 200, 100, np.pi / 6, 0.9, 0]])
frame = np.zeros((480, 640, 3), dtype=np.uint8)  # BGR image
tracks = tracker.update(dets, frame)
print(tracks[:, 5].astype(int))  # track IDs

See the mode guides (opens in a new tab) for more CLI and Python workflows. Advanced examples: capture timing (opens in a new tab), prompted tracking with EdgeTAM (opens in a new tab), and 2D/3D fusion with EagerMot (opens in a new tab).

Track Attributes with Ollama and vLLM

For continuous network cameras, see the Kubernetes deployment guide (opens in a new tab) and boxmot stream --config PATH. CPU and GPU examples use shared model serving, PostgreSQL ownership leases, and durable JSON metadata with seven-day retention.

Add clothing, footwear, and pose descriptions to person tracks with Ollama (opens in a new tab) or vLLM (opens in a new tab). Display attributes alongside track IDs and export structured JSON results. Every attribute run requires PostgreSQL for its queue and retained results; the Helm chart can start a local database or connect to managed PostgreSQL.

See the Track Attributes guide (opens in a new tab) for setup, configuration, and examples. To run detection, ReID, and the VLM on NVIDIA GPUs, use the Helm GPU deployment settings (opens in a new tab).

License

BoxMOT is licensed under the GNU Affero General Public License v3 (AGPL-3.0) (opens in a new tab).

Each detector and segmentor integrated with BoxMOT retains its own upstream license. See the respective project's license for its terms. Other third-party components also retain their respective licenses and notices.

Contributing

Start with CONTRIBUTING.md (opens in a new tab) and the contributor docs (opens in a new tab).

Contributors

Image: BoxMOT contributors (opens in a new tab) (opens in a new tab)

Support and Citation

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.