update autotrack at half fps

This commit is contained in:
Josh Hawkins 2023-07-03 09:22:59 -05:00
parent b267cfb520
commit 5195204604

View File

@ -239,10 +239,9 @@ class TrackedObject:
if self.obj_data["frame_time"] - self.previous["frame_time"] > 60:
significant_change = True
# update autotrack every second? or fps?
if (
self.obj_data["frame_time"] - self.previous["frame_time"]
> 0.5 # / self.camera_config.detect.fps
# update autotrack at half fps
if self.obj_data["frame_time"] - self.previous["frame_time"] > (
1 / (self.camera_config.detect.fps / 2)
):
autotracker_update = True