From 481643e5209350af3c59ba446b8f3bc273511197 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 30 Oct 2023 06:49:44 -0600 Subject: [PATCH] Use int for drawing box --- frigate/events/external.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frigate/events/external.py b/frigate/events/external.py index c30f041a8..b02aaeba5 100644 --- a/frigate/events/external.py +++ b/frigate/events/external.py @@ -106,10 +106,10 @@ class ExternalEventProcessor: # write jpg snapshot with optional annotations if draw.get("boxes") and isinstance(draw.get("boxes"), list): for box in draw.get("boxes"): - x = box["box"][0] * camera_config.detect.width - y = box["box"][1] * camera_config.detect.height - width = box["box"][2] * camera_config.detect.width - height = box["box"][3] * camera_config.detect.height + x = int(box["box"][0] * camera_config.detect.width) + y = int(box["box"][1] * camera_config.detect.height) + width = int(box["box"][2] * camera_config.detect.width) + height = int(box["box"][3] * camera_config.detect.height) draw_box_with_label( img_frame,