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

FACE MASK DETECTION USING

PYTHON AND DEEP LEARNING

By :- G K PARDHA SARADHI
18EC030
Guided By :- Prof. Yogesh Tiwari
FLOW
Python OpenCv Image Processing

Face Detection

Collection Of Data
With Mask Or Train The Model
With Mask And
Without Mask Using DeepLearning
Without Mask

Output Of The
Project
Image Processing

Image processing is a method to perform some operations on an image, in order to get an


enhanced image or to extract some useful information from it.

Steps to Perform Image Processing :


● Load images using Python.
● Convert images into array.
● And finally apply some algorithm on that array.
Introduction to OpenCV :

● OpenCV (Open Source Computer Vision Library) is an open source computer vision
and machine learning software library.
● The library has more than 2500 optimized algorithms.
● It has C++, Python, Java and MATLAB interfaces and supports Windows, Linux,
Android and Mac OS.
● Will help us to load images in Python and convert them into array.
Features of OpenCV

● Face Detection
● Geometric Transformations
● Image Thresholding
● Smoothing Images
● Canny Edge Detection
● Background Removals
● Image Segmentation
Face Detection Using OpenCV
Face detection algorithm was introduced by Viola and Jones in 2001.

All human faces share some similar properties. These regularities may be matched using Haar
Features.

A few properties common to human faces:

● The eye region is darker than the upper-cheeks.


● The nose bridge region is brighter than the eyes.
Composition of properties forming matchable facial features:
● Location and size: eyes, mouth, bridge of nose
● Value: oriented gradients of pixel intensities
Viola-Jones Face Detection Technique
Haar Cascades
Features :-
Features for Face Detection
Face Detection Example
Machine Learning

Machine learning is a method of data analysis that automates analytical model building. It
is a branch of artificial intelligence based on the idea that systems can learn from data,
identify patterns and make decisions with minimal human intervention.

The types of machine learning algorithms are mainly divided into four categories:
● Supervised learning
● Un-supervised learning
● Semi-supervised learning
● Reinforcement learning.
Scikit-learn

Scikit-learn is the most useful and robust library for machine learning in Python. It
features various algorithms like support vector machine, random forests, and k-
neighbours, and it also supports Python numerical and scientific libraries like NumPy and
SciPy
Normal Coding

Data
Program Output
Rules

Machine Learning

Data
Module/
Machine Learning
Pattern
Output
Output - Mask
Output - Without Mask

You might also like