From 65c3e9117e731bc6af367c01bffa927291792240 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Wed, 21 Sep 2022 11:29:33 -0600 Subject: [PATCH] Check horizontal placement as well --- frigate/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/video.py b/frigate/video.py index 023ec78e4..4f964bcbe 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -461,7 +461,7 @@ def detect( 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: + if (x_min >= detect_config.width - 1) or (y_min >= detect_config.height - 1): continue width = x_max - x_min