/mask-detection-python

mask detection using tensorflow and opencv

Primary LanguagePython

mask_detection_python

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.

Getting Started

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

Usage

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.

Contributing

Contributions are welcome and appreciated. To contribute to this project, follow these steps:

  1. Fork the repository
  2. Create a new branch: git checkout -b feature/my-feature
  3. Make your changes and commit them: git commit -am 'Add new feature'
  4. Push your changes to your fork: git push origin feature/my-feature
  5. Submit a pull request

License

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.