Тёмный

Real-Time Face Recognition with Python and OpenCV - A Step-by-Step Guide 🚀 

ApyCoder
Подписаться 727
Просмотров 32 тыс.
50% 1

👋 Hello, tech enthusiasts! Welcome back to the ApyCoder channel, where we're about to embark on an incredible journey into the world of Face Recognition using Python and OpenCV. 🌟
Imagine a world where your computer knows you by face! In this mind-blowing tutorial, we'll guide you through the art of real-time face recognition, a technology with limitless possibilities.
🌟Source Code For Linux/macOS
apycoder.com/p...
Buy me Coffee ☕: ko-fi.com/apyc...
🌟Source Code for Window
apycoder.com/p...
Blogs
apycoder.com/c...
🔥 Here's what you'll discover:
🔹 Easy installation of essential libraries (OpenCV and face_recognition).
🔹 Encoding and loading known faces for seamless recognition.
🔹 Initiating your webcam for instant, real-time face identification.
🔹 Capturing live video frames, detecting faces, and labeling them on the fly.
🔹 Witnessing the magic as the code recognizes faces right before your eyes.
Whether you're a coding beginner or a seasoned developer, our step-by-step instructions ensure you grasp the concept effortlessly. By the end of this video, you'll be equipped to create your own face recognition system. 💻
🙋‍♀️🙋‍♂️ Have questions or ideas? Share them in the comments below - we love hearing from you. And remember to subscribe and enable notifications, so you never miss an update from us.
Ready to unlock the future with face recognition? Let's dive in and make technology work for us! 🚀💡
#Python
#OpenCV
#FaceRecognition
#ComputerVision
#MachineLearning
#ArtificialIntelligence
#PythonProgramming
#ImageProcessing
#FacialRecognition
#DeepLearning
#Tutorial
#CodeExamples
#ComputerVisionTutorial
#PythonOpenCV
#FacialDetection
#FacialAnalysis
#ObjectDetection
#DLib
#OpenCVTutorial
#ImageRecognition
#Programming
#PythonDevelopment
#FaceDetection
#FacialRecognitionSoftware
#FacialRecognitionSystem

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 95   
@apycoder
@apycoder 2 месяца назад
Unfortunately, most face recognition libraries don't officially support Windows. However, you can try this complete face recognition project that doesn't require a face recognition library: Real-time Face Recognition System using Python & OpenCV. It should work well for you! apycoder.com/product/real-time-face-recognition-system-using-python-opencv/
@mohammedarfath3502
@mohammedarfath3502 2 месяца назад
Does it still work? with current updates.. I'm asking cuz i'm gonna purchase it.
@apycoder
@apycoder 2 месяца назад
Yes brother still it works
@nesrinkalkan2339
@nesrinkalkan2339 3 месяца назад
Exception has occurred: RuntimeError Unsupported image type, must be 8bit gray or RGB image. File "C:\Users\ASUS\Desktop\bitirme\.ipynb_checkpoints\import face_recognition.py", line 13, in face_encodings = face_recognition.face_encodings(rgb_image) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Unsupported image type, must be 8bit gray or RGB image. bu hatayı alıyorum lütfen yardımcı olurmusunuz
@vlad_the_player
@vlad_the_player 3 месяца назад
I just uninstalled numpy 2.x.x, and then installed older version 1.26.4 (pip install numpy==1.26.4)
@rajkireetimaddala7042
@rajkireetimaddala7042 Месяц назад
@@vlad_the_player Thank you bro
@41_BenjaminGeorgeVarghese
@41_BenjaminGeorgeVarghese 2 месяца назад
i am not able to install face_recognition it is asking for dlib and when i try to install dlib it is asking for cmake and even after installing cmake dlib is not getting installed and so is face_recognition
@apycoder
@apycoder 2 месяца назад
Unfortunately, most face recognition libraries don't officially support Windows. However, you can try this complete face recognition project that doesn't require a face recognition library: Real-time Face Recognition System using Python & OpenCV. It should work well for you! apycoder.com/product/real-time-face-recognition-system-using-python-opencv/
@41_BenjaminGeorgeVarghese
@41_BenjaminGeorgeVarghese 2 месяца назад
@@apycoder I somehow made it work but sometimes it is predicting wrong is it because of less entries in the dataset?
@ShazVilliers
@ShazVilliers 10 месяцев назад
Great work. Gonna help lots of people including me👏
@user-cy7pj7yu9c
@user-cy7pj7yu9c Месяц назад
Which dlib and face recognition version u have used in this code ?
@himanshumatlani8587
@himanshumatlani8587 3 дня назад
reply me for issues in installing face recognition i will help u out
@himaanshuGurjar
@himaanshuGurjar День назад
How to do python coding in kali linux
@himaanshuGurjar
@himaanshuGurjar День назад
Which ide you are using
@_AYANROY
@_AYANROY 9 месяцев назад
face recognition is not installing. can you help please ?
@kexanatoronto6896
@kexanatoronto6896 9 месяцев назад
Send your error code
@annmariyajoy6293
@annmariyajoy6293 8 месяцев назад
I also got the same error
@apycoder
@apycoder 8 месяцев назад
Check face recognition library documentation. Is it compatible with your operating systems or not
@nikkiverse3070
@nikkiverse3070 7 месяцев назад
@@apycoder IndentationError: unindent does not match any outer indentation level Help me
@forwardtechnical
@forwardtechnical 8 месяцев назад
Great video, can you make the same thing using CNN model please !!
@PonrajanN
@PonrajanN Месяц назад
i have Some kind of bellow error any one plz help to clear the erroe ( self: _dlib_pybind11.fhog_object_detector, image: numpy.ndarray, upsample_num_times: int = 0) -> _dlib_pybind11.rectangles Invoked with: , None, 1)
@Junior-fq8jo
@Junior-fq8jo 6 месяцев назад
Salut et super travaille j'essai de faire le même depuis mais un message d'erreur s'affiche disant module cv2 not found donc j'ai passé des heures sur RU-vid pour parvenir à le réparer mais sans succès en utilisant pip install opencv-python mais sans succès slt tu peux m'aider ?
@hafsathkk8236
@hafsathkk8236 3 месяца назад
Thanks bro it's work's
@syaabanbux7516
@syaabanbux7516 4 месяца назад
Yo bro, i have a favor to ask, how can i use face recorgnition to recognize face image that were stored in the database. If the face image is same as the image that were captured by the frame then it will display my name, can u show me how to do that, sorry if my english is bad
@Atlantic025
@Atlantic025 3 месяца назад
did u figure it out how?
@apycoder
@apycoder 2 месяца назад
​@@Atlantic025 yes brother you can get code for this , just msg me on WhatsApp
@prathameshshinde7
@prathameshshinde7 14 дней назад
Thank you very very much sir for this video. Hope you prosper a lot in your life❤❤❤❤❤
@trainzworldgaming4935
@trainzworldgaming4935 2 месяца назад
Bro should i declare path instead of file name?
@dilmithwathsala
@dilmithwathsala 20 дней назад
Nice work. Thank you
@rifat4330
@rifat4330 10 месяцев назад
Nice one bro❤ . . . I need e face recognition tutorial with YOLO algorithm.
@apycoder
@apycoder 10 месяцев назад
Ok yolo tutorial will come soon 🥰
@sahilgamer4081
@sahilgamer4081 10 месяцев назад
Supb.. Bro..... ❤
@user-cy7pj7yu9c
@user-cy7pj7yu9c Месяц назад
Failed building wheel for dlib , failed to build installable wheels for some pyproject.toml based projects (dlib) how to solve this error..plz explain in easy way
@SambaOtieno
@SambaOtieno Месяц назад
for these error you will have to install cmaker in your device so that the pkg can be compilled inorder to be runned
@phani1664
@phani1664 5 дней назад
I make payment,I did not got code😢😢
@apycoder
@apycoder 5 дней назад
What's app me and get source code. And check email you may have received an email, and there is download link 🔗
@phani1664
@phani1664 5 дней назад
@@apycoder how can I get number
@RuturajPatil-x1l
@RuturajPatil-x1l Месяц назад
Bro how can run on gup rather than cpu
@ojamyjack4248
@ojamyjack4248 7 месяцев назад
how do i get the face_recognition module
@apycoder
@apycoder 7 месяцев назад
pip install face_recognition pip install opencv-python If you don't have Python installed, download and install it from the official Python website:
@dpssouth-s2t
@dpssouth-s2t Месяц назад
i love robbin dutha
@PoonamPatil-u8y
@PoonamPatil-u8y Месяц назад
I had buy your code but it is not working like face recognition library. It detect only as it is pictures, Please suggest what to do
@apycoder
@apycoder Месяц назад
Please what's app me , I will help you in installation
@Momsmagic82
@Momsmagic82 2 месяца назад
Bro please help your code did't work there is an error show and submission date is 20 please help
@apycoder
@apycoder 2 месяца назад
Send me code on WhatsApp, you can find my what's app no on my website
@dpssouth-s2t
@dpssouth-s2t Месяц назад
i love robin duttha
@awadijohan
@awadijohan 4 месяца назад
great video thanks you saved my journey, appreciate help and thanks from bottom heart
@RoshiniChuri
@RoshiniChuri 2 месяца назад
Which is the front end and back end ?
@rajkireetimaddala7042
@rajkireetimaddala7042 Месяц назад
Thank you sir
@sithuaung2433
@sithuaung2433 7 месяцев назад
Please can you explain and code for object detection with live webcam Sir?Please Sir?
@apycoder
@apycoder 7 месяцев назад
Check my video there is specific for object detection, eye detection, blink counter, and driver drowsiness detection
@Aaa90099
@Aaa90099 7 месяцев назад
Can I use raspberry pi through ssh and do this? If yes how?
@apycoder
@apycoder 7 месяцев назад
Yes, you can use a Raspberry Pi for a face recognition project via SSH. You'll need to set up the necessary software and libraries on your Raspberry Pi, and then you can access and control it remotely using SSH. Make sure your Raspberry Pi has a camera module or a compatible USB camera for capturing images for face recognition.
@tahmidrahman8173
@tahmidrahman8173 10 месяцев назад
is it based on CNN?
@apycoder
@apycoder 10 месяцев назад
Yes python face recognition library is based on CNN
@sujoysetua0814
@sujoysetua0814 10 месяцев назад
​​@@apycodervai please give the source code
@apycoder
@apycoder 10 месяцев назад
Go and visit again to get Source code , i have added link in the description
@Kamatchi-d3h
@Kamatchi-d3h 7 месяцев назад
how to install face recognition for python 3.12?
@apycoder
@apycoder 7 месяцев назад
Join our WhatsApp group
@Deadsoul098
@Deadsoul098 8 месяцев назад
Assalamualaikum fase recingization ky liy konsi app use kr rhy ha ?ya ap kis pa work kr rhy ha plz tell me?
@apycoder
@apycoder 7 месяцев назад
Linux OS and visual studio code for this project
@snehagupta4586
@snehagupta4586 6 месяцев назад
Name error : name 'known_person1_image' is not defined How to resolve this???
@apycoder
@apycoder 6 месяцев назад
If you are using window os then give the complete image path
@apycoder
@apycoder 6 месяцев назад
Send me code on WhatsApp
@devjai643
@devjai643 6 месяцев назад
Re-check the name there must be a typo in your code, Here is the working code: import cv2 import face_recognition # Load known face encodings & names known_face_encodings = [] known_face_names = [] # Load known faces & their names known_person1_image = face_recognition.load_image_file("Photos/Dev.jpg") known_person2_image = face_recognition.load_image_file("Photos/Elon.jpg") known_person1_encoding = face_recognition.known_face_encodings(known_person1_image)[0] known_person2_encoding = face_recognition.known_face_encodings(known_person2_image)[0] known_face_encodings.append(known_person1_encoding) known_face_encodings.append(known_person2_encoding) known_face_name.append("Dev") known_face_name.append("Elon") # Initialize the webcam video_capture = cv2.VideoCapture(0) while True: # Capture frame by frame ret, frame = video_capture.read() # Find all face location in the current frame face_locations = face_recognition.face_location(frame) face_encodings = face_recognition.face_encoding(frame, face_location) # Loop through each frame found in the frame for (top, right, bottom, left), face_encoding in zip(face_location, face_encodings): # Check if face matches any known faces matches = face_recognition.compare_faces(known_face_encodings, face_encoding) name = "Unknown" if True in matches: first_match_index = matches.index(True) name = known_face_names[first_match_index] #Draw a box around the box & label the face_encoding cv2.rectangle(frame, (left, top), (right, bottom), (0, 0, 255), 2) cv2.putText(frame, name, (left, top - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.9, (0, 0, 255), 2) # Display the resulting frame cv2.imshow("Video", frame) if cv2.waitKey(1) & 0xFF == ord('q'): break # Release the webcam and close OpenCV video_capture.release() cv2.destroyAllWindows()
@devjai643
@devjai643 6 месяцев назад
Try this: import cv2 import face_recognition # Load known face encodings & names known_face_encodings = [] known_face_names = [] # Load known faces & their names known_person1_image = face_recognition.load_image_file("Photos/Dev.jpg") known_person2_image = face_recognition.load_image_file("Photos/Elon.jpg") known_person1_encoding = face_recognition.face_encodings(known_person1_image)[0] known_person2_encoding = face_recognition.face_encodings(known_person2_image)[0] known_face_encodings.append(known_person1_encoding) known_face_encodings.append(known_person2_encoding) known_face_names.append("Dev") known_face_names.append("Elon") # Initialize the webcam video_capture = cv2.VideoCapture(0) while True: # Capture frame by frame ret, frame = video_capture.read() # Find all face location in the current frame face_locations = face_recognition.face_locations(frame) face_encodings = face_recognition.face_encodings(frame, face_locations) # Loop through each frame found in the frame for (top, right, bottom, left), face_encoding in zip(face_locations, face_encodings): # Check if face matches any known faces matches = face_recognition.compare_faces(known_face_encodings, face_encoding) name = "Unknown" if True in matches: first_match_index = matches.index(True) name = known_face_names[first_match_index] #Draw a box around the box & label the face_encoding cv2.rectangle(frame, (left, top), (right, bottom), (0, 0, 255), 2) cv2.putText(frame, name, (left, top - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.9, (0, 0, 255), 2) # Display the resulting frame cv2.imshow("Video", frame) if cv2.waitKey(1) & 0xFF == ord('q'): break # Release the webcam and close OpenCV video_capture.release() cv2.destroyAllWindows()
@snehagupta4586
@snehagupta4586 6 месяцев назад
I am getting name error in code how to correct this?
@ManojKumar-go1pm
@ManojKumar-go1pm 7 месяцев назад
Can you make vdo on ,how to connect template in django
@apycoder
@apycoder 7 месяцев назад
Sure
@SatyaYinakonda
@SatyaYinakonda 7 месяцев назад
Identation problem at unknown
@apycoder
@apycoder 7 месяцев назад
Join our WhatsApp group and send me your code
@gungungupta162
@gungungupta162 3 месяца назад
pura code likha but its showing error : no such file or directory
@UmeshBhandari-f9b
@UmeshBhandari-f9b 3 месяца назад
8 hour hogaya error solve nahi horaha dimak ka dahi hogaya😒😒
@apycoder
@apycoder 3 месяца назад
Share code on WhatsApp I Will check and let you know what's the problem is
@apycoder
@apycoder 3 месяца назад
Keep all the images in the same working directory
@apycoder
@apycoder 3 месяца назад
This error occurred when python code is unable to find your images path, make sure to keep all the images in the same working directory
@UmeshBhandari-f9b
@UmeshBhandari-f9b 3 месяца назад
@@apycoder whatappps no. ?
@lavanreddy2408
@lavanreddy2408 7 месяцев назад
Bro can you send source code
@apycoder
@apycoder 7 месяцев назад
There is a source code link in the description
@devjai643
@devjai643 6 месяцев назад
import cv2 import face_recognition # Load known face encodings & names known_face_encodings = [] known_face_names = [] # Load known faces & their names known_person1_image = face_recognition.load_image_file("Photos/Dev.jpg") known_person2_image = face_recognition.load_image_file("Photos/Elon.jpg") known_person1_encoding = face_recognition.face_encodings(known_person1_image)[0] known_person2_encoding = face_recognition.face_encodings(known_person2_image)[0] known_face_encodings.append(known_person1_encoding) known_face_encodings.append(known_person2_encoding) known_face_names.append("Dev") known_face_names.append("Elon") # Initialize the webcam video_capture = cv2.VideoCapture(0) while True: # Capture frame by frame ret, frame = video_capture.read() # Find all face location in the current frame face_locations = face_recognition.face_locations(frame) face_encodings = face_recognition.face_encodings(frame, face_locations) # Loop through each frame found in the frame for (top, right, bottom, left), face_encoding in zip(face_locations, face_encodings): # Check if face matches any known faces matches = face_recognition.compare_faces(known_face_encodings, face_encoding) name = "Unknown" if True in matches: first_match_index = matches.index(True) name = known_face_names[first_match_index] #Draw a box around the box & label the face_encoding cv2.rectangle(frame, (left, top), (right, bottom), (0, 0, 255), 2) cv2.putText(frame, name, (left, top - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.9, (0, 0, 255), 2) # Display the resulting frame cv2.imshow("Video", frame) if cv2.waitKey(1) & 0xFF == ord('q'): break # Release the webcam and close OpenCV video_capture.release() cv2.destroyAllWindows()
@awabibrahimmohamedahmed6464
@awabibrahimmohamedahmed6464 6 месяцев назад
bro what is the type of the app that you are working at??
@apycoder
@apycoder 6 месяцев назад
I am using Kali Linux OS , and visual studio code for development
@awabibrahimmohamedahmed6464
@awabibrahimmohamedahmed6464 6 месяцев назад
the camera never shows up @@apycoder
@rishigujarathi7146
@rishigujarathi7146 3 месяца назад
​@@apycoder it can run on windows or not?
@apycoder
@apycoder 3 месяца назад
Officially the face recognition library doesn't support windows. So it won't run
@amanisguru6114
@amanisguru6114 8 месяцев назад
Isme attendance kaise laga sakte hai
@apycoder
@apycoder 7 месяцев назад
There is a separate video for face recognition based attendance system
@amanisguru6114
@amanisguru6114 7 месяцев назад
@@apycoder watched it already
Далее
Face recognition in real-time | with Opencv and Python
28:19
Live Face Recognition in Python
16:16
Просмотров 167 тыс.
#慧慧很努力#家庭搞笑#生活#亲子#记录
00:11
Face Recognition With Python 3.10 Tutorial (Webcam)
18:59
Reprompt Walkthrough & Demo
17:54
Просмотров 14