#[non_exhaustive]pub struct ByteTrackConfig {
pub max_missed: u32,
pub high_score: f32,
pub new_track_score: f32,
pub match_iou: f32,
pub low_match_iou: f32,
}Expand description
Settings for ByteTracker: when a detection starts or continues a track, how much it
must overlap a track to continue it, and how long a lost track waits to be found again.
§Example
use adk_vision::ByteTrackConfig;
// Ride out occlusions of up to two seconds of a 5 fps stream.
let config = ByteTrackConfig::default().with_max_missed(10);
assert_eq!(config.max_missed, 10);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_missed: u32Frames a track that stopped matching is kept, so an object hidden for up to this many frames keeps its identifier when it reappears.
high_score: f32Detections scoring at least this are matched first; lower ones only continue tracks the first pass left unmatched (ByteTrack’s recovery step).
new_track_score: f32The score an unmatched detection needs to start a new track.
match_iou: f32The overlap (intersection over union) a high-scoring detection needs with a track’s predicted box to continue it.
low_match_iou: f32The overlap a low-scoring detection needs to continue a track.
Implementations§
Source§impl ByteTrackConfig
impl ByteTrackConfig
Sourcepub fn with_max_missed(self, frames: u32) -> Self
pub fn with_max_missed(self, frames: u32) -> Self
Keeps a lost track for frames frames.
Sourcepub fn with_scores(self, high_score: f32, new_track_score: f32) -> Self
pub fn with_scores(self, high_score: f32, new_track_score: f32) -> Self
Sets the high-score and new-track thresholds.
Sourcepub fn with_match_iou(self, high: f32, low: f32) -> Self
pub fn with_match_iou(self, high: f32, low: f32) -> Self
Sets the overlaps a high- and a low-scoring detection need to continue a track.
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 Forget for ByteTrackConfig
impl Freeze for ByteTrackConfig
impl Move 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§
impl<T> Boilerplate for T
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,
Source§impl<T> Downcast for T
impl<T> Downcast for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
impl<T> MaybeSend for Twhere
T: Send,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().impl<T> Scalar for T
impl<T> Scalar for T
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.