CS262: Computer Vision Lect 06: Face Detection

Slides:



Advertisements
Similar presentations
Combining Detectors for Human Hand Detection Antonio Hernández, Petia Radeva and Sergio Escalera Computer Vision Center, Universitat Autònoma de Barcelona,
Advertisements

Detecting Faces in Images: A Survey
Rapid Object Detection using a Boosted Cascade of Simple Features Paul Viola, Michael Jones Conference on Computer Vision and Pattern Recognition 2001.
Rapid Object Detection using a Boosted Cascade of Simple Features Paul Viola, Michael Jones Conference on Computer Vision and Pattern Recognition 2001.
Face Detection & Synthesis using 3D Models & OpenCV Learning Bit by Bit Don Miller ITP, Spring 2010.
AdaBoost & Its Applications
Face detection Many slides adapted from P. Viola.
Cos 429: Face Detection (Part 2) Viola-Jones and AdaBoost Guest Instructor: Andras Ferencz (Your Regular Instructor: Fei-Fei Li) Thanks to Fei-Fei Li,
Bohr Robot Group OpenCV ECE479 John Chhokar J.C. Arada Richard Dixon.
The Viola/Jones Face Detector Prepared with figures taken from “Robust real-time object detection” CRL 2001/01, February 2001.
The Viola/Jones Face Detector (2001)
HCI Final Project Robust Real Time Face Detection Paul Viola, Michael Jones, Robust Real-Time Face Detetion, International Journal of Computer Vision,
Real-time Computer Vision with Scanning N-Tuple Grids Simon Lucas Computer Science Dept.
Robust Real-time Object Detection by Paul Viola and Michael Jones ICCV 2001 Workshop on Statistical and Computation Theories of Vision Presentation by.
7. Neighbourhood operations A single pixel considered in isolation conveys information on the intensity and colour at a single location in an image, but.
Computer Vision Introduction to Image formats, reading and writing images, and image environments Image filtering.
Robust Real-Time Object Detection Paul Viola & Michael Jones.
Viola and Jones Object Detector Ruxandra Paun EE/CS/CNS Presentation
Foundations of Computer Vision Rapid object / face detection using a Boosted Cascade of Simple features Presented by Christos Stoilas Rapid object / face.
Face Detection CSE 576. Face detection State-of-the-art face detection demo (Courtesy Boris Babenko)Boris Babenko.
FACE DETECTION AND RECOGNITION By: Paranjith Singh Lohiya Ravi Babu Lavu.
Face Detection using the Viola-Jones Method
A Tutorial on Object Detection Using OpenCV
Using Statistic-based Boosting Cascade Weilong Yang, Wei Song, Zhigang Qiao, Michael Fang 1.
CS 231A Section 1: Linear Algebra & Probability Review
3D Motion Capture Assisted Video human motion recognition based on the Layered HMM Myunghoon Suk & Ashok Ramadass Advisor : Dr. B. Prabhakaran Multimedia.
EADS DS / SDC LTIS Page 1 7 th CNES/DLR Workshop on Information Extraction and Scene Understanding for Meter Resolution Image – 29/03/07 - Oberpfaffenhofen.
Introduction to Computer Vision Olac Fuentes Computer Science Department University of Texas at El Paso El Paso, TX, U.S.A.
Detecting Pedestrians Using Patterns of Motion and Appearance Paul Viola Microsoft Research Irfan Ullah Dept. of Info. and Comm. Engr. Myongji University.
Window-based models for generic object detection Mei-Chen Yeh 04/24/2012.
Lecture 29: Face Detection Revisited CS4670 / 5670: Computer Vision Noah Snavely.
Face detection Slides adapted Grauman & Liebe’s tutorial
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
DIEGO AGUIRRE COMPUTER VISION INTRODUCTION 1. QUESTION What is Computer Vision? 2.
REAL TIME FACE DETECTION
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae, VUW Image Recognition COMP # 18.
Robust Real Time Face Detection
Lecture 09 03/01/2012 Shai Avidan הבהרה: החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
The Viola/Jones Face Detector A “paradigmatic” method for real-time object detection Training is slow, but detection is very fast Key ideas Integral images.
Learning to Detect Faces A Large-Scale Application of Machine Learning (This material is not in the text: for further information see the paper by P.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
GENDER AND AGE RECOGNITION FOR VIDEO ANALYTICS SOLUTION PRESENTED BY: SUBHASH REDDY JOLAPURAM.
FACE DETECTION : AMIT BHAMARE. WHAT IS FACE DETECTION ? Face detection is computer based technology which detect the face in digital image. Trivial task.
CS-498 Computer Vision Week 9, Class 2 and Week 10, Class 1
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
Images and Filters CSEP 576 Ali Farhadi Many slides from Steve Seitz and Larry Zitnick.
Face detection Many slides adapted from P. Viola.
Content Based Coding of Face Images
Stock Market Application: Review
Basic Principles Photogrammetry V: Image Convolution & Moving Window:
2. Skin - color filtering.
Cascade for Fast Detection
License Plate Detection
CS262: Computer Vision Lect 09: SIFT Descriptors
Session 7: Face Detection (cont.)
Lit part of blue dress and shadowed part of white dress are the same color
CS262 – Computer Vision Lect 08: SIFT Keypoint Detection
Seunghui Cha1, Wookhyun Kim1
Recognition using Nearest Neighbor (or kNN)
Object detection as supervised classification
Other Algorithms Follow Up
Cos 429: Face Detection (Part 2) Viola-Jones and AdaBoost Guest Instructor: Andras Ferencz (Your Regular Instructor: Fei-Fei Li) Thanks to Fei-Fei.
Brief Review of Recognition + Context
ADABOOST(Adaptative Boosting)
Adaboost for faces. Material
Midterm Exam Closed book, notes, computer Similar to test 1 in format:
A Tutorial on Object Detection Using OpenCV
Lecture 29: Face Detection Revisited
Lecture 1: Images and image filtering
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Presentation transcript:

CS262: Computer Vision Lect 06: Face Detection John Magee Slides Courtesy of Diane H. Theriault

Framing In Computer Vision, we want to analyze and interpret images and video First: How are images represented? How are images formed? What kinds of tasks are we interested in doing?

Framing Next: How do you find things you are looking for? Version 1: Thresholding / Color Analysis Post-processing (morphological operators) Need to clean up messy output Binary image analysis Try to reason about the objects that you find

Framing Next: How do you find things you are looking for? Version 2: Compute features in the images Example: Gradients Example: General Filter Responses (Today) Example: Corners and Keypoints (Next week) How to combine and use image features will be our focus when considering object recognition and many other tasks

Framing Different points of view about tasks in computer vision. Examples: Algorithmic (e.g. represent image as a graph) Statistical (Images are noisy measurements) Signal processing (think of image as a 2D signal) Machine Learning (train models using data)

Question of the Day: How can we find faces in images?

Face Detection Compute features in the image (Today) Apply a classifier Viola & Jones. “Rapid Object Detection using a Boosted Cascade of Simple Features”

Features with Image Filtering Perform image filtering by convolving an image with a “filter”/”mask” / “kernel” to obtain a “result” / “response” The value of the result will be positive in regions of the image that “look like” the filter One type of image feature is the way the image responds to different types of filters Filter

Image Filtering Image -1 1 What is the response of the image to the filter (the result) in the region denoted by the red box? To perform convolution: Multiply each element of the filter with the corresponding element of the image Sum the results Filter -1 1

Image Filtering Image 1 -1 What is the response of the image to the filter (the result) in the region denoted by the red box? To perform convolution: Multiply each element of the filter with the corresponding element of the image Sum the results Filter -1 1

Image Filtering Image 1 -1 What is the response of the image to the filter (the result) in the region denoted by the red box? To perform convolution: Multiply each element of the filter with the corresponding element of the image Sum the results Filter -1 1

Image Filtering Image 1 -1 What is the response of the image to the filters (the result) in the region denoted by the red box? To perform convolution: Multiply each element of the filter with the corresponding element of the image Sum the results Filter Filter -1 1 1 -1

Features with Image Filtering Perform image filtering by convolving an image with a “filter”/”mask” / “kernel” to obtain a “result” / “response” The value of the result will be positive in regions of the image that “look like” the filter One type of image feature is the way the image responds to different types of filters Filter

What do Faces “Look Like”? Make a “face filter”?

What do Faces “Look Like”? Chosen features are responses of the image to the “Haar-like” box filters

Image With Faces

Filter Responses

Filter Responses

Image with Non-faces

Filter Responses

Filter Responses

Convolution is Expensive! Computational complexity of brute force convolution is linear in the number of pixels in the filter if your image is NxM, and your filter is 3x3, then the cost is 9*N*M (that’s a teeny face!) If your image is NxM and your filter is 20 x 20, then the cost is 400*N*M

Computing the Responses Efficiently Viola and Jones chose “box” filters To compute the response, you take the difference of the sum of the image values in the boxes (Red minus blue) What if you could compute the sum of the image values in a box without visiting every pixel in the box? Box filter

Computing the Responses Efficiently The Integral Image is the computational trick that made this paper a star In the Integral Image, every pixel contains the sum of all of the pixels above and to the left

Computing the Responses Efficiently Once integral image has been computed, the sum of the pixels in any sized box can be computed with 4 numbers Red

Computing the Responses Efficiently Once integral image has been computed, the sum of the pixels in any sized box can be computed with 4 numbers Red – blue

Computing the Responses Efficiently Once integral image has been computed, the sum of the pixels in any sized box can be computed with 4 numbers Red – blue – green

Computing the Responses Efficiently Once integral image has been computed, the sum of the pixels in any sized box can be computed with 4 numbers Red – blue – green + orange (lower right) – (upper right) – (lower left) + (upper left)

Discussion Questions: Describe how you use the integral image to compute the sum of any region in an image Using the integral image, how many operations does it take to compute the sum of a region that is 3×3? 10×10? 10×30? How would you use the integral image to efficiently compute the response of an image region to a box filter? How many operations do you need to compute the response of an image region to a box filter containing two pieces? three? four? What is a simple way you might try to classify image regions as containing a face or not, using the response of the image region to a box filter?