This project utilizes a deep learning CNN model to classify images into two categories: with mask and without mask. It employs OpenCV for image processing and model inference. Face mask detection has significant applications in situations such as the COVID-19 pandemic and industries where mask-wearing is mandatory.
The Face Mask Detection project leverages a deep learning model to classify images into two classes: with mask and without mask. It uses OpenCV for image capturing and processing and a pre-trained CNN model for inference.
- Python
- OpenCV
- Keras
- Streamlit
- WebRTC
This project employs a deep learning CNN model trained to detect face masks in images. The model is loaded and applied to live video streams captured through the web camera using Streamlit and WebRTC. OpenCV is used for real-time image processing, including face detection and classification. The application displays a live video feed with annotations indicating whether each detected face is wearing a mask or not.
-
Clone the repository:
git clone https://github.com/your_username/face-mask-detection.git
-
Install dependencies:
pip install -r requirements.txt
-
Run the Streamlit application:
streamlit run app.py
-
Allow access to the web camera if prompted.
-
The application will display a live video stream with annotations indicating whether faces are wearing masks or not.
This project is licensed under the MIT License.