pub struct ByteTrackConfig {
pub track_high_thresh: f32,
pub track_activation_thresh: f32,
pub track_low_thresh: f32,
pub match_thresh: f32,
pub max_time_lost: u32,
pub class_aware: bool,
}Expand description
Runtime parameters for crate::ByteTracker.
Fields§
§track_high_thresh: f32Detections at or above this score enter high-confidence matching.
track_activation_thresh: f32Detections at or above this score may create new tracks.
track_low_thresh: f32Floor for low-confidence second-stage matching.
match_thresh: f32Minimum intersection-over-union required for a valid match.
max_time_lost: u32Frames a lost track is retained for re-association.
class_aware: boolWhen true, only same-class detections may match a track.
Implementations§
Source§impl ByteTrackConfig
impl ByteTrackConfig
Sourcepub fn validate(self) -> Result<Self, TrackError>
pub fn validate(self) -> Result<Self, TrackError>
Validates finite thresholds in 0.0..=1.0 and non-zero lost buffer.
§Errors
Returns TrackError::InvalidConfig when any field is out of range.
Trait Implementations§
Source§impl Clone for ByteTrackConfig
impl Clone for ByteTrackConfig
impl Copy for ByteTrackConfig
Source§impl Debug for ByteTrackConfig
impl Debug for ByteTrackConfig
Source§impl Default for ByteTrackConfig
impl Default for ByteTrackConfig
Source§impl PartialEq for ByteTrackConfig
impl PartialEq for ByteTrackConfig
impl StructuralPartialEq for ByteTrackConfig
Auto Trait Implementations§
impl Freeze for ByteTrackConfig
impl RefUnwindSafe for ByteTrackConfig
impl Send for ByteTrackConfig
impl Sync for ByteTrackConfig
impl Unpin for ByteTrackConfig
impl UnsafeUnpin for ByteTrackConfig
impl UnwindSafe for ByteTrackConfig
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