This project was built as the final deliverable for our Embedded System course.
IntroductionIn this project we are using OpenCv in Raspberry Pi. Get the image from the Raspberry Pi camera and face detection from non-face by the "Haar Casecade Classifier" and detect familiar faces and distinguish them from unfamiliar faces (face recognition).
The first thing to do is install OpenCV.
Attach the Raspberry Pi Camera Module. Go to Raspi-config from the terminal and switch camera interface on.
The installation steps for python OpenCv3 on Raspberry Pi:
sudo apt-get update
sudo apt-get upgrade
sudo rpi-update
sudo reboot
sudo apt-get install \ libjpeg-dev \ libtiff5-dev \ libjasper-dev \ libpng12-dev \ libavcodec-dev \ libavformat-dev \ libswscale-dev \ libeigen3-dev \ libxvidcore-dev libx264-dev \ libgtk2.0-dev
sudo apt-get install libatlas-base-dev gfortran
Face detectionFirst, the Raspberry Pi camera is activated, and then the faces of the people who are in front of the camera are identified. Using the "Haar Cascade Classifier" identifies the human face. By a rectangle drawn around the face.
Face recognitionTo identify familiar from unfamiliar people, we need a database of photographs of the people we introduce, and then using the identifier we give the person, the person is identified and the person's name displayed.
Use Telegram-BotWe create a Telegram-Bot and inset the "token" and the "chat_id" to the program.
And write the code to send the photo when a face is detected, send an image to the Telegram-Bot.
Comments
Please log in or sign up to comment.