mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-27 22:29:02 +03:00
Face rec: only consider webp files in /faces and handle_request (#17244)
* Face rec: only consider webp files * Allow png/jpg/jpeg as well as webp
This commit is contained in:
@@ -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,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user