Face Detection With OpenCV in Python
Face Detection With OpenCV in Python
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
What is face detection?
How can computers detect objects in images?
● Similar concepts can be applied for detection of faces for other applications.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
What is face detection?
Face detection is key!
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
What is face recognition?
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
What is face recognition?
Face recognition is one of the most used applications of OpenCV.
● Face recognition is a method of verifying the identity of a person using their face.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
How is face recognition achieved?
Face recognition can be achieved using many sources:
● Recorded videos
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Is recognition different from detection?
Face recognition and face detection are two different applications:
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Applications of
face recognition
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Applications of face recognition
Numerous applications:
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Applications of face recognition
Numerous applications:
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Face recognition using
Deep Learning
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Face recognition using Deep Learning
Dataset for training
● The network outputs a vector of 128 numbers which represent the most
important features of a face.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Face recognition using Deep Learning
Step 1: Face detection
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Face recognition using Deep Learning
Step 2: Feature Extraction
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Face recognition using Deep Learning
Step 3: Training a neural network
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Face recognition using Deep Learning
Step 4: Feature map across the face
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Face recognition using Deep Learning
Step 5: Embeddings for images are obtained after training
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Introduction to OpenCV
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Introduction to OpenCV
Computer vision
● It allows computers to understand and learn about the visualizations in the surroundings.
● Example: Determining the fruit based on the color, shape and size.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Using OpenCV
OpenCV is the most popular library for face recognition.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
How is OpenCV used?
Four simple steps:
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Face detection with
OpenCV using Python
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Summary
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.