Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 853 Bytes

readme.md

File metadata and controls

37 lines (28 loc) · 853 Bytes

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