This project involves making a mask detection model using python libraries using OpenCV, Tensorflow and Keras. This project is made in 2 phases
- The Train Model phase : This phsae involves making of the Training Model which is trained to detect faces in the Frame. This model trained with the dataset to get a good accuaracy.
- The Face Mask Detect phase : The model obtained from training phsae is embedded in this script which take the detected Face, the presence of face mask and the percent of face coved with mask as input. This will classify the output as wearing mask or not. The model also portrays, how well the mask is worn, mentioning the accuracy of usage of Masks.
- Clone this repository by clicking here
- Navigate to the correct directory.
- Install the required packages using
pip install -r requirements.txt
- To Run detection Model
python run detect_mask_video.py
- To End the stream, use
Ctrl+c or q
This Face Mask Detection Model works on Real Time Video streams.
Publication Update:-
- This project is now published as a research paper at ECS transactions