pub struct DeepSortTracker { /* private fields */ }Expand description
DeepSORT multi-object tracker.
Implementations§
Source§impl DeepSortTracker
impl DeepSortTracker
Sourcepub fn new(config: DeepSortConfig) -> Self
pub fn new(config: DeepSortConfig) -> Self
Create a new DeepSORT tracker with the given configuration.
Sourcepub fn update(
&mut self,
detections: &[Detection],
features: Option<&[Vec<f32>]>,
)
pub fn update( &mut self, detections: &[Detection], features: Option<&[Vec<f32>]>, )
Main update step: match detections to tracks and update state.
detections — the current frame’s detections.
features — optional appearance feature vectors, one per detection.
Sourcepub fn tracks(&self) -> &[DeepSortTrack]
pub fn tracks(&self) -> &[DeepSortTrack]
Get all active (non-deleted) tracks.
Sourcepub fn confirmed_tracks(&self) -> Vec<&DeepSortTrack>
pub fn confirmed_tracks(&self) -> Vec<&DeepSortTrack>
Get only confirmed tracks.
Auto Trait Implementations§
impl Freeze for DeepSortTracker
impl RefUnwindSafe for DeepSortTracker
impl Send for DeepSortTracker
impl Sync for DeepSortTracker
impl Unpin for DeepSortTracker
impl UnsafeUnpin for DeepSortTracker
impl UnwindSafe for DeepSortTracker
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more