3#include "base_detection_module.h"
18 static const int FRAME_WIDTH = 320;
19 static const int FRAME_HEIGHT = 240;
20 static const int DIFF_THRESHOLD = 20;
21 static const int MOTION_THRESHOLD =
23 static const int CENTER_DEADZONE = 20;
27 uint8_t* _diff_buffer;
28 bool _buffers_allocated;
50 DetectionMetrics get_detection_metrics()
const {
return this->_current_metrics; }
53 bool jpeg_to_greyscale(
void* frame, uint8_t* output);
66 bool find_motion(uint8_t* prev, uint8_t* curr,
int width,
int height,
int& center_x,
int& center_y,
An abstract base class (Interface) that defines the contract for detection algorithms....
Definition base_detection_module.h:22
Motion detection using frame differencing.
Definition camera_diff_detection.h:14
MotionData get_motion_data() const
Get the latest motion data from the detection module.
Definition camera_diff_detection.h:48
std::tuple< MoveX, MoveY > detect_object(camera_buffer_t frame) override
Detects motion by comparing frames and returns direction to track.
Definition camera_diff_detection.cpp:31
Performance and health metrics for the Motion Detection engine.
Definition motion_data.h:109
Clean abstraction for motion detection results.
Definition motion_data.h:20