Skip to content

Rl0007/Face-mask-detection-ML

Repository files navigation

Face mask detection

In this project I have used python to make a model which detects wether a person is wearing mask or not . In this project I have used 6500 images both with and without mask and a person can see the result through the website

Demo

Demo gif

Desc :- Press start to start and Stop to stop

Without mask

Desc :- Person without mask shown in red box with accuracy

With mask

Desc :- Person with mask shown in green box with accuracy

Login page of website

Desc :- login page

Home page with data

Desc :- Home page with database you can the data here

Bottom of Home page

Desc :- Bottom of home page with footer

Graph

Desc :- This graph shows the loss and accuracy of the face mask model

Sample dataset

With Mask

Without Mask

Deployment

To deploy this project run steps :-

  1. Install requirements.txt
  2. Use train.py to train model if another dataset used
  3. project.py is the main project which detects mask to use it start webcam if no webcam you can use droidcam application
  4. Web.py is the flask framework web application use it to see results in webpage and run project.py.
  5. user.db is the user database
  6. wearmask.db contains database of mask worn
  Pip install requirements.txt

To train model

  python train.py

web is the main application to run it use

  python web.py

Tech Stack

Technology Description
Tensorflow Machine learning to train model
opencv To detect face
Bootstrap For frontend
python-flask For Backend
flask-sqlalchemy ORM
sqlite Database

Support

For any queries or support, email 12agrawalrahul@gmail.com

🚀 About Me

I'm a software developer ...

My name is Rahul Agrawal

About

Face mask detection using machine learning in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors