Skip to content

Kushagraw12/Facemask-Detector

 
 

Repository files navigation

Facemask-Detector

Made this face mask detector using Convolutional Neural Networks with the help of haarcascade face recogonitions models.

Accuracy: 98.7%

Dataset

Link
This is an open dataset that contains approx 12k images divided into different direcotries for train and testing the model.
Inside each directory, there are separate directories for masked images and un-masked images.

About the Model

It consists of 3 Conv2D layers, each followed by a MaxPooling Layer, followed by a Flatten and Dense layer, and finally the Output Layer.

I have used 'relu' activation layer and sigmoid activation for the output layer.
I have used the input size as 150 x 150 x 3.

All of these configurations are from either hit and trial method or from my past experiences. (suggestions are welcome!)

Loss Function

The model usses binary_crossentropy loss function.
I was able to achieve good accuracy and low loass using this loss function, and the final outcome was great!

Partner

I worked on this project with my friend
Himanshu Sheokand [ LinkedIn ] | [ GitHub ]

Happy coding!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 82.1%
  • Python 17.9%