Find details from my video: (https://youtu.be/-x5jZwjrdGM)
Model_training.py
: Use this python file to train your modelImage_final_try
: With this file ,you can classify a image whether there is any mask in it or notWebcam_try.py
: This particular oython file will help you to detect mask/no mask from webcam or any video.Haarcascade_frontalface_alt.xml
: With the help of it you can detect face features.- Github Pages of this repo : (https://abd-shoumik.github.io/Face-Mask-detector/.)
- *Open your terminal
- Change directory to where you have downloaded this code
- Install python3 if you have not, if installed already then it's ok!
- Run
python3 -m venv venv
to create a virtual environment named venv. - Run
source venv/bin/activate
to activate your environment! - Write
pip install -r requirements.txt
to install the python dependencies related to this project like opencv,numpy,tensorflow,keras etc. - Run the command
python3 Model_training.py
to train your model - **Next, write
python3 webcam_try.py
to openup your webcam and detect whether there is a mask or not!
- Created by:Abdullah Shoumik
- Email: (https://[email protected])
- LinkedIn: Abdullah Shoumik