- This is a Real-Time Face Mask Detector with Python, OpenCV, and Keras.
- Basically, a Machine Learning project for detecting face mask using sufficient testing and training datasets.
- The Datasets were downloaded from here
- I have used Jupyter Notebook to write the testing and training scripts in Python
- Install Jupyter Notebook
- (Make a file train.py to write the code for training the neural network on our dataset
-
Import all the Libraries and Modules required.
-
Build convlutional Neural Network with following parts: Conv and MaxPool layers to extract features from the dataset.
-
Also, add Flatten and Dropout layer to convert the data in 1D and ensure overfitting.
-
Image Generation/Augmentation
-
Initaialize a call-back as checkpoint
-
Train the Model
-
Now, test the results of face mask detector model using OpenCV.
-
Run the project and observe the model performance:
python3 test.py