1 barcode detection and recognition using the gabor wavelet

51
1 Barcode detection and recognition using the Gabor wavelet.

Post on 18-Dec-2015

232 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 Barcode detection and recognition using the Gabor wavelet

1

Barcode detection and recognition using the Gabor

wavelet.

Page 2: 1 Barcode detection and recognition using the Gabor wavelet

2

Motivation.

An omnipresent identification standard: the barcode.

->Unattended barcode recognition using a low camera resolution.

->Feature extraction using the wavelet theory.

Page 3: 1 Barcode detection and recognition using the Gabor wavelet

3

Key words:

Convolution filters. Gabor wavelet. Morphology. Hough and Radon transform. Feature extraction. Classification.

Page 4: 1 Barcode detection and recognition using the Gabor wavelet

4

Outline of the presentation, Current barcode systems. The 5 steps of the project:

Labelling Grouping Conditioning Extracting Matching

Evolutions: Feature extraction computed directy from the wavelet coefficient

Page 5: 1 Barcode detection and recognition using the Gabor wavelet

5

Current barcode systems.

Hardware: 2 types of barcode readers:

Attended:• pencil-like:

• gun-type reader.

• Unattended: supermarket like.

Page 6: 1 Barcode detection and recognition using the Gabor wavelet

6

Physical standards:

barcode Charcter set Length application example

EAN 13 Number only 12 data

1 check sum

Retail product, world wide

Code128 ASCII Variable Widely used

PDF 415 ASCII 93 Encoding parcel destination.

Page 7: 1 Barcode detection and recognition using the Gabor wavelet

7

Optional checksum characters are include. Encoding dependent on the standard:

Black and white bars: UPC-A Widths of the bars: code 39.

Barcode used: code 39 style.

Encoding standard

Page 8: 1 Barcode detection and recognition using the Gabor wavelet

8

Conclusion

Effective method for identifying items, Cheap, Durable, Easy to produce.

Page 9: 1 Barcode detection and recognition using the Gabor wavelet

9

Proposed solution:

A 5 steps methodology:

1. Labelling

2. Grouping

3. Conditioning

4. Extracting

5. Matching.

Page 10: 1 Barcode detection and recognition using the Gabor wavelet

10

Detection of the ZOI and Gabor Wavelet:

Barcodes are a grating of oriented bars. Easy localisable by human but not by machine.

solution: model of the primary visual cells located in the cortex, The Gabor Wavelet. Hubel and Wiesel (1962)

Page 11: 1 Barcode detection and recognition using the Gabor wavelet

11

The mathematical model:

The mother wavelet:

Parameters: Theta: orientation lambda: preferred wavelength Gamma: eccentricity Sigma: standard deviation, size of the visual field.

Page 12: 1 Barcode detection and recognition using the Gabor wavelet

12

Space domain

Page 13: 1 Barcode detection and recognition using the Gabor wavelet

13

Frequency domain. =4 pixels.

Page 14: 1 Barcode detection and recognition using the Gabor wavelet

14

Frequency domain =6 pixels.

Page 15: 1 Barcode detection and recognition using the Gabor wavelet

15

Gabor wavelets are not orthogonal.

Page 16: 1 Barcode detection and recognition using the Gabor wavelet

16

Basis restriction

Page 17: 1 Barcode detection and recognition using the Gabor wavelet

17

Execution: 2 octave.

Page 18: 1 Barcode detection and recognition using the Gabor wavelet

18

FilteringLamda=2,3,5 pix Threshold

Thin bars.

Wide bars.

Page 19: 1 Barcode detection and recognition using the Gabor wavelet

19

Logical Union of the sub-spaces.

Page 20: 1 Barcode detection and recognition using the Gabor wavelet

20

Conclusion for Labelling.

Three scales wavelet analysis on one direction. The Gabor wavelet react to parallel oriented

lines. Not orthogonal -> not for Compression purpose Simple operations will detect the ZOI.

Page 21: 1 Barcode detection and recognition using the Gabor wavelet

21

Grouping:Connected component analysis.

Detection of the ZOI. Change of logical unit:

From pixels, To set of pixels.

Index -> belonging to a region.

Page 22: 1 Barcode detection and recognition using the Gabor wavelet

22

Connected component analysis.

What is a neighbhor?

-> Detection of small objects contrasting with the background.

A row of an image of a time, example (Haralick 1981)

Exemple:

1

1 X 1

1

1 1 1

1 X 1

1 1 1

0 1 0 0 1

0 1 0 0 1

0 1 1 0 1

0 1 1 1 1

0 0 0 0 0

0 1 0 0 2

0 1 0 0 2

0 1 1 0 2

0 1 1 1 A

0 0 0 0 0

Page 23: 1 Barcode detection and recognition using the Gabor wavelet

23

Execution:

Delatiion will be explained later on.

Page 24: 1 Barcode detection and recognition using the Gabor wavelet

24

Proposed solution.

A 5 steps methodology:1. Labelling

2. Grouping

3. Conditioning

4. Extracting

5. Matching

Page 25: 1 Barcode detection and recognition using the Gabor wavelet

25

Conditioning: Noise removal.

Convolution filters, smoothing filters. Local average (box filter). Ex: [1 1 1 1 1] Gauss filter. Ex: [1 4 6 4 1]

Order statistic operators. Median filter.

Morphological noise cleaning.

Page 26: 1 Barcode detection and recognition using the Gabor wavelet

26

Convolution filters: Local average

Convolution for LTI systems. Study of FIR. separability. Space Domain.ex [1 1 1]

Frequency domain.

Page 27: 1 Barcode detection and recognition using the Gabor wavelet

27

Convolution filters:gauss

No ripple.

Page 28: 1 Barcode detection and recognition using the Gabor wavelet

28

Example:

Gaussian noise variance=0.1. Defocusing. Filter:1/16 [1 4 6 4 1] Gain=0.65 dB.

Page 29: 1 Barcode detection and recognition using the Gabor wavelet

29

Order statistic filters:The median filter.

Linear filter for gaussian noise but poor for binary noise. Linear combination of the sorted values. K*K neighbourhood. K odd.

Median: Intequartile: threshold:

Page 30: 1 Barcode detection and recognition using the Gabor wavelet

30

Example:

Noise density= 0.1. Median filter 3*3 Gain= 10.42. dB Ideal picture.

Page 31: 1 Barcode detection and recognition using the Gabor wavelet

31

The binary morphology.

Identifying maximal connected sets of pixels participating in the same kind of events

First used by Kirsch(1957),2 basis operations.

Let be X the binary picture and B the SE. Dilatation. (Minkowski addition)

When any point of B with origin x(i,j) are in X

Erosion. (shrink or reduce)When all points of B with the origin x(i,j) are in X

Page 32: 1 Barcode detection and recognition using the Gabor wavelet

32

Complexity.

Let be a L*L binary pixels

a SE of 2^M pixels.

British museum algorithm: L*L*2^M L*L*2*M (Haralick 1986)

Page 33: 1 Barcode detection and recognition using the Gabor wavelet

33

Derived operators.

Opening Closing

Conndition for complet noise removal:

A close under K. Opening with small circle -> remove salt & paper noise. Extract and handle of a shape.

Page 34: 1 Barcode detection and recognition using the Gabor wavelet

34

Example

Dilatation Erosion.

1 1 1 1

1 1

1 1

1 1

1 1

1 1 1

1

1

1

1

1 1

1 1 1 1

1 1

1 1

1 1

1 1

1 1 1

1

1

1

1

1 1

Page 35: 1 Barcode detection and recognition using the Gabor wavelet

35

Execution:

Page 36: 1 Barcode detection and recognition using the Gabor wavelet

36

Proposed solution.

5 steps methodology:1. Labelling

2. Grouping

3. Conditioning

4. Extracting

5. Matching

Page 37: 1 Barcode detection and recognition using the Gabor wavelet

37

Parameter extraction.

Template matching dependent of: Noise Rotation Scale.

Solution: parameter extraction. Ex: for a an elipse,

Its center Exentriciy Size

Page 38: 1 Barcode detection and recognition using the Gabor wavelet

38

Example: Hough transform

Hough 1962, used for pattern recognition in the 80’s. Detect primitive shapes, like line, elipse ... Used on binary image preprocessed with edge

detection technique. Point in space parameter domain.

Page 39: 1 Barcode detection and recognition using the Gabor wavelet

39

Line detection.

Placer les figures

Page 40: 1 Barcode detection and recognition using the Gabor wavelet

40

Adopted solution: A simple linear regression was preferred.

Page 41: 1 Barcode detection and recognition using the Gabor wavelet

41

Angle correction:

Page 42: 1 Barcode detection and recognition using the Gabor wavelet

42

Signature segmentation analysis.

Page 43: 1 Barcode detection and recognition using the Gabor wavelet

43

Proposed solution:

A 5 steps methodology:

1. Labeling

2. Grouping

3. Conditioning

4. Extracting

5. Matching

Page 44: 1 Barcode detection and recognition using the Gabor wavelet

44

Matching.

Classification of the parameters. Sharp clusters Fuzzy cluster Neural network.

Page 45: 1 Barcode detection and recognition using the Gabor wavelet

45

2 cluster segmentation:

Distance between each pair of observations.

M observations,

N variables.

M*(M-1)/2 pairs.

Page 46: 1 Barcode detection and recognition using the Gabor wavelet

46

Dendrogram

Hierarchical tree. Hight= distance

between 2 clusters to be connected.

Page 47: 1 Barcode detection and recognition using the Gabor wavelet

47

Conclusion on the advancement. Working order:

256*256 pixels picture or 512*512. Recognition till 64*64.

Page 48: 1 Barcode detection and recognition using the Gabor wavelet

48

Proposed solution:

Current barcode systems. The 5 steps of the project:

Labelling Grouping Conditioning Extracting Matching

Evolutions: Feature extraction computed directly from the wavelet coefficient

Page 49: 1 Barcode detection and recognition using the Gabor wavelet

49

Feature extraction computed from the wavelet coefficient

Present difficulties: Which wavelet ? Which basis?

compression VS classification

Irrelevant cost fonction minimisation .

Significant differences come from low energy subbands. Best Basis algrithm (Saito)

Which Coeficients?

Page 50: 1 Barcode detection and recognition using the Gabor wavelet

50

From Coeficients to features Direct computation. Dimmension reduction.

Parameter selection Prameter projection.

Page 51: 1 Barcode detection and recognition using the Gabor wavelet

51

Conclusion: Large subject:

Wavelet Digital filters Classification morphology

Program in working order. Optimisation gabor model. Feature extraction possible

with wavelet.