pub struct OpticalFlowTracker { /* private fields */ }Available on crate feature
tracking only.Expand description
Tracks dense optical flow across a frame sequence.
Implementations§
Source§impl OpticalFlowTracker
impl OpticalFlowTracker
Sourcepub fn new(reference_path: impl AsRef<Path>) -> Result<Self, VisionError>
pub fn new(reference_path: impl AsRef<Path>) -> Result<Self, VisionError>
Create a new optical-flow tracker seeded with the reference image.
§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<OpticalFlowFrame, VisionError>
pub fn track( &mut self, image_path: impl AsRef<Path>, ) -> Result<OpticalFlowFrame, VisionError>
Track optical flow into image_path and return the copied raw
pixel-buffer bytes.
§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 OpticalFlowTracker
impl Drop for OpticalFlowTracker
Auto Trait Implementations§
impl Freeze for OpticalFlowTracker
impl RefUnwindSafe for OpticalFlowTracker
impl !Send for OpticalFlowTracker
impl !Sync for OpticalFlowTracker
impl Unpin for OpticalFlowTracker
impl UnsafeUnpin for OpticalFlowTracker
impl UnwindSafe for OpticalFlowTracker
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