improved performance

This commit is contained in:
2026-06-13 22:44:44 +02:00
parent fc16d4a0e1
commit a3ba53ddf7
8 changed files with 142 additions and 42 deletions
+1 -4
View File
@@ -72,8 +72,7 @@ struct EmbeddedSceneFrame {
// ── Face tracking ─────────────────────────────────────────────────────────────
// Output of FaceTrackerFunc — EmbeddedSceneFrame augmented with per-detection
// track context. track_embeddings[i] is the L2-normalised running mean across
// the track's history; use it for identity matching when track_mature[i] is true.
// track context.
struct TrackedSceneFrame {
Frame source;
@@ -81,8 +80,6 @@ struct TrackedSceneFrame {
std::vector<cv::Mat> crops;
std::vector<int> track_ids; // -1 = brand-new track this frame
std::vector<Embedding> embeddings; // per-frame raw (from embedder)
std::vector<Embedding> track_embeddings; // accumulated mean per track
std::vector<bool> track_mature; // true once track has ≥ min_frames obs.
};
// ── Identity matching ─────────────────────────────────────────────────────────