mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
reduce motion timeout to 2 seconds
This commit is contained in:
parent
6bdacffa2e
commit
225f434718
@ -399,7 +399,7 @@ def detect_motion(shared_arr, shared_frame_time, ready_for_frame, shared_motion,
|
|||||||
while True:
|
while True:
|
||||||
now = datetime.datetime.now().timestamp()
|
now = datetime.datetime.now().timestamp()
|
||||||
# if it has been long enough since the last motion, clear the flag
|
# if it has been long enough since the last motion, clear the flag
|
||||||
if last_motion > 0 and (now - last_motion) > 5:
|
if last_motion > 0 and (now - last_motion) > 2:
|
||||||
last_motion = -1
|
last_motion = -1
|
||||||
shared_motion.value = 0
|
shared_motion.value = 0
|
||||||
# if there isnt a frame ready for processing
|
# if there isnt a frame ready for processing
|
||||||
|
Loading…
Reference in New Issue
Block a user