COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection,...

238
2015. Dec. Japan Korea Taiwan Americas Europe China ASEAN India Turkey K K K K K K K K K K K O O O O O O R R R R R R E E E E E A A C C-Link Partner Product for Korea C C-Link韓国対応製品カタログ C CC-Link Partner Product for Korea CC-Link韓国対応製品カタログ

Transcript of COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection,...

Page 1: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

COMP 776: Computer VisionCOMP 776: Computer Vision

Page 2: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Basic InfoBasic Info

• Instructor: Svetlana Lazebnik ([email protected])

• Office hours: By appointment, FB 244

• Textbook (recommended): Forsyth & Ponce, Computer Vision: A Modern Approach

• Class webpage:http://www.cs.unc.edu/~lazebnik/spring09

Page 3: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

TodayToday

• Introduction to computer vision• Course overview• Course requirements

Page 4: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

The goal of computer visionThe goal of computer vision

• To perceive the story behind the picture

What we see What a computer seesSource: S. Narasimhan

Page 5: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

The goal of computer visionThe goal of computer vision

• To perceive the story behind the picture

• What exactly does this mean?– Vision as a source of metric 3D information– Vision as a source of semantic information

Page 6: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Vision as measurement deviceVision as measurement device

Real-time stereo Structure from motion

NASA Mars Rover

Pollefeys et al.

Multi-view stereo forcommunity photo collections

Goesele et al.

Page 7: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Vision as a source of semantic information

slide credit: Fei-Fei, Fergus & Torralba

Page 8: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Object categorization

sky

building

flag

wallbanner

bus

cars

bus

face

street lamp

slide credit: Fei-Fei, Fergus & Torralba

Page 9: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Scene and context categorization• outdoor• city• traffic• …

slide credit: Fei-Fei, Fergus & Torralba

Page 10: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Qualitative spatial information

slanted

rigid moving object

horizontal

vertical

slide credit: Fei-Fei, Fergus & Torralba

rigid moving object

non-rigid moving object

Page 11: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Why study computer vision?Why study computer vision?

Personal photo albums

Surveillance and security

Movies, news, sports

Medical and scientific images

• Vision is useful: Images and video are everywhere!

Page 12: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Why study computer vision?Why study computer vision?

• Vision is useful• Vision is interesting• Vision is difficult

– Half of primate cerebral cortex is devoted to visual processing– Achieving human-level visual perception is probably “AI-complete”

Page 13: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Why is computer vision difficult?Why is computer vision difficult?

Page 14: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Challenges: viewpoint variation

Michelangelo 1475-1564 slide credit: Fei-Fei, Fergus & Torralba

Page 15: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Challenges: illumination

image credit: J. Koenderink

Page 16: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Challenges: scale

slide credit: Fei-Fei, Fergus & Torralba

Page 17: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Challenges: deformation

Xu, Beihong 1943

slide credit: Fei-Fei, Fergus & Torralba

Page 18: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Challenges: occlusion

Magritte, 1957 slide credit: Fei-Fei, Fergus & Torralba

Page 19: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Challenges: background clutter

Page 20: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Challenges: Motion

Page 21: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Challenges: object intra-class variation

slide credit: Fei-Fei, Fergus & Torralba

Page 22: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Challenges: local ambiguity

slide credit: Fei-Fei, Fergus & Torralba

Page 23: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Challenges or opportunities?Challenges or opportunities?

• Images are confusing, but they also reveal the structure of the world through numerous cues

• Our job is to interpret the cues!

Image source: J. Koenderink

Page 24: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Depth cues: Linear perspectiveDepth cues: Linear perspective

Page 25: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Depth cues: Aerial perspectiveDepth cues: Aerial perspective

Page 26: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Depth ordering cues: OcclusionDepth ordering cues: Occlusion

Source: J. Koenderink

Page 27: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Shape cues: Texture gradientShape cues: Texture gradient

Page 28: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Shape and lighting cues: ShadingShape and lighting cues: Shading

Source: J. Koenderink

Page 29: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Position and lighting cues: Cast shadowsPosition and lighting cues: Cast shadows

Source: J. Koenderink

Page 30: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Grouping cues: Similarity (color, texture,Grouping cues: Similarity (color, texture,proximity)proximity)

Page 31: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Grouping cues: Grouping cues: ““Common fateCommon fate””

Image credit: Arthus-Bertrand (via F. Durand)

Page 32: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Bottom lineBottom line

• Perception is an inherently ambiguous problem– Many different 3D scenes could have given rise to a particular 2D picture

Image source: F. Durand

Page 33: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Bottom lineBottom line

• Perception is an inherently ambiguous problem– Many different 3D scenes could have given rise to a particular 2D picture

• Possible solutions– Bring in more constraints (more images)– Use prior knowledge about the structure of the world

• Need a combination of different methodsImage source: F. Durand

Page 34: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Connections to other disciplinesConnections to other disciplines

Computer Vision

Image Processing

Machine Learning

Artificial Intelligence

Robotics

PsychologyNeuroscience

Computer Graphics

Page 35: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Origins of computer visionOrigins of computer vision

L. G. Roberts, Machine Perception of Three Dimensional Solids,Ph.D. thesis, MIT Department of Electrical Engineering, 1963.

Page 36: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Progress to dateThe next slides show some examples of what

current vision systems can do

Page 37: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Earth viewers (3D modeling)

Image from Microsoft’s Virtual Earth(see also: Google Earth)

Source: S. Seitz

Page 38: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Photosynth

http://labs.live.com/photosynth/

NOTE: Noah Snavely talk at GLUNCH tomorrow!

Source: S. Seitz

Page 39: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Optical character recognition (OCR)

Digit recognition, AT&T labshttp://www.research.att.com/~yann/

Technology to convert scanned docs to text• If you have a scanner, it probably came with OCR software

License plate readershttp://en.wikipedia.org/wiki/Automatic_number_plate_recognition

Source: S. Seitz

Page 40: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Face detection

Many new digital cameras now detect faces• Canon, Sony, Fuji, …

Source: S. Seitz

Page 41: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Smile detection?

Sony Cyber-shot® T70 Digital Still Camera Source: S. Seitz

Page 42: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Object recognition (in supermarkets)

LaneHawk by EvolutionRobotics“A smart camera is flush-mounted in the checkout lane, continuously watching for items. When an item is detected and recognized, the cashier verifies the quantity of items that were found under the basket, and continues to close the transaction. The item can remain under the basket, and with LaneHawk,you are assured to get paid for it… “

Source: S. Seitz

Page 43: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Face recognition

Who is she? Source: S. Seitz

Page 44: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Vision-based biometrics

“How the Afghan Girl was Identified by Her Iris Patterns” Read the story

Source: S. Seitz

Page 45: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Login without a password…

Fingerprint scanners on many new laptops,

other devices

Face recognition systems now beginning to appear more widely

http://www.sensiblevision.com/

Source: S. Seitz

Page 46: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Object recognition (in mobile phones)

This is becoming real:• Microsoft Research• Point & Find

Source: S. Seitz

Page 47: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

iPhone Apps: (www.kooaba.com)

Page 48: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

iPhone Apps: (www.snaptell.com)

Page 49: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

The Matrix movies, ESC Entertainment, XYZRGB, NRC

Special effects: shape capture

Source: S. Seitz

Page 50: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Pirates of the Carribean, Industrial Light and Magic

Special effects: motion capture

Source: S. Seitz

Page 51: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Sports

Sportvision first down lineNice explanation on www.howstuffworks.com

Source: S. Seitz

Page 52: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Smart cars

Mobileye• Vision systems currently in high-end BMW, GM, Volvo models • By 2010: 70% of car manufacturers.

Slide content courtesy of Amnon Shashua

Source: S. Seitz

Page 53: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Vision-based interaction (and games)

Nintendo Wii has camera-based IRtracking built in. See Lee’s work atCMU on clever tricks on using it tocreate a multi-touch display!

Source: S. Seitz

Assistive technologies

Sony EyeToy

Page 54: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Vision in space

Vision systems (JPL) used for several tasks• Panorama stitching• 3D terrain modeling• Obstacle detection, position tracking• For more, read “Computer Vision on Mars” by Matthies et al.

NASA'S Mars Exploration Rover Spirit captured this westward view from atop a low plateau where Spirit spent the closing months of 2007.

Source: S. Seitz

Page 55: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Robotics

http://www.robocup.org/NASA’s Mars Spirit Roverhttp://en.wikipedia.org/wiki/Spirit_rover

Source: S. Seitz

Page 56: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

The computer vision industryThe computer vision industry

• A list of companies here:

http://www.cs.ubc.ca/spider/lowe/vision.html

Page 57: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Course overviewCourse overview

I. Early vision: Image formation and processingII. Mid-level vision: Grouping and fittingIII. Multi-view geometryIV. RecognitionV. Advanced topics

Page 58: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

I. Early visionI. Early vision

Cameras and sensorsLight and color

Linear filteringEdge detection

* =

Feature extraction: corner and blob detection

• Basic image formation and processing

Page 59: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

II. II. ““MidMid--level visionlevel vision””

Fitting: Least squaresHough transform

RANSAC

Alignment

• Fitting and grouping

Page 60: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

III. MultiIII. Multi--view geometryview geometry

Projective structure from motion

Stereo

Affine structure from motion

Tomasi & Kanade (1993)

Epipolar geometry

Page 61: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

IV. RecognitionIV. Recognition

Patch description and matching Clustering and visual vocabularies

Bag-of-features models Classification

Sources: D. Lowe, L. Fei-Fei

Page 62: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

V. Advanced TopicsV. Advanced Topics• Time permitting…

Segmentation

Articulated models

Face detection

Motion and tracking

Page 63: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Course requirementsCourse requirements• Philosophy: computer vision is best experienced hands-on

• Programming assignments: 50%– Three or four assignments– Expect the first one in the next couple of classes– Brush up on your MATLAB skills (see web page for tutorial)

• Final assignment: 30% – Recognition competition– Winner gets a prize!

• Participation: 20% – Come to class regularly– Ask questions– Answer questions

Page 64: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

Collaboration policyCollaboration policy

• Feel free to discuss assignments with each other, but coding must be done individually

• Feel free to incorporate code or tips you find on the Web, provided this doesn’t make the assignment trivial and you explicitly acknowledge your sources

• Remember: I can Google too!

Page 65: COMP 776: Computer Vision - Computer Sciencelazebnik/spring09/lec01_intro.pdf• Obstacle detection, position tracking • For more, read “Computer Vision on Mars” by Matthies

For next timeFor next time

• Self-study: MATLAB tutorial • Reading: cameras and image formation (F&P chapter 1)