pub struct ObjectTracker { /* private fields */ }Available on crate feature
tracking only.Expand description
Tracks a detected object’s bounding box across a sequence of frames.
Implementations§
Source§impl ObjectTracker
impl ObjectTracker
Sourcepub fn new(
image_path: impl AsRef<Path>,
bbox: BoundingBox,
) -> Result<Self, VisionError>
pub fn new( image_path: impl AsRef<Path>, bbox: BoundingBox, ) -> Result<Self, VisionError>
Create a new object tracker seeded from image_path and bbox.
§Errors
Returns VisionError if the image path is invalid, the image
fails to load, or Vision rejects the tracking request.
Sourcepub fn track(
&mut self,
image_path: impl AsRef<Path>,
) -> Result<BoundingBox, VisionError>
pub fn track( &mut self, image_path: impl AsRef<Path>, ) -> Result<BoundingBox, VisionError>
Track the object into image_path and return the updated bounding
box.
§Errors
Returns VisionError if the image path is invalid, the image
fails to load, or Vision rejects the tracking request.
Trait Implementations§
Source§impl Drop for ObjectTracker
impl Drop for ObjectTracker
Auto Trait Implementations§
impl Freeze for ObjectTracker
impl RefUnwindSafe for ObjectTracker
impl !Send for ObjectTracker
impl !Sync for ObjectTracker
impl Unpin for ObjectTracker
impl UnsafeUnpin for ObjectTracker
impl UnwindSafe for ObjectTracker
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