Here is the original Colab - colab.research.google.com/drive/15_yQKwhVsmfN2p7geco_VFGKLYqBah04?usp=sharing
@siddhipandare38824 жыл бұрын
This is the best video for face recognition! Very well explained :)
@thenotsomebody4 жыл бұрын
this is the best face recognition video
@iputubastianadiputra58162 жыл бұрын
great explination ma brother
@anefuoche10534 жыл бұрын
i get an IndexError: list index out of range, that points to the for loop for known_dir; img_enc = face_recognition.face_encodings(img)[0]... but it works fine when i omit the index [0]. also in the for loop for unknown_dir i get a ValueError: operands could not be broadcast together with shapes (41,) (128,) that points to results = face_recognition.compare_faces(known_encodings, img_enc)...please what should I do?
@gplgomes3 жыл бұрын
Does it allow to recognize my relatives names ? I tried but it only recognize famous persons.
@harshitamaurya22554 жыл бұрын
Hey, I am getting an error 'NoneType' object has no attribute 'shape'. Please tell me how should I resolve it
@AdarshMenon4 жыл бұрын
probably because the image was not loaded, please check if your image is in the same folder as the code / you have given the names correctly. Another reason could be there were no images detected - in this case try with a larger image or another image
@harshitamaurya22554 жыл бұрын
Got it...thankyou so much
@HariHaran-qp2mw3 жыл бұрын
Know image and unknown image must be in. jpg extension
@tommystallion77343 жыл бұрын
@@AdarshMenon I ran your notebook without changing any code and got the same error
@manasisingh2942 жыл бұрын
@@harshitamaurya2255 hey, how did you solve this error? Could you please share?
@Tudismas2 жыл бұрын
why is it that the accuracy is very low for new images especially those it has no see?
@ruqiyaarshad37453 жыл бұрын
Is it im.shape or img shape for resizing image in your code sir?
@aqibmukhtar52172 жыл бұрын
Bro (h, w) = img.shape[:2] pr error araha "AttributeError: 'NoneType' object has no attribute 'shape'"
@manasisingh2942 жыл бұрын
were you able to get this fixed?
@shrikarpatil60143 жыл бұрын
Hi , I tried this code and it is working perfectly for known faces . But I'am getting an error "'NoneType' object has no attribute 'shape' " for non matching faces , can you please help?
@ינירעטון-ב8ג3 жыл бұрын
hi have the same problem too did you fix it?
@muwnhius3 жыл бұрын
bill.jpg is broken
@TechnicalGigs Жыл бұрын
i have the same problem too did you fix it?
@ESWARAJAYASIMHAAJAYVEMPA-yz2xo Жыл бұрын
can we replace our images to detect
@gokulsai9013 жыл бұрын
Is there a way to train a haar cascade on Google colab??
@gauravgupta48473 жыл бұрын
Which face recognition algorithm we used in this project????
@AdarshMenon3 жыл бұрын
based on this medium.com/@ageitgey/machine-learning-is-fun-part-4-modern-face-recognition-with-deep-learning-c3cffc121d78
@user-rx5kq6oo9y3 жыл бұрын
@@AdarshMenon sir , in this article it is mentioned we use svm fir classifier but in implementation we dont use svm anywhere.
@user-rx5kq6oo9y3 жыл бұрын
@@AdarshMenon does compare face uses svm at backened?
@AdarshMenon3 жыл бұрын
@@user-rx5kq6oo9y in implementation we are using the face_recognition library which is based on the article shared
@sayantandas24292 жыл бұрын
How can I import the images in the Google collab?
@shreenejatandon322 жыл бұрын
Code is giving error as these images are not available not and if we are giving other image's link it's not being displayed
@chittiprolusunilkumar39754 жыл бұрын
good work and it help for learn to kick start thank you and well explained
@AdarshMenon4 жыл бұрын
Awesome !
@entertainment_channel_07 Жыл бұрын
Sir can we ur own images in known and unknown folders
@kimhajung-t8j5 ай бұрын
Hello, thank you for making this video. Your video was so great that I subscribed to it. But I keep getting the same error. 'NoneType' object has no attribute 'shape' Even though I changed the picture, this happens, what should I do? Please give me answer🥲🥲🥲
@임도연-b3i5 ай бұрын
hello! we are teammate of this monkey and we had just figured it out thank u so much of your fascinating video u r sooooooooooo adorable I luv u!!!!!!!!!!!!!!!!!
@co3mo243 жыл бұрын
Design of Machine Learning Solution for Biometric Recognition Task with google colab do u have any idea
@kushalappaca53242 жыл бұрын
Can you tell what is the maximum no of classes we can consider..I'm thinking of running this for 100 masked faces????
@roshinipriyajami6112 жыл бұрын
AttributeError: 'NoneType' object has no attribute 'shape' plz help me out
@meghasharma1543 жыл бұрын
SIR THAT TWO KNOWN AND UNKNOWN DIRECTORY IS NOT CREATED AFTER RUN THAT DIRECTORY CAN U PLEASE TELL WHAT WE HV TO DO THIS
@wallelignworkie87493 жыл бұрын
how to change the photo, please brother this is project to present tomorrow
@wildgoose41794 жыл бұрын
Yea I can't get anywhere with this. I followed everything step by step and i keep getting this syntax error " File "", line 15 known_encodings = [] ^ SyntaxError: invalid syntax"
@AdarshMenon4 жыл бұрын
Not sure what is wrong, here is the original code - colab.research.google.com/drive/15_yQKwhVsmfN2p7geco_VFGKLYqBah04?usp=sharing
@paramecium_sp7624 жыл бұрын
Help, i followed the video step by step but i get this error TypeError: read_img() takes 0 positional arguments but 1 was given Do you have any idea how to fix?
@AdarshMenon4 жыл бұрын
Please check the code here - colab.research.google.com/drive/15_yQKwhVsmfN2p7geco_VFGKLYqBah04?usp=sharing read_img is a function I wrote and it takes the argument path, you probably missed it
@paramecium_sp7624 жыл бұрын
@@AdarshMenon Thanks friend, but when i tried to run the last cell (h, w) = img.shape[:2] made an error saying AttributeError: 'NoneType' object has no attribute 'shape'
@jacobsmith78773 жыл бұрын
@@paramecium_sp762 Were you able to solve this?
@ashwithathumula32832 жыл бұрын
@@paramecium_sp762 hey did u solve this?
@jimmyaghera18973 жыл бұрын
very nice work. I learned a lot from this video.
@jaisonjose82564 жыл бұрын
from my experience, for personal use. Training the data using keras by our images is more efficient
@AdarshMenon4 жыл бұрын
I agree, this was more of a getting started type of video because many people were requesting for face rec after face detection
@jaykaran22784 жыл бұрын
It becomes tedious to train for every new face the system detect. Don't you think?
@jaisonjose82564 жыл бұрын
I specified 'personal'
@doall3214 жыл бұрын
it is not working at import face_recognition even i install face_recognition
@AdarshMenon4 жыл бұрын
It requires some setup to work, and so I highly recommend to use google colab
@letsseeproductions75004 жыл бұрын
import face_recognition line is not working in google collab
@haytamelbakkal8253 жыл бұрын
This is a very good video. I have a question please how can I measure the accuracy if I have a large dataset?
@AdarshMenon3 жыл бұрын
Once you have the dataset for the correct faces to person mapping - you can count the number of correct predictions made by the face_recognition library divided by the total number of faces will be your accuracy
@majidkhan66704 жыл бұрын
from webcam it is possibe?
@AdarshMenon4 жыл бұрын
technically yes, but for that you would need to set up dlib and install face_recognition library on your computer, which is not as easy as colab. See github.com/ageitgey/face_recognition
@majidkhan66704 жыл бұрын
@@AdarshMenon i already installed both lib...
@AdarshMenon4 жыл бұрын
then you can try and run it
@majidkhan66704 жыл бұрын
@@AdarshMenon ok...but bro i need your help in my other code... i want to save a screenshot or jpg image with current time and date....iM getting error .....can u help me with tht.
@successlearners4 жыл бұрын
Any other libraries for face recognizing
@kushalbhavsar34544 жыл бұрын
You can use LBph algo from cv2
@borisvybornykh6144 жыл бұрын
You are the best, you've helped me pass my hw
@yilberrojas83064 жыл бұрын
good video, to process it into a video as input
@mckoy10072 жыл бұрын
why there is an error on me? AttributeError: 'NoneType' object has no attribute 'shape'
@mckoy10072 жыл бұрын
can someone help me?//
@kushalappaca53242 жыл бұрын
can we train multiple images using this algorithm??
@fahrulthariq4226 Жыл бұрын
u got the answer yet?
@rohitkumar-nk6sd4 жыл бұрын
How to recognize images from local C drive?
@AdarshMenon4 жыл бұрын
So since this project is on google colab, you will need to upload those images to this colab. You can find the option to do that on the top of the left side panel. Or you can also upload the images to google drive and access those files directly from colab.
@rohitkumar-nk6sd4 жыл бұрын
@@AdarshMenon iam getting true for 2 Inputs in Boolean array what should I do please help me out
@AdarshMenon4 жыл бұрын
@@rohitkumar-nk6sd can you share the output / more details ?
@rohitkumar-nk6sd4 жыл бұрын
@@AdarshMenon please check your mail
@AdarshMenon4 жыл бұрын
@@rohitkumar-nk6sd adarsh1021@gmail.com
@puneetkaur77252 жыл бұрын
It shows error while importing face_recognition. It says no module named face_recognition
@pr0fess0rop182 жыл бұрын
Pip install nahi hua hoga check it
@jayasmitamahapatra81404 жыл бұрын
Very nicely explained.Can u share the link from where we can download the images
why the package is not getting installed in windows can u solve that
@AdarshMenon4 жыл бұрын
As I have mentioned in the video, dlib and face_recognition is difficult to set up normally, and that is why I have used google colab. Check out this guide on the official repo - github.com/ageitgey/face_recognition#installing-on-windows if you want to try the setup on windows.
@jvsccssfdsg45002 жыл бұрын
AttributeError Traceback (most recent call last) in () 18 19 for file in os.listdir(known_dir): ---> 20 img = read_img(known_dir + '/' + file) 21 img_enc = face_recognition.face_encodings(img)[0] 22 known_encodings.append(img_enc) in read_img(path) 6 def read_img(path): 7 img = cv2.imread(path) ----> 8 (h, w) = img.shape[:2] 9 width = 500 10 ratio = width / float(w) AttributeError: 'NoneType' object has no attribute 'shape' how to solve
@pr0fess0rop182 жыл бұрын
Aah yes same problem faced today morning and got a solution later now....check the file bill.jpg....its broken its infected thats why the error delete the file or get another bill photo link
@pr0fess0rop182 жыл бұрын
Change the Bill img address to this drive.google.com/file/d/1GuvXGjWQRe6j_Xi85kfHW67vpVk8YxQa/view?usp=sharing Also delete the 0 bytes pic from unknown
@shivendradubey42394 жыл бұрын
Can you make a video how to do face recognition from any KZbin video
@AdarshMenon4 жыл бұрын
I have put it on my list of videos to make. What you need to do is, download the video first (there are python libraries that take in a link and download the video), then use opencv to read the video frame by frame, then you can apply this same code on each frame, and save the output. Each frame in a video is an image
@rryann0883 жыл бұрын
Thank you so much !! that Really helped understand the code ! Awesome video
@terrencejeffersoncimafranc1002 жыл бұрын
dude your machine is roaring. xD
@gokulreddy20664 жыл бұрын
Bro you are god !...You are explaining everything clearly I want to talk with you personally. Share me your linkedin in profile and let's get connected
@AdarshMenon4 жыл бұрын
Check description
@jaisonjose82564 жыл бұрын
macha malayali da
@fmxy4 жыл бұрын
get a good mic, it'll dramatically improve the quality of your videos! espescially when having these screen recording type videos. blue snowball mic should be fine for the start.