Smart Camera ESP32
An AI-driven, real-time Sentry Turret platform leveraging asynchronous I/O and computer vision to deliver high-precision autonomous motion tracking on resource-constrained embedded hardware.
Loading...
Searching...
No Matches
CameraDiffDetection Class Reference

Motion detection using frame differencing. More...

#include <camera_diff_detection.h>

Inheritance diagram for CameraDiffDetection:
BaseDetectionModule

Public Member Functions

std::tuple< MoveX, MoveYdetect_object (camera_buffer_t frame) override
 Detects motion by comparing frames and returns direction to track.
 
MotionData get_motion_data () const
 Get the latest motion data from the detection module.
 
DetectionMetrics get_detection_metrics () const
 
- Public Member Functions inherited from BaseDetectionModule
virtual ~BaseDetectionModule ()=default
 Virtual destructor to ensure proper cleanup of derived classes.
 

Detailed Description

Motion detection using frame differencing.

Analyzes consecutive frames to detect moving objects. Returns clean MotionData structure with detection results. Completely independent from visualization.

Member Function Documentation

◆ detect_object()

std::tuple< MoveX, MoveY > CameraDiffDetection::detect_object ( camera_buffer_t frame)
overridevirtual

Detects motion by comparing frames and returns direction to track.

Parameters
frameCamera frame buffer
Returns
Tuple of (MoveX, MoveY) indicating motion direction

Implements BaseDetectionModule.

◆ get_motion_data()

MotionData CameraDiffDetection::get_motion_data ( ) const
inlinevirtual

Get the latest motion data from the detection module.

This method provides access to the motion metrics detected. Derived classes should override this to return their current metrics.

Returns
MotionData containing the latest detection results.

Reimplemented from BaseDetectionModule.


The documentation for this class was generated from the following files: