Add object detection, tracking, mobile notifications, and search to any security camera.
2
Rory Clear98eb1581ee35
diff --git a/experimental/clearcam_rtsp.py b/experimental/clearcam_rtsp.pyindex 0874974..884a98e 100644--- a/experimental/clearcam_rtsp.py+++ b/experimental/clearcam_rtsp.py@@ -445,7 +445,7 @@ class VideoCapture:for x in self.object_queue[0]: self.object_dict[int(x)] -= 1del self.object_queue[0]for k in self.object_dict.keys():- if abs(self.object_dict[k] - last_dict[k]) > 5:+ if abs(self.object_dict[k] - last_dict[k]) > 2:if time.time() - last_det >= 60: # once per min for nowsend_det = Trueprint("DETECTED") # todo, magic 5, change of 5 over 10 frames = detection