|
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.
|
Performance and health metrics for the Motion Detection engine. More...
#include <motion_data.h>
Public Member Functions | |
| DetectionMetrics () | |
| Constructor: Initializes all metrics to zero. | |
Metric Mutators (Setters) | |
| void | set_detection_time_ms (uint32_t time) |
| void | set_pixels_changed (int count) |
| void | set_motion_confidence (float conf) |
| Sets confidence and clamps value between 0.0 and 1.0. | |
| void | set_consecutive_motion_frames (int count) |
| void | set_consecutive_static_frames (int count) |
| void | set_total_detections (uint32_t count) |
| void | set_total_frames (uint32_t count) |
| void | set_last_frame_timestamp (uint32_t ts) |
| void | set_average_fps (uint32_t fps) |
Metric Accessors (Getters) | |
| uint32_t | get_detection_time_ms () const |
| int | get_pixels_changed () const |
| float | get_motion_confidence () const |
| int | get_consecutive_motion_frames () const |
| int | get_consecutive_static_frames () const |
| uint32_t | get_total_detections () const |
| uint32_t | get_total_frames () const |
| uint32_t | get_last_frame_timestamp () const |
| uint32_t | get_average_fps () const |
Performance and health metrics for the Motion Detection engine.
Tracks computational overhead (latency) and statistical trends such as FPS and detection consistency. This data is primarily used for the Web Dashboard telemetry and debugging.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sets confidence and clamps value between 0.0 and 1.0.
| conf | The raw float confidence score. |