mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 19:55:26 +03:00
Formatting
This commit is contained in:
parent
08e18a2858
commit
9cc7393341
@ -433,6 +433,7 @@ class BirdsEyeFrameManager:
|
|||||||
while calculating:
|
while calculating:
|
||||||
if self.stop_event.is_set():
|
if self.stop_event.is_set():
|
||||||
return
|
return
|
||||||
|
|
||||||
layout_candidate = self.calculate_layout(
|
layout_candidate = self.calculate_layout(
|
||||||
active_cameras_to_add,
|
active_cameras_to_add,
|
||||||
coefficient,
|
coefficient,
|
||||||
@ -563,7 +564,9 @@ class BirdsEyeFrameManager:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
row_height = int(self.canvas.height / coefficient)
|
row_height = int(self.canvas.height / coefficient)
|
||||||
total_width, total_height, standard_candidate_layout = map_layout(camera_layout, row_height)
|
total_width, total_height, standard_candidate_layout = map_layout(
|
||||||
|
camera_layout, row_height
|
||||||
|
)
|
||||||
|
|
||||||
if not standard_candidate_layout:
|
if not standard_candidate_layout:
|
||||||
# if standard layout didn't work
|
# if standard layout didn't work
|
||||||
@ -573,7 +576,9 @@ class BirdsEyeFrameManager:
|
|||||||
total_height / self.canvas.height,
|
total_height / self.canvas.height,
|
||||||
)
|
)
|
||||||
row_height = int(row_height / scale_down_percent)
|
row_height = int(row_height / scale_down_percent)
|
||||||
total_width, total_height, standard_candidate_layout = map_layout(camera_layout, row_height)
|
total_width, total_height, standard_candidate_layout = map_layout(
|
||||||
|
camera_layout, row_height
|
||||||
|
)
|
||||||
|
|
||||||
if not standard_candidate_layout:
|
if not standard_candidate_layout:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user