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