ObjectTrackingData
is an object representing a list of tracked bounding boxes or other objects.
Details
- ObjectTrackingData contains information about objects that are tracked over time. Tracked objects are also known as tracklets.
- ObjectTrackingData is returned from VideoObjectTracking and other functions.
- For a tracked object tracked, tracked[elem] gives objects and their properties.
- Possible values for elements elem are:
-
label corresponding to a specific labelprop property prop for given trackletslabel->prop properties for the given label
- A list of available labels label can be obtained using tracked["Labels"].
- Global properties include:
-
"Labels" list of tracked labels"Length" number of times, frames or steps"TimedQ" returns True if times are present"Times" times for each frame, if present"Type" type of tracked objects
- Possible types are "BoundingBoxes", "Points" and "LabelMatrices".
- Time-related properties, given as a time series for each label:
-
"FirstFrame" first frame in which a label appears"FirstTime" first time in which a label is present"LastTime" last time in which a label is present"TimeInterval" first and last time in which a label is present
- Properties for "BoundingBoxes" type objects include:
-
"BoundingBox" bounding boxes as Rectangle [{xmin,ymin},{xmax,ymax}] (main)"Dimension" dimensions given as {width,height}"Position" center of the bounding box given as {x,y}"MaxDimension" max dimension for each label given as {maxWidth,maxHeight}"SubVideo" video of the tracked bounding boxes for each label
- Properties for an object of the "Points" type include:
-
"Point" points for for each time given as Point [{x,y}] (main)"Position" positions for each time given as {x,y}
- Properties for an object of the "LabelMatrices" type include:
-
"Matrix" tracked label matrices (main)"ColorizedImage" colorized version of the label matrices
- For timed ObjectTrackingData , the type-specific properties are returned as TimeSeries .
- With no times present, time-related properties are equivalent to indices. Other type-specific properties are returned as lists.
- The following operations on ObjectTrackingData are supported:
Examples
open allclose allBasic Examples (1)
Detect and track objects in a video:
First time when each label shows:
Highlight tracked objects on the video:
Scope (8)
Extract the labels of an ObjectTrackingData object:
Extract the position of the tracked objects:
Select only 2 tracks within an ObjectTrackingData object:
Extract multiple properties at the same time:
Extract properties for a specific object:
Extract properties for multiple objects:
Construct a Tabular object from ObjectTrackingData :
Construct a Dataset from ObjectTrackingData :
Construct a TimeSeries from ObjectTrackingData :
Extract all the data from ObjectTrackingData :
Related Guides
History
Text
Wolfram Research (2025), ObjectTrackingData, Wolfram Language function, https://reference.wolfram.com/language/ref/ObjectTrackingData.html.
CMS
Wolfram Language. 2025. "ObjectTrackingData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ObjectTrackingData.html.
APA
Wolfram Language. (2025). ObjectTrackingData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ObjectTrackingData.html
BibTeX
@misc{reference.wolfram_2025_objecttrackingdata, author="Wolfram Research", title="{ObjectTrackingData}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/ObjectTrackingData.html}", note=[Accessed: 23-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_objecttrackingdata, organization={Wolfram Research}, title={ObjectTrackingData}, year={2025}, url={https://reference.wolfram.com/language/ref/ObjectTrackingData.html}, note=[Accessed: 23-April-2025 ]}