From 8dae43fbb62920f84c0bbbfb5bd43577c0766736 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 2 Oct 2023 17:06:19 -0500 Subject: [PATCH] don't process objects if ptz moving --- frigate/ptz/autotrack.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 61bff08aa..7020ca4f2 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -813,6 +813,11 @@ class PtzAutoTracker: and self.tracked_object_previous[camera] is not None and obj.obj_data["id"] == self.tracked_object[camera].obj_data["id"] and obj.obj_data["frame_time"] != self.previous_frame_time + and not ptz_moving_at_frame_time( + obj.obj_data["frame_time"], + self.ptz_metrics[camera]["ptz_start_time"].value, + self.ptz_metrics[camera]["ptz_stop_time"].value, + ) ): if ( self._below_distance_threshold(camera, obj)