Docsity

Object Recognition: Techniques and Approaches, Study notes of Computer Science

Partial preview of the text

Download Object Recognition: Techniques and Approaches and more Study notes Computer Science in PDF only on Docsity!

Object Recognition

Object Recognition with Computers

-^

Recognition of common objects is way beyondcapability of artificial systems proposed so far

-^

How do we program a computer to capture theessence of a dog, a house or a tree?

Other Methods

-^

Expectations, prior knowledge– White thing on desk in the dark has to be sheet of paper

-^

Reasoning– Thing has to be a fence because it surrounds a field

Multiple Facets of Recognition

-^

Visual object recognition is not a singlemechanism

-^

Diversity of approaches used in computer visionshould parallel the diversity of paths leading toobject recognition by humans, using differentsources of observations

Why is Recognition Difficult

-^

Is more computational power a solution?

-^

Assume a large and efficient memory system– Store a sufficient number of different views– Does the image corresponds to something we have seen

in the past?• Compare image with all views in memory

  • But image comparison is not enough to solve the

problem because of large variations between images ofsingle object

Large Scale Memory

-^

Large scale memory

is

important

  • Pigeons can learn to sort a set of 320 slides of natural

scenes in 2 arbitrary categories, remember it after 2years

  • Fly can remember visual patterns
    • Direct comparison

Problems with Direct Comparison• For faces, difference due to viewing conditionsmay be much larger than differences betweenindividuals

  • Using distance between faces based on pixel

differences, machine recognition is poor

  • For humans, recognition is highly accurate and

variations of illuminations are not noticed.

Invariant Properties and Feature

Vectors

-^

Properties that are common to many views– Colors, color contiguities– Compactness measure for cells seen on microscope– Moments (inertia of shape computed wrt. axes or points)

-^

Define a number of such measures– “Features” = measurements– Measurements that change a lot with view are not very

useful; should lie within a restricted range

  • Invariant measures should be easy to measure

Example of Invariants Method:

Color Indexing

-^

Also called backprojection algorithm

-^

Swain and Ballard,

-^

Use color information instead of pure spatialinformation

Color Indexing Technique

•^

Let M be color histogram of model

-^

Let I be the color histogram of whole image (3D)

-^

Build M/I: Each bin of color

i^

is replaced by the ratio

M

/ I i

: for color I, pixel count in model divided by pixel i

count in image–

Confidence value: How much color I is characteristic of model– If bin I

has a lot more pixels than M i

, low confidence value: most i

don’t come from the modeled object

-^

Replace each pixel of color

i^

by its confidence value

•^

Smooth confidence image

-^

Expected locations of model should appear as peaks inconfidence image

Extensions of Color Indexing

•^

In Color Indexing, we measure 3 color components at everypixel, then build a histogram

-^

We can collect a more complex feature vector at every pixel–

Apply masks to measure color gradients in 2 orthogonal directions– Apply mask to measure Laplacian

  • This defines components of a local feature vector -^

Construct histograms of feature vector for image and model–

More dimensions than color histograms

-^

Locate object from cluster of pixels with high confidence valueas in color indexing

Example 2: Salient Point Method• Find most salient point of model

-^

For every pixel, define a high-dimensional feature vector

-^

For every pixel, find the distance of its feature vector to all theothers.

-^

Keep as salient point the pixel with the largest distance to theothers

-^

Locating a model in image:–

For every image pixel, find feature vector– Calculate distance from feature vector of every pixel to salientpoint of model– Select pixel with minimum distance to salient point of model ascandidate point corresponding to salient point

-^

This is a “focus of attention” mechanism. A more completerecognition method can be used in the region around thedetected salient point.

Special Homography:Affine Transformation

x y z

o o o

w w w

o

w

t t t

X Y Z

r

r

r

r

r

r

r r r Z Y X

T

RP

P

33 32 31

23 22 21

13 12 11

]

[

x

w^

t Z r Y r X r

X^

=^

0 13 0 12 0 11

And the image coordinates of (

X w

,^ Y

,w

Z

) arew x^ z

w w^

t Z r Y r X r t Z r Y r X r f Z

fX x^

=

=

0 33 0 32 0 31

0 13 0 12 0 11

/

20

-^

P^

is “far” from the camera. Then in the

denominator of these expressions, t

dominates.z

So we rewrite them as:

-^

This is an affine transformation

z x

z

z^

t t Y t r f X t r f

x^

/ ] / [ ] /

[^

0

12

0

11

a^

t^1

b

z y

z

z^

t t Y t r f X t r f

y^

/ ] / [ ] /

[^

0

22

0

21

c^

t^2

d

(^00) 1 2

X^ Y

t d c

t b a

x y

Z^0

= 0 (planar object in plane OX

Y 0

Special Homography:Affine Transformation