Legacy_TrackerTrait

Trait Legacy_TrackerTrait 

Source
pub trait Legacy_TrackerTrait: AlgorithmTrait + Legacy_TrackerTraitConst {
    // Required method
    fn as_raw_mut_Legacy_Tracker(&mut self) -> *mut c_void;

    // Provided methods
    fn init(
        &mut self,
        image: &impl ToInputArray,
        bounding_box: Rect2d,
    ) -> Result<bool> { ... }
    fn update(
        &mut self,
        image: &impl ToInputArray,
        bounding_box: &mut Rect2d,
    ) -> Result<bool> { ... }
    fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::tracking::Legacy_Tracker

Required Methods§

Provided Methods§

Source

fn init( &mut self, image: &impl ToInputArray, bounding_box: Rect2d, ) -> Result<bool>

Initialize the tracker with a known bounding box that surrounded the target

§Parameters
  • image: The initial frame
  • boundingBox: The initial bounding box
§Returns

True if initialization went succesfully, false otherwise

Source

fn update( &mut self, image: &impl ToInputArray, bounding_box: &mut Rect2d, ) -> Result<bool>

Update the tracker, find the new most likely bounding box for the target

§Parameters
  • image: The current frame
  • boundingBox: The bounding box that represent the new target location, if true was returned, not modified otherwise
§Returns

True means that target was located and false means that tracker cannot locate target in current frame. Note, that latter does not imply that tracker has failed, maybe target is indeed missing from the frame (say, out of sight)

Source

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Legacy_TrackerTrait for BoxedRefMut<'_, Legacy_Tracker>

Source§

impl Legacy_TrackerTrait for BoxedRefMut<'_, Legacy_TrackerBoosting>

Source§

impl Legacy_TrackerTrait for BoxedRefMut<'_, Legacy_TrackerCSRT>

Source§

impl Legacy_TrackerTrait for BoxedRefMut<'_, Legacy_TrackerKCF>

Source§

impl Legacy_TrackerTrait for BoxedRefMut<'_, Legacy_TrackerMIL>

Source§

impl Legacy_TrackerTrait for BoxedRefMut<'_, Legacy_TrackerMOSSE>

Source§

impl Legacy_TrackerTrait for BoxedRefMut<'_, Legacy_TrackerMedianFlow>

Source§

impl Legacy_TrackerTrait for BoxedRefMut<'_, Legacy_TrackerTLD>

Source§

impl Legacy_TrackerTrait for Ptr<Legacy_Tracker>

Source§

impl Legacy_TrackerTrait for Ptr<Legacy_TrackerBoosting>

Source§

impl Legacy_TrackerTrait for Ptr<Legacy_TrackerCSRT>

Source§

impl Legacy_TrackerTrait for Ptr<Legacy_TrackerKCF>

Source§

impl Legacy_TrackerTrait for Ptr<Legacy_TrackerMIL>

Source§

impl Legacy_TrackerTrait for Ptr<Legacy_TrackerMOSSE>

Source§

impl Legacy_TrackerTrait for Ptr<Legacy_TrackerMedianFlow>

Source§

impl Legacy_TrackerTrait for Ptr<Legacy_TrackerTLD>

Source§

impl Legacy_TrackerTrait for Legacy_Tracker

Source§

impl Legacy_TrackerTrait for Legacy_TrackerBoosting

Source§

impl Legacy_TrackerTrait for Legacy_TrackerCSRT

Source§

impl Legacy_TrackerTrait for Legacy_TrackerKCF

Source§

impl Legacy_TrackerTrait for Legacy_TrackerMIL

Source§

impl Legacy_TrackerTrait for Legacy_TrackerMOSSE

Source§

impl Legacy_TrackerTrait for Legacy_TrackerMedianFlow

Source§

impl Legacy_TrackerTrait for Legacy_TrackerTLD