Facemaskppt

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 20

FACE MASK DETECTION-A Convolutional

Neural Network(CNN) Project


Team SUBASH R [613521104046]
SHENJIN S A SOLOMON [613521104043]
members ARUN R [613521104702]
1. Introduction
2. Objective
3. System requirements
4. System Design
AGENDA 5. System implementation
6. Result analysis
7. Conclusion
• In the realm of computer vision, face mask detection has emerged as a critical application.
The goal is to determine whether an individual is wearing a face mask or not. We frame
this task as a binary classification problem, where the model categorizes images into two
classes: “with mask” or “without mask.”

• The COVID-19 pandemic underscored the importance of preventive measures, including


1.Introduction mask-wearing. However, human error often leads to incorrect mask usage such as not
covering the nose or mouth which renders the mask ineffective. To address this, deep
learning techniques, particularly CNNs, have been employed to detect masked faces
effectively.
• The goal is to differentiate between images of people with and without masks.
• A Convolutional Neural Network (CNN) is employed for this task.
• The CNN achieves an optimal accuracy while minimizing the risk of overfitting.

2.Objective • The model works efficiently with no noticeable lag time between wearing/removing a
mask and displaying predictions.
Hardware Requirements:
1.Webcam:
1. A functional webcam is necessary for capturing real-time video streams.
2. Ensure your system has a working webcam.

2.System Resources:
1. At least 4 GB RAM (more is preferable) for smooth execution.
3.System 2. Adequate storage space (e.g., 1TB hard disk).
Requirements 3. A 64-bit processor.
3.Operating System:
The software components mentioned above are compatible with various operating
systems (Windows, Linux, macOS).

4.Power Supply:
Ensure a stable power supply to avoid interruptions during model training or inference.
Software Requirements
1. Python:
Python is a versatile and powerful programming language widely used in machine learning
and data science. In this project, Python will be used to implement the Convolutional
Neural Network (CNN) model, handle image data, preprocess datasets, and visualize

3.System results.

Requirements 2. Google Colab:


Google Colab (short for Colaboratory) is a free, cloud-based Jupyter notebook
(Cont.) environment provided by Google. It is particularly useful for machine learning projects
because it offers access to powerful computing resources, including GPUs, at no cost.
System Architecture:

4.System
Design
Use case diagram:

4.System
Design (Cont.)
Activity diagram:

4.System
Design (Cont.)
Modules:
1. NumPy (version 1.19.3 or compatible):
• NumPy is used for numerical computations and array manipulation.
• Install NumPy using pip install numpy.
2. TensorFlow (version 2.5.0 or compatible):
• TensorFlow is a deep learning framework.
5.System • Install TensorFlow using pip install tensorflow.
Implementation 3. Matplotlib:
• Matplotlib is an important python visualization library for 2D array Plots.
• Matplotlib is a multi-platform data visualization package based on numpy arrays and
intended to operate with scipy stack.
1. Importing Face mask Dataset
o Fetch the Dataset:
• You are using the Kaggle API to download the face mask dataset.
o Extract the Compressed Dataset:
• The downloaded dataset is in a compressed format (ZIP).
• You extract the contents of the ZIP file using Python.

5.System 2. Importing the Dependencies


o List Files:
Implementation • The code lists files in two directories: with_mask and without_mask.
• These directories contain face images with and without masks.
(Cont.) o Count Images:
• It calculates the total number of images in each category.
• Helpful for dataset understanding.
3. Creating Labels for the two class of Images:
• with mask --> 1
• without mask --> 0

4. Image Processing :
• Resize the Images.
• Convert the images to NumPy arrays.
5.System 5. Train Test Split.
Implementation
6. Building a Convolutional Neural Networks (CNN).
(Cont.)
7. Model Evaluation.

8. Building a Predictive System.


Import the
dependencies

Appendices
Labeling the data
Image
processing

Appendices

train
test
split
Building the
CNN model

Appendices

Model
evaluation
6.Result
analysis
6.Result
analysis
(Cont.)
In summary, the CNN-based face mask detection system is a valuable tool for promoting
health and safety by ensuring that individuals wear masks in public spaces. The model
developed achieved 92 percent accuracy rate for 5

7.Conclusion epochs and its real-time processing capabilities make it suitable for deployment in places like
airports, schools, and workplaces, helping to mitigate the spread of
infectious diseases
• https://www.python.org/
• https://www.tensorflow.org/
• https://keras.io/
References •

https://numpy.org/
https://matplotlib.org/
• https://www.kaggle.com/datasets/omkargurav/face-mask-dataset

You might also like