From f05ca2b9c68c15fdd7a54e6e4f61e8a237dbf40f Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 2 Jul 2023 13:00:12 -0500 Subject: [PATCH] tracked object should be initially motionless --- frigate/ptz_autotrack.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frigate/ptz_autotrack.py b/frigate/ptz_autotrack.py index de90fa026..0bdc1a32b 100644 --- a/frigate/ptz_autotrack.py +++ b/frigate/ptz_autotrack.py @@ -96,6 +96,7 @@ class PtzAutoTrackerThread(threading.Thread): if cam.onvif.autotracking.enabled: self.ptz_autotracker.camera_maintenance(camera_name) time.sleep(1) + time.sleep(0.1) logger.info("Exiting autotracker...") @@ -223,6 +224,7 @@ class PtzAutoTracker: and not obj.previous["false_positive"] and not obj.false_positive and self.tracked_object_previous[camera] is None + and obj.obj_data["motionless_count"] == 0 ): logger.debug( f"Autotrack: New object: {obj.obj_data['id']} {obj.obj_data['box']} {obj.obj_data['frame_time']}"