mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-13 14:45:25 +03:00
Ensure only enabled birdseye cameras are considered active
This commit is contained in:
parent
8e31244fb3
commit
b5e0945eaa
@ -395,7 +395,8 @@ class BirdsEyeFrameManager:
|
|||||||
[
|
[
|
||||||
cam
|
cam
|
||||||
for cam, cam_data in self.cameras.items()
|
for cam, cam_data in self.cameras.items()
|
||||||
if cam_data["last_active_frame"] > 0
|
if self.config.cameras[cam].birdseye.enabled
|
||||||
|
and cam_data["last_active_frame"] > 0
|
||||||
and cam_data["current_frame"] - cam_data["last_active_frame"]
|
and cam_data["current_frame"] - cam_data["last_active_frame"]
|
||||||
< self.inactivity_threshold
|
< self.inactivity_threshold
|
||||||
]
|
]
|
||||||
@ -768,6 +769,13 @@ class Birdseye:
|
|||||||
break
|
break
|
||||||
|
|
||||||
camera_name = updated_topic.rpartition("/")[-1]
|
camera_name = updated_topic.rpartition("/")[-1]
|
||||||
|
|
||||||
|
if (
|
||||||
|
self.config.cameras[camera_name].birdseye.enabled
|
||||||
|
and not updated_birdseye_config.enabled
|
||||||
|
):
|
||||||
|
self
|
||||||
|
|
||||||
self.config.cameras[camera_name].birdseye = updated_birdseye_config
|
self.config.cameras[camera_name].birdseye = updated_birdseye_config
|
||||||
|
|
||||||
if self.birdseye_manager.update(
|
if self.birdseye_manager.update(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user