Face Mask Detection using OpenCV

The face mask is ware by people to protect them from effect of dust. But nowadays it’s compulsory to wear a mask because of COVID-19. Many countries make rules to wear a mask when people go in a public area like a shopping mall, railway station, airport etc. To manually confirm whether people ware mask or no is time-consuming. Make it simple by using Artificial Intelligence. Face Mask Detection using OpenCV helps to do this task easily.

Face Mask Detection using OpenCV
Face Mask Detection using OpenCV

What is Face Mask Detection System?

Face mask Detection system is base on image classification use in Computer Vision. The different methods are applying to this project but here we use Deep neural network model. This system is work base on deep neural network model train by image data contain two class of image one is Face with a mask and another is Face without a mask. This model is implemented in OpenCV to predict for real-world data.

Overview

Face mask Detection system is an image classification system. First, we train the model with label data. This model is used in the OpenCV to predict real field data by the camera and every frame of image is a pass to model and predict whether Face with a mask or not. We use the pre-train model and modify this with our requirement and train with our data.

What are the prerequisite for this project?

  • Python on your computer.
    If you haven’t installed here is a link.
  • Anaconda on your computer.
    If you haven’t installed here is a link
  • Basic knowledge about Convolution Neural Network
  • Basic knowledge about OpenCV
  • Knowledge about Deep neural network model

Start codding

After that, codding for this project is divide into the different part for easy understanding. Please read the following articles from beginning to end.