mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25: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):
|
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.")
|
order: int = Field(default=0, title="Order of camera in UI.")
|
||||||
dashboard: bool = Field(default=True, title="Show this camera in Frigate dashboard UI.")
|
dashboard: bool = Field(default=True, title="Show this camera in Frigate dashboard UI.")
|
||||||
|
|
||||||
|
|||||||
@ -310,12 +310,8 @@ class BirdsEyeFrameManager:
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def update(self, camera, camera_birdseye_enabled, object_count, motion_count, frame_time, frame) -> bool:
|
def update(self, camera, object_count, motion_count, frame_time, frame) -> bool:
|
||||||
# If this camera has birdseye disabled then exclude
|
# update the last active frame for the camera
|
||||||
if not camera_birdseye_enabled:
|
|
||||||
return False
|
|
||||||
|
|
||||||
# update the last active frame for the camera
|
|
||||||
self.cameras[camera]["current_frame"] = frame_time
|
self.cameras[camera]["current_frame"] = frame_time
|
||||||
if self.camera_active(object_count, motion_count):
|
if self.camera_active(object_count, motion_count):
|
||||||
self.cameras[camera]["last_active_frame"] = frame_time
|
self.cameras[camera]["last_active_frame"] = frame_time
|
||||||
@ -428,7 +424,6 @@ 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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user