mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 09:15:22 +03:00
Make each camera for birdseye togglable as well
This commit is contained in:
parent
ac6556e19a
commit
e91339a7ac
@ -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):
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user