Always close connection to shm frame after detection (#13766)

This commit is contained in:
Nicolas Mowen 2024-09-16 07:56:20 -06:00 committed by GitHub
parent e4ea35e626
commit 06ccf7e9e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,6 +125,7 @@ def run_detector(
start.value = datetime.datetime.now().timestamp()
detections = object_detector.detect_raw(input_frame)
duration = datetime.datetime.now().timestamp() - start.value
frame_manager.close(connection_id)
outputs[connection_id]["np"][:] = detections[:]
out_events[connection_id].set()
start.value = 0.0