In summary C1={skin} C2={~skin} Given x=[R,G,B], is it skin or ~skin?

Slides:



Advertisements
Similar presentations
EigenFaces and EigenPatches Useful model of variation in a region –Region must be fixed shape (eg rectangle) Developed for face recognition Generalised.
Advertisements

Principal Component Analysis Based on L1-Norm Maximization Nojun Kwak IEEE Transactions on Pattern Analysis and Machine Intelligence, 2008.
Face Recognition Method of OpenCV
Viola/Jones: features “Rectangle filters” Differences between sums of pixels in adjacent rectangles { y t (x) = +1 if h t (x) >  t -1 otherwise Unique.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #20.
Object Detection and Recognition
How many object categories are there? Biederman 1987.
Face detection and recognition Many slides adapted from K. Grauman and D. Lowe.
Recognition Readings Szeliski Chapter 14 The “Margaret Thatcher Illusion”, by Peter Thompson.
Project 4 out today –help session today –photo session today Project 2 winners Announcements.
Face Recognition Jeremy Wyatt.
Robust Real-Time Object Detection Paul Viola & Michael Jones.
Computer Vision I Instructor: Prof. Ko Nishino. Today How do we recognize objects in images?
Project 2 due today Project 3 out today –help session today Announcements.
Understanding Faces Computational Photography
Face Detection and Recognition
Face Detection and Recognition Readings: Ch 8: Sec 4.4, Ch 14: Sec 4.4
CS 485/685 Computer Vision Face Recognition Using Principal Components Analysis (PCA) M. Turk, A. Pentland, "Eigenfaces for Recognition", Journal of Cognitive.
Face Detection using the Viola-Jones Method
So far focused on 3D modeling
Dimensionality Reduction: Principal Components Analysis Optional Reading: Smith, A Tutorial on Principal Components Analysis (linked to class webpage)
Recognition Part II Ali Farhadi CSE 455.
Face Recognition and Feature Subspaces
Face Recognition and Feature Subspaces
1 Recognition by Appearance Appearance-based recognition is a competing paradigm to features and alignment. No features are extracted! Images are represented.
Window-based models for generic object detection Mei-Chen Yeh 04/24/2012.
Lecture 29: Face Detection Revisited CS4670 / 5670: Computer Vision Noah Snavely.
DIEGO AGUIRRE COMPUTER VISION INTRODUCTION 1. QUESTION What is Computer Vision? 2.
Classification Course web page: vision.cis.udel.edu/~cv May 12, 2003  Lecture 33.
Face Recognition: An Introduction
CSE 185 Introduction to Computer Vision Face Recognition.
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.
Supervisor: Nakhmani Arie Semester: Winter 2007 Target Recognition Harmatz Isca.
Lecture 15: Eigenfaces CS6670: Computer Vision Noah Snavely.
Elements of Pattern Recognition CNS/EE Lecture 5 M. Weber P. Perona.
Lecture 15: Eigenfaces CS6670: Computer Vision Noah Snavely.
Lecture 10 Pattern Recognition and Classification II
Dimensionality reduction
Recognition Readings – C. Bishop, “Neural Networks for Pattern Recognition”, Oxford University Press, 1998, Chapter 1. – Szeliski, Chapter (eigenfaces)
Face Recognition and Feature Subspaces Devi Parikh Virginia Tech 11/05/15 Slides borrowed from Derek Hoiem, who borrowed some slides from Lana Lazebnik,
Face detection and recognition Many slides adapted from K. Grauman and D. Lowe.
Computer Vision Lecture 7 Classifiers. Computer Vision, Lecture 6 Oleh Tretiak © 2005Slide 1 This Lecture Bayesian decision theory (22.1, 22.2) –General.
Part 3: Estimation of Parameters. Estimation of Parameters Most of the time, we have random samples but not the densities given. If the parametric form.
Machine Learning Supervised Learning Classification and Regression K-Nearest Neighbor Classification Fisher’s Criteria & Linear Discriminant Analysis Perceptron:
1 C.A.L. Bailer-Jones. Machine Learning. Data exploration and dimensionality reduction Machine learning, pattern recognition and statistical data modelling.
Face Detection and Recognition Readings: Ch 8: Sec 4.4, Ch 14: Sec 4.4
University of Ioannina
Announcements Project 2 due tomorrow night Project 3 out Wednesday
Lecture 8:Eigenfaces and Shared Features
CS 2750: Machine Learning Dimensionality Reduction
Face Recognition and Feature Subspaces
Recognition: Face Recognition
Lecture 14: Introduction to Recognition
Principal Component Analysis
Announcements Project 1 artifact winners
Singular Value Decomposition
Learning to Detect Faces Rapidly and Robustly
Cos 429: Face Detection (Part 2) Viola-Jones and AdaBoost Guest Instructor: Andras Ferencz (Your Regular Instructor: Fei-Fei Li) Thanks to Fei-Fei.
CS4670: Intro to Computer Vision
Feature space tansformation methods
CS4670: Intro to Computer Vision
Announcements Project 2 artifacts Project 3 due Thursday night
Announcements Project 4 out today Project 2 winners help session today
Where are we? We have covered: Project 1b was due today
Announcements Artifact due Thursday
Feature Selection Methods
Lecture 29: Face Detection Revisited
Face/Flesh Detection and Face Recognition
Announcements Artifact due Thursday
The “Margaret Thatcher Illusion”, by Peter Thompson
Presentation transcript:

In summary C1={skin} C2={~skin} Given x=[R,G,B], is it skin or ~skin? Approach 1: nearest neighbors How about high dimensional point x, e.g., a face image? Approach 2: compute p(C1|x) and p(C2|x) P(C1|x) = P(x|C1)P(C1)/p(x) P(C2|x) = P(x|C2)P(C2)/p(x) How to compute P(x|C1) and P(x|C2)? Histogram

Modeling P(x|C) for high dimensional x Assuming P(x|C) is Gaussian 1-dimensional; how to estimate mean and variance? D-dimensional; how to estimate mean and co-variance? What’s wrong with testing p(x|C) given the estimated mean and covariance? Degeneracy Efficiency

Linear subspaces Classification can be expensive convert x into v1, v2 coordinates What does the v2 coordinate measure? What does the v1 coordinate measure? distance to line use it for classification—near 0 for orange pts position along line use it to specify which orange point it is Classification can be expensive Must either search (e.g., nearest neighbors) or estimate high-dim PDF’s Suppose the data points are arranged as above Idea—fit a line, classifier measures distance to line

Dimensionality reduction How to find v1 and v2 ? - PCA Dimensionality reduction We can represent the orange points with only their v1 coordinates since v2 coordinates are all essentially 0 This makes it much cheaper to store and compare points A bigger deal for higher dimensional problems

Principal component analysis Suppose each data point is N-dimensional Same procedure applies: The eigenvectors of A define a new coordinate system eigenvector with largest eigenvalue captures the most variation among training vectors x eigenvector with smallest eigenvalue has least variation We can compress the data by only using the top few eigenvectors corresponds to choosing a “linear subspace” represent points on a line, plane, or “hyper-plane” these eigenvectors are known as the principal components

The space of faces + = An image is a point in a high dimensional space An N x M image is a point in RNM We can define vectors in this space as we did in the 2D case

Dimensionality reduction The set of faces is a “subspace” of the set of images Suppose it is K dimensional We can find the best subspace using PCA This is like fitting a “hyper-plane” to the set of faces spanned by vectors v1, v2, ..., vK any face

Eigenfaces PCA extracts the eigenvectors of A what do these look like? Gives a set of vectors v1, v2, v3, ... Each one of these vectors is a direction in face space what do these look like? Why don’t look like natural? Negative components.

Projecting onto the eigenfaces The eigenfaces v1, ..., vK span the space of faces A face is converted to eigenface coordinates by X = bar(x)+V*V’*(x-bar(x)) in matlab

Recognition with eigenfaces Algorithm Process the image database (set of images with labels) Run PCA—compute eigenfaces Calculate the K coefficients for each image Given a new image (to be recognized) x, calculate K coefficients Detect if x is a face If it is a face, who is it? Find closest labeled face in database nearest-neighbor in K-dimensional space

Choosing the dimension K NM i = eigenvalues How many eigenfaces to use? Look at the decay of the eigenvalues the eigenvalue tells you the amount of variance “in the direction” of that eigenface ignore eigenfaces with low variance This method is not the best method available. It assumes Gaussian model in low dimension linear subspace.

Issues: dimensionality reduction What if your space isn’t flat? PCA may not help Nonlinear methods LLE, MDS, etc.

Issues: data modeling Generative methods histograms, PCA, model the “shape” of each class histograms, PCA, mixtures of Gaussians ... Discriminative methods model boundaries between classes perceptrons, neural networks support vector machines (SVM’s)

Generative vs. Discriminative Generative Approach model individual classes, priors Discriminative Approach model posterior directly from Chris Bishop

Issues: speed Case study: Viola Jones face detector Exploits three key strategies: simple, super-efficient features image pyramids pruning (cascaded classifiers)

Viola/Jones: features “Rectangle filters” Differences between sums of pixels in adjacent rectangles { yt(x) = +1 if ht(x) > qt -1 otherwise Unique Features For real problems results are only as good as the features used... This is the main piece of ad-hoc (or domain) knowledge Rather than the pixels, we have selected a very large set of simple functions Sensitive to edges and other critcal features of the image ** At multiple scales Since the final classifier is a perceptron it is important that the features be non-linear… otherwise the final classifier will be a simple perceptron. We introduce a threshold to yield binary features Y(x)=∑αtyt(x) Select 200 by Adaboost { Detection = face, if Y(x) > 0 non-face, otherwise Robust Realtime Face Dection, IJCV 2004, Viola and Jonce

Integral Image (aka. summed area table) Define the Integral Image Any rectangular sum can be computed in constant time: Rectangle features can be computed as differences between rectangles

Feature selection (AdaBoost) Given training data {xn,tn=+1/-1}, find {αt} for {yt(x)} by Minimizing total error function: Ideal function error(z) = z>0?0:1, hard to optimize. Instead use error(z)=exp(-z) to make the optimization convex. Define Basic idea: first find f1(x) by minimizing E(f1) Then given fm-1(x), find fm(x) by searching for best αm and ym(x)