From f5a272414d9898d545c9781aee86b13c20b2cb52 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 19 Jun 2023 15:09:24 -0600 Subject: [PATCH] Fix birdsye not removing cameras once objects are no longer visible --- frigate/output.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frigate/output.py b/frigate/output.py index 323788a53..50593c65e 100644 --- a/frigate/output.py +++ b/frigate/output.py @@ -298,10 +298,8 @@ class BirdsEyeFrameManager: self.clear_frame() return True - # check if we need to reset the layout because there are new cameras to add - reset_layout = ( - True if len(active_cameras.difference(self.active_cameras)) > 0 else False - ) + # check if we need to reset the layout because there is a different number of cameras + reset_layout = len(self.active_cameras) - len(active_cameras) is not 0 # reset the layout if it needs to be different if reset_layout: