mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
Always close connection to shm frame after detection (#13766)
This commit is contained in:
parent
e4ea35e626
commit
06ccf7e9e9
@ -125,6 +125,7 @@ def run_detector(
|
|||||||
start.value = datetime.datetime.now().timestamp()
|
start.value = datetime.datetime.now().timestamp()
|
||||||
detections = object_detector.detect_raw(input_frame)
|
detections = object_detector.detect_raw(input_frame)
|
||||||
duration = datetime.datetime.now().timestamp() - start.value
|
duration = datetime.datetime.now().timestamp() - start.value
|
||||||
|
frame_manager.close(connection_id)
|
||||||
outputs[connection_id]["np"][:] = detections[:]
|
outputs[connection_id]["np"][:] = detections[:]
|
||||||
out_events[connection_id].set()
|
out_events[connection_id].set()
|
||||||
start.value = 0.0
|
start.value = 0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user