From d4015f0fce149d37a3e6c0daf5df1bb91f0297a4 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Thu, 8 Jun 2023 17:36:17 -0600 Subject: [PATCH] Try to scale frames up if not enough space is used --- frigate/output.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frigate/output.py b/frigate/output.py index b0ee49c0e..927833cb1 100644 --- a/frigate/output.py +++ b/frigate/output.py @@ -433,10 +433,12 @@ class BirdsEyeFrameManager: coefficient, ) - if total_height <= canvas_height: + if (canvas_height * 0.9) < total_height <= canvas_height: break - - coefficient -= 0.1 + elif total_height < canvas_height * 0.8: + coefficient += 0.1 + else: + coefficient -= 0.1 self.camera_layout = layout_candidate