OVERVIEW of Face Recognition based Door Lock using Raspberry Pi B+ OpenCV

Face recognition is an amazing field of computer vision with many possible applications to hardware and devices. Using embedded SOC platforms like the Raspberry Pi and open source computer vision libraries like OpenCV, you can now add face recognition to your own maker projects! In this project, I’ll show you how to build a face recognition based door lock which unlocks itself using face recognition running on a Raspberry Pi.

For this face recognition based door lock project, you need basic skills related to Linux, Raspberry Pi and electronics. If you are not confident with Raspberry Pi you can take any free tutorial from YouTube.

If you are looking for other IOT projects please check this link >>>>



  • Raspberry Pi
  • SD Card
  • Raspberry Pi Camera
  • Servo Motor
  • 10k -ohm   1/4 watt resistor
  • Push Button
  • Hookup Wires
  • Power Supply for Pi and Servo
  • Wood / Glue and Misc for Construction


My Door Lock is based on this below adafruit Tutorial by Toiy DiCola

Please follow his tutorial to learn how this is made. Below is a video of my project’s demonstration.


This implementation of facial recognition involves Principal component analysis (PCA) and Eigenfaces. The Principal Component Analysis (PCA) was independently proposed by Karl Pearson (1901) and Harold Hotelling (1933) to turn a set of possibly correlated variables into a smaller set of uncorrelated variables. The idea is, that a high-dimensional dataset is often described by correlated variables and therefore only a few meaningful dimensions account for most of the information. The PCA method finds the directions with the greatest variance in the data, called principal components.

Here is the documentation for Eigenface and its implementation >>>



Git  >> https://github.com/arnabdasbwn 

Follow me on Instagram >> https://www.instagram.com/arnabdasbwn/

Follow me on Twitter >> https://twitter.com/ArnabDasBwn

Subscribe to my YouTube Channel >> https://www.youtube.com/c/ArnabDasBwn

Credits: Adafruit, Tony DiCola

Crazy Engineer



Rajitha Akwaththa · Sep 4, 2018 at 5:02 pm

Can I get a full tutorial on this, please? All the codes and connections?

    Crazy Engineer · Sep 4, 2018 at 8:10 pm

    Hi, The Link for the full detailed tutorial is there on this page. Please follow that tutorial. Make sure to check for dependencies while doing this project.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.