+ All Categories
Home > Documents > Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter...

Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter...

Date post: 14-Mar-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
70
Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides
Transcript
Page 1: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Perception for Robots

I.

BASICS

Thanks to Peter Corke for the use of some slides

Page 2: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

What is a robot

• For the purposes of this class a robot is a goal oriented machine that can sense, reason and act.

sensing

reasoning acting

Page 3: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

BASIC QUESTIONS

• Where am I

• Where are you

• What are you

• How do I get there

• How to achieve a task

Page 4: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Where am I

• Why not use GPS?

GPS is not perfect and has severe limitations is environments where robots are needed:

--- cities, mines, industrial sites, underwater,

deep forest.

It only tells where I am

Page 5: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Urban Canyon Problem

Page 6: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Industrial sites, mines

Page 7: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Underwater, deep forest

Page 8: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Humans and animals have a number of senses

• Sight

• Hearing

• Touch

• Smell

• Taste

• Balance

• Echolocation: bats, electric fields: sharks, compass: birds

Page 9: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Vision

Page 10: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Hearing

Page 11: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Echolocation of bats

Page 12: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Electric field sensing

Page 13: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Magnetic field sensing

Page 14: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Vision: most powerful sense

• Essential for survival: finding food, avoiding being food, finding mates

• Long range sensing: beyond our fingertip (vision is our way to touch the world)

Page 15: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Evolution of the eye½ billion years

Page 16: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Climbing mount improbable10 different designs

Page 17: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

A plethora of eyes

Page 18: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Complex Eyes

Page 19: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Compound eyes

Page 20: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Human Eyes

Page 21: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Two kinds of eyes at the top:Camera type or planar

Spherical

Page 22: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Many cameras in the market

Page 23: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Catadioptric – panoramic images

Page 24: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.
Page 25: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

How does Vision work?

• Ancient Greeks: Extramission Theory

Page 26: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Descartes got it right

Page 27: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Many theories over the centuries

• The Gestaltists

• Von Helmholz: Unconscious inference

• David Marr: A reconstruction process that tells us where is what.

Page 28: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Theories influenced by the zeitgeist

Page 29: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Animal perception is active

Page 30: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Measuring eye movements

Page 31: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Robots with Vision

Page 32: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

PR2 Humanoid

Page 33: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Perception for Robots3 major problems

• Reconstruction

• Reorganization

• Recognition

Page 34: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Reconstruction

Page 35: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.
Page 36: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Reorganization: segmentation

Page 37: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Reorganization: flow

Page 38: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Recognition

Page 39: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Images and Videos Contain

• Lines (contours, edges)

• Intensity and Color

• Texture

• movement

Page 40: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Lines

Page 41: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Color, Texture

Page 42: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Motion

Page 43: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Contents of the Class

• Image Processing: Images, Light and Color, Filtering, Noise, Convolution, Edge detection, contour finding, texture analysis, segmentation and grouping.

• 3D Geometry: Stereo, Multiple View Geometry, Epipolar Geometry, Projective Geometry

• Motion: Optical Flow, Egomotion, Motion Segmentation, Tracking

• Navigation: Map making, SLAM

Page 44: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Break

Page 45: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

A theoretical model of an eye

• Pick a point in space and the light rays passing through

O

Page 46: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Then cut the rays with a plane

• This gives an image

O

Page 47: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Pinhole cameras

• Abstract camera

model - box with a

small hole in it

• Pinhole cameras

work in practice

(Forsyth & Ponce)

Page 48: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

If we change the plane, we get an new image

Page 49: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

How are these images related?(what remains invariant?)

Page 50: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Conics

Page 51: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Projection of circle

Page 52: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Vanishing points

• Vanishing point

– projection of a point at infinity

image plane

cameracenter

ground plane

vanishing point

Page 53: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Vanishing points (2D)image plane

cameracenter

line on ground plane

vanishing point

Page 54: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Vanishing points

• Properties

– Any two parallel lines have the same vanishing point v

– The ray from C through v is parallel to the lines

– An image may have more than one vanishing point

image plane

cameracenter

C

line on ground plane

vanishing point V

line on ground plane

Page 55: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Parallelism (angles) not invariant

Page 56: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Cross ratio = only invariant

Page 57: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.
Page 58: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.
Page 59: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Back to our question: how are the 2 images related to each other

Can we find a map, a function mapping x’ to x?

Page 60: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Fundamental Theorem: If we know how 4 points map to each other in the two planes, then we know how all points map. (if aA, bB, cC,dD, then we can

map any point)

Page 61: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Proof

a

b

d

cA

B

D

C

p P

s

S

Page 62: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

(0,0,0)

The projective plane• Why do we need homogeneous coordinates?

– represent points at infinity, homographies, perspective projection, multi-view relationships

• What is the geometric intuition?– a point in the image is a ray in projective space

(sx,sy,s)

• Each point (x,y) on the plane is represented by a ray (sx,sy,s)

– all points on the ray are equivalent: (x, y, 1) (sx, sy, s)

image plane

(x,y,1)

y

xz

Page 63: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Projective lines• What does a line in the image correspond

to in projective space?

• A line is a plane of rays through origin

– all rays (x,y,z) satisfying: ax + by + cz = 0

z

y

x

cba0 :notationvectorin

• A line is also represented as a homogeneous 3-vector l

l p

Page 64: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

l

Point and line duality– A line l is a homogeneous 3-vector

– It is to every point (ray) p on the line: l p=0

p1p2

What is the intersection of two lines l1 and l2 ?

• p is to l1 and l2 p = l1 l2

Points and lines are dual in projective space

• given any formula, can switch the meanings of points and

lines to get another formula

l1

l2

p

What is the line l spanned by rays p1 and p2 ?

• l is to p1 and p2 l = p1 p2

• l is the plane normal

Page 65: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Ideal points and lines

• Ideal point (“point at infinity”)– p (x, y, 0) – parallel to image plane

– It has infinite image coordinates

(sx,sy,0)y

x

z image plane

Ideal line

• l (a, b, 0) – parallel to image plane

(a,b,0)

y

x

z image plane

• Corresponds to a line in the image (finite coordinates)

Page 66: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Fundamental Theorem(homography or collineation)

Page 67: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.
Page 68: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.
Page 69: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Projective vs Affine

Page 70: Perception for Robots - University Of Maryland · Perception for Robots I. BASICS Thanks to Peter Corke for the use of some slides. What is a robot ... Animal perception is active.

Rectification


Recommended