Skip to content

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

fix fet

Rory Clearbfdf0759e5da
diff --git a/experimental/clearcam_rtsp.py b/experimental/clearcam_rtsp.py
index 93402e3..1b661a8 100644
--- a/experimental/clearcam_rtsp.py
+++ b/experimental/clearcam_rtsp.py
@@ -448,7 +448,7 @@ class VideoCapture:
for x in self.object_queue[0]: self.object_dict[int(x)] -= 1
del self.object_queue[0]
for k in self.object_dict.keys():
- if abs(self.object_dict[k] - last_dict[k]) > 8:
+ if abs(self.object_dict[k] - last_dict[k]) > 4:
if time.time() - last_det >= 60: # once per min for now
send_det = True
print("DETECTED") # todo, magic 5, change of 5 over 10 frames = detection
@@ -536,7 +536,7 @@ class HLSStreamer:
self.segment_time = segment_time
self.running = False
self.ffmpeg_proc = None
- self.start_time = None
+ self.start_time = time.time()
if not self.output_dir.exists(): self.output_dir.mkdir()