/SmartHomeAutomation

Smart Home Automation GUI created with WebView & Java

Primary LanguageJavaMIT LicenseMIT

Smart Home Automation using Facial Recognition

Project created by students of Vishwakarma Institute of Technology IT-A Group 15 @ 2023. You can use this project by referring to the installation guide of the project.

Prerequisites

This project depends on a few prerequisites for the execution of the project.

The project uses the following tools. Make sure these dependencies are installed and configured:

  • Java (OpenJDK 17.0.8)
  • Maven (3.9.4)
  • Python (3.10.12)
  • face-recognition library (>= 1.3.0)

Installation

Before installation ensure you meet all the required prerequisites for the project.

  • Clone the repository to your local machine and cd into it.
  • Copy or rename the mysql.json.example file to mysql.json in the resources folder at src/main/resources
  • Modify the setting present in the mysql.json file and save the changes.
  • Build the project by using mvn clean package and cd into the target directory.
  • Run the built project by executing java -jar target/fdwebview-VERSION.jar

Face Recognition Installation Guide

To install the face recognition library, follow the below steps:

  • Ensure you have Microsoft Visual C++ Build Tools installed.
  • For GPU Acceleration, download & install CUDA and cuDNN. Without these, the face recognition library will run on CPU and won't perform efficiently. (Optional)
  • Download and build dlib from source to ensure CUDA is enabled. (Optional)
  • Install face_recognition using pip with the following command pip install face-recognition
  • Success! Face recognition should be installed with all the models.