pub struct HomographicImageTracker { /* private fields */ }Available on crate feature
tracking only.Expand description
Tracks homographic image registration across frames.
Implementations§
Source§impl HomographicImageTracker
impl HomographicImageTracker
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 homographic-registration 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<HomographicAlignment, VisionError>
pub fn track( &mut self, image_path: impl AsRef<Path>, ) -> Result<HomographicAlignment, VisionError>
Track the homographic alignment into image_path.
§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 HomographicImageTracker
impl Drop for HomographicImageTracker
Auto Trait Implementations§
impl Freeze for HomographicImageTracker
impl RefUnwindSafe for HomographicImageTracker
impl !Send for HomographicImageTracker
impl !Sync for HomographicImageTracker
impl Unpin for HomographicImageTracker
impl UnsafeUnpin for HomographicImageTracker
impl UnwindSafe for HomographicImageTracker
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