ofps 0.1.0

Framework for efficient processing of optical flows/motion vectors
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Motion detection module

use crate::prelude::v1::*;

/// Generic motion detector.
pub trait Detector {
    /// Detect motion.
    ///
    /// This function will return `None`, if there is no motion, or a filtered motion field with
    /// the number of vectors in motion.
    fn detect_motion(&self, motion: &[MotionEntry]) -> Option<(usize, MotionField)>;
}