Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: Priyanshisharmaiiitd
  • Language: Python
  • Default Branch: main
  • Size: 9.65 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 10 months ago · Last pushed 10 months ago
Metadata Files
Readme Contributing Code of conduct Citation

README.md

Project3-Priyanshi

😷 Face Mask Detection using CNN & OpenCV

A real-time face mask detection system built using deep learning and computer vision. This project helps monitor mask compliance through webcam video feeds — especially useful in public spaces for safety during pandemics like COVID-19.


📌 Project Highlights

  • 🧠 CNN model (MobileNetV2) trained to classify faces as "Mask" or "No Mask"
  • 🎥 Real-time webcam detection with OpenCV
  • 🧩 Uses pre-trained Caffe face detector for accurate face localization
  • 🔧 Fully modular and customizable

🛠️ Tech Stack

  • Python 3.x
  • TensorFlow & Keras
  • OpenCV
  • NumPy, Imutils

🧾 Project Structure

| File/Folder | Description | |--------------------------|-------------| | train_mask_detector.py | Trains the CNN (MobileNetV2) on mask dataset and saves the model | | detect_mask_video.py | Launches webcam and performs real-time mask detection | | mask_detector.model | Pre-trained model for classifying "Mask"/"No Mask" | | dataset/ | Image dataset with two folders: with_mask/, without_mask/ | | face_detector/ | Contains Caffe-based face detection model files | | build_dataset.py | (Optional) Tool to preprocess/generate dataset from raw sources | | requirements.txt | Python dependencies for easy setup |


🚀 How to Run the Project

1. Clone the Repository

```bash git clone https://github.com/your-username/face-mask-detection.git cd face-mask-detection

  1. Install Dependencies bash Copy Edit pip install -r requirements.txt
  2. Train the Model (Optional – already trained model included) bash Copy Edit python trainmaskdetector.py
  3. Run Real-time Mask Detection bash Copy Edit python detectmaskvideo.py

🔍 Use Cases Public transport surveillance Office safety monitoring Retail or commercial spaces Healthcare or hospital entrances

Owner

  • Login: Priyanshisharmaiiitd
  • Kind: user

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: Face Mask Detection
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - email: chandrikadeb7@gmail.com
    family-names: Deb
    given-names: Chandrika
repository-code: >-
  https://github.com/chandrikadeb7/Face-Mask-Detection
license: MIT
version: v1.0.0
date-released: '2022-02-27'

GitHub Events

Total
  • Push event: 2
  • Create event: 2
Last Year
  • Push event: 2
  • Create event: 2

Dependencies

requirements.txt pypi
  • argparse ==1.4.0
  • imutils ==0.5.4
  • keras ==2.4.3
  • matplotlib ==3.4.1
  • numpy ==1.19.5
  • onnx ==1.10.1
  • opencv-python >=4.2.0.32
  • pillow >=8.3.2
  • scikit-learn ==0.24.1
  • scipy ==1.6.2
  • streamlit ==0.79.0
  • tensorflow >=2.5.0
  • tf2onnx ==1.9.3