* Simplify loitering logic

* Fix divide by zero

* Add device config for semantic search

* Add docs
This commit is contained in:
Nicolas Mowen
2024-10-10 07:09:12 -06:00
committed by GitHub
parent 6a83ff2511
commit a2ca18a714
10 changed files with 28 additions and 46 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class EventCleanup(threading.Thread):
self.camera_labels: dict[str, dict[str, any]] = {}
if self.config.semantic_search.enabled:
self.embeddings = Embeddings(self.db)
self.embeddings = Embeddings(self.config.semantic_search, self.db)
def get_removed_camera_labels(self) -> list[Event]:
"""Get a list of distinct labels for removed cameras."""