pub struct BoundedTracker {
pub iou_thresh: f32,
pub low_iou_thresh: f32,
pub max_miss: u32,
pub min_hits: u32,
pub high_score_u16: u16,
pub low_score_u16: u16,
pub class_gated: bool,
/* private fields */
}Expand description
Bounded ByteTrack-class IoU tracker over a frame sequence.
Fields§
§iou_thresh: f32Minimum IoU for high-score (first) association.
low_iou_thresh: f32Minimum IoU for low-score (second / recovery) association.
max_miss: u32Drop a Confirmed track after this many consecutive unmatched frames.
min_hits: u32Hits needed to promote Tentative → Confirmed.
high_score_u16: u16Score ≥ this → High tier (first match + birth).
low_score_u16: u16Low ≤ score < high → Low tier (recovery only).
class_gated: boolIf true, only match same class_hash.
Implementations§
Source§impl BoundedTracker
impl BoundedTracker
Sourcepub fn active_track_count(&self) -> usize
pub fn active_track_count(&self) -> usize
active-track count.
Sourcepub fn confirmed_track_count(&self) -> usize
pub fn confirmed_track_count(&self) -> usize
confirmed-track count.
Sourcepub fn update(
&mut self,
frame_index: u32,
detections: &mut [Detection],
n: usize,
)
pub fn update( &mut self, frame_index: u32, detections: &mut [Detection], n: usize, )
Assign track_id on each of the first n detections in place.
Unmatched / overflow / reject-tier detections get track_id = 0
(and FLAG_TRACK_OVERFLOW when the table is full for a high-score birth).
Sourcepub fn track_sequence(&mut self, frames: &mut [(&mut [Detection], usize)])
pub fn track_sequence(&mut self, frames: &mut [(&mut [Detection], usize)])
Run tracker over a sequence of per-frame detection slices.
frames[f] is (detections buffer, count). Mutates each buffer’s track_id.
Trait Implementations§
Source§impl Clone for BoundedTracker
impl Clone for BoundedTracker
Source§impl Debug for BoundedTracker
impl Debug for BoundedTracker
Auto Trait Implementations§
impl Freeze for BoundedTracker
impl RefUnwindSafe for BoundedTracker
impl Send for BoundedTracker
impl Sync for BoundedTracker
impl Unpin for BoundedTracker
impl UnsafeUnpin for BoundedTracker
impl UnwindSafe for BoundedTracker
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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