Skip to content

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

delete unused object imgs

rorycleare3b85112a281
diff --git a/objects.py b/objects.py
index 6a72cb6..0cb94cd 100644
--- a/objects.py
+++ b/objects.py
@@ -382,6 +382,7 @@ class ObjectFinder:
orig = cv2.cvtColor(orig, cv2.COLOR_BGR2RGB)
face_img = self.img_to_face(orig)
if face_img is None:
+ if not self.clip: os.remove(path)
ret_embeddings.append(None) # todo hack for now
ret_paths.append(path)
continue