From e78662b92461f8405b4b1d3ac52859c85d8eb144 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Fri, 11 Feb 2022 06:54:42 -0600 Subject: [PATCH] fix the bounding box calculation position at 10 --- frigate/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/objects.py b/frigate/objects.py index 1711ed4f4..7adf421d9 100644 --- a/frigate/objects.py +++ b/frigate/objects.py @@ -78,9 +78,9 @@ class ObjectTracker: } return False - # if there are less than stationary_threshold entries for the position, add the bounding box + # if there are less than 10 entries for the position, add the bounding box # and recompute the position box - if len(position["xmins"]) < self.detect_config.stationary_threshold: + if len(position["xmins"]) < 10: position["xmins"].append(xmin) position["ymins"].append(ymin) position["xmaxs"].append(xmax)