Skip to content

Commit

Permalink
stop forcing detection all the way to stationary_threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Feb 19, 2022
1 parent ee5b998 commit c14f986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frigate/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,8 @@ def process_frames(
stationary_object_ids = [
obj["id"]
for obj in object_tracker.tracked_objects.values()
# if there hasn't been motion for N frames
if obj["motionless_count"] >= detect_config.stationary_threshold
# if there hasn't been motion for 10 frames
if obj["motionless_count"] >= 10
# and it isn't due for a periodic check
and (
detect_config.stationary_interval == 0
Expand Down

0 comments on commit c14f986

Please sign in to comment.