Hackster.io member MJRoBot has created a real-time Raspberry Pi face recognition system which is kindly been published to the Hackster.io site enabling you to add it to your own projects and applications. Within the tutorial you will learn how to use the official Raspberry Pi camera to recognise human faces in real time. The project is classed with an intermediate skill level and uses a Raspberry Pi 3 model B and the OpenCV service together with Python 3.
To create a complete project on Face Recognition, we must work on 3 very distinct phases, Face Detection and Data Gathering, Train the Recogniser and Face Recognition. MJRoBot explains a little more about the project and the inspiration behind it. “This project was done with this fantastic “Open Source Computer Vision Library”, the OpenCV. On this tutorial, we will be focusing on Raspberry Pi (so, Raspbian as OS) and Python, but I also tested the code on My Mac and it also works fine. OpenCV was designed for computational efficiency and with a strong focus on real-time applications. So, it’s perfect for real-time face recognition using a camera.”
Full instructions are provided on how to install the needed software on your Raspberry Pi together with all the code you will need to connect your Raspberry Pi camera to generate and capture a video stream that will be generated by your PiCam, displaying both, in BGR colour and Gray mode. For more details jump over to the Hackster.io website for the full tutorial.