predicted box should not be empty

This commit is contained in:
Josh Hawkins 2023-10-01 11:32:10 -05:00
parent b264b168f2
commit 4dfac5a7df

View File

@ -544,7 +544,7 @@ class PtzAutoTracker:
def _autotrack_move_ptz(self, camera, obj): def _autotrack_move_ptz(self, camera, obj):
camera_config = self.config.cameras[camera] camera_config = self.config.cameras[camera]
average_velocity = (0,) * 4 average_velocity = (0,) * 4
predicted_box = [] predicted_box = obj.obj_data["box"]
# # frame width and height # # frame width and height
camera_width = camera_config.frame_shape[1] camera_width = camera_config.frame_shape[1]