Object Tracking & Re-ID

YOLO Re-ID: Keep a Stable ID on Every Object

Detection finds objects in each frame but remembers nothing. Add re-identification to recover identity through occlusion, and put SORT, ByteTrack, OC-SORT, or BoT-SORT on any YOLO or RF-DETR pipeline, with zero tracking code.

Add tracking to any detector, no tracking code

Build a YOLO26 plus BoT-SORT tracking pipeline in Roboflow Workflows, from detection to tracked and visualized output, in under five minutes.

1

Detect objects

Add an Object Detection Model block. The Trackers library works with any model that returns supervision.Detections, including YOLO, YOLO26, and RF-DETR. Set a class filter to track only what you care about, like people or vehicles.

2

Add a tracker block

Place a tracker block (ByteTrack, SORT, OC-SORT, or BoT-SORT) after the detector. It connects detections across frames and assigns stable tracker_id values, with separate state per video stream.

3

Recover identity through occlusion

When motion alone is not enough, re-identification matches appearance: the object is cropped, turned into an embedding, and compared against earlier tracks. A close match keeps the same ID, so an object that disappears and returns is not counted twice.

4

Visualize and deploy

Add bounding box, label, and trace visualization, colored by track ID, then deploy via the Inference API on your camera or video file. The full pipeline takes under five minutes to build and requires zero tracking code.

Try the YOLO26 + BoT-SORT tracking workflow Open in Workflows

Motion gets you most of the way. Re-ID handles the rest.

Tracking by motion

The tracker predicts where each object is going with a Kalman filter and matches it by position overlap (IoU). It is fast and works well for simple scenes with predictable motion, but it breaks down when objects are occluded, cross paths, or briefly leave the frame, where it may assign a new ID.

Re-ID by appearance

When motion is not enough, re-identification compares appearance. The object is cropped and turned into an embedding, a visual fingerprint, and matched against stored embeddings from earlier tracks. A high similarity score keeps the original ID, re-linking an object even after tracking has lost it.

The strongest trackers use both. Roboflow trackers combine motion matching with appearance-based recovery, so identities stay stable through occlusions, crowds, and moving cameras.

One interface for every tracker

Open source, detector-agnostic, and deployable without writing a line of tracking code.

Works with any detector

The Roboflow Trackers library is compatible with any model that returns supervision.Detections, including YOLO, YOLO26, and RF-DETR. Pass detections in, get stable track IDs back, no need to swap your detector to add tracking.

Four trackers, one interface

SORT, ByteTrack, OC-SORT, and BoT-SORT, with clean implementations behind a single consistent interface. Switch algorithms to fit the scene, from simple real-time tracking to occlusions, crowds, and moving cameras, without rewriting your pipeline.

Zero tracking code, built in minutes

Native tracker blocks in Roboflow Workflows drop in after your detector and assign stable IDs automatically. Build a full YOLO26 plus BoT-SORT pipeline, from detection to visualized output, in under five minutes with no tracking code to maintain.

Open source and commercial-safe

The Trackers library is open-source Python you can run anywhere. Pair it with RF-DETR under the permissive Apache 2.0 license to keep your detection-and-tracking stack commercial-safe, instead of the AGPL-3.0 copyleft terms that come with the YOLO family.

Vision AI is already tracking objects in production

Half the Fortune 100 build computer vision with Roboflow, with tracking pipelines deployed for vehicle counting, retail foot traffic, sports analytics, and warehouse safety.

4
trackers behind one interface: SORT, ByteTrack, OC-SORT, BoT-SORT
1M+
engineers and 16,000+ organizations building on the platform
55B+
model inferences run in production across critical industries

Trusted by teams at BNSF, Rivian, GE Vernova, Cummins, USG, Pella, and Peer Robotics.

Frequently asked questions

What is YOLO Re-ID?

YOLO Re-ID refers to re-identification, the process of recognizing the same specific object across different video frames or camera streams, especially after it disappears, becomes occluded, or reappears later. Object detection finds objects in each frame but remembers nothing between frames, so an object that disappears and returns can be treated as new. Re-ID recovers identity through appearance: the tracker crops the object, a deep neural network turns it into an embedding (a visual fingerprint), and the system compares it against stored embeddings to decide whether it is the same object and keep the same ID.

How is Re-ID different from object detection and tracking?

Three questions separate the tasks. Object detection answers what is this object. Object tracking answers where is this object moving across frames, usually by predicting motion with a Kalman filter and matching position overlap with IoU. Re-ID answers is this the same object I saw before, by comparing appearance embeddings. Re-ID is an optional but powerful component inside the tracking pipeline that takes over when motion alone is not enough, such as during long occlusions or when objects leave and re-enter the frame.

How do I add tracking to a YOLO pipeline without writing code?

Roboflow Workflows includes native tracker blocks for ByteTrack, SORT, OC-SORT, and BoT-SORT. Place a tracker block after an object detection model and it connects detections across frames and assigns stable tracker_id values, outputting tracked detections, new instances, and already-seen instances. You can build a full YOLO26 plus BoT-SORT tracking workflow, from detection to tracked and visualized output, in under five minutes with zero tracking code. The open-source Roboflow Trackers Python library offers the same algorithms behind one interface for code-based pipelines.

Which tracker should I use: SORT, ByteTrack, OC-SORT, or BoT-SORT?

SORT is the simplest and fastest, good for controlled scenes with reliable high-confidence detections and predictable motion, but it has no re-identification. ByteTrack matches both high- and low-confidence detections, which helps in crowded scenes, partial occlusions, and sports. OC-SORT extends SORT with observation-centric updates for frequent occlusions and non-linear, erratic motion like pedestrians or warehouse workers. BoT-SORT is the strongest for difficult scenes with occlusions, moving or shaking cameras, and similar-looking objects, and it can apply camera motion compensation. See the full benchmark comparison to choose.

Build your tracking pipeline today

Add Re-ID tracking to any YOLO or RF-DETR pipeline with the Trackers library or Roboflow Workflows. Keep a stable ID on every object.

Roboflow mascot

Have a question about object tracking?

Ask the Roboflow assistant about Re-ID, choosing a tracker, and building a tracking Workflow.

Ask the Roboflow agent

Suggested resources