Skip to content

A unified library for object tracking featuring clean room re-implementations of leading multi-object tracking algorithms

License

Notifications You must be signed in to change notification settings

roboflow/trackers

Repository files navigation

colab discord

trackers

make sense logo

coming: when it's ready...

Hello

A unified library for object tracking featuring clean room re-implementations of leading multi-object tracking algorithms.

Installation

Pip install the trackers package in a Python>=3.9 environment.

pip install trackers
Install from source

By installing trackers from source, you can explore the most recent features and enhancements that have not yet been officially released. Please note that these updates are still in development and may not be as stable as the latest published release.

pip install git+https://github.com/roboflow/trackers.git

Quickstart

With a modular design, trackers lets you combine object detectors from different libraries (such as ultralytics, transformers, or mmdetection) with the tracker of your choice.

import supervision as sv
from rfdetr import RFDETRBase
from trackers import SORTTracker

model = RFDETRBase()
tracker = SORTTracker()
annotator = sv.LabelAnnotator(text_position=sv.Position.CENTER)

def callback(frame, _):
    detections = model.predict(frame)
    detections = tracker.update(detections)
    return annotator.annotate(frame, detections, detections.tracker_id)

sv.process_video(
    source_path=<SOURCE_VIDEO_PATH>,
    target_path=<TARGET_VIDEO_PATH>,
    callback=callback,
)
trackers-2.0.0rc0-promo.mp4

License

The code is released under the Apache 2.0 license.

Contribution

We welcome all contributions—whether it’s reporting issues, suggesting features, or submitting pull requests. Please read our contributor guidelines to learn about our processes and best practices.

About

A unified library for object tracking featuring clean room re-implementations of leading multi-object tracking algorithms

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages