Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
/ TouchFree-v2 Public archive

TouchFree v2: AI-based Mask Detection and Temperature Check

License

Notifications You must be signed in to change notification settings

saksham2001/TouchFree-v2

Repository files navigation

TouchFree v2: AI-based Mask Detection and Temperature Check

work in progress licence MIT Build Status

Explanation

Firstly, the Tensorflow based Deep Learning Neural Network tries to detect if the person is wearing a Mask or not. The System has been made Robust by training it with many different examples to prevent False Positives. Picture 1

Once, the System has detected the Mask it performs Facial Landmarking. The System is using DLIB Module for Facial Landmarking to find the best Spot on the Forehead of the person to take Temperature from.

Then by using PID Control System with Servo Motors, the system tries to align the Selected Spot on the Forehead with the Sensor OR if in self align mode the User can align himself based on the visual clues. Once aligned the system takes Temperature Reading using Contactless IR Temperature Sensor. Picture 2

Picture 3

If the temperature is within normal Human Body Temperature range it allows the Person to Proceed and sends an email to the Admin with a Picture and other Details like Body Temperature, etc.

Picture 4

Setup for PC (Windows/Mac/Linux)

  • Install Python
  • Download the Code and the Required Files
    • Download the Code as Zip from Github.
    • Or by using command git clone https://github.com/saksham2001/TouchFree-v2
  • Install Requirements by running command
    pip install -r requirements.txt
  • Enable Less Secure App Access from here or Create an App Specific Password here.
  • Save the Sender's email Address, Password and Email Permission as Local Variables.
    export SEND_EMAIL="TRUE" export EMAIL_ID="your-email-here" export EMAIL_PWD="your-password-here"
  • Or If you do not want Email Feature just add Email Permission as Local Variable export SEND_EMAIL="FALSE"
    Note- For PC Version you have to design your own approach for temperature measurement and add the code to temp_check in line 36 of app.py

Setup for BalenaFin/ Raspberry Pi

Follow Hackster Tutorial

Running

  • Run the Application by the command python app.py

About

TouchFree v2: AI-based Mask Detection and Temperature Check

Resources

License

Stars

Watchers

Forks

Packages

No packages published