pub struct Brightness;Expand description
Mean luma (0.0..=255.0) of the region, as DetectorOutput::Number.
Pair with .on_threshold(...) for “screen went dark”-style watchers.
Trait Implementations§
Source§impl Detector for Brightness
impl Detector for Brightness
fn evaluate( &mut self, view: &FrameView<'_>, ) -> Result<DetectorOutput, DetectorError>
Auto Trait Implementations§
impl Freeze for Brightness
impl RefUnwindSafe for Brightness
impl Send for Brightness
impl Sync for Brightness
impl Unpin for Brightness
impl UnsafeUnpin for Brightness
impl UnwindSafe for Brightness
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