mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 09:15:22 +03:00
Remove birdseye toggle (will be added in separate PR)
This commit is contained in:
parent
6f90462f06
commit
8abece9123
@ -508,7 +508,6 @@ class CameraLiveConfig(FrigateBaseModel):
|
||||
|
||||
|
||||
class CameraUiConfig(FrigateBaseModel):
|
||||
birdseye: bool = Field(default=True, title="Show this camera in Frigate Birdseye View.")
|
||||
order: int = Field(default=0, title="Order of camera in UI.")
|
||||
dashboard: bool = Field(default=True, title="Show this camera in Frigate dashboard UI.")
|
||||
|
||||
|
||||
@ -310,12 +310,8 @@ class BirdsEyeFrameManager:
|
||||
|
||||
return True
|
||||
|
||||
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
|
||||
def update(self, camera, object_count, motion_count, frame_time, frame) -> bool:
|
||||
# update the last active frame for the camera
|
||||
self.cameras[camera]["current_frame"] = frame_time
|
||||
if self.camera_active(object_count, motion_count):
|
||||
self.cameras[camera]["last_active_frame"] = frame_time
|
||||
@ -428,7 +424,6 @@ 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