namespace Heimdall.Domain.Entities; /// /// Per-camera AI detection profile. /// Controls what the Agent detects and what AI processing runs on the Central. /// public class CameraDetectionProfile { public Guid CameraId { get; private set; } // Object types to detect public bool DetectPerson { get; set; } = true; public bool DetectVehicle { get; set; } = true; public bool DetectAnimal { get; set; } public bool DetectPackage { get; set; } public bool DetectMotion { get; set; } = true; // Heavy AI (Central GPU) public bool FaceRecognition { get; set; } = true; public bool LicensePlateRecognition { get; set; } = true; // Snapshot parameters public int IdleIntervalMs { get; set; } = 1000; public int MotionIntervalMs { get; set; } = 500; public int ActiveIntervalMs { get; set; } = 200; public double MotionThreshold { get; set; } = 0.3; // YOLO public string YoloModel { get; set; } = "yolov8n"; public double MinConfidence { get; set; } = 0.4; // Deduplication public bool RequireMotionForAI { get; set; } = true; public double IoUThreshold { get; set; } = 0.6; public int PersonCooldownSec { get; set; } = 30; public int VehicleCooldownSec { get; set; } = 60; public int AnimalCooldownSec { get; set; } = 120; public int MaxEventsPerMinute { get; set; } = 20; public Camera Camera { get; private set; } = null!; private CameraDetectionProfile() { } // EF Core public CameraDetectionProfile(Guid cameraId) { CameraId = cameraId; } }