Тёмный

Face recognition in real-time | with Opencv and Python 

Pysource
Подписаться 58 тыс.
Просмотров 243 тыс.
50% 1

Blog and Notebook: pysource.com/2021/08/16/face-...
With face recognition, we not only identify the person by drawing a box on his face but we also know how to give a precise name. With OpenCV and Python, through a database, we compare the person's photo and we know how to identify it precisely. For example in the preview photo, the software was able to tell that person in the photo is Jeff Bezos.
➤ Courses:
Training Mask R-CNN PRO (Notebook + Mini-Course): pysource.com/mask-rcnn-traini...
Full Computer Vision course: pysource.com/object-detection...
➤ Follow me on:
Instagram: / pysource7
LinkedIn: / pysource
➤ For business inquiries:
pysource.com/contact
#FaceRecognition #OpenCV #DeepLearning

Наука

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

 

16 авг 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 322   
@pysource-com
@pysource-com 2 года назад
►► You can Build a Computer Vision software to DETECT and TRACK any Object. → 4-Step FREE Workshop pysource.com/blueprint-workshop-signup/
@rheaynah
@rheaynah Год назад
what algorithm did you use?
@trick_bros
@trick_bros Год назад
What algorithm did you use
@meltysensei2652
@meltysensei2652 2 года назад
This is amazing and it works (python 3.7, pip installs), thank you!
@selenawilliams5051
@selenawilliams5051 Год назад
This is great, thank you for sharing! I am working on a research project related to real-time facial expression recognition for mental health. Could you post a video that implements facial expression recognition on top of this?
@fadhelalsuwaidi1221
@fadhelalsuwaidi1221 2 года назад
could u work in multiple dataset for on person for make the detection more accurate, this would be great.
@leilaghasemzade5880
@leilaghasemzade5880 2 года назад
Thanks for the tut. How this library recognize the people? when you show a different pics of the same people how it can understand that this is that person? by what technique it compares photos?
@kavyan3731
@kavyan3731 6 месяцев назад
Amazing tutorial! Worked perfectly! thanks!
@drewenia
@drewenia 2 года назад
Hello Sergio. What kind of camera is this?
@aiforyounow
@aiforyounow 2 года назад
You are doing a fantastic job God bless you and increase your ability ❤️
@omidalekasir4736
@omidalekasir4736 Год назад
Awesome! The question is, why is it working so smoothly? Causey I wrote the same thing with face_recognition and it only shows 1 frame per second. Is your CPU like really powerful? I tried to run it on GPU but it didn't work!
@rover1615
@rover1615 2 года назад
hello sir, what algorithm do you use? thank you
@sedky69
@sedky69 4 месяца назад
Great tutorial and great choice of library. Thanks
@Subagyo-Tepil
@Subagyo-Tepil 2 года назад
thanks for clear explanation
@bacetto73carlotto94
@bacetto73carlotto94 2 года назад
Sempre al top!!!
@aliciahock9651
@aliciahock9651 27 дней назад
I just tried this and it works perfectly! Thank you so much!
@dongli7383
@dongli7383 2 года назад
grat job bro ! thanks for the toturial
@henkhbit5748
@henkhbit5748 2 года назад
Indeed a great library for image recognition. But I found that when a person face is slanted in the picture, say 30 degrees then the face_encodings function will get an exception. That is a drawback of this module..., otherwise it does an exellent job for face matching.
@vamshimaskuri5208
@vamshimaskuri5208 Год назад
Yes
@fadhelalsuwaidi1221
@fadhelalsuwaidi1221 2 года назад
Hi Mr Seraio, do u think this library could handle more than one thousand face ? , and if not tell me model or library may will depend on ur experiance.
@Furkan-mc6cm
@Furkan-mc6cm 2 года назад
Hey, very great projects bro 👍
@imranshaikh-ez4ht
@imranshaikh-ez4ht Год назад
Hello sir, thank you for your greate efforts..I really appretiate it..sir actually I am working on facial application can you tell me for large dataset which technology should I prefer dataset is custom images into millions images
@GolemTH9
@GolemTH9 2 года назад
Can i use this face recognize method is use to detect somthings like car or object by compare with image data?
@sltechgalaxy1677
@sltechgalaxy1677 2 года назад
Hey excuse me sir please can we use Esp 32 camera module for this project??
@sshahnawaz980
@sshahnawaz980 6 месяцев назад
Amazing tutorial, kindly explain simple facerec code it will be helpful....
@suryakanth5370
@suryakanth5370 2 года назад
Sir what's the use of simple facerec file ?
@mahmudaromarahman5528
@mahmudaromarahman5528 2 года назад
Dear Mr. Sergio, which algorithm has been used here? Mention, please.
@mr-strange-0w0
@mr-strange-0w0 Год назад
Very Helpful Video For Me, Thanks
@ashikmahmud7398
@ashikmahmud7398 2 года назад
thank you very mutch for the video it really helped me 😍😍
@smukerji7065
@smukerji7065 4 месяца назад
Excellent work
@niteeshanithi906
@niteeshanithi906 Год назад
What line should we add to this code to tell the recognised person name
@cvicracer
@cvicracer 2 года назад
Awesome work
@anshucodevita7752
@anshucodevita7752 2 года назад
This face_recogntition module is getting install on windows os. can you make this module for windows also
@AHMADKELIX
@AHMADKELIX 2 года назад
permission to learn sir. thank you
@gantagayatri1251
@gantagayatri1251 2 года назад
Could you please explain what is the use of "simplefacerec" file that downloaded to accomplish the task
@chitrakaseri5203
@chitrakaseri5203 Год назад
hey can u tell me from where do we download that file
@zijinzhang20
@zijinzhang20 2 года назад
does the library accept multiple samples of one face?
@AiPhile
@AiPhile 2 года назад
Thank you sir
@moonx2516
@moonx2516 2 года назад
@pysource is there any way to write by eye using virtual keyboard on the screen without using blinking?
@pysource-com
@pysource-com 2 года назад
It would be possible by having some hat keeping the webcam a few centimeters from the eye, because otherwise with the eye too far, it won't be precise enough and it would be almost impossible to hit the keys correctly
@hakunamatata1035
@hakunamatata1035 9 месяцев назад
Is this also able to detect side faces
@cgoody3170
@cgoody3170 Год назад
Ive noticed a lot of comments here by folks wanting to scale up the recognition to many thousands of images. There are solutions to this but you will need to learn about high performance computing architectures first and that is a field in of itself. But to be honest: if you don't know how to scale this problem then you should question whether you should be even trying, since the legal and ethical issues you may encounter if you get it wrong may land you in serious trouble. Great tutorial though.
@POOJAKUMARI-gy2ys
@POOJAKUMARI-gy2ys 2 года назад
which algorithm is used in this project????
@ntuindip5042
@ntuindip5042 2 года назад
Wow the project is great. I would like to know how to connect the project with a Phone or a device for capturing the face then send the Information to the computer for Display
@v1hana350
@v1hana350 2 года назад
How did you calculate accuracy and loss functions by using the face recognition library?
@lolgamer8591
@lolgamer8591 2 года назад
Hi, Have you found how to calculate accuracy? Cuz we're doing a project and we need to have the accuracy but we were stuck in it
@mohammedazzan7529
@mohammedazzan7529 Год назад
@@lolgamer8591 did u get thr solution?
@youssefthebest1784
@youssefthebest1784 2 года назад
Hello can you please help me I want an algorithme that tells me if two shapes are the same shape
@JNET_Reloaded
@JNET_Reloaded 2 года назад
How can i do this with an external ip camer on same network please? not built in web cam on an rpi4 or anything?
@pupyfrias
@pupyfrias 2 года назад
thanks bro, it works
@thatza547
@thatza547 3 месяца назад
I have a question, My camera seem to be lagging when it detect one of the dataset. Anyway to make it less laggy like perhaps 60fps?
@Anirudh-cf3oc
@Anirudh-cf3oc 2 года назад
Thanks a lot!!
@nbsu766
@nbsu766 Год назад
Can i ask if there is another way to load the faces pictures? i have a students data (more than 100 faces). it wont be practical if i encode each student in the code. so is there another way for doing it? *i have the pictures loaded on mysql phpmyadmin* maybe that would help?
@alyallam4815
@alyallam4815 Месяц назад
Than you Sergio, such a great way of explanation .. I am just a beginner and somehow I managed to run it without errors can you please share something related to 3D object detection ( using Lidar or 3D cameras like Zed) as it is my project at the moment and somehow lost. Thanks in advance 😘
@ryoo5295
@ryoo5295 Год назад
Is there a score that describe similarity between the images
@t.r.abhishekkasturi9616
@t.r.abhishekkasturi9616 9 месяцев назад
hey im not able to download the code from ur site even after registering
@mohamad241
@mohamad241 2 года назад
grat job bro ! thanks for the toturial i have a question about that if i want to save a lot of encoding image in to database and from at the application i just want to search for the faces how can i do that ? how should i saved encoding image ?
@pysource-com
@pysource-com 2 года назад
Now we use a while loop to load the frames from the camera. The concept is the same, simply instead of getting the frames from the camera on the while loop, you loop through the images of a folder
@mohamad241
@mohamad241 2 года назад
@@pysource-com and how can i save those endocing images to database ? which type of data ?
@godphoenix1916
@godphoenix1916 2 года назад
how can we add an excel sheet in it so that we can keep the track of people that were scanned
@kaustubhmokal8947
@kaustubhmokal8947 2 года назад
bro you are genius
@aryanexegamer8748
@aryanexegamer8748 3 месяца назад
Good morning sir, how we can acieve attendance recording based on face recognization only from real person face, not by comparing images from showing pic from mobile.
@zaidomar3402
@zaidomar3402 2 года назад
I got this probelm operands could not be broadcast together with shapes *(1,16)(128,)* any idea or video that helps. thanks
@rayatopia
@rayatopia 8 месяцев назад
i cant find simple face rec file. where is it?
@kklol07
@kklol07 2 года назад
that was amazing
@usmanhassan1170
@usmanhassan1170 2 года назад
There should be more accuracy, and for future do one thing that store encodings in a excel file so that one can have his face encodings and that will help to make face decoders in future.
@pysource-com
@pysource-com 2 года назад
I agree about the accuracy. I on purpose (reduced the accuracy on this one, by shrinking image size that is processed) to make it in realtime with just the CPU.
@usmanhassan1170
@usmanhassan1170 2 года назад
@@pysource-com okay, i see, btw you are doing great work.
@mastersidea89
@mastersidea89 Год назад
Initial i i saw as a good tutorial but why do you make it hard to get the simplefacerec file?
@wilsonnkhata1020
@wilsonnkhata1020 Месяц назад
@Pysource , that simple facerec file , where to get please assist
@pankajbehera5035
@pankajbehera5035 2 года назад
Cv2.imshow("Frame",frame) Indentation error: doesn't match any outer identification level
@subizwa94tv62
@subizwa94tv62 4 месяца назад
Thanks brother
@bks637
@bks637 2 года назад
Hello sir, how to make face recognition with app lock using python interface
@ajaymusk6123
@ajaymusk6123 2 года назад
AI humanoid robot working. good video for my project. thank sir.
@user-ff7kj2ik4i
@user-ff7kj2ik4i 2 месяца назад
Thank you sir it perfectly working
@robo4827
@robo4827 Месяц назад
hey can u pls help me out facing a lot of issues downloading the face_recognition libraray? how did u do it?
@dmitrystasiukewicz3841
@dmitrystasiukewicz3841 Год назад
what algorithm was used to identify the face?
@liviuconstantin9960
@liviuconstantin9960 2 года назад
Hey Sergio, excellent job sir, but.....how do we import that SimpleFacerec file? The link it's not in the mail box. Or is it? what am I missing?
@pysource-com
@pysource-com 2 года назад
you need to go here pysource.com/2021/08/16/face-recognition-in-real-time-with-opencv-and-python/ the link is unlocked and displayed on the blog page after you confirm your email (you do not get it directly to the email)
@liviuconstantin9960
@liviuconstantin9960 2 года назад
@@pysource-com Thanks Sergio, now I'm able to finish this project. Thank you for replying, some don't. I think I will subscribe to your courses now. May I suggest that you offer courses on a monthly basis payment (pyimagesource offers that possibility). This will make it easier for some of us to pay as opposed to one big lump sum which is harder to obtain for some. Thank you again !!!
@thanhtaiphan2651
@thanhtaiphan2651 2 года назад
Can you make a tutorial about how to detect a specific person after YOLO-training detecting all people? Thanks
@pysource-com
@pysource-com 2 года назад
That's an interesting idea. I'll definitely take it into consideration for future videos
@allfires4957
@allfires4957 Год назад
@@pysource-com please sir,we will really appreciate it
@mikiashailu8119
@mikiashailu8119 Год назад
hello! please build other project on face recognition based attendance system
@blp.00
@blp.00 Год назад
awesome!!
@serkankaracan9014
@serkankaracan9014 2 года назад
I changed the project a bit. My aim is to open the door by opening the magnetic lock when the camera sees my face. There is a button in my project. When I press the button, the cv2 library is activated. At this time, when the camera sees my face, I activate the relay for 3 seconds, then the relay turns off. But this relay pull event happens many times. I guess it's a problem like this because it frames my face so many times. What kind of arrangement do I need to take only 1 frame and turn the relay on and off. Thanks for your help..
@Gh0st_0723
@Gh0st_0723 2 года назад
Instead of capturing the camera live, have it capture the first or second frame only eg cv2.frame ...
@SahilSingh-zh6ee
@SahilSingh-zh6ee Год назад
but it might be not good idea to actually put it on home door as it can be open by your picture too
@sivachandran2389
@sivachandran2389 Год назад
Actually this is cool bro!
@kaziranga_national_park
@kaziranga_national_park 2 года назад
Sir, is possible ?. Photo-recognition software catches tigers by their stripes. Already given name to tiger Id
@yami_no_ember
@yami_no_ember 2 года назад
from where do i download those 2 py files?
@kklol07
@kklol07 2 года назад
thanks a lot!
@mangtomasgaming7884
@mangtomasgaming7884 Год назад
'pip' is not recognized as an internal or external command, operable program or batch file.
@aliashmawy425
@aliashmawy425 10 месяцев назад
what is your pc specs, i tried the code on my laptop but it slows down when it detects a face
@joshuaemeghai8872
@joshuaemeghai8872 Год назад
Pls, how about object recognition? I have a project I'm working on object recognition. Kindly help out
@kartiksharma674
@kartiksharma674 Год назад
where are the files as u said they are in description
@AbdulWahab-bm4gt
@AbdulWahab-bm4gt 2 года назад
brah you are a gem
@anshulmaheshwari2408
@anshulmaheshwari2408 Год назад
how do i save detections using imwrite function to a folder
@rasheed3039
@rasheed3039 2 года назад
Thanks for sharing..when I add Arabic text instead of English I get question marks ?? What should I fix to display it properly ?
@pysource-com
@pysource-com 2 года назад
You need some text encodings which will allow you to use that. you can look for arabic text python, and probably there is some library which will convert the text format to be displayed
@gabbark
@gabbark 8 месяцев назад
Gives an error while importing SimpleFacerec module, any solutions?
@user-bo2xo9wz1n
@user-bo2xo9wz1n 5 месяцев назад
Did you find the solution?
@hofitroy1
@hofitroy1 2 года назад
hey, nice tutorial but can I add more pictures of the same person to get better accuracy? or its not possible?
@AiPhile
@AiPhile 2 года назад
Probably it will improve the accuracy. Check out official docs of face_recognition module .
@hofitroy1
@hofitroy1 2 года назад
@@AiPhile yeah it make sense but when I have like 4000 pictures to every person (like 12K pictures in total) I get low fps on realtime video using the face_encodings method. should I use the KNN instead?
@AiPhile
@AiPhile 2 года назад
surly the fps will decrease, other then that take look at this module named retinaface it has 98 Accuracy.
@udaykiran5602
@udaykiran5602 2 года назад
Bro help me to how to download the face recognition and simple facereck files
@nitinkeshri7156
@nitinkeshri7156 2 года назад
please explain the simple facerec file too
@gugupcoutinho
@gugupcoutinho Год назад
14:36 if you get an error rey another value for VideoCapture( ) I tried with VideoCapture(0) and it worked
@muhammadilham248
@muhammadilham248 Год назад
Could anyone advise, I got it running but it seems like when it detects a face the webcam seems to be so laggy
@amishah4145
@amishah4145 10 месяцев назад
can you name the tech stacks used?
@heeeeykid
@heeeeykid 6 месяцев назад
Great video! I looked for the files that you mentioned to download and i didn't found it. the link in your description takes me to your website with a button to download the source code, but without these files. Can you help me with it?
@derencakr9450
@derencakr9450 6 месяцев назад
I couldn't find it either
@ehabgame
@ehabgame Год назад
THANK U IT WORKED IT HELPED ALOTTTT !!
@zarafshanbibi2035
@zarafshanbibi2035 2 года назад
Hi Sir! I need your help in my college project. My project is a Door Security System (first the system will recognize the face if face matched then door will open otherwise door remain close). My teacher ask me to create a desktop application for this. But i don't know how to do this. Can you please help me in my project?
@saaidalkamha7240
@saaidalkamha7240 2 года назад
Dude, Am working on the exact same project, i think you would need a face recognition code with confidence measured in it. Unfortunatley this code won't work for you
@Ankitkumar-kk5rm
@Ankitkumar-kk5rm 2 года назад
have you made your project by now? @zarafshan Bibi
@JESUSCHRIST-bb7fp
@JESUSCHRIST-bb7fp Год назад
Is there a way to use face tracking and swapping in real time using a live stream video feed, another words not using web cam for my own face, but instead swap anyone's face in real time on obs live stream, i cant seem to find any info if this is possible?
@eduardmart1237
@eduardmart1237 Год назад
Why does it work so fast on your machine? I get a horrendous performance on big_buck_bunny_720p_5mb.mp4 video! Does it use dlib under the hood?
@bilgekaanozturk222
@bilgekaanozturk222 Месяц назад
hey im trying to build a face tracking camera using esp32 and i really need to use a face recognition on my computer using its own cpu so can i alter this code to recognize face from given website if so how thank you for reading
@zourrimis9706
@zourrimis9706 Год назад
Thank you so much! I finally found a code working for me and my project :) please keep it up
@sreevanijalagari3863
@sreevanijalagari3863 Год назад
Can u help when i try installing face recognition module it is giving error i am using python 3.8
@vinuthnachowdary725
@vinuthnachowdary725 8 месяцев назад
Hlo can u hel me to download simle_facerec
@warriorhistory
@warriorhistory 4 месяца назад
Hello sir new subscriber here thanks for the tutorials I am truly grateful may I know what webcam you're using?
@hurrie7254
@hurrie7254 2 года назад
how ı do confidence score this project? please can you share code if you have this..
@abdulrehmany5309
@abdulrehmany5309 2 года назад
the face recognition is pretty slow when it recognizes a face, down to 2 fps only? any way to solve this, urgent!
@Tuncaycortez
@Tuncaycortez 2 года назад
did you solve
@chitrakaseri5203
@chitrakaseri5203 Год назад
Where do we get that Simple_facerec python file from????
@danishhussain4816
@danishhussain4816 Год назад
my web cam live-video is freezing. its reaction time is very low, what should i do?
Далее
Python Face Recognition (Beginner Tutorial)
12:36
Просмотров 35 тыс.
Я НЕ УМЕЮ СНИМАТЬ ТАКИЕ ВИДЕО
00:16
Китайка раскрыла Зайку😂😆
00:19
Object Tracking from scratch with OpenCV and Python
1:00:13
Python Face Recognition Tutorial w/ Code Download
9:23
Face Recognition With Raspberry Pi + OpenCV + Python
7:15
How does facial recognition work?
6:43
Просмотров 185 тыс.
Live Face Recognition in Python
16:16
Просмотров 132 тыс.
Apple. 10 Интересных Фактов
24:26
Просмотров 86 тыс.
Apple watch hidden camera
0:33
Просмотров 21 тыс.
😱НОУТБУК СОСЕДКИ😱
0:30
Просмотров 484 тыс.