pub struct Candidate {
pub detection: Detection,
pub appearance: Option<Appearance>,
}Expand description
One candidate detection for a frame, optionally carrying its appearance descriptor.
The motion-only SingleObjectTracker::update path wraps each wire
Detection with appearance: None; the appearance-aware
SingleObjectTracker::update_with_appearance path carries a descriptor per
candidate (extracted from pixels in a real deployment, supplied directly by
the synthetic harness). The descriptor never reaches the wire, only the
resulting lock-state / association confidence does.
Fields§
§detection: DetectionThe detection as it would appear on the wire (no appearance field).
appearance: Option<Appearance>Appearance descriptor for this box, when available.
Implementations§
Source§impl Candidate
impl Candidate
Sourcepub fn motion_only(detection: Detection) -> Self
pub fn motion_only(detection: Detection) -> Self
A candidate with no appearance descriptor (motion-only path).
Sourcepub fn with_appearance(detection: Detection, appearance: Appearance) -> Self
pub fn with_appearance(detection: Detection, appearance: Appearance) -> Self
A candidate carrying its appearance descriptor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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