don't process objects if ptz moving

This commit is contained in:
Josh Hawkins 2023-10-02 17:06:19 -05:00
parent 38805223ef
commit 8dae43fbb6

View File

@ -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)