0% found this document useful (0 votes)
24 views

Facemaskppt 1

..

Uploaded by

takiaadhi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Facemaskppt 1

..

Uploaded by

takiaadhi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

FACE MASK DETECTION-A Convolutional

Neural Network(CNN) Project


SUBASH R [613521104046]

Team Members SHENJIN S A SOLOMON [613521104043]


ARUN R [613521104702]
1. Introduction
2. Objective
3. System requirements
AGENDA 4. System Design
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:
3.System 1. At least 4 GB RAM (more is preferable) for smooth execution with A 64-bit processor.
2. Adequate storage space (e.g., 1TB hard disk).
Requirements
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
3.System visualize 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 NumPy is used for numerical computations and array manipulation.
• Install NumPy using pip install numpy.
2. TensorFlow
• TensorFlow is a deep learning framework.
• Install TensorFlow using pip install tensorflow.
5.System 3. Matplotlib:
Implementation • 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
Implementation o List Files:
(Cont.) • The code lists files in two directories : with_mask and without_mask.

o Count Images:
• It calculates the total number of images in each category.
3. Creating Labels for the two class of Images

• with mask --> 1


• without mask --> 0

4. Image Processing :

5.System • Resize the images and convert them into NumPy arrays.

Implementation 5. Train Test Split.

(Cont.) 6. Building a Convolutional Neural Networks (CNN).

7. Model Evaluation.

8. Building a Predictive System.


1) Import the
dependencies

Appendices
2) Labeling the data
3) Image processing

Appendices

4) Train Test Split


5) Building the
CNN model

Appendices

6) Model
evaluation
6.Result
analysis

Loss and Accuracy


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