From 26b1bc8fc0048d5a824accfa9fd3903bf8162c51 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Fri, 29 Sep 2023 07:31:08 -0600 Subject: [PATCH] Make rounding consistent --- frigate/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/output.py b/frigate/output.py index f9d850524..9fdcb3e37 100644 --- a/frigate/output.py +++ b/frigate/output.py @@ -57,7 +57,7 @@ def get_canvas_shape(width: int, height: int) -> tuple[int, int]: canvas_height = height a_w, a_h = get_standard_aspect_ratio(width, height) - if round(a_w / a_h, 2) != round(width / height): + if round(a_w / a_h, 2) != round(width / height, 2): canvas_width = width canvas_height = (canvas_width / a_w) * a_h logger.warning(f"The birdseye resolution is a non-standard aspect ratio, forcing birdseye resolution to {canvas_width} x {canvas_height}")