SlideShare a Scribd company logo
Gabriel Bianconi
Introduction to
Face Processing
with Computer Vision
Gabriel Bianconi
Founder, Scalar Research
AI & Data Science Consulting Firm
Previously at the Stanford AI Lab
Agenda
1. What is Face Processing?
2. Review of Computer Imagery
3. Intro to ML & ComputerVision
4. Face ProcessingTechniques & Examples
What is Face Processing?
Face Detection
Localize faces in pictures
Source: Apple
Source: NY Times
Face Detection
Localize faces in pictures
Enables software & users to focus on points of interest
Used as input for more complex face processing tasks
Face Recognition
Identify the faces
Source: Facebook
Source: Apple
Source: Apple
Face Classification
Infer properties about the faces
Female
Neutral
Happy
Happy
39
8
Glasses
Closed Eyes
Face Manipulation
Modify or add features to faces
Source: Teen Vogue / Snapchat
and many more…
Gabriel Bianconi - Introduction to Face Processing with Computer Vision
Gabriel Bianconi - Introduction to Face Processing with Computer Vision
Source: Sela, M. et al. (2017), “Unrestricted Facial Geometry Reconstruction Using Image-to-Image Translation”
Review of Computer Imagery
Image = Grid of Pixels
Gabriel Bianconi - Introduction to Face Processing with Computer Vision
Pixels
RGB Color Model = 3 channels
(red, green, blue)
Source: Wikimedia
Source: AeroLab
Images
2D Data x 1D Data = 3D Data
image[x][y][c]
Shape = (width, height, 3)
Tensors
“Matrices in higher dimensions”
Intuition: nested arrays with fixed length
Gabriel Bianconi - Introduction to Face Processing with Computer Vision
Image Data
Tensor: (Width, Height, Channels)
Specific Pixel: (X Position,Y Position, Channel)
Parameters
iPhone X Photos
4032 x 3024 pixels = ~12M pixels (12 MP)
~12M pixels x 3 channels = ~36M parameters
[[...,
[0.2, 0.6, 0.0],
[0.1, 0.1, 0.0],
[0.0, 0.0, 0.0],
[1.0, 0.4, 0.3],
[0.1, 0.5, 0.0],
...]]
≡
Intro to ML & ComputerVision
Approaches
Traditional CV: Extract Features  Model  Inference
Deep Learning: Neural Network  Inference
HOG: Histogram of Oriented Gradients
“Summarize” photo by splitting into a grid and
computing gradient pattern in each cell
Source: Carcagnì, P. et al (2015), "Facial expression recognition and histograms of oriented gradients: a comprehensive study"
Sources: dlib; Rojas, M. et al (2011), "Automatic prediction of facial trait judgments: appearance vs. structural models."
Neural Networks (MLPs)
Source: Dixon et al. (2016), “Classification-Based Financial Markets Prediction Using Deep Neural Networks”
Convolutional Neural Networks
Source: MathWorks
Convolutional Neural Networks
Source: Lee et al. (2009), “Convolutional Deep Belief Networks for Scalable Unsupervised Learning of Hierarchical Representations”
Neural Networks
NNs require massive datasets,
and training can be slow and tricky.
However, pre-trained models can be used.
Transfer learning greatly improves adaptation to new domains.
Face ProcessingTechniques
Face Detection
CNN, HOG, etc.
Face Detection
import face_recognition as fr
image = fr.load_image_file("file.jpg")
face_locations = fr.face_locations(image)
github.com/ageitgey/face_recognition
Embeddings
Map samples to a coordinate system
Similar samples close to each other
Dissimilar samples far from each other
Words, graphs, …, faces
Source: Wikimedia
Face Embeddings
“Similar” can be the same person,
a physical characteristic, etc.
Face Embeddings
import face_recognition as fr
image = fr.load_image_file("file.jpg")
face_embedding = fr.face_encodings(image)[0]
github.com/ageitgey/face_recognition
Example: Facebook Photos
1. Collect known face embeddings from previously tagged
photos and store in database.
2. Whenever a user uploads a new picture: detect face,
compute embedding, search using distance function
- 0.31 0.59 0.69
0.31 - 0.52 0.63
0.59 0.52 - 0.50
0.69 0.63 0.50 -
Source: Wikimedia
Face Landmarks
Locate key points in face
(e.g. eyes, nose, mouth, chin)
Gabriel Bianconi - Introduction to Face Processing with Computer Vision
Face Landmarks
import face_recognition as fr
image = fr.load_image_file("file.jpg")
face_landmarks = fr.face_landmarks(image)[0]
print(face_landmarks.keys())
# left_eyebrow, right_eyebrow, lower_lip, top_lip, …
github.com/ageitgey/face_recognition
Example: Snapchat Filters
1. Find face landmarks in picture
2. Draw lines or polygons around lips and eyes
Example: Snapchat Filters
from PIL import Image, ImageDraw
…
pil_image = Image.fromarray(image)
d = ImageDraw.Draw(pil_image, 'RGBA’)
lip_fill = (150, 0, 0, 128) # shade of red, 50% alpha
d.polygon(face_landmarks['top_lip'], fill=lip_fill)
d.polygon(face_landmarks['bottom_lip'], fill=lip_fill)
…
github.com/ageitgey/face_recognition
Gabriel Bianconi - Introduction to Face Processing with Computer Vision
Face Processing in Practice
Dozens of Libraries
face_recognition
OpenFace
dlib
FaceNet
Tensorflow
simplicity
flexibility
… and many more
Face Processing at Scale
Microsoft Azure Face API
Amazon AWS Rekognition
Face++
…
$1 / 1000 images or less!
ThankYou
gabriel@scalarresearch.com

More Related Content

PDF
Face Recognition Methods based on Convolutional Neural Networks
PDF
Image–based face-detection-and-recognition-using-matlab
PDF
IRJET- Automated Detection of Gender from Face Images
PPTX
Mind mapping and Its Applications, Introduction to Context Trees
PDF
Gender Classification using SVM With Flask
PPTX
Image attendance system
PPTX
Face Recognition
PDF
Human Face Detection and Tracking for Age Rank, Weight and Gender Estimation ...
Face Recognition Methods based on Convolutional Neural Networks
Image–based face-detection-and-recognition-using-matlab
IRJET- Automated Detection of Gender from Face Images
Mind mapping and Its Applications, Introduction to Context Trees
Gender Classification using SVM With Flask
Image attendance system
Face Recognition
Human Face Detection and Tracking for Age Rank, Weight and Gender Estimation ...

What's hot (19)

DOC
Face Detection And Tracking
PDF
IEEE EED2021 AI use cases in Computer Vision
PPTX
Computer Vision Crash Course
PDF
Real time multi face detection using deep learning
PPTX
Detection and recognition of face using neural network
PPTX
PPSX
Image Search: Then and Now
PDF
Estimating information from image colors an application to digital cameras an...
PPTX
face detection
PDF
Facial Expression Recognition Using Enhanced Deep 3D Convolutional Neural Net...
PDF
Report
PDF
Eren_Golge_MS_Thesis_2014
PDF
Image recognition
PPTX
Image recognition
PDF
M.Sc. Thesis - Automatic People Counting in Crowded Scenes
PPTX
HUMAN FACE IDENTIFICATION
PDF
Facebook Deep face
PDF
Image recognition
PDF
Practical computer vision-- A problem-driven approach towards learning CV/ML/DL
Face Detection And Tracking
IEEE EED2021 AI use cases in Computer Vision
Computer Vision Crash Course
Real time multi face detection using deep learning
Detection and recognition of face using neural network
Image Search: Then and Now
Estimating information from image colors an application to digital cameras an...
face detection
Facial Expression Recognition Using Enhanced Deep 3D Convolutional Neural Net...
Report
Eren_Golge_MS_Thesis_2014
Image recognition
Image recognition
M.Sc. Thesis - Automatic People Counting in Crowded Scenes
HUMAN FACE IDENTIFICATION
Facebook Deep face
Image recognition
Practical computer vision-- A problem-driven approach towards learning CV/ML/DL
Ad

Similar to Gabriel Bianconi - Introduction to Face Processing with Computer Vision (20)

PDF
Introduction to Face Processing with Computer Vision
PPTX
Deep learning on face recognition (use case, development and risk)
PDF
Mirko Lucchese - Deep Image Processing
PPTX
Face Recognition: A Comprehensive Overview
PDF
Mobile vision Android
PPTX
PBL presentation p2.pptx
PPTX
how AI helps in today world of live facial recognization.pptx
PPTX
Facial emotion detection on babies' emotional face using Deep Learning.
PPTX
Overview of Computer Vision For Footwear Industry
PDF
Human Face Detection And Identification Of Facial Expressions Using MATLAB
PDF
Face recognition and modeling โดย ผศ.ดร.ธนาสัย สุคนธ์พันธุ์
PPTX
Face Recognition Human Computer Interaction
ODP
Face recognition application
PPTX
Face Detection using Machine Learning PBL PPT 2.pptx
PPT
FaceRecognition for biometry researchers
PPTX
Extracting individual information using facial recognition in a smart mirror....
PDF
Face recognition and deep learning โดย ดร. สรรพฤทธิ์ มฤคทัต NECTEC
PDF
Face Recognition Based on Image Processing in an Advanced Robotic System
PPT
EnggRoom Code IntroFaceDetectRecognition.ppt
PPT
EnggRoom_Code_IntroFaceDetectRecognition.ppt
Introduction to Face Processing with Computer Vision
Deep learning on face recognition (use case, development and risk)
Mirko Lucchese - Deep Image Processing
Face Recognition: A Comprehensive Overview
Mobile vision Android
PBL presentation p2.pptx
how AI helps in today world of live facial recognization.pptx
Facial emotion detection on babies' emotional face using Deep Learning.
Overview of Computer Vision For Footwear Industry
Human Face Detection And Identification Of Facial Expressions Using MATLAB
Face recognition and modeling โดย ผศ.ดร.ธนาสัย สุคนธ์พันธุ์
Face Recognition Human Computer Interaction
Face recognition application
Face Detection using Machine Learning PBL PPT 2.pptx
FaceRecognition for biometry researchers
Extracting individual information using facial recognition in a smart mirror....
Face recognition and deep learning โดย ดร. สรรพฤทธิ์ มฤคทัต NECTEC
Face Recognition Based on Image Processing in an Advanced Robotic System
EnggRoom Code IntroFaceDetectRecognition.ppt
EnggRoom_Code_IntroFaceDetectRecognition.ppt
Ad

More from PyCon Odessa (7)

PDF
Anton Caceres - The epic zoo of microservices
PDF
Christian Barra - Not just a Developer
PDF
Alexey Borisenko - Network Programmability using Python
PDF
Jorge Torres - Machine Learning Democratization with Python
PDF
Taras Matsyk - Event Driven ML
PDF
Vsevolod Solovyov - Data science from the trenches
PPTX
Mikhail Faraponov - Overview of Kubernetes Metacontrollers with Python
Anton Caceres - The epic zoo of microservices
Christian Barra - Not just a Developer
Alexey Borisenko - Network Programmability using Python
Jorge Torres - Machine Learning Democratization with Python
Taras Matsyk - Event Driven ML
Vsevolod Solovyov - Data science from the trenches
Mikhail Faraponov - Overview of Kubernetes Metacontrollers with Python

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Big Data Technologies - Introduction.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Approach and Philosophy of On baking technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Machine learning based COVID-19 study performance prediction
PPT
Teaching material agriculture food technology
PPTX
Machine Learning_overview_presentation.pptx
Programs and apps: productivity, graphics, security and other tools
Diabetes mellitus diagnosis method based random forest with bat algorithm
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Big Data Technologies - Introduction.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
A Presentation on Artificial Intelligence
Assigned Numbers - 2025 - Bluetooth® Document
Digital-Transformation-Roadmap-for-Companies.pptx
A comparative analysis of optical character recognition models for extracting...
Chapter 3 Spatial Domain Image Processing.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Approach and Philosophy of On baking technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Electronic commerce courselecture one. Pdf
Machine learning based COVID-19 study performance prediction
Teaching material agriculture food technology
Machine Learning_overview_presentation.pptx

Gabriel Bianconi - Introduction to Face Processing with Computer Vision