Face Recognition Using Raspberry Pi! | Real Time Face Recognition!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys welcome back to robo hope you guys are doing well and staying safe and today in this video what we're going to show you is how to perform the real-time face detection using your raspberry pi so stay tuned so to perform this face detection using raspberry pi what you have to do is first of all install the opencv library if you haven't installed already we have made an entire video showing how to install this opencv library step by step you can watch this video right here watch that video perform all the steps install the opencv library and then come back and perform these steps these steps are fairly simple and not that time consuming the opencv one are a little bit comprehensive and time consuming so without further ado let's jump straight into how to install and the entire process of face detection using your raspberry pi so on your raspberry pi open the terminal and the first thing that we're going to install is called dlib so dlib is a library for real world machine learning and data analysis applications so we're going to install it and the way that you install it is just by typing pip install dlib and just press enter and then it's going to take a little bit of time to install this entire library so yeah just wait it out and it will install on its own after installing deliver what we're going to install is pillow below is also called bis which is python imaging library and it's also known to open manipulate and save these files and images in an exceedingly different format so to install pillow what we're gonna do is just type in pip install pillow and once you press enter pillow will be installed on your raspberry pi the next thing that we're going to install is the face recognition library for your python and the way you install it just by typing this code and that is pip install face underscore recognition space dash dash no dash dash cache dash dir just press enter and it will install the face recognition library for python onto your raspberry pi the next thing that we're going to do is download the entire face recognition python codes and everything the link for downloading these files is down in description or in our blog the blog contains step by step of this whole process and also proper explanation of the code so if you want to just know and understand the codes you can check out the blog the link is also done description so to download just open your browser on your raspberry pi and over there just paste that link that we have provided in the description it's a github link it will take you there and once you're there just down go to code download zip and it will download the entire thing and once it's dead i'm just gonna press this and show in folder so if you see over here face detection raspberry pi just have to i'm gonna extract it here and then copy it on to my desktop of my raspberry pi just gonna close this and then just there it is on my desktop so the next thing that we're gonna do is inside that folder i have renamed that folder to face underscore recall just to access it better and easily instead of that long name that the folder has once you've done that just open that folder and you have to create a new folder inside of that which is a create new folder i'm going to just say face underscore images and inside this is going to contain all art folders or photos so let me continue one if robo and the other of let's say virat kohli so inside robo we just going to paste our photos and inside without we're going to space without police photos so that the algorithm knows that robo contains our photos and when we show our face it's just going to identify as robo or your name and when we show virat kohli's face it's going to identify him as virat so yeah create these two folders with your name and someone else's name meet your friend or another celebrity that you want to try out for your project if you can see here i have just pasted nine photos of myself and nine photos of it the more photos that you put in the better it is put in at least a minimum of seven to eight photos and a maximum of how many ever you want the more the better once that is done go to face underscore recognition labels just put in your name and the other person's name in this case virat and uh just save this thing save it close it and we're just going to create an array now so this is the only change that you're to do in the entire code we're not just left with the final few steps and these are the only important steps now you just have to write some code inside the terminal to create an array and just to open your camera so the first thing that we're going to do is just open terminal on your raspberry pi and once you're there just type in cd desktop slash face underscore recog or the folder name that you have saved it as press enter now you're just going to directly access the folder from your terminal so once that is just type in python face underscore trainer dot pi and this is going to create an array with the python folder that is the face underscore trainer pi python folder just going to create an array with your photos and the other person being the celebrity or your friends photos and what you're going to type now is python space face underscore recogniti and what this is going to do is just open the camera you can see on the screen right now it is identifying my face and without kohli's face with the names on top of each other's and that's it that's how face detection on your raspberry pi works it's fairly simple it's fairly comprehensive a little bit longer process but then once you're done and once you follow these steps step by step properly face detection on your raspberry pi will work without any hassle and without any errors so that has been it thank you so much for watching that is how you perform face detection and if you like this video and if you enjoyed it found it informative leave this video like comment down below what other type of projects and videos would you want to see from us and subscribe if you already haven't coming up with a lot more videos and that has been it thank you so much for watching we'll see you next time you
Info
Channel: Robu.in
Views: 30,288
Rating: undefined out of 5
Keywords: Robu, robu.in, robotics, electronics, diy, diybot, embedded systems, electronic engineering, drone, diy drone, hexacopter, robocon, mechanics, engineeringprojects, engineering, electronic engineering project, electronic components, electronics projects, raspberry pi, rpi, face detection, arducam, camera, face, detection, raspberry, pi, virat, kohli, virat kohli, real time, project, tutorial, rpi os, robu, step by step
Id: 9OOYgWjWehI
Channel Id: undefined
Length: 6min 22sec (382 seconds)
Published: Fri Apr 16 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.