Live Face Recognition in Python

preview_player
Показать описание
In this video, we learn how to implement a live face recognition system in Python using machine learning and OpenCV.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

Hey 👋 I'm the creator of DeepFace. Thank you for sharing this video to the community.

sefiks
Автор

I have been following you for the past year, and each time you release new and exciting videos, I thoroughly enjoy them and learn a lot. Thank you so much for creating such amazing content. Keep up the great work!

prashantbhosale
Автор

Your are explaining very clean and it's easy to understand thanks for video.

Mete-Hans
Автор

It is not working for me. It keeps running forever.

abudanish
Автор

don't stop bro. you're awesome

mrkewi
Автор

I am facing a challenge to extract the specific field data from pdf file, how to extract efficiently . please make a video on this

prashantbhosale
Автор

same error: I cant understand why this appears in terminal "vgg_face_weights.h5 will be downloaded..." and never ends, so then it is everytime No Match. Can you explain what is "vgg_face_weights.h5 will be downloaded..."

acunamercadoroyermarcelo
Автор

hhere's the code guys "
import threading
import cv2
from deepface import DeepFace

cap = cv2.VideoCapture (0)

cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)

counter = 0

face_match = False

reference_img = cv2.imread("reference.jpg")

def check_face(frame):
global face_match

try:

if DeepFace.verify (frame,
face_match=True
else:
face_match=False
except ValueError:
face_match=False

while True:

ret, frame = cap.read()

if ret:
if counter % 38 == 8:

try:
threading. Thread(target=check_face, args=(frame.copy(), )).start()
except ValueError:

pass
counter += 1

if face_match:

cv2.putText(frame, "MATCH!", (20, 450), cv2.FONT_HERSHEY_SIMPLEX, 2, (0, 255, 0), 3)

else:

cv2.putText(frame, "NO MATCH!", (20, 450), cv2.FONT_HERSHEY_SIMPLEX, 2, (0, 0, 255), 3)

cv2.imshow("video", frame)
key = cv2.waitKey(1)
if key == ord("q"):
break
cv2.destroyAllWindows()

aminhamdi
Автор

code works in intelij but doesn't work when i pack it in .exe file via pyinstaller. firstly gives an error: "autograph is not available in this environment: functions lack code information. this is typical of some environments like the interactive python shell". then program starts to work, but tasks with face recognition doesn't do anything. what should i do?

hotviissp
Автор

please tell me any mentor, which field is best in python except data science or AI

haideralihaidi
Автор

Thank you! Is there any chance that we can connect Phyton to other camera and then detect when someone is seeking for help, are they feeling safe or do they trust to the product?

mihaelafranjic
Автор

Can you advise what versions of opencv-python, deepface, and threading were used in this program?

BOHICAMAN
Автор

So would this particular project fall under machine learning?

gravitycore
Автор

great video i love it but mine says that there is no attribute named copy. can you help?

artsaward
Автор

Instead of web cam I wants to use live desktop screen to detect objects, is it possible? And show in desktop rectangle itself?

PANDURANG
Автор

Pair this with his object detection python script and you got a security camera

dipankarshaw
Автор

its really funny to see the younger youtuber become older ^^

tcgvsocg
Автор

Thanks for sharing. I think the Time complexity of this code is quadratic, n squared?

learnme
Автор

When I tried this, faced some problem like the vggface weights kept downloading for the whole time. For that I just ran the .verify() function(deleted other part) that triggered the download process swiftly.
After that I ran the whole code there was showing "No match" all the time, but after sitting a lil bit far from the cam then it detected.
Weired probs😶

detroit-viiw
Автор

I'd like to ask, is tensor cores required for this live face recognition? I have a ultrabook and I wonder if this can run on my laptop. If not, can you give me some projects using Python 3.12 and OpenCV with same features? thank u so much

PristineMedal