|
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.
|
Clean abstraction for motion detection results. More...
#include <motion_data.h>
Public Member Functions | |
Initialization | |
| MotionData () | |
| Default Constructor: Create empty motion data. | |
| MotionData (int centroid_x, int centroid_y, int frame_width, int frame_height, int pixel_count) | |
| Parameterized Constructor: Create motion data from algorithm output. | |
Data Accessors (Getters) | |
| bool | is_detected () const |
| Check if valid motion was detected in this snapshot. | |
| int | get_centroid_x () const |
| Get motion centroid X coordinate. | |
| int | get_centroid_y () const |
| Get motion centroid Y coordinate. | |
| int | get_frame_width () const |
| Get the width of the frame processed. | |
| int | get_frame_height () const |
| Get the height of the frame processed. | |
| int | get_pixel_count () const |
| Get the volume of detected motion. | |
Clean abstraction for motion detection results.
Separates motion detection logic from visualization. This class acts as a "Snapshot" of a single frame's motion analysis, providing the geometric data required to draw AR overlays or move servos.
|
inline |
Default Constructor: Create empty motion data.
|
inline |
Parameterized Constructor: Create motion data from algorithm output.
| centroid_x | The X coordinate of the motion "blob" center. |
| centroid_y | The Y coordinate of the motion "blob" center. |
| frame_width | The resolution width used during analysis. |
| frame_height | The resolution height used during analysis. |
| pixel_count | The quantity of pixels that exceeded the sensitivity threshold. |
|
inline |
Get motion centroid X coordinate.
|
inline |
Get motion centroid Y coordinate.
|
inline |
Get the height of the frame processed.
|
inline |
Get the width of the frame processed.
|
inline |
Get the volume of detected motion.
|
inline |
Check if valid motion was detected in this snapshot.