Skip to content

The system detects face mask on the face and shows whether there is mask on the face or not.

Notifications You must be signed in to change notification settings

vatsal-30/FaceMaskDetector

Repository files navigation

Face Mask Detector

Utilizing Transfer Learning, the system works on detecting a face mask in real-time. The model is trained on a balanced dataset of 7,500 samples on a pre-trained MobileNetV2.

Technologies used:

  • Python
  • OpenCV
  • MobileNetV2 (Pre-trained model)
  • TensorFlow
  • Keras
  • NumPy
  • sklearn
  • matplotlib

Scope:

  • Detects for a face mask
  • Can detect multiple faces in a single frame
  • Has an accuracy of about 98%

Execution:

Training part:

Type python trainMaskDetector.py in command prompt.

Detection part:

Type python maskDetector.py in command prompt.

Output:

Training the model and showing the accuracy:

image

image

Mask detection:

image

image

About

The system detects face mask on the face and shows whether there is mask on the face or not.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages