NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix birdseye (#15051)
Nicolas Mowen26c3f9f9148c
diff --git a/frigate/output/birdseye.py b/frigate/output/birdseye.pyindex cab155b9b7..6d6391f146 100644--- a/frigate/output/birdseye.py+++ b/frigate/output/birdseye.py@@ -388,7 +388,7 @@ class BirdsEyeFrameManager:for cam, cam_data in self.cameras.items()if self.config.cameras[cam].birdseye.enabledand cam_data["last_active_frame"] > 0- and cam_data["current_frame"] - cam_data["last_active_frame"]+ and cam_data["current_frame_time"] - cam_data["last_active_frame"]< self.inactivity_threshold])@@ -405,7 +405,7 @@ class BirdsEyeFrameManager:limited_active_cameras = sorted(active_cameras,key=lambda active_camera: (- self.cameras[active_camera]["current_frame"]+ self.cameras[active_camera]["current_frame_time"]- self.cameras[active_camera]["last_active_frame"]),)@@ -517,7 +517,7 @@ class BirdsEyeFrameManager:self.copy_to_position(position[1],position[0],- frame,+ self.cameras[position[0]]["current_frame"],)return True@@ -689,7 +689,8 @@ class BirdsEyeFrameManager:return False# update the last active frame for the camera- self.cameras[camera]["current_frame"] = frame_time+ self.cameras[camera]["current_frame"] = frame.copy()+ self.cameras[camera]["current_frame_time"] = frame_timeif self.camera_active(camera_config.mode, object_count, motion_count):self.cameras[camera]["last_active_frame"] = frame_time@@ -755,7 +756,7 @@ class Birdseye:current_tracked_objects: list[dict[str, any]],motion_boxes: list[list[int]],frame_time: float,- frame,+ frame: np.ndarray,) -> None:# check if there is an updated configwhile True: