Skip to content

TheProjectTeamSRM/Mask-detector

 
 

Repository files navigation

Mask detection using tensorflow keras

Predicting whether a person is wearing a mask or not using the intelligent tensorflow library.

Installation

Use the package manager pip to install tensorflow, numpy, matplotlib, sklearn etc.

pip install tensorflow
pip install numpy
pip install matplotlib
pip install sklearn

Requirements

Large dataset with two folders, one with images of face with mask and other without mask. NB: you can get it from kaggle

Usage

Train the model first by running the file

training_detector.py

Then test it by running the file

detect_mask_video.py

Result

Without Mask

without_mask

With Mask

with_mask

Result is almost accurate, and also detects if more than one person is there in the frame

About

build using tensorflow keras

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%