Skip to content

Real-time mask detection has been developed. The model is tested using a local webcam to detect mask usage. It shows a red label in real-time when no mask is detected or if the mask is worn inappropriately, and it accurately detects proper mask usage.

Notifications You must be signed in to change notification settings

thom22/Contactless-Face-Mask-Recognition

Repository files navigation

Contactless-Face-Mask-Recognition

Summary

In this project, a pretrained convolutional neural netwrok (CNN) is utilized for real time contactless face mask detection. The system effectively identifies faces with mask and non-mask regardless of the color of the mask. CNN is adopted to extract the meaningful features of the image input and perform the detection task. The model system achieved an overall detection accuracy of 97.6%.

real time detection from webcam/video stream

mask_recognition_thomas.mp4

Dataset Samples

With Mask Without Mask
image image

Requirements

- tensorflow > 1.15.2 
- keras==2.3.1
- opencv-python==4.2.0
- numpy==1.18.2
- matplotlib==3.2.1
- scipy==1.4.1
- imutils==0.5.3

Tools

  • Python
  • OpenCV
  • Tensorflow
  • Keras
  • macOs BigSur Version 11.6

About

Real-time mask detection has been developed. The model is tested using a local webcam to detect mask usage. It shows a red label in real-time when no mask is detected or if the mask is worn inappropriately, and it accurately detects proper mask usage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published