Skip to content

Mask detector to detect whether the person is wearing the mask.

Notifications You must be signed in to change notification settings

Sam8239/Covid-19_Mask_Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MASK DETECTION USING HAAR FEATURE-BASED CASCADE CLASSIFIER

Haar is a machine learning based cascade classifier. It is an effective object detection approach in which a cascade function is trained from a lot of positive and negative images. It is then used to detect objects in other images. The concept of Cascade Of Classifiers is that Instead of applying all 6000 features on a window, the features are grouped into different stages of classifiers and applied one-by-one.
If a window fails the first stage, discard it. We don't consider the remaining features on it. If it passes, apply the second stage of features and continue the process. The window which passes all stages is a face region. In an image, most of the image is non-face region. So it is a better idea to have a simple method to check if a window is not a face region. If it is not, discard it in a single shot, and don't process it again. Instead, focus on regions where there can be a face.

Run Locally

Clone the project

  git clone https://github.com/Sam8239/Covid-19_Mask_Detector.git

Go to the project directory

  cd Covid-19_Mask_Detector

Install dependencies

  pip install -r requirements.txt

Start the project

  python .\mask_detector.py

Screenshots

Wearing a Mask

wearing_mask

Not Wearing a Mask

not_wearing_mask

No Face Detected

no_face_detected

About

Mask detector to detect whether the person is wearing the mask.

Topics

Resources

Stars

Watchers

Forks

Languages