DIY Portable Face Recogniser Files

We have all the components connected to each other, and software libraries are installed with previous tutorials.
Now we need a program to orchestrate them to work together.
We use the Python programming language in this tutorial to do so.

A Folder to Keep the Files Together

mkdir DIY_Portable_Face_Recogniser

The folder name is just an example and this tutorial will refer to this folder as the Program Folder.

You only need 2 files in the Program Folder to begin with (3 more will be created automatically after running the program).

  1. haarcascade_frontalface_default.xml – Trained face detection model
  2. main.py – The Python program we create

Trained Face Detection Model

The trained face detection model will be used to instruct OpenCV what human faces generally look like.

Download “haarcascade_frontalface_default.xml” from original location here and place it in the Program Folder.

Alternatively, you can also download zipped version from below.

The other 3 files that will be created automatically are:

  • face_recogniser.db – The database to record names
  • face_recogniser.yml – The face recognition model file
  • voice.wav – Temporary voice file to speak

What’s Next?

We will start coding using Python programing language.