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!
- 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.
- Install WIN 10 IOT on SD card for Raspberry Pi3. For the instruction check here.
- Set up your laptop and Raspberry Pi 3 in step with these directions.
- 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.
- Now wire up all the component with each other as shown in the image.
- Now plug Webcam, Keyboard, and Mouse in USB port of Pi3.
- Now Download the Source code from here.
- Open the FacialRecognitionDoor.sln solution file in Visual Studio this source code only work in Visual Studio 2015.
- Navigate Constants.cs from the opened “FacialRecognitionDoor” project and put your Oxford API key. You can acquire the key from here.
- 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.
- 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.
- To know how to deploy your application on a Windows IoT device, please see this documentation.
- 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.
- Open Windows IOT core Dashboard application if you do not have you can download from here.
- 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.
- 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.
- Now go to Apps and Set FaicalRecognitionDoor as default. As shown in the Image.
- Now reboot the Device and you will see your default application will run at the startup.