pub struct ByteTracker { /* private fields */ }Expand description
ByteTrack over a sequence of frames; see the module documentation.
Implementations§
Source§impl ByteTracker
impl ByteTracker
pub fn new(config: ByteTrackConfig) -> Self
pub fn config(&self) -> &ByteTrackConfig
Sourcepub fn lost_track_ids(&self) -> Vec<TrackId>
pub fn lost_track_ids(&self) -> Vec<TrackId>
IDs of the confirmed tracks that are lost and can still be re-found.
Sourcepub fn update(&mut self, detections: &[Detection]) -> Vec<TrackedObject>
pub fn update(&mut self, detections: &[Detection]) -> Vec<TrackedObject>
Process one frame’s detections and return the confirmed tracks matched in it, sorted by ID. Detections with an invalid box or a non-finite score are ignored.
Trait Implementations§
Source§impl Clone for ByteTracker
impl Clone for ByteTracker
Source§impl Debug for ByteTracker
impl Debug for ByteTracker
Auto Trait Implementations§
impl Forget for ByteTracker
impl Freeze for ByteTracker
impl Move for ByteTracker
impl RefUnwindSafe for ByteTracker
impl Send for ByteTracker
impl Sync for ByteTracker
impl Unpin for ByteTracker
impl UnsafeUnpin for ByteTracker
impl UnwindSafe for ByteTracker
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<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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.