NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix case where camera is disabled but autotrack is enabled (#7914)
Nicolas Mowen08586f8f6584
diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.pyindex 935d49250a..6c9db67c03 100644--- a/frigate/ptz/autotrack.py+++ b/frigate/ptz/autotrack.py@@ -121,6 +121,9 @@ class PtzAutoTrackerThread(threading.Thread):def run(self):while not self.stop_event.wait(1):for camera_name, cam in self.config.cameras.items():+ if not cam.enabled:+ continue+if cam.onvif.autotracking.enabled:self.ptz_autotracker.camera_maintenance(camera_name)else:@@ -153,6 +156,9 @@ class PtzAutoTracker:# if cam is set to autotrack, onvif should be set upfor camera_name, cam in self.config.cameras.items():+ if not cam.enabled:+ continue+self.autotracker_init[camera_name] = Falseif cam.onvif.autotracking.enabled:self._autotracker_setup(cam, camera_name)