diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 1685d12aa..6dac0e527 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -307,7 +307,7 @@ class PtzAutoTracker: def _calculate_move_coefficients(self, camera, calibration=False): # calculate new coefficients when we have 50 more new values. Save up to 500 if calibration or ( - len(self.move_metrics[camera]) % 5 == 0 + len(self.move_metrics[camera]) % 50 == 0 and len(self.move_metrics[camera]) != 0 and len(self.move_metrics[camera]) <= 500 ):