Abstract
Face Mask Detection is an open-source AI & Machine Learning project. Face Mask Detection system based on computer vision and deep learning using OpenCV and Tensorflow/Keras. Amid the ongoing COVID-19 pandemic, there are no efficient face mask detection applications which are now in high demand for transportation means, densely populated areas, residential districts, large-scale manufacturers and other enterprises to ensure safety. The absence of large datasets of ‘with_mask’ images has made this task cumbersome and challenging. It is built using Jupyter Notebook, Python, Keras, Deep Learning, Computer Vision. The complete source code is publicly available on GitHub under the MIT License, making it a useful reference for students building an AI & Machine Learning mini project or final-year project.
1. Introduction
Amid the ongoing COVID-19 pandemic, there are no efficient face mask detection applications which are now in high demand for transportation means, densely populated areas, residential districts, large-scale manufacturers and other enterprises to ensure safety. The absence of large datasets of ‘with_mask’ images has made this task cumbersome and challenging.
Face Mask Detection System built with OpenCV, Keras/TensorFlow using Deep Learning and Computer Vision concepts in order to detect face masks in static images as well as in real-time video streams.
[](https://github.com/chandrikadeb7/Face-Mask-Detection/issues) [](https://github.com/chandrikadeb7/Face-Mask-Detection/network/members) [](https://github.com/chandrikadeb7/Face-Mask-Detection/stargazers) [](https://github.com/chandrikadeb7/Face-Mask-Detection/issues) [](https://www.linkedin.com/in/chandrika-deb/)
2. Objective
Face Mask Detection system based on computer vision and deep learning using OpenCV and Tensorflow/Keras
This project demonstrates how Jupyter Notebook, Python, Keras can be applied to a real-world AI & Machine Learning problem.
4. Technology Stack
- Caffe-based face detector
- TensorFlow
- MobileNetV2
- Raspberry Pi 4 4GB with a case
- 5MP OV5647 PiCamera from Arducam
5. System Requirements
General requirements for this technology stack — check the README for exact versions.
- Python 3.8 or later with Jupyter Notebook / JupyterLab (or Google Colab)
- pip for dependencies
- Python 3.8 or later
- pip / virtualenv for dependencies
- VS Code, PyCharm or Jupyter Notebook
- Git (to clone the repository)
6. Installation & Setup
git clone https://github.com/chandrikadeb7/Face-Mask-Detection.git
cd Face-Mask-Detection- Clone the repo
- Change your directory to the cloned repo
- Create a Python virtual environment named 'test' and activate it
- Now, run the following command in your Terminal/Command Prompt to install the libraries required
- With NOOBS, use the recommended operating system
- Setup the PiCamera
- Assemble the PiCamera case from Arducam using documentation/Arducam-Case-Setup.pdf or https://www.arducam.com/docs/cameras-for-raspberry-pi/native-raspberry-pi-cameras/5mp-ov5647-cameras/
- Attach your PiCamera module to the Raspberry Pi and enable the camera
$ git clone https://github.com/chandrikadeb7/Face-Mask-Detection.git$ cd Face-Mask-Detection$ virtualenv test$ source test/bin/activateFull setup instructions are in the project README.
7. Future Enhancements
Suggested extensions you can add to make this your own project.
- Deploy the model as a web app with Streamlit, Flask or FastAPI
- Compare against an additional model and report the metric difference
- Add explainability (SHAP / Grad-CAM)
8. Viva / Review Questions
Common questions examiners ask for projects in this domain.
- What dataset does the project use and how was it pre-processed?
- Which algorithm / model architecture is used and why was it chosen over alternatives?
- How are training and testing data split, and how is overfitting avoided?
- Which evaluation metrics (accuracy, precision, recall, F1) are reported and what do they mean here?
- How would you deploy this model for real users?
9. Source Code & License
This project is developed by chandrikadeb7 and published on GitHub under the MIT License. Please follow the license terms and credit the original author when you use or modify this code.
Want to build this as your internship project?
Work on an AI & Machine Learning project like this with mentor guidance, weekly reviews and an internship certificate from Training Trains, Erode — online or offline.
Apply for AI & Machine Learning Internship