NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Face rec: only consider webp files in /faces and handle_request (#17244)
lecceleccedda7be99ebe6
diff --git a/frigate/api/classification.py b/frigate/api/classification.pyindex df804f34ae..b9d714ca3b 100644--- a/frigate/api/classification.py+++ b/frigate/api/classification.py@@ -39,7 +39,10 @@ def get_faces():face_dict[name] = []for file in sorted(- os.listdir(face_dir),+ filter(+ lambda f: (f.lower().endswith((".webp", ".png", ".jpg", ".jpeg"))),+ os.listdir(face_dir),+ ),key=lambda f: os.path.getctime(os.path.join(face_dir, f)),reverse=True,):diff --git a/frigate/data_processing/real_time/face.py b/frigate/data_processing/real_time/face.pyindex acb8914499..102913442b 100644--- a/frigate/data_processing/real_time/face.py+++ b/frigate/data_processing/real_time/face.py@@ -484,7 +484,7 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):shutil.move(current_file, new_file)files = sorted(- os.listdir(folder),+ filter(lambda f: (f.endswith(".webp")), os.listdir(folder)),key=lambda f: os.path.getctime(os.path.join(folder, f)),reverse=True,)