From 012deb7ff84f7ef9a30b36302c09632792a3286c Mon Sep 17 00:00:00 2001 From: John Doe Date: Tue, 15 Jul 2025 20:01:33 +0700 Subject: [PATCH 1/2] NEW CHANGES --- face_recognition/api.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/face_recognition/api.py b/face_recognition/api.py index 80a3f7fbe..ac0faa87d 100644 --- a/face_recognition/api.py +++ b/face_recognition/api.py @@ -214,13 +214,3 @@ def face_encodings(face_image, known_face_locations=None, num_jitters=1, model=" return [np.array(face_encoder.compute_face_descriptor(face_image, raw_landmark_set, num_jitters)) for raw_landmark_set in raw_landmarks] -def compare_faces(known_face_encodings, face_encoding_to_check, tolerance=0.6): - """ - Compare a list of face encodings against a candidate encoding to see if they match. - - :param known_face_encodings: A list of known face encodings - :param face_encoding_to_check: A single face encoding to compare against the list - :param tolerance: How much distance between faces to consider it a match. Lower is more strict. 0.6 is typical best performance. - :return: A list of True/False values indicating which known_face_encodings match the face encoding to check - """ - return list(face_distance(known_face_encodings, face_encoding_to_check) <= tolerance) From 073b2a69bf60885832b198b93fc4e3d11d3cf34a Mon Sep 17 00:00:00 2001 From: John Doe Date: Tue, 15 Jul 2025 20:06:13 +0700 Subject: [PATCH 2/2] PERUBAHAN NYA GISEL --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 23ac8647d..07790f652 100644 --- a/README.md +++ b/README.md @@ -410,6 +410,3 @@ If you run into problems, please read the [Common Errors](https://github.com/age his [blog post](http://blog.dlib.net/2017/02/high-quality-face-recognition-with-deep.html). * Thanks to everyone who works on all the awesome Python data science libraries like numpy, scipy, scikit-image, pillow, etc, etc that makes this kind of stuff so easy and fun in Python. -* Thanks to [Cookiecutter](https://github.com/audreyr/cookiecutter) and the - [audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage) project template - for making Python project packaging way more tolerable.