Skip to content

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

fix notif call

Rory Clearf434ff0ca3c2
diff --git a/experimental/clearcam_rtsp.py b/experimental/clearcam_rtsp.py
index f4f1d8d..c57ca81 100644
--- a/experimental/clearcam_rtsp.py
+++ b/experimental/clearcam_rtsp.py
@@ -455,7 +455,7 @@ class VideoCapture:
timestamp = datetime.now().strftime("%Y-%m-%d_%H:%M:%S")
filename = f"event_images/frame_{timestamp}.jpg"
cv2.imwrite(filename, self.annotated_frame)
- if userID is not None: threading.Thread(target=send_notif(userID), daemon=True).start()
+ if userID is not None: threading.Thread(target=send_notif, args=(userID,), daemon=True).start()
last_det = time.time()
if (send_det and userID is not None) and time.time() - last_det >= 15: #send 15ish second clip after
os.makedirs("event_clips", exist_ok=True)