Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

mkdir

rorycleare3774959255c
diff --git a/experimental/clearcam_rtsp.py b/experimental/clearcam_rtsp.py
index 1082b0e..f56f57b 100644
--- a/experimental/clearcam_rtsp.py
+++ b/experimental/clearcam_rtsp.py
@@ -423,6 +423,7 @@ class VideoCapture:
self.dir = None
alerts_dir = CAMERA_BASE_DIR / cam_name / "alerts.pkl"
+ alerts_dir.parent.mkdir(parents=True, exist_ok=True)
try:
with open(alerts_dir, "rb") as f:
self.alert_counters = pickle.load(f)