Face and Smile detection on Raspberry Pi

Raspberry Pi 3

Raspberry pi3 has been the best-sold computers in this modern generation. They are the second best sales after the Beatles. Raspberry Pi has played a vital role in making robots as the students from all over the world are using it as the school projects.
By using Raspberry Pi, we can easily make robots and other lots of stuff like home appliances and for security process as well. We can use Raspberry Pi as a medium of making the devices as it is like a heart of the whole project.
Due to its price and the way it is built, the whole world is using it as a tool. People are experimenting lots of things on it like they are making a smart mirror, fingerprint scanner, CC TV,  robots, and drones as well.
The best part of the Raspberry Pi is that you get Wi-Fi and the RAM with graphics which is way more easier for us to do projects. To run Raspberry Pi and to set up, go to https://infocode.org/raspberry-pi/ and you will know what else to do.
Likewise, in this project, you can run the file on your local PC. But if you have your own Raspberry Pi then that nice as you can use Raspberry Pi camera and can work with it.

picture 1

As you can see from the above picture how it looks when you run the project. There are two colors and two buttons. The red one is for the normal camera color and the yellow one is for black and white. When you start the camera, the red one turns into the normal camera where it detects your face. The truth is that the detection is done in black and white camera as the normal one is only for the showing.

picture 2

This is how it looks like when you start the camera. There must be a person to detect the face. You can use a better quality camera than the webcam. You can use the Raspberry Pi camera for this project.
For the face detection, I have used haarcascade. You can get a lot of stuff for the opencv from Github.com. I have used Python language as the medium.

Things you need to install to run this project.
  1. You should install Python 2.7 or Python 3.
  2. You must install python libraries like cv2, time, Tkinter, threading, and PIL.
  3. Python libraries can be installed by sudo pip /pip3 and the library name.

Click on below button to download this project.
Download
Thank you,

Leave a Reply

Your email address will not be published. Required fields are marked *