Skip to content

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

remove useless if

Rory Clear814c91576220
diff --git a/clearcam.py b/clearcam.py
index 411cee9..b6e096c 100644
--- a/clearcam.py
+++ b/clearcam.py
@@ -1134,9 +1134,8 @@ class HLSRequestHandler(BaseHTTPRequestHandler):
})
if (image_text or similar_img) and use_clip:
- if not self.searcher:
- self.searcher = CLIPSearch()
- self.searcher._load_all_embeddings()
+ self.searcher = CLIPSearch()
+ self.searcher._load_all_embeddings()
if similar_img and use_clip:
return_q = multiprocessing.Queue()