From e91339a7ac026ed5ede3620f439a156d397b3988 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 28 Mar 2022 09:53:19 -0600 Subject: [PATCH] Make each camera for birdseye togglable as well --- frigate/config.py | 5 +++-- frigate/output.py | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frigate/config.py b/frigate/config.py index 1937a66f3..705ce47fd 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -500,8 +500,9 @@ class CameraLiveConfig(FrigateBaseModel): class CameraUiConfig(FrigateBaseModel): - order: int = Field(default=0, title="Order of camera in GUI.") - show: bool = Field(default=True, title="Show this camera in Frigate GUI.") + birdseye: bool = Field(default=True, title="Show this camera in Frigate Birdseye View.") + order: int = Field(default=0, title="Order of camera in UI.") + show: bool = Field(default=True, title="Show this camera in Frigate UI.") class CameraConfig(FrigateBaseModel): diff --git a/frigate/output.py b/frigate/output.py index dff8fc47e..bc28e3408 100644 --- a/frigate/output.py +++ b/frigate/output.py @@ -300,7 +300,10 @@ class BirdsEyeFrameManager: return True - def update(self, camera, object_count, motion_count, frame_time, frame) -> bool: + def update(self, camera, camera_birdseye_enabled, object_count, motion_count, frame_time, frame) -> bool: + # If this camera has birdseye disabled then exclude + if not camera_birdseye_enabled: + return False # update the last active frame for the camera self.cameras[camera]["current_frame"] = frame_time @@ -415,6 +418,7 @@ def output_frames(config: FrigateConfig, video_output_queue): ): if birdseye_manager.update( camera, + config.cameras[camera].ui.birdseye, len([o for o in current_tracked_objects if not o["stationary"]]), len(motion_boxes), frame_time,