stop forcing detection all the way to stationary_threshold

This commit is contained in:
Blake Blackshear 2022-02-11 07:34:42 -06:00
parent ee5b9986ad
commit c14f986fae

View File

@ -507,8 +507,8 @@ def process_frames(
stationary_object_ids = [ stationary_object_ids = [
obj["id"] obj["id"]
for obj in object_tracker.tracked_objects.values() for obj in object_tracker.tracked_objects.values()
# if there hasn't been motion for N frames # if there hasn't been motion for 10 frames
if obj["motionless_count"] >= detect_config.stationary_threshold if obj["motionless_count"] >= 10
# and it isn't due for a periodic check # and it isn't due for a periodic check
and ( and (
detect_config.stationary_interval == 0 detect_config.stationary_interval == 0