Skip to content

Home security system on a Rapsberry Pi and Altera DE-2 FPGA with facial recognition

License

Notifications You must be signed in to change notification settings

alec-ng/face-rec-home-security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Facial Recognition Home Security System

Alec Ng, David Henderson, Daniel Sallaway, Anna Gudimova

Overview

Demo 1 and Demo 2

This project mimics a home security system that has a two step authentication process. Each user is represented by a unique 4 digit PIN code, which is first entered in a matrix keypad. Then, the user takes a picture through a webcam attached to an Altera DE-2 FPGA, which then is sent to a Raspberry Pi for face recognition logic. If the picture matches the person the ID entered represents, a servo is activated to represent unlocking of a lock.

Features

  • Ability to create new users to add to the list of recognized users, as well as to train a new face to be recognized
  • Facial recognition of known subjects, and ability to reject unknown subjects
  • Two step authentication (keypad, face recognition) for added security and robustness
  • Scheduler that logs all unauthorized attempts (i.e. incorrect keypad PIN, mismatching face)
  • Real time SMS messaging to let master user know of an unauthorized attempt
  • Bi directional communication between the DE2 and Pi
  • User interface via the DE2, plus integration of several peripherals

Contents

/DE2

  • Qsys file and Quartus project, plus relevant VHDL file to replicate hardware system that includes peripherals such as a webcam, matrix keypad, GPIO pins for bi directional communication with the Pi, switches, LCD screen and push buttons
  • Nios II Eclipse C files that serve as the DE2 main program functions

/Python

  • Scripts to generate a new user, get raw images from the DE2 camera, preprocess all images and use OpenCV API to create a trained model
  • Scheduler files to send SMS and texts
  • Communication files with custom python bindings to receive and send information to the DE2, and reconstruction of a picture from the DE2

Technical Components

Languages:

  • Python
  • VHDL
  • C

Libraries:

Other:

  • Quartus
  • PostgreSQL

Hardware Components:

  • Raspberry Pi 2 Model B
  • Altera DE-2 FPGA Circuit Board
  • Servo motor
  • Webcam
  • Matrix Keypad

About

Home security system on a Rapsberry Pi and Altera DE-2 FPGA with facial recognition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published