wired up voice and vision, testing motion

This commit is contained in:
Jaroslav Vizner
2026-08-28 11:26:40 +02:00
parent 8d88495f6f
commit 3982c6fb6b
84 changed files with 7696 additions and 8984 deletions
+37
View File
@@ -0,0 +1,37 @@
#pragma once
#include <string>
namespace r1_voice {
struct VisionConfig {
std::string detections_path =
"/dev/shm/r1_detections.json";
// Reject YOLO output older than this.
double max_age_seconds = 2.5;
double min_confidence = 0.35;
};
class VisionContext {
public:
explicit VisionContext(
VisionConfig config
);
bool isVisionQuestion(
const std::string& text
) const;
std::string buildContext() const;
private:
VisionConfig config_;
static std::string lowerAscii(
std::string text
);
};
} // namespace r1_voice