1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Lecture BSc Multimedia - Chapter 15: Content-based retrieval

65 30 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 65
Dung lượng 15,41 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Chapter 15: Content-based retrieval. This chapter presents the following content: Motivation, traditional techniques, how do humans compare images? Content-based image retrieval, image retrieval, CBIR framework example, image/audio fingerprints,...

Trang 2

Applications:

Medicine: find similar diagnostic images

Crime: find person according to mugshot, fingerprints,

sketch, or verbal description

Copyright: who used my images without permission?

Retail: find shoes similar to these ones, only red

Trang 3

Traditional Techniques

Text-basedmultimedia search and retrieval:

Annotations (metadata)

File names Keywords Captions Surrounding text

Photography conditions Geo tags Creation date

Verbal portrait in the police database

Usually does a very good job provided the annotations areaccurate and detailed

Disadvantages:

Manual annotation requires vast amount of labour

Different people may perceive the contents of imagesdifferently: no objectivity in keywords/annotations

Trang 4

Traditional Techniques

Trang 5

Traditional Techniques

Describe in words what is happening in this image!

Trang 6

How do Humans Compare Images?

Trang 7

How do Humans Compare Images?

Trang 8

How do Humans Compare Images?

Trang 9

How do Humans Compare Images?

Trang 10

Content-based Image Retrieval

Low-level: based on color, texture, shape features

Find all images similar to given query image

Search by sketch

Search by features e.g “find all green images withtexture of leaves”

Check whether image is used without permissions

Images are compared based on low-level features, nosemantic analysis involved

A lot of research since 1990’s Feasible task

Mid-level: semantics come into play

E.g “find images of tigers”

Very active and challenging research area

High-level:

E.g “find image of a triumphant woman”

Requires very complex logic

Trang 11

Image Retrieval

Trang 12

CBIR Framework Example

Trang 13

Naive Per-pixel Comparison

Pixels are the most privitive features, so

Compare images on a per-pixel basis

Feature vector: raw array of pixel intensities

Trang 14

Image/Audio Fingerprints

Afingerprint is a content-based compact signature that

summarises some specific audio/video content

Requirements:

Discriminating power

Ability to accurately identify an item within a hugenumber of other items (e.g large audio collection inShazam, millions of songs)

Low probability of false positives

Query potentially has low information content: a fewseconds of audio, a crude sketch of an image

Trang 15

Making indexing feasible

Allowing for fast search

Computational simplicity

E.g for use on mobile devices

Trang 16

Feature Extraction in Images

Object identification, e.g

Detect faces (realatively robust these days)

Segmentation into blobs

Text detection/OCR

General case isdifficult

Colour statistics, e.g histogram (3-dimensional array

that counts pixels with specific RGB or HSV values in animage.)

Colour layout, e.g “blue on top, green below”

Textureproperties, usually based on edges in image

Motion information (in videos)

Trang 17

Search by Colour Histogram

Search by colour histogram of sunset

(scores shown under images)

Trang 18

Histogram Comparison

For each i-th training image generate colour histogram

Hd

Normalise it so that is sums to one (to reduce the effect

of the size of image)

Store it as the feature in the database

Trang 19

d− Hiq|

Trang 20

Search by Colour Histogram

Trang 21

Search by Colour Histogram

Trang 22

Search by Colour Layout

An improvement over basic colour/histogram search

The user can set up a scheme of how colors should

e.g on a grid

The training images are partitioned into regions and

histograms (or simply average colours) are computed foreach region

Matching process is similar

Trang 23

Search by Colour Layout

Retrieval by “color layout” in IBM’s QBIC system

Trang 24

Colour Signatures and EMD

Define distance between two color signatures to be the

minimum amount of “work” needed to transform one

Trang 25

Colour Signatures and EMD

Transform pixel colors into CIE-LAB color space

Each pixel of the image constitutes a point in this colorspace

Cluster the pixels in color space (Clusters constrained tonot exceed R units in L,a,b axes.)

Find centroids of each cluster

Each cluster contributes a pair (µ, w) to the signature

wis the fraction of pixels in that cluster

Typically there are 8 to 12 clusters

Trang 26

Colour Signatures and EMD

[Rubner, Guibas, & Tomasi 1998]

Trang 27

Visualisation using MDS with EMD as Distance

[Rubner, Guibas, & Tomasi 1998]

Trang 28

Search by Sketch

Trang 29

Search by Shape

(Query shape in top left corner.)

Trang 30

Projection Matching

[Smith & Chang, 1996]

Inprojection matching, the horizontal and vertical

projections of a shape silhouette form a histogram

Weaknesses?

Strengths?

Trang 31

Area and Perimeter

Circularity (compactness): C = 4πPA2

C is 1 for circle, smaller for other shapes

Convexity: ratio of perimeter of convex hull and originalcurve

Trang 32

Tangent Angle Histograms

Trang 34

Curvature

Trang 35

Elastic Shape Matching

[Del Bimbo & Pala, 1997]

Trang 36

Shape Matching Problems

Many existing shape matching approaches assume

Segmentation is given

Human selects object of interest

Lack of clutter and shadows

Objects are rigid

Planar (2-D) shape models

Models are known in advance

Trang 37

Texture

Trang 38

variationsin image intensity

Localregion property

Less local than pixel, more local than objects/entire

image

Usually repeated pattern with salient statistical properties

Trang 39

Search by Texture

(Query shape in top left corner.)

Trang 40

We can capture some spatial properties of texture with

co-occurence histogram

For a displacement vector d = (dx, dy):

Count in N × N bins of Q(i, j) how many times gray

levels i and j are separated by displacement d in the

image

of gray levels

Q(i, j) log Q(i, j),

Q2(i, j), contrast P

(i − j)2Q(i, j)

Trang 41

Orientation Histograms

If magnitude greater than threshold, increment correspondinghistogram bin [Freeman & Adelson, 1991]

Trang 42

Images are segmented on colour plus texture

User selects a region of the query image

System returns images with similar regions

Trang 43

Blobworld

Trang 44

Search by Text

Parse text, essentially reducing the problem to traditional

Trang 45

Representative Frames in Videos

Shotsare a sequence of contiguous video frames groupedtogether:

Same scene

Single camera operation

Significant event

Automatic shot boundary detection:

Change in global color/intensity histogram

Camera operations like zoom and pan

Change in object motion

Representative frames:

Video broken into shots, and representative frames areselected

Reduce video retrieval problem to image retrieval

E.g first, last, middle

Trang 46

Representative Frames in Videos

Trang 47

Representative Frames in Videos

Trang 48

Content-based Audio Retrieval

Example scenarios:

Song stuck in the head:

Search by humming

Search by notes, contour, rhythm E.g Musipedia

e.g Shazam

Trang 49

Audio Search: How Shazam Works

Trang 50

Atime-frequency point is a candidate peak if it has a

higher energy contentthan all its neighboursin a

region centered around the point

Density: make sure the entire audio covered

likelier to survive superposition of another sound

Amplitude itself is not part of the fingerprint

Trang 51

Shazam Fingerprints (from M¨ uller-Serr` a paper)

Trang 52

Shazam Fingerprints

Trang 53

Shazam Fingerprints

Trang 54

Shazam Fingerprints

Trang 55

Shazam Fingerprints

Trang 56

Shazam Fingerprints

Trang 57

Shazam Fingerprints

Trang 58

Shazam Fingerprints

Trang 59

Shazam Fingerprints

Trang 60

Shazam Fingerprints

Trang 61

Shazam Fingerprints

Trang 62

Shazam Fingerprints

Trang 63

Shazam Fingerprints

Trang 64

Shazam Fingerprints

Trang 65

Further Reading

Original Shazam paper by Wang et al

M¨uller-Serr`a paper on audio CBR of music

Ngày đăng: 13/02/2020, 02:46