{"id":20279968,"url":"https://github.com/fyt3rp4til/face-mask-detection","last_synced_at":"2026-05-06T03:33:27.802Z","repository":{"id":194110877,"uuid":"689960882","full_name":"FYT3RP4TIL/Face-Mask-Detection","owner":"FYT3RP4TIL","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-25T19:00:14.000Z","size":1414,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T03:02:55.344Z","etag":null,"topics":["cnn","keras-neural-networks","keras-tensorflow","opencv","python3","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FYT3RP4TIL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-11T09:07:39.000Z","updated_at":"2024-01-18T04:24:41.000Z","dependencies_parsed_at":"2024-01-18T20:27:03.043Z","dependency_job_id":null,"html_url":"https://github.com/FYT3RP4TIL/Face-Mask-Detection","commit_stats":null,"previous_names":["sudhanshu21xx/face-mask-detection","fyt3rp4til/face-mask-detection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FYT3RP4TIL/Face-Mask-Detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FYT3RP4TIL%2FFace-Mask-Detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FYT3RP4TIL%2FFace-Mask-Detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FYT3RP4TIL%2FFace-Mask-Detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FYT3RP4TIL%2FFace-Mask-Detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FYT3RP4TIL","download_url":"https://codeload.github.com/FYT3RP4TIL/Face-Mask-Detection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FYT3RP4TIL%2FFace-Mask-Detection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cnn","keras-neural-networks","keras-tensorflow","opencv","python3","tensorflow"],"created_at":"2024-11-14T13:33:53.286Z","updated_at":"2026-05-06T03:33:27.773Z","avatar_url":"https://github.com/FYT3RP4TIL.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eFace Mask Detection\u003c/h1\u003e\n\n\u003cdiv align= \"center\"\u003e\u003cimg src=\"https://www.researchdive.com/blogImages/NfBEa3zk4o.jpeg\" width=\"400\" height=\"300\"/\u003e\n  \u003ch4\u003eFace 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.\u003c/h4\u003e\n\u003c/div\u003e\n\n\n## Introduction\nDue to the seen pandemic Covid-19 in the past years we got to know how wearing masks beccame important hence this system can therefore be used in real-time applications which require face-mask detection for safety purposes due to the outbreak . This project can be integrated with embedded systems for application in airports, railway stations, offices, schools, and public places to ensure that public safety guidelines are followed.\n\n\n## :warning: TechStack\n\n- [OpenCV](https://opencv.org/)\n- [Keras](https://keras.io/)\n- [TensorFlow](https://www.tensorflow.org/)\n- [Python](https://www.python.org/)\n\n\n## :file_folder: Dataset\nThe dataset used can be downloaded here - [Click to Download](https://www.kaggle.com/datasets/ashishjangra27/face-mask-12k-images-dataset/download?datasetVersionNumber=1)\n\nThis dataset consists of ~12k images belonging to three classes:\n*\tTrain\n*\tTest\n*\tValidation\n\n## :key: Prerequisites\n\nAll the dependencies and required libraries are included in the file \u003ccode\u003erequirements.txt\u003c/code\u003e [See here](https://github.com/Sudhanshu21xx/Face-Mask-Detection/blob/main/requirements.txt)\n\n## 🚀\u0026nbsp; Installation\n1. Clone the repo\n```\n$ git clone https://github.com/Sudhanshu21xx/Face-Mask-Detection.git\n```\n\n2. Open the repo in notebook\n\n3. Now, run the following command in your notebook to install the libraries required\n```\n$ pip3 install -r requirements.txt\n```\n\n## :bulb: Working\n\n1. Download the dataset.\n\n2. Change the directory main_dir in the Facemask_model.ipynb and run it: \n```\nimport os\nmain_dir ='New Masks Dataset'\ntrain_dir = os.path.join(main_dir,'Train')\ntest_dir = os.path.join(main_dir,'Test')\nvalid_dir = os.path.join(main_dir,'Validation')\n\ntrain_mask_dir = os.path.join(train_dir,'Mask')\ntrain_nomask_dir = os.path.join(train_dir,'Non Mask')\n```\n\n3. Run the Facemaskdetection(open_cv).ipynb (you can also change the videocapture to livecapture)\n```\ncap = cv2.VideoCapture('video.mp4')\n#cap = cv2.VideoCapture(0)\n```\n\n## :key: Results\n\u003cdiv align= \"center\"\u003e\u003cimg src=\"https://github.com/Sudhanshu21xx/Face-Mask-Detection/assets/113416452/94004ca7-917e-462f-83ea-30dddae97c17\"/\u003e\n\u003cdiv align= \"center\"\u003e\u003cimg src=\"https://github.com/Sudhanshu21xx/Face-Mask-Detection/assets/113416452/a33c0a2f-6f68-4738-aed5-437be10d8d25\"/\u003e\n  \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffyt3rp4til%2Fface-mask-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffyt3rp4til%2Fface-mask-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffyt3rp4til%2Fface-mask-detection/lists"}