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:
|
if self.obj_data["frame_time"] - self.previous["frame_time"] > 60:
|
||||||
significant_change = True
|
significant_change = True
|
||||||
|
|
||||||
# update autotrack every second? or fps?
|
# update autotrack at half fps
|
||||||
if (
|
if self.obj_data["frame_time"] - self.previous["frame_time"] > (
|
||||||
self.obj_data["frame_time"] - self.previous["frame_time"]
|
1 / (self.camera_config.detect.fps / 2)
|
||||||
> 0.5 # / self.camera_config.detect.fps
|
|
||||||
):
|
):
|
||||||
autotracker_update = True
|
autotracker_update = True
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user