Skip to content

NVR with realtime local object detection for IP cameras

Bugfix: use np.copy for current frame in object processing (#16594)

Josh Hawkins7e6a241e039b
diff --git a/frigate/object_processing.py b/frigate/object_processing.py
index b5196e6862..bdc6d8d722 100644
--- a/frigate/object_processing.py
+++ b/frigate/object_processing.py
@@ -473,7 +473,7 @@ class CameraState:
if current_frame is not None:
self.current_frame_time = frame_time
- self._current_frame = current_frame
+ self._current_frame = np.copy(current_frame)
if self.previous_frame_id is not None:
self.frame_manager.close(self.previous_frame_id)