Skip to content

A face recognition security system using Raspberry Pi, OpenCV, PCA, and SVM. Captures and authenticates faces in real-time to simulate a door-locking mechanism. Developed as a course project at KUET.

Notifications You must be signed in to change notification settings

sadmansakib37/FaceRecognition-RPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Face Recognition Using Raspberry Pi

A real-time face recognition system built on Raspberry Pi using OpenCV, PCA (Eigenfaces), and SVM for secure biometric access control. Developed as part of ECE 3200 coursework at Khulna University of Engineering & Technology (KUET).

πŸ” Project Overview

This project demonstrates how face recognition can be implemented on a lightweight embedded system like Raspberry Pi. The system:

  • Captures facial images via Pi Camera.
  • Uses PCA to extract Eigenfaces from grayscale images.
  • Trains an SVM classifier to distinguish between registered users.
  • Performs real-time face recognition and determines access based on recognition confidence.

πŸ” Project Summary

  • Goal: Secure face authentication system using Raspberry Pi and camera.
  • Method: PCA for dimensionality reduction, SVM for classification.
  • Result: 94.74% accuracy on large datasets.

πŸ“ Project Structure

  • src/: All scripts including dataset creation, training, and recognition.
  • report/: Course project report PDF.
  • dataset/: Sample training images.

βš™οΈ Setup Instructions

1. Install Dependencies

pip install -r requirements.txt

2. Run Scripts

Capture facial images for training

python src/dataset_creation.py

Train the PCA + SVM model

python src/train_svm.py

Start real-time face recognition

python src/recognize_face.py

πŸ“Š Technologies Used

  • Python
  • OpenCV
  • Raspberry Pi + PiCamera
  • PCA (Principal Component Analysis)
  • SVM (Support Vector Machine)
  • scikit-learn, NumPy, Pillow

πŸ“œ Report

Read the full documentation here: πŸ“„ report/face-recognition.pdf

πŸ‘₯ Authors

  • Md. Sadman Sakib (1509050)
  • Md. Imran Hasan (1509049)
    Department of ECE, KUET

Supervisor:

  • Mr. Tasnim Azad Abir, Assistant Professor

πŸš€ Future Scope

  • πŸ”¬ IR camera for nighttime recognition
  • 🌐 GSM/IoT integration for remote alerts
  • 🏫 Smart surveillance, attendance systems, and beyond.

🌟 License

This project is for academic and learning purposes. Contact authors for inquiries.

About

A face recognition security system using Raspberry Pi, OpenCV, PCA, and SVM. Captures and authenticates faces in real-time to simulate a door-locking mechanism. Developed as a course project at KUET.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages