Lecture 14: Introduction to Recognition

Slides:



Advertisements
Similar presentations
ECE 8443 – Pattern Recognition LECTURE 05: MAXIMUM LIKELIHOOD ESTIMATION Objectives: Discrete Features Maximum Likelihood Resources: D.H.S: Chapter 3 (Part.
Advertisements

Face Recognition Ying Wu Electrical and Computer Engineering Northwestern University, Evanston, IL
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.
Object Recognition Szeliski Chapter 14.
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.
Visual Object Recognition Rob Fergus Courant Institute, New York University
Computer Vision I Instructor: Prof. Ko Nishino. Today How do we recognize objects in images?
A Novel 2D To 3D Image Technique Based On Object- Oriented Conversion.
Pattern Recognition. Introduction. Definitions.. Recognition process. Recognition process relates input signal to the stored concepts about the object.
Project 2 due today Project 3 out today –help session today Announcements.
VINCENT URIAS, CURTIS HASH Detection of Humans in Images Using Skin-tone Analysis and Face Detection.
CS 485/685 Computer Vision Face Recognition Using Principal Components Analysis (PCA) M. Turk, A. Pentland, "Eigenfaces for Recognition", Journal of Cognitive.
Crash Course on Machine Learning
Exercise Session 10 – Image Categorization
Methods in Medical Image Analysis Statistics of Pattern Recognition: Classification and Clustering Some content provided by Milos Hauskrecht, University.
So far focused on 3D modeling
Recognition Part II Ali Farhadi CSE 455.
Intelligent Vision Systems ENT 496 Object Shape Identification and Representation Hema C.R. Lecture 7.
CSE 185 Introduction to Computer Vision Face Recognition.
Probability Course web page: vision.cis.udel.edu/cv March 19, 2003  Lecture 15.
Jakob Verbeek December 11, 2009
Computer Vision Lecture 6. Probabilistic Methods in Segmentation.
Lecture 15: Eigenfaces CS6670: Computer Vision Noah Snavely.
Lecture 3: MLE, Bayes Learning, and Maximum Entropy
Intro. ANN & Fuzzy Systems Lecture 15. Pattern Classification (I): Statistical Formulation.
Recognition Readings – C. Bishop, “Neural Networks for Pattern Recognition”, Oxford University Press, 1998, Chapter 1. – Szeliski, Chapter (eigenfaces)
Introduction to Recognition CS4670/5670: Intro to Computer Vision Noah Snavely mountain building tree banner vendor people street lamp.
Li Fei-Fei, Stanford Rob Fergus, NYU Antonio Torralba, MIT Recognizing and Learning Object Categories: Year 2009 ICCV 2009 Kyoto, Short Course, September.
ETHEM ALPAYDIN © The MIT Press, Lecture Slides for.
CS Statistical Machine learning Lecture 7 Yuan (Alan) Qi Purdue CS Sept Acknowledgement: Sargur Srihari’s slides.
Computer vision: models, learning and inference
Lecture 15. Pattern Classification (I): Statistical Formulation
Histograms CSE 6363 – Machine Learning Vassilis Athitsos
Face Detection and Recognition Readings: Ch 8: Sec 4.4, Ch 14: Sec 4.4
Nonparametric Density Estimation – k-nearest neighbor (kNN) 02/20/17
Lecture 25: Introduction to Recognition
Announcements Project 2 due tomorrow night Project 3 out Wednesday
Lecture 8:Eigenfaces and Shared Features
Face Recognition and Feature Subspaces
Recognition: Face Recognition
SFM under orthographic projection
Object detection as supervised classification
Lecture 25: Introduction to Recognition
Announcements Project 1 artifact winners
Outline Peter N. Belhumeur, Joao P. Hespanha, and David J. Kriegman, “Eigenfaces vs. Fisherfaces: Recognition Using Class Specific Linear Projection,”
In summary C1={skin} C2={~skin} Given x=[R,G,B], is it skin or ~skin?
Image Segmentation Techniques
Lecture 26: Faces and probabilities
ICCV 2009 Kyoto, Short Course, September 24
Brief Review of Recognition + Context
CSSE463: Image Recognition Day 17
LECTURE 05: THRESHOLD DECODING
Where did we stop? The Bayes decision rule guarantees an optimal classification… … But it requires the knowledge of P(ci|x) (or p(x|ci) and P(ci)) We.
CS4670: Intro to Computer Vision
Pattern Recognition and Machine Learning
LECTURE 21: CLUSTERING Objectives: Mixture Densities Maximum Likelihood Estimates Application to Gaussian Mixture Models k-Means Clustering Fuzzy k-Means.
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
Parametric Methods Berlin Chen, 2005 References:
Where are we? We have covered: Project 1b was due today
Announcements Artifact due Thursday
CSE 185 Introduction to Computer Vision
Announcements Artifact due Thursday
ECE – Pattern Recognition Lecture 10 – Nonparametric Density Estimation – k-nearest-neighbor (kNN) Hairong Qi, Gonzalez Family Professor Electrical.
The “Margaret Thatcher Illusion”, by Peter Thompson
Generic object recognition
Presentation transcript:

Lecture 14: Introduction to Recognition CS6670: Computer Vision Noah Snavely Lecture 14: Introduction to Recognition mountain building tree banner vendor people street lamp

Announcements Final project page up, at Project 3: eigenfaces http://www.cs.cornell.edu/courses/cs6670/2009fa/projects/p4/ One person from each team should submit a proposal (to CMS) by next Wednesday at 11:59pm Project 3: eigenfaces will be posted on the web soon Adarsh will capture photos at the end of class project will include a challenge competition

What do we mean by “object recognition”? Next 15 slides adapted from Li, Fergus, & Torralba’s excellent short course on category and object recognition

Verification: is that a lamp?

Detection: are there people?

Identification: is that Potala Palace?

Object categorization mountain tree building banner street lamp vendor people

Scene and context categorization outdoor city …

Object recognition Is it really so hard? Find the chair in this image Output of normalized correlation This is a chair

Object recognition Is it really so hard? Find the chair in this image Pretty much garbage Simple template matching is not going to make it

Object recognition Is it really so hard? Find the chair in this image A “popular method is that of template matching, by point to point correlation of a model pattern with the image pattern. These techniques are inadequate for three-dimensional scene analysis for many reasons, such as occlusion, changes in viewing angle, and articulation of parts.” Nivatia & Binford, 1977.

And it can get a lot harder Brady, M. J., & Kersten, D. (2003). Bootstrapped learning of novel objects. J Vis, 3(6), 413-422

Applications: Computational photography

Applications: Assisted driving Pedestrian and car detection meters Ped Car Lane detection Collision warning systems with adaptive cruise control, Lane departure warning systems, Rear object detection systems,

Applications: image search

How do human do recognition? We don’t completely know yet But we have some experimental observations.

Observation 1 We can recognize familiar faces even in low-resolution images

Observation 2: Jim Carrey Kevin Costner High frequency information is not enough

Observation 3:

Observation 3: Negative contrast is difficult

Observation 4: Image Warping is OK

The list goes on http://web.mit.edu/bcs/sinha/papers/19results_sinha_etal.pdf

Let’s start simple Today skin detection eigenfaces

Face detection Do these images contain faces? Where?

One simple method: skin detection Skin pixels have a distinctive range of colors Corresponds to region(s) in RGB color space for visualization, only R and G components are shown above Skin classifier A pixel X = (R,G,B) is skin if it is in the skin region But how to find this region?

Skin detection Learn the skin region from examples Skin classifier Given X = (R,G,B): how to determine if it is skin or not? Learn the skin region from examples Manually label pixels in one or more “training images” as skin or not skin Plot the training data in RGB space skin pixels shown in orange, non-skin pixels shown in blue some skin pixels may be outside the region, non-skin pixels inside. Why? Q1: under certain lighting conditions, some surfaces have the same RGB color as skin Q2: ask class, see what they come up with. We’ll talk about this in the next few slides

Skin classification techniques Skin classifier Given X = (R,G,B): how to determine if it is skin or not? Nearest neighbor find labeled pixel closest to X choose the label for that pixel Data modeling fit a model (curve, surface, or volume) to each class Probabilistic data modeling fit a probability model to each class

Probability Basic probability X is a random variable P(X) is the probability that X achieves a certain value or Conditional probability: P(X | Y) probability of X given that we already know Y called a PDF probability distribution/density function a 2D PDF is a surface, 3D PDF is a volume continuous X discrete X

Probabilistic skin classification Now we can model uncertainty Each pixel has a probability of being skin or not skin Skin classifier Given X = (R,G,B): how to determine if it is skin or not? Choose interpretation of highest probability set X to be a skin pixel if and only if Where do we get and ?

Learning conditional PDF’s We can calculate P(R | skin) from a set of training images It is simply a histogram over the pixels in the training images each bin Ri contains the proportion of skin pixels with color Ri This doesn’t work as well in higher-dimensional spaces. Why not? Approach: fit parametric PDF functions common choice is rotated Gaussian center covariance orientation, size defined by eigenvecs, eigenvals

Learning conditional PDF’s We can calculate P(R | skin) from a set of training images It is simply a histogram over the pixels in the training images each bin Ri contains the proportion of skin pixels with color Ri But this isn’t quite what we want Why not? How to determine if a pixel is skin? We want P(skin | R), not P(R | skin) How can we get it?

Bayes rule In terms of our problem: The prior: P(skin) what we measure (likelihood) domain knowledge (prior) what we want (posterior) normalization term The prior: P(skin) Could use domain knowledge P(skin) may be larger if we know the image contains a person for a portrait, P(skin) may be higher for pixels in the center Could learn the prior from the training set. How? P(skin) could be the proportion of skin pixels in training set

Bayesian estimation likelihood posterior (unnormalized) Goal is to choose the label (skin or ~skin) that maximizes the posterior this is called Maximum A Posteriori (MAP) estimation = minimize probability of misclassification Suppose the prior is uniform: P(skin) = P(~skin) = 0.5 in this case , maximizing the posterior is equivalent to maximizing the likelihood if and only if this is called Maximum Likelihood (ML) estimation

Skin detection results

General classification This same procedure applies in more general circumstances More than two classes More than one dimension H. Schneiderman and T.Kanade Example: face detection Here, X is an image region dimension = # pixels each face can be thought of as a point in a high dimensional space H. Schneiderman, T. Kanade. "A Statistical Method for 3D Object Detection Applied to Faces and Cars". IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2000) http://www-2.cs.cmu.edu/afs/cs.cmu.edu/user/hws/www/CVPR00.pdf

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 store large PDF’s Suppose the data points are arranged as above Idea—fit a line, classifier measures distance to line