/Face_Mask_Detection

Face Mask Detection is a real-time video streaming mask detection based on Python. Face mask detection model for identifying a person wearing a mask or not.

Primary LanguageJupyter NotebookMIT LicenseMIT

Face Mask Detection

Real time face mask detection using Python, OpenCV and Keras.

Demonstration of Project:

Table of Contents:

  1. Abstract
  2. Dataset Creation
  3. Requirements
  4. Results
  5. How to Use

1. Abstract

  • This project is concerned with the detection of face masks.
  • There are tree operation in this project:
    • Detect face mask on images (using Keras/TensorFlow)
    • Detect face mask on real time video stream and webcam
    • Also, you can find your file in file dialog or you can run webcam.
  • Dataset consist of 7,553 images combined manually.
  • Adam is used as optimizer and Categorical Crossentropy is used as a loss function.

Figure 1: With Mask

Figure 2: Without Mask

2. Dataset Creation

Link to Download Complete Dataset, data.npy and target.npy to preprocessing data:

Datasets

3. Requirements

4. Results

The plots of Model Accuracy and Model Loss are as follows:

5. How to Use

To use this project on your system, follow these steps:

  1. Clone this repository onto your system by typing the following command on your Command Prompt:
git clone https://github.com/parvanehyaghoubi/Face_Mask_Detection
  1. Download all libaries using:
pip install -r requirements.txt
  1. Run the application:
python main_mask_detector.py
  1. You can see an environment which create with tkinter:

  1. If you choose Open a File, the file dialog opens and you can choose your video

  1. If you choose Open Camera, you can use your camera to face mask detection!!

The Project is now ready to use !!

Contact

For any inquiries or feedback, please contact: