pub struct MotionAnalysis {
pub global_magnitude: f32,
pub changed_pixel_ratio: f32,
pub regions: Vec<MotionRegion>,
pub motion_detected: bool,
}Expand description
Frame-level motion analysis result.
Fields§
§global_magnitude: f32Normalized global motion magnitude in [0.0, 1.0].
changed_pixel_ratio: f32Fraction of pixels that changed (0.0–1.0).
regions: Vec<MotionRegion>Per-region motion information.
motion_detected: booltrue if any motion was detected at the current sensitivity level.
Trait Implementations§
Source§impl Clone for MotionAnalysis
impl Clone for MotionAnalysis
Source§fn clone(&self) -> MotionAnalysis
fn clone(&self) -> MotionAnalysis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MotionAnalysis
impl RefUnwindSafe for MotionAnalysis
impl Send for MotionAnalysis
impl Sync for MotionAnalysis
impl Unpin for MotionAnalysis
impl UnsafeUnpin for MotionAnalysis
impl UnwindSafe for MotionAnalysis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more