mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
recalc every 50 moves
This commit is contained in:
parent
fe3a151d2a
commit
5d221e9b9d
@ -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
|
||||
):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user