This is a mask detection application using Python and OpenCV. The application uses a Deep Learning model to detect whether a person is wearing a mask or not. The model is trained using a dataset of images of people wearing and not wearing masks.
To get started with this application, follow these steps:
Clone the repository:
git clone https://github.com/lambiengcode/mask_detection_python.git
Install the required dependencies:
pip install -r requirements.txt
Run the application:
python detect_mask_video.py
The application will use your default camera to capture frames and detect if a person is wearing a mask or not. The application will draw a rectangle around the face and indicate if a mask is detected or not.
Contributions are welcome and appreciated. To contribute to this project, follow these steps:
- Fork the repository
- Create a new branch: git checkout -b feature/my-feature
- Make your changes and commit them: git commit -am 'Add new feature'
- Push your changes to your fork: git push origin feature/my-feature
- Submit a pull request
This project is licensed under the MIT License. See the LICENSE file for more information.
##Acknowledgments
This project was inspired by the need to detect mask-wearing during the COVID-19 pandemic. The deep learning model used in this project was trained using the Face Mask Detection dataset.