SORTVideoTracker
Description
The SORTVideoTracker
System object™ is a tracker capable of processing detections of multiple targets from a video
using the Simple Online and Realtime (SORT) algorithm[1]. The tracker initializes,
confirms, corrects, predicts (performs coasting), and deletes tracks. Inputs to the tracker
are bounding boxes reported by video detectors in the form of [x y w h],
where x and y define the upper left corner of the box,
w and h define the width and height of the box,
respectively. The tracker outputs tracks with the same bounding box definition.
This tracker supports the outputs of object detectors from the Computer Vision Toolbox™. For more information, see Choose an Object Detector (Computer Vision Toolbox).
To track targets in a video using this object:
Create the
SORTVideoTrackerobject and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
To create a SORTVideoTracker
System object, use the videoTracker
function with "sort" algorithm. For example:
tracker = videoTracker("sort")Properties
Usage
Description
returns a list of confirmed tracks updated from a video based on the input bounding
boxes.confirmedTracks = tracker(bboxes)
[
also provides a list of tentative tracks and a list of all tracks.
Tentative tracks are tracks that have not yet reached the threshold specified in the
confirmedTracks,tentativeTracks,allTracks] = tracker(___)NumUpdatesForConfirmation property.
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj, use
this syntax:
release(obj)
Examples
References
[1] Bewley, Alex, Zongyuan Ge, Lionel Ott, Fabio Ramos, and Ben Upcroft. "Simple online and realtime tracking." In 2016 IEEE international conference on image processing (ICIP), pp. 3464-3468. IEEE, 2016.
Version History
Introduced in R2026a