Skip to content

sohanasarah/FaceMaskDetection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaceMaskDetection

ML Course Project

----- Instructions---------

  • Link to the dataset is given in data.txt. Please download the dataset before training the models. The data folder should be in the same folder with all the .py and .ipynb files.

  • Train the models using train_models.ipynb. It will create a feature extractor model named cnn.h5. It will also create classification models svm.pkl, knn.pkl and dt.pkl. These models are necessary to run the mask_detection.py file.

  • evaluation.ipynb checks the performance of the saved models. At the last two lines of this notebook, mask_detection.py file can be run using the chosen model. We have SVM as the chosen model as it gives the best performance among all the classification models. Running mask_detection.py will open camera and it will detect if someone is wearing mask or not.

About

ML Course Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published