9:40 the reason you might not want to use f strings is because the os method is os independent. Not usually an issue, but your code is just slightly more robust using os.
while executing "encoding = face_recognition.api.face_encodings(image)[0] " line of code, IndexError: list index out of range occurs. That means that face was not recognized by the face_recognition package!! Thanks Sentdex ! Very awesome tutorials! Learning style is simply awesome 😃
Combine this with beautiful soup or selenium and you have built the same technology that scrapes suspect faces from social media. The use of libraries and API's have made it so easy to use artificial intelligence.
Andrew James does beautiful soup and selenium allow you to download all public data? Let’s say a radius that has 250k ppl? I was looking into this and read that clearview AI is getting sewed for it.. still want to do this on my own tho! I believe Facebooks graph API only allows you to get data from your own profile:/
@@sysadmin9396 It's possible you can do this by scrapping the data with selenium, puppeteer (JavaScript), and beautiful soup. You just need accounts for the Social Media to log in. There are a lot of videos online on how to approach web scrapping :) and happy hacking!
Andrew James thank you! Appreciate the response ! I’m currently getting the code together for the facial recognition part.. doing some shopping around for glasses that have an IP addressable camera . All that mixed with the scrapping and I might have myself some cool tech! Lol
You just defined my senior project, will be releasing it soon on git, scarped all the pics from FB and IG and used LBPH along with CNN to find the nasty buggers via input from my drone camera. All that done in a clean Pyqt5 UI with threads ;)
Thanks for the tutorial. Taken your script as a basefor my face recognition script. Main difference is that i don't display the image with a square around the face, but it moves it to another folder with the name of the person in front of it. THX again!
Hello, great video! :D If anyone is having this error on Windows 10: NotADirectoryError: [WinError 267] The directory name is invalid: 'known_faces/9a7f3cd.png'. I got around this by using for filename in os.path.join(KNOWN_FACES_DIR, name): instead of for filename in os.listdir(f'{KNOWN_FACES_DIR}/{name}') This worked for me. Good luck.
Sentdex you should try to get a sponsorship from kite as they have sponsored other youtubers and you just made the best advertisement overall imo. Also, you are edward snowdens doppleganger!!!
With a little more code you can save the known_faces numpy ndarry in something like an Excel file and the names in a file too so you aren't training the face recognition each time it runs, saves a lot of time.
Finally got face recognition working on GPU. I think its worth mentioning to include Visual C++ Tools in the Visual Studio 2015 installation. Unlike TensorFlow GPU, face recognition needs them otherwise dlib installation will not use CUDA.
Hi, did you use CUDA in this script? Or was this running on your CPU alone? I am running the face_recognition package with dlib on Windows and it's pretty damn slow.
this happens because there are no images detected to encode, hence the array is empty and cant have a 0th position. This maybe due to bad pose/quality of image or something wrong with the model. A solution would be the following : temp_encoding = face_recognition.face_encodings(image) if len(temp_encoding) > 0 : encoding = temp_encoding[0] else: print("no face found") quit()
If you are getting IndexError in encoding try this, location = face_recognition.face_locations(image, number_of_times_to_upsample=2, model='cnn') encoding = face_recognition.face_encodings(image, known_face_locations=location)[0]
this library is good for face detection, for face recognition better use something like Facenet (you can find couple TensorFlow Keras implementation of Facenet)
9:48 f strings are good I'm suprised they aren't used as much in python scripts that I have read. there are people who still use % notation in strings.
FYI: Kite has a history of acquiring Python libraries (One of them is autocomplete-python), then modified them to show ads and added telemetry. So they can basically intercept your code.
@@sentdex Yes they posted a 'non-apology' apology on their blog. The question that everyone needs to decide themselves is, have they really learned and are they now trustworthy?
heyyy, sentdex i was just curious, can u make videos on unsupervised deep learning techniques, like auto encoders (although it is self-supervised), GANs etc, it would be really helpful :'), Glad you're back.
When running the code I came across error on the below line: encoding = face_recognition.face_encodings(image)[0] saying that: IndexError: list index out of range Removed [0] and it ran. but after print("Processing unknown faces") the system hangs and doesn't work
I got the same error on pictures that is not able get a face recognition (from hog), it mean the numpy array for encoding is empty. In my case was the faces in more than 45° degrees of inclination.
great tutorial !! while using Png it is working fine with training data and test data but while working with jpeg images it is not working my error is encoding = face_recognition.face_encodings(image)[0] IndexError: list index out of range and images i am using are both same i had jpg images which i converted into Png images then it is working previously it wasn't
operands could not be broadcast together with shapes (3973,) (128,) . This error is coming when I am using your code at line (results = face_recognition.compare_faces(known_faces, face_encoding, TOLERANCE)). I am fedup with this I am not able to understand what shape I used your code as it was.
f string is bad way for concating path because there might be cases where spaces left of double slashes ("//") appended because of forward slash added in prev strign at end and next string in first, say "known_dir/" "/name" human can miss pattern on a large scale project.
Hello! This is really helpful! Thank you! Im not very good at programming and the teacher had us to make a face recognition program as the last assignment so I'm clueless on many things! I would like to use this tutorial to start my assignment but we are not allowed to use any machine learning package/module and we cannot use any built-in/ready to use linear regression functions. So I more lost than ever of how to start. Do you have any advice? We have to use an algorithm and not sure how to implement it on python.
can u tell me why is it throwing a value errorr return np.linalg.norm(face_encodings - face_to_compare, axis=1) ValueError: operands could not be broadcast together with shapes (1,14) (128,)
"If anyone knows why not to use f strings for paths" Pretty sure it's the same reason we didn't use concatenation before: it isn't operating system independent. os.path is.
i am getting this error while running the code : encodeing = face_recognition.face_encodeings(image)[0] AttributeError: module 'face_recognition' has no attribute 'face_encodeings' is there anyway to fix this.
I really love your videos. Good job. I have a question. When I run this code I get the error: IndexError: list index out of range. The error is for the part when you type face_encodings(image)[0]. When I type 1 instead of 0 I get the same error. When I delete the [0] completely the error goes away but later a get a different error. Can you help me with this?
@@AnuragVarmaP yeah I kinda solved it. I get this error only if I put too many faces in the known faces folder. I think around 8 is the limit but I'm not sure. When I remove some of them it works again.
@@AnuragVarmaP yeah I kinda solved it. I get this error only if I put too many faces in the known faces folder. I think around 8 is the limit but I'm not sure. When I remove some of them it works again.
A valid reason not to use f-strings for paths? The pathlib library. It is built-in, it uses / for paths (overriding the division operator), it has the glob method available for any path, etc. By the way: love your Channel!
I can't install the face_recognition library. I'm using PyCharm and Windows 10. I'm getting cmake, dlib, and path errors. Anyone have a link to help install all of this?
Hi. I'm having issues with the list out of range when I run the program with some photos. Could it be that the program is no recognizing the face? Excellent work Sentdex.Congrats.Error bellow: " File "ee.py", line 38, in encoding = face_recognition.face_encodings(image)[2] IndexError: list index out of range "
26.43 the answer = Ubuntu lmao... also, are you using python3/pip3 as i see you just typing "python" or "pip" and not "python3" or "pip3" other than that keep up the great work and thank you for your time and knowledge!
Hi Sir! I faced an error while running the code. Please help me to figure out this. encoding = face_recognition.face_encodings(image)[0] IndexError: list index out of range Thanks in advance!
Hey- I'm not sentdex, but I had the same problem as you- what I did was first check to see if the known images even detected a face in the first place by doing: if len(face_recognition.face_encodings(image)) > 0: and then indented the code after that in the loop. Hopefully that helps!
@@shobhitbishop Okay! How I install dlib and face-recognition. I think, why VS (visual studio)? I use VS 2017 community. VS '17 is for installing Cmake c++ library nothing much!! I type in the Pycharm's terminal 'pip install dlib', then my pc hanged out for 5 minutes. I got afraid! Then after 20 minutes, I see the successful message. Then just type 'pip install face-recognition' and boom!! Note : I installed cmake!
I get this error when I tested the code tho... return np.linalg.norm(face_encodings - face_to_compare, axis=1) ValueError: operands could not be broadcast together with shapes (6,) (128,)
this happens if there is no face found in known images, just add an if statement to see if encoding has any elements before appending it : ... encoding = face_recognition.face_encodings(face) if encoding : knownFaces.append(encoding) ...
has anyone tried running this on mac and pycharm my laptop starts lagging and the code isnt giving out an error but it stops working after the first for loop
Hey, love the tutorial but i got an error that i cant fix, ValueError: operands could not be broadcast together with shapes (22,) (128,). Also if i use the index to detect faces it says im out of range. No clue.
I am getting the following errors "VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray. return np.linalg.norm(face_encodings - face_to_compare, axis=1)" "ValueError: operands could not be broadcast together with shapes "
All I’ll say is... no one has seen him and Snowden in the same room at the same time.
Gosh, asap I open I thought was him.
HE'S BACK! OH MY GOD, BUCKY IS BACK!!!!!!!!!!!!!!!!!
For a sec I thought maybe bucky was back. Sad.
@@sentdex At least on my feed. I hadn't seen you for a while, altjought I'm a subscriber. Guess it's TH-cam's algorithm
lmao, I actually thought Bucky was back.
@@AccessCode101 but you know I'm not Bucky right
We miss Buck 😢
9:40 the reason you might not want to use f strings is because the os method is os independent. Not usually an issue, but your code is just slightly more robust using os.
Someone beat me to the response. I was going to say exactly the same thing as Damien.
Yep, for example Windows uses the '\' for join paths
Cool! I never expected python to be so powerful:D
It's been a while. Actually today I was thinking about you and where you might be this long! I'm glad to see you again.
You're like THE best programming channel on TH-cam! Seriously like THANK YOU FOR EXISTING!
while executing "encoding = face_recognition.api.face_encodings(image)[0] " line of code, IndexError: list index out of range occurs. That means that face was not recognized by the face_recognition package!! Thanks Sentdex ! Very awesome tutorials! Learning style is simply awesome 😃
This is awesome! Please continue this series!
Just 4 minutes in, I thought I was on a tech tutorial turns out it's a nice comedy lol
I love your humour !!
It's great to see you're back!
I was just writing a paper about this lib for my graduation great help + timing thx
Thank you Bucky! Good to see you. You are always the reason for happiness. :)
Ok but you know I'm not *really* bucky right?
Combine this with beautiful soup or selenium and you have built the same technology that scrapes suspect faces from social media. The use of libraries and API's have made it so easy to use artificial intelligence.
Andrew James does beautiful soup and selenium allow you to download all public data? Let’s say a radius that has 250k ppl? I was looking into this and read that clearview AI is getting sewed for it.. still want to do this on my own tho! I believe Facebooks graph API only allows you to get data from your own profile:/
@@sysadmin9396 It's possible you can do this by scrapping the data with selenium, puppeteer (JavaScript), and beautiful soup. You just need accounts for the Social Media to log in. There are a lot of videos online on how to approach web scrapping :) and happy hacking!
Andrew James thank you! Appreciate the response ! I’m currently getting the code together for the facial recognition part.. doing some shopping around for glasses that have an IP addressable camera . All that mixed with the scrapping and I might have myself some cool tech! Lol
You just defined my senior project, will be releasing it soon on git, scarped all the pics from FB and IG and used LBPH along with CNN to find the nasty buggers via input from my drone camera. All that done in a clean Pyqt5 UI with threads ;)
@@Killer-mx7tr I'd love to have a look, do update.
It's great to see you're back.
I am a huge fan of what you do! Thank you so much!
I hope that one day you make a serie about transfer learning.
I have a plan to cover it at some point. The main issue is it's a pretty general concept and it can vary depending on the task.
You are such a great programming dude on youtube :) love to see there is a new video
Thanks for the tutorial. Taken your script as a basefor my face recognition script. Main difference is that i don't display the image with a square around the face, but it moves it to another folder with the name of the person in front of it. THX again!
Hello, great video! :D
If anyone is having this error on Windows 10:
NotADirectoryError: [WinError 267] The directory name is invalid: 'known_faces/9a7f3cd.png'. I got around this by using
for filename in os.path.join(KNOWN_FACES_DIR, name):
instead of
for filename in os.listdir(f'{KNOWN_FACES_DIR}/{name}')
This worked for me.
Good luck.
thanks
How to load files then?
Please tell the replaced command for this too
image = face_recognition.load_image_file(f'{Known_Faces_Dir}/{name}/{filename})
Literally watching this at 2.30 in the morning.
Thank you so much. I am new in programming and trying to do this. It is great and very helpful.
OMG! Un video de Sentdex un domingo por la tarde? 👏👏👏 Ya mismo a verlo!!!
I love your tutorials so much, thanks!
Sentdex you should try to get a sponsorship from kite as they have sponsored other youtubers and you just made the best advertisement overall imo.
Also, you are edward snowdens doppleganger!!!
4:27 "my life" I know that feel bro
Nice Tutorial! Thank you :)
A beautiful mind. Nice hair cut too. I can't wait for more!
When is the "neural networks from scratch" series coming out? I am eagerly waiting for it. Really like your channel.
I think it's a book .. there was a kickstarter
its out check playlist
@@redefine-your-system8255 Yeah I know, my comment is a month old
That hamburger mug is...oh so beautiful.
With a little more code you can save the known_faces numpy ndarry in something like an Excel file and the names in a file too so you aren't training the face recognition each time it runs, saves a lot of time.
Bro where have you been?
Glad to have you back finally, wohoo
Working on neural networks from scratch book/series.
I am so used to see you on the left downside corner, watching this makes me feel disoriented!
Good, I wanna keep you on your toes!
@Tomer Horowitz I think the video was released to only members first
@sentdex
I am glad that you are back but I don’t want to see your back 🤣
@@sentdex If you put yourself in the top right, can you flip the image so that you look towards the rest of the screen and not away from it? :)
@@franzweitkamp I agree
Please make another one on videos , that's so helpful
Finally sir you are back
Awesome, could you please make a video about activity recognition in videos, it will be a great help for most of your fans.
Amazing thank you sir! Doing the same with video would be amazing!!!!
Finally got face recognition working on GPU. I think its worth mentioning to include Visual C++ Tools in the Visual Studio 2015 installation. Unlike TensorFlow GPU, face recognition needs them otherwise dlib installation will not use CUDA.
Nobody:
Sentdex's door: *Knock~knock~bam
FBI (barge in) : Snowden! You are under arrest!
Video recognition would be good to see, if you have time. Thanks for all of your terrific efforts here.
Please do the video one.
This was so helpful.
Thank you.
This guy is my favourite 💯💯
I am a fan. And you are the best.
maybe you will evolve into air conditioner later 😁
Hi, did you use CUDA in this script? Or was this running on your CPU alone? I am running the face_recognition package with dlib on Windows and it's pretty damn slow.
Shows 'IndexError : list index out of range' at the following line : encoding = face_recognition.face_encodings(image)[0]
Any solution for this error?
this happens because there are no images detected to encode, hence the array is empty and cant have a 0th position. This maybe due to bad pose/quality of image or something wrong with the model. A solution would be the following :
temp_encoding = face_recognition.face_encodings(image)
if len(temp_encoding) > 0 :
encoding = temp_encoding[0]
else:
print("no face found")
quit()
I found my next project! This looks sweet
Ur videos r awesome. Thank u so much. U r really cool, when coding 😁
Great video tutorial. "I think we have survived" Lol Lol 😂😂 Well done.
Welcome back legend 😍
If you are getting IndexError in encoding try this,
location = face_recognition.face_locations(image, number_of_times_to_upsample=2, model='cnn')
encoding = face_recognition.face_encodings(image, known_face_locations=location)[0]
this library is good for face detection, for face recognition better use something like Facenet (you can find couple TensorFlow Keras implementation of Facenet)
Python facial recognition: around 50 lines
C/cpp/c sharp calculator: 100 lines
You do realize a package is a group of modules, a module is a group of function, so without those packages the code would be like 2439834 lines
@@gabrielceolato2 that's the point. There are so many things already done
9:48 f strings are good I'm suprised they aren't used as much in python scripts that I have read. there are people who still use % notation in strings.
Nice tutorial buddy
Please do the video example, ur videos are great! Keep it up
Great tutorial buddy
Glad you liked it
FYI: Kite has a history of acquiring Python libraries (One of them is autocomplete-python), then modified them to show ads and added telemetry. So they can basically intercept your code.
They tried that as a business model long ago and it didnt go well for them. They've addressed that history on their blog if you want to learn more.
@@sentdex Yes they posted a 'non-apology' apology on their blog. The question that everyone needs to decide themselves is, have they really learned and are they now trustworthy?
Nice content again, am gonna order the book, I trust your contents any time
heyyy, sentdex i was just curious, can u make videos on unsupervised deep learning techniques, like auto encoders (although it is self-supervised), GANs etc, it would be really helpful :'), Glad you're back.
and he is back
When running the code I came across error on the below line:
encoding = face_recognition.face_encodings(image)[0]
saying that:
IndexError: list index out of range
Removed [0] and it ran.
but after print("Processing unknown faces")
the system hangs and doesn't work
I got the same error on pictures that is not able get a face recognition (from hog), it mean the numpy array for encoding is empty. In my case was the faces in more than 45° degrees of inclination.
@@martinsepulveda59 how'd you fix it ?
@@Gouled99 I had the same problem, just crop the photo to see the face more clear and without angle, use a normal selfie focusing in the face.
@@urzdvd thank so much
Our Snowden is back again, this time with face recognition.
I Want Face recognition with Famous Face recognition algorithms:
1-PCA
2-LDA
3-SVM
4-SURF
5-LBPH
Thanks buddy waiting for neural networks
Very soon
@@sentdex Are you going to make videos for "Neural networks from the scratch" book?
I would love to see you tackle the PennyLane library (Quantum Neural Networks). Since you are the bleeding edge of codetubers and all
great tutorial !! while using Png it is working fine with training data and test data
but while working with jpeg images it is not working my error is
encoding = face_recognition.face_encodings(image)[0]
IndexError: list index out of range
and images i am using are both same i had jpg images which i converted into Png images then it is working previously it wasn't
operands could not be broadcast together with shapes (3973,) (128,) . This error is coming when I am using your code at line (results = face_recognition.compare_faces(known_faces, face_encoding, TOLERANCE)). I am fedup with this I am not able to understand what shape I used your code as it was.
f string is bad way for concating path because there might be cases where spaces left of double slashes ("//") appended because of forward slash added in prev strign at end and next string in first, say "known_dir/" "/name" human can miss pattern on a large scale project.
Hello! This is really helpful! Thank you! Im not very good at programming and the teacher had us to make a face recognition program as the last assignment so I'm clueless on many things! I would like to use this tutorial to start my assignment but we are not allowed to use any machine learning package/module and we cannot use any built-in/ready to use linear regression functions. So I more lost than ever of how to start. Do you have any advice? We have to use an algorithm and not sure how to implement it on python.
can u tell me why is it throwing a value errorr return np.linalg.norm(face_encodings - face_to_compare, axis=1)
ValueError: operands could not be broadcast together with shapes (1,14) (128,)
how did u solve it, plz say
I hope u can do another tutorial with video , Thank u anyway that was really helpful
Finnaly a video! wuju!
"If anyone knows why not to use f strings for paths" Pretty sure it's the same reason we didn't use concatenation before: it isn't operating system independent. os.path is.
AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector'
can any help me to solve this i am using python version 3.8
In order to work properly, you need to download visual studio build tools, then install C++ Build Tools
i am getting this error while running the code : encodeing = face_recognition.face_encodeings(image)[0]
AttributeError: module 'face_recognition' has no attribute 'face_encodeings'
is there anyway to fix this.
Thanks a lot, useful. Is it possible to change MODEL with a pytorch or keras model?
hello thanks for the video. But I have a doubt with this library, is there a function to know the confidence and accuracy of our system?
Great Video! Thank you!
How can we understand which CNN algorithm (model) used there?
Hey nice tutorial. Will definitely check it out. Do you happen to know if it detects things like objects and animals, etc.?
Hey Harrison, coming from a CompSci background, how heavy on statistics is ML/AI?
I really love your videos. Good job. I have a question. When I run this code I get the error: IndexError: list index out of range. The error is for the part when you type face_encodings(image)[0]. When I type 1 instead of 0 I get the same error. When I delete the [0] completely the error goes away but later a get a different error. Can you help me with this?
did u solve it, i have the same error
how to solve it
@@AnuragVarmaP yeah I kinda solved it. I get this error only if I put too many faces in the known faces folder. I think around 8 is the limit but I'm not sure. When I remove some of them it works again.
@@AnuragVarmaP yeah I kinda solved it. I get this error only if I put too many faces in the known faces folder. I think around 8 is the limit but I'm not sure. When I remove some of them it works again.
i put like 3000 images, lol
A valid reason not to use f-strings for paths? The pathlib library. It is built-in, it uses / for paths (overriding the division operator), it has the glob method available for any path, etc. By the way: love your Channel!
I can't install the face_recognition library. I'm using PyCharm and Windows 10. I'm getting cmake, dlib, and path errors. Anyone have a link to help install all of this?
Hi. I'm having issues with the list out of range when I run the program with some photos. Could it be that the program is no recognizing the face?
Excellent work Sentdex.Congrats.Error bellow:
" File "ee.py", line 38, in
encoding = face_recognition.face_encodings(image)[2]
IndexError: list index out of range
"
Maybe no face found in one of your known faces
@@sentdex I got the same error. I used a face dataset from susanqq.github.io/UTKFace and I'm getting the same error.
what is the editor you are using so we can do the same as you
26.43 the answer = Ubuntu lmao... also, are you using python3/pip3 as i see you just typing "python" or "pip" and not "python3" or "pip3" other than that keep up the great work and thank you for your time and knowledge!
Hi Sir! I faced an error while running the code. Please help me to figure out this.
encoding = face_recognition.face_encodings(image)[0]
IndexError: list index out of range
Thanks in advance!
Hey- I'm not sentdex, but I had the same problem as you- what I did was first check to see if the known images even detected a face in the first place by doing:
if len(face_recognition.face_encodings(image)) > 0:
and then indented the code after that in the loop. Hopefully that helps!
great video!
ValueError: operands could not be broadcast together with shapes (5603,0) (128,)
how can I over come this error
Sitting with the same problem. @
mani kumar donepudi @sentdex
Yes
same here
It says: ModuleNotFoundError: No module named 'face_recognition'
while doing pip install face-recognition in cmd
Can anyone help me?
It seems like Windows is not officially supported as it says here: pypi.org/project/face-recognition/#requirements
I am eagerly waiting for Neural networks from scratch videos. Will it be coming anytime soon?
Having problem installing dlib. Installed cmake first but still there's error. Stack overflow didn't help either
I faced the same issue, try using pip install dlib = 19.8.1
@@shobhitbishop Okay! How I install dlib and face-recognition. I think, why VS (visual studio)? I use VS 2017 community. VS '17 is for installing Cmake c++ library nothing much!!
I type in the Pycharm's terminal 'pip install dlib', then my pc hanged out for 5 minutes. I got afraid! Then after 20 minutes, I see the successful message. Then just type 'pip install face-recognition' and boom!!
Note : I installed cmake!
I get this error when I tested the code tho...
return np.linalg.norm(face_encodings - face_to_compare, axis=1)
ValueError: operands could not be broadcast together with shapes (6,) (128,)
yes I'm getting the same error do let me know if you find fix
@sentdex I'm also getting this error
this happens if there is no face found in known images, just add an if statement to see if encoding has any elements before appending it :
...
encoding = face_recognition.face_encodings(face)
if encoding :
knownFaces.append(encoding)
...
28:36 hahahahhaha 🤣 , great video !!!
has anyone tried running this on mac and pycharm my laptop starts lagging and the code isnt giving out an error but it stops working after the first for loop
It due to the load of the program . I prefer u to use model="hog" instead of cnn .it may solve your issue
Thanks .Please make for real time face recognition
Hi , i got
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_CXX_COMPILER could be found. even though cmake is installed
me too .. I tried adding compilers path to environment var but it didn't work
Hey, love the tutorial but i got an error that i cant fix, ValueError: operands could not be broadcast together with shapes (22,) (128,).
Also if i use the index to detect faces it says im out of range. No clue.
How did you make accuracy and loss functions by using the face recognition library?
I am getting the following errors
"VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
return np.linalg.norm(face_encodings - face_to_compare, axis=1)"
"ValueError: operands could not be broadcast together with shapes "
would this work with objects? live detecting screwdrivers vs. hammers. I have like 180 broad groups. great stuff. thanks a lot.