mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
update autotrack at half fps
This commit is contained in:
parent
b267cfb520
commit
5195204604
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user