pub struct MultiObjectTracker { /* private fields */ }Expand description
Deterministic same-class greedy IoU multi-object tracker.
Implementations§
Source§impl MultiObjectTracker
impl MultiObjectTracker
Sourcepub fn try_new(options: MultiObjectTrackerOptions) -> VisionResult<Self>
pub fn try_new(options: MultiObjectTrackerOptions) -> VisionResult<Self>
Creates an empty tracker.
Sourcepub fn update(
&mut self,
detections: &[Detection],
) -> VisionResult<&[ObjectTrack]>
pub fn update( &mut self, detections: &[Detection], ) -> VisionResult<&[ObjectTrack]>
Associates one detection frame and returns current tracks ordered by id.
Sourcepub fn tracks(&self) -> &[ObjectTrack]
pub fn tracks(&self) -> &[ObjectTrack]
Borrows current tracks ordered by id.
Trait Implementations§
Source§impl Clone for MultiObjectTracker
impl Clone for MultiObjectTracker
Source§fn clone(&self) -> MultiObjectTracker
fn clone(&self) -> MultiObjectTracker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultiObjectTracker
impl Debug for MultiObjectTracker
Source§impl PartialEq for MultiObjectTracker
impl PartialEq for MultiObjectTracker
Source§fn eq(&self, other: &MultiObjectTracker) -> bool
fn eq(&self, other: &MultiObjectTracker) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MultiObjectTracker
Auto Trait Implementations§
impl Freeze for MultiObjectTracker
impl RefUnwindSafe for MultiObjectTracker
impl Send for MultiObjectTracker
impl Sync for MultiObjectTracker
impl Unpin for MultiObjectTracker
impl UnsafeUnpin for MultiObjectTracker
impl UnwindSafe for MultiObjectTracker
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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