Make each camera for birdseye togglable as well

This commit is contained in:
Nick Mowen 2022-03-28 09:53:19 -06:00
parent ac6556e19a
commit e91339a7ac
2 changed files with 8 additions and 3 deletions

View File

@ -500,8 +500,9 @@ class CameraLiveConfig(FrigateBaseModel):
class CameraUiConfig(FrigateBaseModel): class CameraUiConfig(FrigateBaseModel):
order: int = Field(default=0, title="Order of camera in GUI.") birdseye: bool = Field(default=True, title="Show this camera in Frigate Birdseye View.")
show: bool = Field(default=True, title="Show this camera in Frigate GUI.") 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): class CameraConfig(FrigateBaseModel):

View File

@ -300,7 +300,10 @@ class BirdsEyeFrameManager:
return True 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 # update the last active frame for the camera
self.cameras[camera]["current_frame"] = frame_time self.cameras[camera]["current_frame"] = frame_time
@ -415,6 +418,7 @@ def output_frames(config: FrigateConfig, video_output_queue):
): ):
if birdseye_manager.update( if birdseye_manager.update(
camera, camera,
config.cameras[camera].ui.birdseye,
len([o for o in current_tracked_objects if not o["stationary"]]), len([o for o in current_tracked_objects if not o["stationary"]]),
len(motion_boxes), len(motion_boxes),
frame_time, frame_time,