mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Try to scale frames up if not enough space is used
This commit is contained in:
parent
c0c3ff212c
commit
d4015f0fce
@ -433,9 +433,11 @@ class BirdsEyeFrameManager:
|
||||
coefficient,
|
||||
)
|
||||
|
||||
if total_height <= canvas_height:
|
||||
if (canvas_height * 0.9) < total_height <= canvas_height:
|
||||
break
|
||||
|
||||
elif total_height < canvas_height * 0.8:
|
||||
coefficient += 0.1
|
||||
else:
|
||||
coefficient -= 0.1
|
||||
|
||||
self.camera_layout = layout_candidate
|
||||
|
||||
Loading…
Reference in New Issue
Block a user