mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 11:15:21 +03:00
Fix bug
This commit is contained in:
parent
5112d4760f
commit
008a420c06
@ -501,14 +501,12 @@ class BirdsEyeFrameManager:
|
|||||||
if y + max_y > canvas_aspect_y:
|
if y + max_y > canvas_aspect_y:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
final_layout = []
|
|
||||||
row_height = int(canvas_height / coefficient)
|
row_height = int(canvas_height / coefficient)
|
||||||
|
|
||||||
total_width, total_height, standard_candidate_layout = map_layout(row_height)
|
total_width, total_height, standard_candidate_layout = map_layout(row_height)
|
||||||
|
|
||||||
# layout can't be optimized more
|
# layout can't be optimized more
|
||||||
if total_width / canvas_width >= 0.99:
|
if total_width / canvas_width >= 0.99:
|
||||||
return final_layout
|
return standard_candidate_layout
|
||||||
|
|
||||||
scale_up_percent = min(
|
scale_up_percent = min(
|
||||||
1 - (total_width / canvas_width), 1 - (total_height / canvas_height)
|
1 - (total_width / canvas_width), 1 - (total_height / canvas_height)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user