Our project is based on real life problem faced by many organizations in this pendemic phase which is improper wearing of face mask which can cause serious damages to there employees and co-workers 🤖
To deal with this problem our team Smart Brains
have came up with the solution "The Face Mask Detection System" which can be implemented in very simple steps and at a very low cost and is very flexible
Hardware we need to work with this project:-
- Raspberry Pi
- Raspberry Pi Camera Module
- Buzzer
- Jumper Wires
- 2 LED Bulbs
Software we need in Raspberry Pi to continue with our project
- Raspbian Os
- Python 3
- Tensorflow
- Tensorflow Hub
- Keras
- Scikit Learn
- MatPlotLib
- Numpy
- Imutils
- Open Cv
- Scipy
Connections
Once Hardware setup is done we are ready to boot up raspberry pi 🚀
- Connect the positive end of the buzzer to the Gpio pin 17 and negative end to the ground pin
- Connect Led1 positive end to Gpio pin 4 and negative to ground this will indicate that all files are loaded and ready to use
- Connect Led2 positive end to Gpio 21 and negative to ground
- Connect the Camera module to Raspberry pi camera ribbon connector
Setting up directory
Frist we need to setup Raspberry Pi:-
- Install raspbian on sd card and insert it into the raspberry pi and boot it up for frist use
- Now save all the files given in this directory into Raspberry pi (For this we assume you have pasted the files into desktop)
- Now open the terminal and install the dependencies we metioned earlier
- Open rasp_mask_detector.py in text editor
- Goto line 71 and check the camera setup you are using and change accordingly
- Now save that file and we are ready to run the script
Running Project
python3 rasp_mask_detector.py
Install Dependencies Instructions
Python3 is already installed in Raspbian Os so we only need to install other packages
pip3 install tensorflow
pip3 install opencv-python
pip3 install imutils
pip3 install keras
The good part is that python distributions for Raspberry pi comes with Matplotlib and Numpy with optimal versions so you dont have to worry about it 🕸