Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
613fd78
Update Dockerfile
dorozcom Oct 4, 2020
ded327c
There is a typo in face_recognition/example/facerec_ipcamera_knn.py
Kshitiz-Arya Feb 7, 2021
0ee5edd
Update LICENSE
ohld Aug 16, 2021
70d8dc5
Update setup.py
anukaal Sep 8, 2021
d28e460
Bump pip from 19.2 to 21.1
dependabot[bot] Nov 15, 2021
0861dda
No need to resize if not processing frame
dmwyatt Nov 26, 2021
2dc0959
fix: Dockerfile to reduce vulnerabilities
snyk-bot Dec 20, 2021
2a44708
Merge pull request #1 from Slickmojo24g/snyk-fix-a25c5db29795bd79ea62…
Slickmojo24g Dec 20, 2021
2b560b8
fix: Dockerfile to reduce vulnerabilities
snyk-bot Mar 27, 2022
23eff2e
Merge pull request #10 from Slickmojo24g/snyk-fix-e29f83d5cda326b5d31…
Slickmojo24g Apr 3, 2022
a1d12ae
Merge pull request #1388 from ageitgey/dependabot/pip/pip-21.1
ageitgey Jun 9, 2022
45d0632
Merge pull request #1416 from Slickmojo24g/master
ageitgey Jun 9, 2022
992461e
Merge pull request #1370 from anukaal/master
ageitgey Jun 9, 2022
0b79030
Merge pull request #1357 from ohld/patch-1
ageitgey Jun 9, 2022
588e619
Bump python version in CI
ageitgey Jun 9, 2022
964e5b5
Update main.yml
ageitgey Jun 9, 2022
cd41caa
Merge pull request #1390 from dmwyatt/patch-1
ageitgey Jun 10, 2022
b78aab7
Merge pull request #1279 from Kshitiz-Arya/patch-1
ageitgey Jun 10, 2022
2e2dcce
Merge pull request #1225 from dorozcom/master
ageitgey Jun 10, 2022
2c52477
Fix dead LFW benchmark link
17X61 May 5, 2026
b483ace
Potential fix for pull request finding
ageitgey Jun 25, 2026
9f3061a
Merge pull request #1672 from 17X61/auto-contrib/1670-lfw-link
ageitgey Jun 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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.10.3-slim-bullseye

RUN apt-get -y update
RUN apt-get install -y --fix-missing \
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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!
Expand Down
12 changes: 6 additions & 6 deletions examples/facerec_from_webcam_faster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion examples/facerec_ipcamera_knn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pip==19.2
pip==21.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down