Skip to content

NVR with realtime local object detection for IP cameras

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

Nicolas Mowen06ccf7e9e948
diff --git a/frigate/object_detection.py b/frigate/object_detection.py
index 22ff84f894..de383dffa6 100644
--- a/frigate/object_detection.py
+++ b/frigate/object_detection.py
@@ -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