From 613fd783514a5f4b45904a13dd6a7313e9d56818 Mon Sep 17 00:00:00 2001 From: Dylann Orozco <40942105+dorozcom@users.noreply.github.com> Date: Sun, 4 Oct 2020 12:54:31 -0600 Subject: [PATCH 01/12] Update Dockerfile Add pip3 install opencv-python==4.1.2.30 if you want to run the live webcam examples --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index d8171fc6a..3be875e83 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,5 +46,7 @@ RUN cd /root/face_recognition && \ pip3 install -r requirements.txt && \ python3 setup.py install +# Add pip3 install opencv-python==4.1.2.30 if you want to run the live webcam examples + CMD cd /root/face_recognition/examples && \ python3 recognize_faces_in_pictures.py From ded327cd9e96258ec46c8a96d6c562b4f03fa8c7 Mon Sep 17 00:00:00 2001 From: Kshitiz Arya Date: Sun, 7 Feb 2021 19:57:21 +0530 Subject: [PATCH 02/12] There is a typo in face_recognition/example/facerec_ipcamera_knn.py The third last line is written as cap1.release(). It should be cap.release instead. cap1.release() > cap.release() --- examples/facerec_ipcamera_knn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/facerec_ipcamera_knn.py b/examples/facerec_ipcamera_knn.py index ae9223416..55623ed8f 100644 --- a/examples/facerec_ipcamera_knn.py +++ b/examples/facerec_ipcamera_knn.py @@ -209,6 +209,6 @@ def show_prediction_labels_on_image(frame, predictions): frame = show_prediction_labels_on_image(frame, predictions) cv2.imshow('camera', frame) if ord('q') == cv2.waitKey(10): - cap1.release() + cap.release() cv2.destroyAllWindows() exit(0) From 0ee5edd8ba77fa16320f4f3b941570bd47bc87df Mon Sep 17 00:00:00 2001 From: Daniil Okhlopkov <5613295+ohld@users.noreply.github.com> Date: Mon, 16 Aug 2021 18:57:55 +0300 Subject: [PATCH 03/12] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 696d0ce72..6e055ca1e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ MIT License -Copyright (c) 2017, Adam Geitgey +Copyright (c) 2021, Adam Geitgey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: From 70d8dc52c8574fb371bb0df2c05c60cf5e5f6211 Mon Sep 17 00:00:00 2001 From: Anurag Kumar Date: Wed, 8 Sep 2021 21:08:38 +0530 Subject: [PATCH 04/12] Update setup.py updated classifiers --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index aa1233a0a..63b2bb35a 100644 --- a/setup.py +++ b/setup.py @@ -57,6 +57,7 @@ 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', ], test_suite='tests', tests_require=test_requirements From d28e460219740e04fd72b8d163a878e520c13e32 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Nov 2021 17:47:04 +0000 Subject: [PATCH 05/12] Bump pip from 19.2 to 21.1 Bumps [pip](https://github.com/pypa/pip) from 19.2 to 21.1. - [Release notes](https://github.com/pypa/pip/releases) - [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst) - [Commits](https://github.com/pypa/pip/compare/19.2...21.1) --- updated-dependencies: - dependency-name: pip dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- requirements_dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_dev.txt b/requirements_dev.txt index 16ff43196..638e2b36d 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,4 +1,4 @@ -pip==19.2 +pip==21.1 bumpversion==0.5.3 wheel==0.29.0 watchdog==0.8.3 From 0861ddad106e8fe3cc872114b6e12aab0fff0978 Mon Sep 17 00:00:00 2001 From: Dustin Wyatt Date: Fri, 26 Nov 2021 17:11:40 -0600 Subject: [PATCH 06/12] No need to resize if not processing frame --- examples/facerec_from_webcam_faster.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/facerec_from_webcam_faster.py b/examples/facerec_from_webcam_faster.py index 7428da14c..e4a7bbd47 100644 --- a/examples/facerec_from_webcam_faster.py +++ b/examples/facerec_from_webcam_faster.py @@ -42,14 +42,14 @@ # Grab a single frame of video ret, frame = video_capture.read() - # Resize frame of video to 1/4 size for faster face recognition processing - small_frame = cv2.resize(frame, (0, 0), fx=0.25, fy=0.25) - - # Convert the image from BGR color (which OpenCV uses) to RGB color (which face_recognition uses) - rgb_small_frame = small_frame[:, :, ::-1] - # Only process every other frame of video to save time if process_this_frame: + # Resize frame of video to 1/4 size for faster face recognition processing + small_frame = cv2.resize(frame, (0, 0), fx=0.25, fy=0.25) + + # Convert the image from BGR color (which OpenCV uses) to RGB color (which face_recognition uses) + rgb_small_frame = small_frame[:, :, ::-1] + # Find all the faces and face encodings in the current frame of video face_locations = face_recognition.face_locations(rgb_small_frame) face_encodings = face_recognition.face_encodings(rgb_small_frame, face_locations) From 2dc095903d0b8c72f1eca291c7d96e4ee73f4b30 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 20 Dec 2021 14:42:18 +0000 Subject: [PATCH 07/12] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-OPENSSL-1569399 - https://snyk.io/vuln/SNYK-DEBIAN9-TAR-312293 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d8171fc6a..ecd3ae8b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # This is a sample Dockerfile you can modify to deploy your own app based on face_recognition -FROM python:3.6-slim-stretch +FROM python:3.9.7-slim-bullseye RUN apt-get -y update RUN apt-get install -y --fix-missing \ From 2b560b8b143353c323f870ed03a830fe03cfde41 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 27 Mar 2022 02:09:23 +0000 Subject: [PATCH 08/12] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN11-EXPAT-2403512 - https://snyk.io/vuln/SNYK-DEBIAN11-EXPAT-2406127 - https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-2388380 - https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-2426309 - https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-2426309 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ecd3ae8b0..fa9209129 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # This is a sample Dockerfile you can modify to deploy your own app based on face_recognition -FROM python:3.9.7-slim-bullseye +FROM python:3.10.3-slim-bullseye RUN apt-get -y update RUN apt-get install -y --fix-missing \ From 588e619c8f8a376f061e84527a1fc8c87ac4397c Mon Sep 17 00:00:00 2001 From: Adam Geitgey Date: Thu, 9 Jun 2022 18:09:15 +0100 Subject: [PATCH 09/12] Bump python version in CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d299fc19b..aaf0e30a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.5, 3.6, 3.7, 3.8] + python-version: [3.8, 3.9, 3.10] steps: - name: Checkout uses: actions/checkout@v2 From 964e5b531752efece61bfe0201ff1fc934f62dad Mon Sep 17 00:00:00 2001 From: Adam Geitgey Date: Thu, 9 Jun 2022 18:10:03 +0100 Subject: [PATCH 10/12] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aaf0e30a7..273a41471 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9, 3.10] + python-version: [3.8, 3.9, "3.10"] steps: - name: Checkout uses: actions/checkout@v2 From 2c5247763b520f87bb165d652c54b47170022db8 Mon Sep 17 00:00:00 2001 From: 17x <220817687+17X61@users.noreply.github.com> Date: Tue, 5 May 2026 22:24:58 +0800 Subject: [PATCH 11/12] Fix dead LFW benchmark link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 23ac8647d..01b6a07bd 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ the world's simplest face recognition library. Built using [dlib](http://dlib.net/)'s state-of-the-art face recognition built with deep learning. The model has an accuracy of 99.38% on the -[Labeled Faces in the Wild](http://vis-www.cs.umass.edu/lfw/) benchmark. +[Labeled Faces in the Wild](https://people.cs.umass.edu/~elm/papers/lfw.pdf) benchmark. This also provides a simple `face_recognition` command line tool that lets you do face recognition on a folder of images from the command line! From b483acefc150ee98248aeddea5469ff8c762560e Mon Sep 17 00:00:00 2001 From: Adam Geitgey Date: Thu, 25 Jun 2026 12:12:41 +0100 Subject: [PATCH 12/12] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 01b6a07bd..2b198de18 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ the world's simplest face recognition library. Built using [dlib](http://dlib.net/)'s state-of-the-art face recognition built with deep learning. The model has an accuracy of 99.38% on the -[Labeled Faces in the Wild](https://people.cs.umass.edu/~elm/papers/lfw.pdf) benchmark. +Labeled Faces in the Wild benchmark (see the [LFW paper (PDF)](https://people.cs.umass.edu/~elm/papers/lfw.pdf)). This also provides a simple `face_recognition` command line tool that lets you do face recognition on a folder of images from the command line!