You are on page 1of 15

Second Project Progression Seminar on

Text Extraction From Natural Scene


Images Using Wavelet Transforms
Presented By
V.S.Hittalamani
2BA09SCS18
Under the Guidance of
Prof.M.M.Kodabagi

Content

Introduction
Complete Flow of Work
Plan of Implementation
Coding
Conclusion

Introduction

Complete Flow of Work

i) Divide Image in to 50 x 50 Bock size


ii) Apply wavelet transform on image 50 X50 block
iii) Extract wavelet features

Contd..

Classification: The classification phase of the proposed


model uses discriminant functions to classify every block
into two classes
Text blocks and Non-text blocks category.
Merging process:- combines the potential text blocks
Ci, connected in rows and columns, to obtain new text
regions ri, whose coordinates are recorded into vector R
as depicted
R = [ri, i = 1,W]
ri = [rmin, rmax, cmin, cmax ]
ri corresponds to i th text region
rmin, rmax, cmin, cmax corresponds to the coordinates of
i th text region.
W is number of text regions.

Work done
Wavelet Matrices [ Block wise Energy levels Its Horizontal
Vertical and Diagonally]

Code:
function [FV] = b6
f= imread('C:\photos1\Image066.jpg');
f1= rgb2gray(f);
figure, imshow(f), figure, imshow(f1)
FV= [];
[r ,c ]= imresize(f1,[240, 320]);
figure(2);
k=1;
for r=1:50:200
for c=1:50:300

Contd

b1=f(r:r+49,c:c+49);
subplot(4,6,k);imshow(b1);
[Ea,Eh, Ev, Ed ] = dwt2(double(b1), 'haar');
e1 = sum(abs(Ea(:)))/(25*25);
e2 = sum(abs(Eh(:)))/(25*25);
e3 = sum(abs(Ev(:)))/(25*25);
e4 = sum(abs(Ed(:)))/(25*25);

FV = [FV; k e2 e3 e4 ];
k=k+1;
End
End

RGB Image

Gray-Scale Image Block-wise

Energy- Levels

Energy Levels

Block No
1.
2.
3.
4.
5
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.

Horizontal
2.7368
3.5448
4.2128
2.7320
1.5120
1.2216
2.2376
1.6088
1.6080
1.5656
1.0336
1.4352
4.8456
8.6352
11.3760

Vertical
1.8200
1.5656
2.7120
2.8472
1.4576
1.2008
2.7848
1.8520
1.2416
1.3576
0.6928
0.9200
5.2792
6.3744
8.0032

Diagonal
0.5976
0.5624
0.8784
0.6760
0.6080
0.3672
0.5720
0.4392
0.4224
0.5016
0.2992
0.3216
1.6712
2.5504
3.3520

Contd

16.
17.
18.
19.
20.
21.
22.
23.
24.

14.5080
11.1296
5.7160
3.8992
11.3392
10.2752
15.8424
12.3192
3.1968

Hmin = 4.8456
Hmax=15.8424

10.2648
9.9600
4.3368
4.2016
8.9872
8.5968
9.6984
9.6136
4.8144

Vmin= 4.3368
Vmax=10.2648

3.9784
3.9920
1.4232
1.2208
3.2624
3.1952
3.8056
3.6152
1.2032
Dmin= 1.4232
Dmax=3.9920

Work to be Done

Threshold determination for e2, e3, e4


Merging the blocks
Refinement

Conclusion

A method for Text Extraction using wavelet


transform is proposed.
Initial work is carried out to understand the
behavior of wavelet transform it is planned
wavelet energy features for text extraction.

Thank

You

You might also like