Skip to content

PhilipBambo/face-recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Face Recognition – Raspberry Pi 3B+ Project

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

File Overview

1. headshots.py

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.

2. train_model.py

Reads all collected headshots, encodes them using face_recognition, and saves the trained encodings file (encodings.pickle).

3. facial_req.py

Main execution script.
Runs real-time facial recognition, compares faces with the trained encodings, and prints or triggers actions (e.g., access granted/denied).


Requirements

Install dependencies:


pip install face_recognition pip install opencv-python pip install numpy pip install imutils


File Overview

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

About

face recognition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages