From 4028b2fabd2c1e8e9eaa923c6c9cea492c3a5879 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Wed, 21 Sep 2022 10:08:29 -0600 Subject: [PATCH] Formatting --- frigate/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/video.py b/frigate/video.py index bd813f16f..023ec78e4 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -459,11 +459,11 @@ def detect( y_min = int(max(0, (box[0] * size) + region[1])) x_max = int(min(detect_config.width - 1, (box[3] * size) + region[0])) y_max = int(min(detect_config.height - 1, (box[2] * size) + region[1])) - + # ignore objects that were detected outside the frame if y_min >= detect_config.height - 1: continue - + width = x_max - x_min height = y_max - y_min area = width * height