• Nie Znaleziono Wyników

Multiple filter. A new method to improve the response of a character recognition system

N/A
N/A
Protected

Academic year: 2021

Share "Multiple filter. A new method to improve the response of a character recognition system"

Copied!
9
0
0

Pełen tekst

(1)

Optica Applicata, Vol. X I I I , Wo. d, 1983

Multiple filter. A new method to improve the response

of a character recognition system*

C. Fe r r e ir a, P. An d r e s, A . Pons, J. Monm eneu

Departamento de Optica, Facultad de Cinecias Fisicas Universidad de Valencia. Doctor Moliner, 50. Burjasot (Valencia), Spain.

In problems of character recognition the role of multiple matched filters has become fundamental. Since these filters are sensitive to the range of sizes of the characters and to rotations, a new coherent multiple matched filter with performace better than the classical one is proposed. In our case, when recording the filter, the characters are rotated by a certain angle, each being different from the other, and have different sizes. Using a variable scale Fourier transform system, the detection of a fixed charac­ ter in the input is obtained only when the input has been conveniently rotated and its Fourier transform has the suitable size.

1. Introduction

Spatial filtering technique in the Fourier plane is frequently used in optical processing. Its fundamental theory has been formulated by several authors [ 1 ,2 ] . The type of filter to be employed depends on the objective of the proces­ sing. In fact, in problems of pattern and character recognition, the matched filter [3] has been successfully employed. A very useful way to obtain it is the Yander Lugt technique [4], which essentially consists in the recording of a Fourier hologram of a given signal.

If, for a certain problem, we want to obtain a “bank” of

n

matched filters, it is possible to synthesize

n

single Vander Lugt filters, applying subsequently the input to each filter. However, making use of the possibilities of information storage by holographic methods, we can synthesize the filters on the same recording medium; that is to say, we can obtain a multiple filter.

---.Such a.hologram can.be obtained through succesive expositions of different signals, by changing the angle

W

between the object and reference waves before every exposition (incoherent recording) or by making only one exposition of the· totality of those signals that are present in different positions (coherent recording). As, for a multiple hologram, the maximum total efficiency, in the case of only one exposition is

n

times greater than in that of multiple expositions [5, 6], we are interested in the second method.

* This paper has been presented at the European Optical Conference (EOC'83), May 30-June 4, 1983, in Eydzyna, Poland.

(2)

Using the last technique, Bt j c k h a r d t [7] combines the two previous

methods, placing diverse signals in different positions, as well as Va n d e r Lu g t [8], hut repeating the process as many times as required to record all the

signals. These methods show lateral modulation, each character being recorded in a different carrier.

On the contrary, Vi e n o t et al. [9] suggest to record each signal in the same

carrier, the signals being located in a ciro^ around the reference beam. Then, the angle between the reference beam a,nd that corresponding to each signal remains constant. This method shows angular modulation. In fact, Vienot et al. combine both methods, the different signals being located in concentric circles.

Any of these methods present a generalized inconvenience: if the separation between symbols, when the filter is recorded, is not adequate to get the entire input to fit between them, there is overlapping in the output plane, which can lead to errors in the recognition.

To avoid this generalized limitation, we have proposed, in a previous paper [10], a new multiple filter in which the characters, when recording the filter, form a certain angle each different from the others. As the matched filter is rotation-variant — in contrast with others recently developed [11, 12] — the detection of a fixed character in the input is only obtained when the input has been rotated to the adequate angle.

To improve these results, we propose in this paper a modification of the preceding filter. How, the characters are not only rotated but have different sizes. As the response of the recognition system is also sensitive to the size relation between the characters to be recognized and the character the filter is matched to, then using a variable scale Fourier transform system, we only obtain the recognition of a symbol in the input only when the input has been conveniently rotated and the Fourier transform of the input has the suitable size. 2

2. Basic theory

Let us suppose that a multiple filter matched to

n

characters

s{

of different sizes is to be recorded. To do this, the Fourier hologram of a transparency with -the

n

transparent characters on dark background is recorded. W e take as size origin the height of the smallest character. Let

(i —

1 , 2 , . . . ,

n)

be the ratio of the height of each character to that of the smallest one. Then we can write

Mi > M 2>

... >

Mn, =

1.

The expression representing these characters, when they are not rotated, can be written as follows

(3)

Multiple filter... 431

% being the separation of a character from the origin of coordinates and

®

rep­ resenting a convolution.

Let us consider now that the characters sf have been rotated by the angles

8{ (i

= 1 , 2 , — ,

n

) . The new signal can be written

£(*>

V) = £ st (a?IMt, y ' l M j Q H x + Ot, y)

i

where

(x{\

I

cos W \ -sin 0< sin

6A lx

cos

e j \y

(1)

(

2

)

Pig. 1. Set-up for the recording of the filters

Figure 1 shows the sep-up for the recording of the Fourier hologram.

Lens

Lx

takes the Fourier transform of

8 (x ,y ) ,

indicated by

S(x2, y2),

multiplied by other factors of which we only consider the quadratic one is considered. Therefore, in the plane of the plate,· we have

A 0(x2, y 2)cc

{exp

[jk(x\

+ ^ ) / 2 / 1] }

( M y , M y )

exp

(j2nx2aJXfJ

, (3)

i

with

y \ _ y t cosdi

sin 6A lx A

\®7 ^ / l - s i n f l i c o s e J W '

Considering now the reference beam, the resulting amplitude on the plate is

A p(x2, y2)ocF0exp( -j2nbx2IXfl)+8(x2, y.)exp|jfc(®i + y*)/2/i].

(5)

Supposing that we are working in the linear zone of the

t-E

curve, the amplitude transmission of the developed plate is

t(x2, y2)ccB2

0+\8(x2, y

2)|2

+ B08(x2, y2)exp[jk(xl + yl)l2f1]exp(j27ix2blXf1)

+ B 08*(x2, y2)

e x p [

-jk(x\

+ y2)/2 /i]e x p (

- j 2 n x 2bjXfi)

. (6)

(4)

The fourth term of the expression (6) contains the filters matched to the characters,that can be recognized in a text. If we take into account (3), this term can be written

i4(*2,

y 2)cc R0{exp[-jic{xl + y2

2)2f1']}

x

( M y ,

Jliy')exp(

- p n x ^ j ^ f ^ e x p i ~j2nx2b

/

kf

x) . (7)

Fig. 2. Coherent filtering set- -up for character recognition

W e get the character recognition using a coherent filtering set-up, as shown in Fig,

2.

For the sake of simplicity, we choose an input solely with the charac­ ters to which the filter is matched, but with a distance from the origin. Their size is the same as that of the smallest one to which the filter is matched. Then, the input for 0 = 0° can be written

8o(®i,yi)

= J j / i K , 2/i)®

H<Bx + ot, Vi).

(8)

i

A reflected coordinate system is introduced in the output plane to avoid the sign change due to the double Fourier transform.

Let us achieve the filtering. To do this, we put the input behind the lens

Lt,

at a distance of

d:i

from its back focal plane, and we introduce the hologram, given by (6) in the Fourier plane

(x2, y 2) .

In this plane the amplitude distribution is

Uzix^yJccienvljkixl + yD^d^SoiXzIMi^zIMJtisCzfyz).

(9) Taking into account the term <4, given by (7), which is of our interest we have

U2i(x2,

y2)ocI?0{exp [

jh

[(1 /<?<) - ( 1 / / J ]

(x\

+

y D l ^ S ^ j X d i , y 2lM%

)

X ^ M j s i i M y , Mivi)ex-pl-j27ix2(ai + b)lkf1].

(10)

i

The quadratic term of the expression (10) provides the output plane

(x3, y

3) , when the lens

L 2

has taken the Fourier transform of

U2i(x2, y 2).

The distance,

qi,

between Fourier and output planes is given by

(5)

Multiple filter... 453

that is, the output plane is the image plane of the input plane through a lens, located in the plane

(x2, y 2),

equivalent to the coupling of lenses

L l

and

L 2

with no separation.

Also, from expression (10), we can get the recognition of the character

s{

when the input has the adequate orientation and fulfils the equality

= f J M i, i

= 1 , 2 , . . . ,

n.

(12) In this case,

q'i

has the value

<13) Thus, the output plane coincides with the image plane, through the lens

L2,

of the input located at a distance

(M{

— 1) from it. Therefore, that plane really exists only for the values of

Mt

satisfying

1 < J T ( < ! + ( £ / / , ) , .(14)

that plane has real existence.

If, for a specific problem of recognition (the given values of

Mf),

it is relevant that the output planes be relatively close to one another, it is convenient that / 2 be small in comparison to

f x.

So, the recognition of the character represented by

sk

is achieved when the input has the adequate orientation

(6k)

and has been moved to a distance

dk = fi/M k.

In this case

U

3

X{x

3

,

2/3)°c

(xi/Mi, yllMi)®

<5[a53- g i( « f + 6)//i]}®

i

® { 2 Sj(x«IMk, yk

3IMk)®d(xk

3 + q kM kcjlf1)},

(15)

i

with

i , j

= 1 , 2 , . . . ,

n .

So, only when

i

=

j — k,

the term

{Mltsk{xk

3IHk; yk

3IMk)*sk(xk

3IMk, y k

3IMk)]®

®d(xk

3 + qkMkck!ff)}®

<5 [*, -

qk(ak

+ 6 ) //J (16) is the autocorrelation (*) of

sk (xx, y x)

, while the other terms are cross-correlations due to the rotation and size of the character in the filter.

Then, to recognize a general character represented by s ^ i ,

Vi)i

th® iuput is rotated by an angle 0,- and moved to a distance d* =

f 1/M i

of the back focal

(6)

plane of the transforming, lens. Again, the output plane is behind the lens

Lt

at a distancé from it given by (13).

, Finally, for

sn

(®x,

y

x) , the input is rotated by

0n

and moved to the distance

dn —fi-

Only in these conditions, the recognition is strictly achieved in the back focal plane of the lens

L 2{q'n

= / 2), since

Mn =

1 .

3. Experimental results

To obtain the filters, a set-up for recording a Fourier hologram, as that of Fig. 1, was used. The recognition was achieved in a two lenses filtering system, shown in Fig. 2.

In our case, in making the hologram, we have employed, a transparency with the characters

m, a, r

(the last being the smallest one) in which the first remained in horizontal position, the second and third being rotated by 45° and 90°, respectively, as can be seen in Fig. 3. 4

Figure 4 shows the successive detection of the characters

m, a, r

obtained with our filter, when the input is a transparency containing only these three characters.

The detection, when the recognition has been carried out in a more compli­ cated input, can be seen in Fig. 5. In any case, a bright point appears in the place corresponding to the detected character. Note that only with fixed orientation and position of the input, a given character is recognized.

4. Conclusions

In a previous paper, we have proposed a multiple filter for character recognition, to avoid the overlappings associated to classical techniques. Now, to improve its performance, we propose a new multiple filter where the characters to which the filter is matched, are not only rotated but they have different sizes.

(7)

Multiple filter... 455

w a i t

I

nput

De t e c t i o n o f s y m b o l

d i =■ f ] / M 1 , ' 0 1 = 0 3

(8)

w a

k

c a

/1 i w a ?>

I

nput

D

etection of d_2 - T i / ''12 * symbo

l

G

0 2 = 4- 5°

(9)

Multiple filter... 457

W e take as size origin the height of the smallest character and we indicate by

Mi

the ratio of the height of each character to that of the smallest one.

The detection, is achieved only when the input is rotated by the adequate angle (the same as that when the filter was recorded) and is moved to a distan­ ce

di

=

fxlMi

of the back focal plane of the transforming lens (focal length / x). When these conditions are not satisfied, an autocorrelation term cannot he obtained due to different rotation and size of the characters in the filter.

The output plane is different for each character, is located at a distance of the imaging lens Z 2, and given by Eq. (13). The brightness of the autocorrelation point depends on the character and is proportional to

M

\.

References

[1] Cheatham T. P ., Jr., Kohlenberg A ., IR E Convention Record 4 (1954), 6. [2] O’Ne il l E. IRE Trans. Inform. Theory IT-2 (1956), 56.

[3] Tu r in G. L ., IR E Trans. Inform. Theory. IT -5 (1960), 311.

[4] Va n d e r Lu g t A . B ., IE E E Trans. Inform. Theory. IT -1 0 . (1964), 139.

[5] Ko g e l n ik H ., Proc. Symp. Mod. Opt., Polytech. Press of Polytech. Inst, lit >>klyn, New York 1967.

[6] La Ma c c h ia J. T ., Vin c e l e t t e J. C., Appl. Opt. 7 (1968), 1857. [7] Bu r c k h a r d C. B ., Appl. Opt. 6 (1967), 1359.

[8] Va n d e r Lu g t A . B ., Rotz P. B ., Kl o o st e r A ., [in] Optical and electrooplical infor­ mationprocessing, Chap. 7. [Eds.] J. T . Tipett, D . A . Berkowitz, L . C. Clapp, Ch. J. K oe- ster, A . Vanderbrugh, Jr., M. I. T. Press, Cambridge, Mass. 1965, pp. 125-141. [9] Vié n o t J.-Ch., Bulabois J., Gu t L. R., Opt. Commun. 2 (1971), 9.

[10] Fe r r e ir a C., An d r é s P ., Bo n e t E ., Ag u il a r M ., Pons A ., Opt. Commun, (accepted for publication).

[11] Ya n g Y ., Hsu Y . N ., Ar s e n a u l t H . H ., Opt. A cta 29 (1982), 627.

[12] Ya n g Y ., Ch a l a s in s k a-Ma c u k o w K ., Ar s e n a u l t H . H ., Opt. Acta 30 (1983), 189.

Received August 2, 1983

Cytaty

Powiązane dokumenty

The total number of blocks obtained as a result of the synthesis of the circuit described in a table and described using equations (similar results in MultiDec columns

The characters which belong to the support of the Plancherel measure of the hypergroup can be viewed as the set of all irreducible representations which are weakly contained in

Neither deterrence by denial, nor deterrence by punishment worked in this case, which proved the loopholes in the overall resilience of Ukraine against hybrid threats..

The best sensitivity for the changes of the engine block vibration level is represented by the increase wavelet coefficient ratio, C’ ab. Moreover, research done so far leads to

Yet, due to a bi-directional nature of the scavenging of the conduit and the symmetrical distribution of the mass share of the fuel vapor inside the conduit at the moment of

A principal argument in fa- vour of local currencies is that when localities are dependent entirely on national currency as a medium of exchange to facilitate

Based on the data provided by the State Statistics Service of Ukraine [1], it is shown the FDI inflowі dynamics in Ukrainian economy by the country of origin in 2010-2018 Table 1..

Adam Marceli Piwowar urodził się w Dąbrowie Górniczej 29 paździer- nika 1874 roku w rodzinie stolarza.. Tutaj uczęszczał do szkoły powszechnej, a następnie do