Make Facial Recognition Lock with Pi3: Windows 10 IOT

This is the first tutorial of Windows IOT, In this tutorial, we should learn how to make Facial Recognition Lock using Raspberry Pi3. This is an open source project based on Microsoft Hack the Home which provides free open source components to makers to create an excellent project without any difficulties.

How to make Facial Recognition Lock using Raspberry Pi:

Home security systems are a growing field of projects for manufacturers. A self-built system isn’t solely more cost-effective than a large skilled installation. However, it additionally allows for full control and customization as to fit your wants.With the introduction of Microsoft’s Project Oxford, face recognition applications are currently more accessible to manufacturers than ever before.

This project utilizes a Raspberry Pi, basic web camera, and an internet connection to make a door that unlocks itself via face recognition. If the visitant at the door is recognized, the door can open!

Required things:

  • A Raspberry Pi 2 or 3 ( I am using Pi3 )
  • A USB webcam.
  • A keyboard and Mouse.
  • 12v Relay Module with A push button for doorbell functionality.
  • A computer that can run Visual Studio 2015 and you also need Visual Studio 2015.
  • A power supply for Raspberry Pi3 5v 2A.
  • A generic speaker to listen to Voice for happening event like Door Unlock or Acces granted.


Initial Setup:

  1. Install WIN 10 IOT on SD card for Raspberry Pi3. For the instruction check here.
  2. Set up your laptop and Raspberry Pi 3 in step with these directions.
  3.  Next, wire up the buzzer and power relay as shown below. The power relay is going to be used to lock and unlock the door.Make Facial Recognition Lock with Pi3: Windows 10 IOT
  4. Now wire up all the component with each other as shown in the image.
  5. Now plug Webcam, Keyboard, and Mouse in USB port of Pi3.

Software Setup:

  1. Now Download the Source code from here.
  2. Open the FacialRecognitionDoor.sln solution file in Visual Studio this source code only work in Visual Studio 2015.
  3. Navigate Constants.cs from the opened “FacialRecognitionDoor” project and put your Oxford API key. You can acquire the key from here.Make Facial Recognition Lock with Pi3: Windows 10 IOT
  4. Now on the top of Visual Studio Menu Select DEBUG and ARM and press Local Machine and select Remote Machine as shown in the below image.Make Facial Recognition Lock with Pi3: Windows 10 IOT
  5. Now Press Remote Machine. Within the “Remote Connections” dialog you’ll have to be compelled to enter your Remote Machine IP address and use “Universal (Unencrypted Protocol)” for Authentication Mode. You can find your IP address with Windows IOT core Dashboard application download from here.
  6. To know how to deploy your application on a Windows IoT device, please see this documentation.
  7. Now you can run the code by pressing green play arrow from the Remote Machine section.

How to set Facial Recognition Lock or Application/Project Default run in WIN 10 IOT:

Here is the guide how can you set your project application as default in win 10 IOT that will run on the first when your device start OR reboot.

  1. Open Windows IOT core Dashboard application if you do not have you can download from here.
  2. Now Open My devices here you will see your Raspberry Pi Details if all things working good and Pi connected with same network that on PC.
  3. Now open Windows device portal in the Browser as Shown in the below image. And Login with the username Administrator and password which you made at the windows IOT installation time.Make Facial Recognition Lock with Pi3: Windows 10 IOT
  4. Now go to Apps and Set FaicalRecognitionDoor as default. As shown in the Image.Make Facial Recognition Lock with Pi3: Windows 10 IOT
  5. Now reboot the Device and you will see your default application will run at the startup.


Demonstration Video by Windows 10 IOT Team:


  1. Huy April 15, 2017
    • admin April 17, 2017

Leave a Reply

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.