This repository contains a complete facial-recognition system developed for my thesis project.
It is built using Python, OpenCV, dlib, and the face_recognition library, and runs on a Raspberry Pi 3B+.
The project includes:
- A script for capturing training images (headshots)
- A script for training the facial-recognition model
- A real-time recognition script for detecting and identifying faces using the Raspberry Pi camera
Captures images from the Raspberry Pi camera and stores them inside a folder for each user.
These images are later used to train the model.
Reads all collected headshots, encodes them using face_recognition, and saves the trained encodings file (encodings.pickle).
Main execution script.
Runs real-time facial recognition, compares faces with the trained encodings, and prints or triggers actions (e.g., access granted/denied).
Install dependencies:
pip install face_recognition pip install opencv-python pip install numpy pip install imutils
dlib may require:
sudo apt-get install cmake sudo apt-get install libboost-all-dev python3 headshots.py python3 train_model.py python3 facial_req.py