pub struct TrackInfo {
pub uuid: Uuid,
pub tracked_location: [f32; 4],
pub count: i32,
pub created: u64,
pub last_updated: u64,
}Expand description
Per-track metadata returned by Tracker::update and Tracker::get_active_tracks.
Every active track carries a stable Uuid assigned at track creation and
preserved until the track is deleted. Callers can use the UUID to correlate
tracks across frames or to drive per-track rendering (e.g. per-UUID colour
assignment in ColorMode::Track).
§Timestamps
created and last_updated store the raw timestamp argument passed to
Tracker::update at the corresponding event. The tracker does not
interpret these values — they are caller-supplied nanoseconds in typical
usage, but any monotonically increasing unit works.
Fields§
§uuid: UuidGlobally unique identifier for this track, assigned when the tracklet is first created and never reused.
tracked_location: [f32; 4]Kalman-smoothed predicted location of the object in XYXY format
[xmin, ymin, xmax, ymax]. This is the predicted position for the
current frame, not the raw detection box — it may differ from the
detection that triggered the update. For the raw detection see
ActiveTrackInfo::last_box.
count: i32Number of times this track has been matched to a detection. Starts at 1 on the frame the track is created. Useful as a confidence signal — tracks with a low count are newly created and may be false positives.
created: u64Timestamp (as supplied to Tracker::update) of the frame on which
this track was first created.
last_updated: u64Timestamp of the most recent Tracker::update call that matched a
detection to this track. Tracklets whose last_updated is older than
now - extra_lifespan are deleted on the next update.
Trait Implementations§
impl Copy for TrackInfo
impl StructuralPartialEq for TrackInfo
Auto Trait Implementations§
impl Freeze for TrackInfo
impl RefUnwindSafe for TrackInfo
impl Send for TrackInfo
impl Sync for TrackInfo
impl Unpin for TrackInfo
impl UnsafeUnpin for TrackInfo
impl UnwindSafe for TrackInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.