Professional Documents
Culture Documents
Shubhangi Piya
Shubhangi Piya
on
Mask
Detection
System
By: Shubhangi Piya
Computing [C12]
Artificial Intelligence
Capacity to think, to learn from experience, to solve
problem and to adopt to new situation.
Machine learning is the practice of getting machines to make decisions without being
programmed
Deep Learning
Models are trained by using a large set of labeled data
and neural network architectures that contain many
layers.
CNN takes an input image, process it and classify it under certain categories as
directed.
Computer doesn’t see an image like person, but it sees an image as array of pixels,
and it depends on the image resolution
If the person is wearing mask, the If the person is not wearing mask, the
system will display “Mask on, Thank you”. system will display “No mask”.
How my project solves real world problem
The system I have developed can detect whether the person is wearing mask or not
wearing the mask.
START
IMPORT libraries
READ dataset
TRAIN for model
IMPORT Dataset
SAVE model
SAVE images with labels
LOAD Model DISPLAY label on face
CONVERT dataset images into suitable form
WHILE true ASK for user input
SAVE images dataset with labels
OPEN Camera IF input data == quit
SAVE images
READ Frame QUIT
CONVERT images into array
USE module ELSE
KEEP the data set with proper labeling
DETECT Face CONTINUE
SPLIT dataset for training and testing
DISPLAY rectangle on Face END IF
DIM EPOCHS and other information for base model and
END WHILE
END
How to run the face detection project
This frame will automatically load the files and open the webcam
If the person on camera is wearing mask it will display a green rectangle box
If the person on camera is not wearing a mask it will display a red rectangle