Void Sentry
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
track_snapshot.h
Go to the documentation of this file.
1
8#pragma once
9
10#include "tracking_types.h"
11
12#include <cstdint>
13
15 tracking::TrackPhase state = tracking::TrackPhase::Idle;
16 uint32_t id = 0;
17 int x = 0;
18 int y = 0;
19 int bx = 0;
20 int by = 0;
21 int bw = 0;
22 int bh = 0;
23 float vx = 0.0f;
24 float vy = 0.0f;
25 int area_px = 0;
26 int frame_width = 320;
27 int frame_height = 240;
28
29 bool detected() const { return state == tracking::TrackPhase::Locked || state == tracking::TrackPhase::Coasting; }
30};
31
33 uint32_t frames = 0;
34 uint32_t decode_failures = 0;
35 uint32_t scene_changes = 0;
36 uint32_t decode_us_avg = 0;
37 uint32_t track_us_avg = 0;
38 uint64_t decode_us_total = 0;
39 uint64_t track_us_total = 0;
40 uint32_t stack_free = 0;
41};
Definition track_snapshot.h:32
uint32_t stack_free
detect task stack high-water mark in bytes, sampled every 100 frames
Definition track_snapshot.h:40
uint32_t frames
frames analysed
Definition track_snapshot.h:33
uint32_t decode_us_avg
average since boot
Definition track_snapshot.h:36
uint32_t decode_failures
corrupt JPEG or not QVGA
Definition track_snapshot.h:34
uint32_t track_us_avg
detector + tracker, average since boot
Definition track_snapshot.h:37
uint64_t decode_us_total
sum over analysed frames; the stats line differences it per window
Definition track_snapshot.h:38
uint64_t track_us_total
sum of detector + tracker time over analysed frames
Definition track_snapshot.h:39
Definition track_snapshot.h:14
int x
centroid, pixels
Definition track_snapshot.h:17
int bx
box, pixels, clamped to the frame
Definition track_snapshot.h:19
float vx
pixels per frame
Definition track_snapshot.h:23
Value types shared by the motion detector and the tracker (pure C++20, natively tested).