{"id":24987257,"url":"https://github.com/helloharendra/face-mask-detection-using-computer-vision-python","last_synced_at":"2025-04-19T17:53:53.012Z","repository":{"id":176290870,"uuid":"655276692","full_name":"helloharendra/Face-Mask-Detection-Using-Computer-Vision-Python","owner":"helloharendra","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-25T17:44:49.000Z","size":30723,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T11:12:23.548Z","etag":null,"topics":["computer-vision","face-detection","face-recognition","facemask-detection","facemaskdetection","numpy","open-source","opencv","pandas","python","python3","skit-learn","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helloharendra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-18T12:27:26.000Z","updated_at":"2024-07-11T17:31:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"67628c6c-df58-4162-aee0-ad787c621603","html_url":"https://github.com/helloharendra/Face-Mask-Detection-Using-Computer-Vision-Python","commit_stats":null,"previous_names":["helloharendra/face-mask-detection-using-computer-vision-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloharendra%2FFace-Mask-Detection-Using-Computer-Vision-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloharendra%2FFace-Mask-Detection-Using-Computer-Vision-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloharendra%2FFace-Mask-Detection-Using-Computer-Vision-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloharendra%2FFace-Mask-Detection-Using-Computer-Vision-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helloharendra","download_url":"https://codeload.github.com/helloharendra/Face-Mask-Detection-Using-Computer-Vision-Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249753352,"owners_count":21320683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-vision","face-detection","face-recognition","facemask-detection","facemaskdetection","numpy","open-source","opencv","pandas","python","python3","skit-learn","tensorflow"],"created_at":"2025-02-04T11:37:19.468Z","updated_at":"2025-04-19T17:53:52.974Z","avatar_url":"https://github.com/helloharendra.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face Mask Detection Using Computer Vision\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54)\n\n\nThis repository contains a computer vision project that focuses on detecting whether a person is wearing a face mask or not. The project utilizes state-of-the-art deep learning techniques to analyze images or video streams from various sources, such as webcams or recorded videos, and provides real-time feedback on whether individuals in the frames are wearing masks or not.\n\n\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Model](#model)\n- [Dataset](#dataset)\n- [Training](#training)\n- [Evaluation](#evaluation)\n- [Demo](#demo)\n- [Future Enhancements](#future-enhancements)\n- [Contributions](#contributions)\n- [License](#license)\n\n## Introduction\n\nThe aim of this project is to contribute to public health efforts by automatically identifying whether individuals are wearing face masks. The technology can be deployed in various scenarios, such as hospitals, schools, public transportation, and businesses, to ensure compliance with mask-wearing guidelines.\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/your-username/face-mask-detection.git\n   cd face-mask-detection\n   ```\n\n2. Create a virtual environment (optional but recommended):\n\n   ```bash\n   python3 -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   ```\n\n3. Install the required packages:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Usage\n\nTo use the face mask detection system:\n\n1. Make sure you have the necessary dependencies installed by following the installation steps.\n\n2. Run the detection script:\n\n   ```bash\n   python detect_mask.py\n   ```\n\n3. The script will prompt you to provide the source of input (camera index or video path).\n\n4. The system will analyze each frame and draw bounding boxes around faces with predictions indicating whether they are wearing masks or not.\n\n## Model\n\nThe model architecture used for this project is based on [CNN](link-to-paper), a deep neural network optimized for face mask detection. The model is pretrained on a large dataset and fine-tuned on our custom dataset.\n\n## Dataset\n\nThe dataset used for training and evaluation consists of images of individuals with and without face masks. It was collected from various sources and annotated manually. The dataset is divided into training, validation, and testing subsets.\n\n## Training\n\nTo train the model:\n\n1. Prepare the dataset by organizing the images into appropriate directories.\n\n2. Run the training script:\n\n   ```bash\n   python train.py --dataset /path/to/dataset --epochs 20\n   ```\n\n3. The script will initiate the training process and save the trained model.\n\n## Evaluation\n\nTo evaluate the model:\n\n1. Run the evaluation script:\n\n   ```bash\n   python evaluate.py --model /path/to/model --dataset /path/to/dataset\n   ```\n\n2. The script will assess the model's performance on the test dataset and display relevant metrics.\n\n## Demo\n\nCheck out our [demo video](demo/demo.mp4) showcasing the real-time face mask detection system in action.\n\n## Future Enhancements\n\nWe are actively working on improving the project:\n\n- Multi-person detection.\n- Mask type classification (surgical, N95, cloth, etc.).\n- Integration with access control systems.\n\n## Contributions\n\nContributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n---\n\nFeel free to customize the content in this `README.md` to match your project's specifics. Include any additional sections or information that you find relevant. Good luck with your face mask detection project!\n\n# Output\n\nhttps://github.com/helloharendra/Face-Mask-Detection-Using-Computer-Vision-Python/assets/78723011/02ff1776-1b2e-4f05-a303-002708644da2\n# User Interface\n\n![Screenshot 2022-10-12 at 2 09 27 AM](https://user-images.githubusercontent.com/78723011/195432070-1f361799-6455-4127-b586-938a74b7e53a.png)\n![Screenshot 2022-10-12 at 2 07 07 AM](https://user-images.githubusercontent.com/78723011/195432169-d577b36c-38e3-445a-9213-d9865b6a11df.png)\n![Screenshot 2022-10-12 at 2 07 14 AM](https://user-images.githubusercontent.com/78723011/195432206-0b608690-603e-4818-9bed-df288b5b44d7.png)\n![Screenshot 2022-10-12 at 2 07 25 AM](https://user-images.githubusercontent.com/78723011/195432209-ea39daf6-f69b-4379-9860-bfec29376136.png)\n![Screenshot 2022-10-12 at 2 07 32 AM](https://user-images.githubusercontent.com/78723011/195432216-d4d012bf-2400-4d4b-8273-8739c6198488.png)\n![Screenshot 2022-10-12 at 2 07 46 AM](https://user-images.githubusercontent.com/78723011/195432223-3964d653-c07a-4415-b4fd-c33a6ad6c481.png)\n![Screenshot 2022-10-12 at 2 07 53 AM](https://user-images.githubusercontent.com/78723011/195432233-b20188ff-2793-46dc-8dcd-6de1033a4b8b.png)\n![Screenshot 2022-10-12 at 2 08 03 AM](https://user-images.githubusercontent.com/78723011/195432786-59446fbe-5720-4d01-b7dc-ccb4e5ef33f2.png)\n![Screenshot 2022-10-12 at 2 08 17 AM](https://user-images.githubusercontent.com/78723011/195432814-1c731259-5878-42d2-a24a-13cfbcf2dc1b.png)\n![Screenshot 2022-10-12 at 2 08 21 AM](https://user-images.githubusercontent.com/78723011/195432818-249d2707-8bed-44cc-b321-3301134c5d0d.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloharendra%2Fface-mask-detection-using-computer-vision-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelloharendra%2Fface-mask-detection-using-computer-vision-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloharendra%2Fface-mask-detection-using-computer-vision-python/lists"}