How to Make DIY Portable Face Recogniser

DIY Portable Face Recogniser
DIY Portable Face Recogniser

What is Portable Face Recogniser?

The Portable Face Recogniser is a device that can remember people’s names & faces by training an AI Face Recognition Model. It also uses the same model to recognise their faces later.

The face trained model in a yml file.

The device uses face images on the fly to recognise a person or to create calculated face models (a bunch of numbers) in a yml file, but it does not keep face images at all.

It also works without the Internet and can be powered by a mobile battery. It has an audio jack as well as Bluetooth speaker connectivity to greet people with a robotic voice.

Background

You see a person walking towards you. You know that person but quite remember the name or how you met that person. I would love to see a device in the future can assist in this situation.

While I was dreaming about the future, I made a toy version to explore the concept and had some fun at the same time.

After I finished making the device though, I realised a lot of educational values in this project. That led me to document this project as match as I can to make this repeatable for anyone who interested to try making it.

About the Tutorial

This tutorial takes you from the most basic setup of Raspberry Pi to low-intermediate Python programming to make your own Portable Face Recogniser. In between you’ll also use:

  • Buttons with Raspberry Pi
  • LCD with a Raspberry Pi
  • Database with Raspberry Pi
  • Bluetooth speaker with Raspberry Pi
  • Face detection with OpenCV
  • Face model training with OpenCV
  • The trained model to recognise face with OpenCV
  • Crontab to autorun Python program
Tutorial Index
In order to make this project working, we need some software to be installed. Video Introduction Start Raspberry PiHow to ...
Required Components I bought most of my components from eBay & local electronics shops. You can also find the same ...
DIY Face Recogniser Hardware
I'll illustrate how all the components from the previous post are connected together. 1602 I2c LCD Display Module Buttons PWM ...
We have all the components connected to each other, and software libraries are installed with previous tutorials.Now we need a ...
Start Writing Python Program A Python program is just a text file. Use your favorite text editor to create an ...
Function Blocks Just continuing from the previous post, we will start writing each function that will be assigned to the ...
Final Preparation We have covered all the function blocks in the previous post.This post will be a short one to ...
Main Program Loop Okay, we will enter the main loop of the program in this post. The first part of ...
Run Program Manually We have the Python program ready to run manually. cd DIY_Portable_Face_Recogniser python3 main.py However, a portable device ...
Reference

If you want to learn more about OpenCV with Raspberry Pi, I recommend visiting Adrian’s website below:

https://www.pyimagesearch.com/

I learned a lot from his website and I still refer back occasionally.