Sie sind auf Seite 1von 4

Proceedings of 2004 International Symposium on Intelligent Multimedia. Video and Speech Processing October 20-22.

2004 Hong Kong

Combining Hough Transform and Contour Algorithm


for detecting Vehicles' License-Plates

Tran Due DuaJl. Duong AliI/ Due. Tran Le Hong Du


Faculty of Information Technology
University of Natural S c i e n ces , VNU-HCMC
227 Ng uyen Van Cu Street, HCM City, Vielnam
{tdduan, daduc, t lhdu}@fit.hcllluns.edu.vn

ABSTRACT Detecting VLP is the most important and difficult task in


VLP Recognition systems. The VLP detection module
Vehicle license plate (VLf') recognition is all interesting
receives images which were processed by the
problem that has attracted many computer "ision re­
preprocessing module - the first input module of this
search groups. Olle of the IIIOst important alld d(jJiclilt
system. The results of this module are sent to the
task of this problem is VLf' detecting. 11 is 110t only lIsed
segmentation module. The segmentation module seg­
in VLP recognition systems but also useful to many Irq(­
ments plate-images into separate character-images.
fie management systems. Our method is used for the
These character-images are then recognized by the OCR
VLP recognition system that deals with Vietnamese
module and the final results are characters and numbers
I'Ll's and it can also be applied 10 oIlier !)pes of JILl's
in plate (see Fig I).
11'i/h minor changes.

There are variOliS approaches to this problem, slich as


texture-based, morphology-based and boundary line­
based In this paper. we present the boundwJI line-based
me/hod Ihat optimizes speed and accl/racy by combining
the HOllgh tramjorm and COIl/Ollr algorithm. The en­
hancement of applying the Hough transform to collfollr
Fig 2. Types of Vietnamese plates: I row and 2 rows
images is Ihat the lIIuch improved speed of the algo­
r/thm. 111 addilion. the algorilhm can be used on VLP Detecting VLP is difficult due to a number of reasons,
images that have been taken from mriOliS distances and including the complexity of texture images, the number
have inclined angles betll'een :t30o from the camera. of contained objects, and the variety of size and the in­
Especially, it C(lll delecl pla tes in images has more than clined angles of license plates. Moreover, there may be
one VLP. The algorithm was emlliated in two illlage sets plates with scralchs and plug-in helixes. In this paper,
with accuracy of about 99% (see 3.3). we mainly discuss on the VLP detection module.

I. INTRODUCTION 2. RELATED WORK


Our VLP Recognition system was based on the The problem of automatic VLP recognition has been
following model: studied since 19905. The first approach was based on
characteristics of boundary lines. The input image was
I mages taken firstly processed to enrich boundary lines' information
Preprocessing
rrom camera by an algorithm such as the gradient filter. These images
were constantly processed by an algorithm to detect
License'pate lines. Finally, a couple of 2-parallel lines were
OCR
characters considered as a plate-candidate [3][4]. Another approach
was the morphology-based one [I]. This approach fo­
cuses on propel1ies of plate images such as its
Fig I. An automntic vehicles' license-(Jlates Recognition brightness, symmetry, angles, etc. By using these
system
properties, this method can detect the similar properties

747
Proceedings of 2004 International Symposium on Intelligent Multimedia, Video and Speech Processing October 20-22,2004 Hong Kong

in a certain image and locate the position of license plate didate is verified by using a number of evaluation algo­
images. The third approach was texture-based one [2]. rithms (see 3.2.2). However, the main limitation of this
According to this approach, a VLP was considered as an approach is the time required since the Hough transform
object with different textures and frames. The texture is applied to a usually great number of pixels. Espe­
window frames of different sizes were used to detect cially, the larger image is, the slower the algorithm is.
plate-candidates. These candidates were passed to a The speed of the algorithm may be improved by thin­
classifier to confirm whether they are plates or not. This ning image before applying the l'lough transform. How­
approach was commonly used in finding text in image ever, the thinning algorithm is also slow. The limitation
tasks. In addition, there have been a number of other of processing speed makes this approach unsuitable for
methods related to this problem but focusing on detect­ real time traffic management systems.
ing VLP in video data (objects appear in a cha in of se­
The method we present in this paper is the combination
quent images)[5][6].
of the two approaches above which produces higher
accuracy and faster speed so that it can be applied to real
time systems.
3. THE PROPOSED ALGORITHM
3.2.1. Comhille lIough Tramform allli Contollr Algo­
3.1. Preprocessing
rithmfor Detectillg VLP
Images taken from camera were processed by the pre­
OUf approach is as follows: from the extracted edging
processing module. The purpose of this module was to
image, we use the contour algorithm to detect closed
enrich the edge features. This will improve the success­
boundaries of objects. These contour lines are
ful rate of the VLP detection module. The algorithms
transformed to Hough coordinate to find two interacted
sequentially used in this module are graying, normaliz­
parallel lines (one of two parallel lines hold back the
ing and histogram equalization. After having obtained a
other 2-parallel lines and establishes an parallelogram­
grey-scale image, we use Sobel filters to extract the edg­
form object) that are considered as a plate-candidate.
ing image, then thresholding the image to a binary one.
Since there are quite few (blac k ) pixels in the contour
The resulted images are used as inputs for the VLP de­
lines, the transformation these points to Hough
tection module.
coordinate required much less computation. Hence, the
3.2. Vehicles' License-Plates Detect Algorithm speed of the algorithm is improved significantly without
the loss of accuracy (see Fig 5).
In order to detect regions of plate-candidate image, we
firstly apply contour algorithm for detecting closed
boundary objects. A number of candidate evaluation
plate­
algorithms are applied on contour images obtained from
candidate
the contour algorithm to separate plate objects.

-----�--.
= :=;.
3
'b=l.�t{:1�£dC:: p[ate­
.....
-.-.---�...
./ candidates
Fig 5. Two case successful case when use combination of
of using Contour algorithm only
Contour algorithm and Hough transformation
C--'����
___
Failed
detection
However, there may be images that have other objects
such as wear glasses, headlights, decorated things, etc.
Fig 4. A failed case of using Contour algorithm only These objects may also have the shape of two interacted
2-parallel lines, and therefore, are also falsely detected
However, this algorithm has difficulties in processing
as plate-candidates. To reject such incorrect candidates,
bad quality images due to scratches, plug-in helixes. [n
we implement a module for evaluating whether a candi­
these cases, the contour algorithm produces incomplete
date is a plate or not.
closed boundary lines that do not contain correctly the
plate-images. 3.2.2. P/lIte-ClIJI(lhlules Verijictltioll

Our second approach was applying Hough transform to From the two horizontal lines of a candidate, we can
the binary image to extract lines from object-images. calculate exactly how inclined it was from horizontal
Then we looked for two parallel lines, whose the con­ coordinate. Then we apply a rotate transformation to
tained region is considered plate-candidates. Each can- adjust it to straight angle. After processed, these straight

748
Proceedings of 2004 International Symposium on Intelligent Multimedia, Video and Speech Processing October 20-22,2004 Hang Kong

binary plate-candidate images were passed to a number number of cut objects will be calculated. This evaluation
of heuristics and algorithms for evaluating. help identify the correct plate-candidates.

Our evaluating plate-candidates algorithm based on two 3.3. Empirical evaluation


main steps, which are taken sequently. The two steps
The algorithm was evaluated with two sets of
are: evaluating ratio between height and width of
Vietnamese vehicles' plates. Images were taken by a
candidate, using horizontal crosscuts to count number of
Sony DC350 digital camera, with size of 800x600
cut-objects in candidate.
pixels, in different places and times. The IDE we
3.2.2.1. Evaluate ratio between width Gild height of can­ implemented was Microsoft Visual c++ 6.0, .run on HP
didate Workstation X2000 Pentium IV, 1.4 GHz, 512 MB
RAM, Windows XP OS
In this stage, we check and only select out candidates
Image Camera Light Number
that have height and width ratio satisfied pre-defined
set position condition of
constraint:
imae:es
minWHRatio < W/H < maxWHRatio A Airport check-in 10-12 AM 415
office.
Since there are two main types of Vietnamese plates: 1-
Rotated angles:
row and 2-row (See Fig 2), we have two appropriate
right, left � 30°
constraints for two types.
B Random loca- Morning 390
3.5 < W/1-1 < 4.5 with I-row plate-candidates
tions. or night
0.8 < W/H < 1.4 with 2-row plate-candidates
Rotated angles: (with flash
The candidates that satisfied one of two above con­ °
right, left � 30 light)
straints are selected and passed to the next evaluation. or straight

3.2.2.2. E!'GIl/ale by using horizontal crosscuts Table 2. Image sets were used in tests

In this stage, we use two horizontal cuts and count the Evaluating was taken on the two image sets above and
number of objects that are cut by these crosscuts. A can­ sh owed th e fill
o owmg
' resu Its:
didate will be considered as a plate if the number of cut Imae:e set A B A+B
objects in a range that was practical given (see examples Number of imall,es 415 390 80S
in Table I). This number must be in the approximate Corrects 412 383 795
range of the number of characters in a VLP, we have Errors 3 7 10
two appropriate constraints for two types of Vietnamese
Correct accuracy 99.27% 98.2% 98.76%
plates:
Error accuracy 0.73% 1.8% 1.24%
4:::; N:::; 8 with I-row plate-candidates
Avg speed to proc- 0.65s 0.655 0.655
7:::; N :::; 16 with 2-row plate-candidates ess one image
With N is the number of cut-objects. Table 3. Test results

The candidates that satisfied one of two above con­ In the evaluation, the algorithm were proved to be suc­
straints are selected as the final result cessful on a number of difficult cases with bad quality
Plate-candidates Number Result plates (Fig 7), or multiple plates in the same image, or
of objects different types of vehicles such as motorbike plates, car
. ....-.-,.
.- 2 Non-plate plates or truck plates (Fig 8).
-:..-= :-;"�

.. ., 2 Non-plate

:�
,.
10 Plate
�M439%=
4 Plate
-5rf-
-1atJ--
Table 1. A sample of using horizontal cu ts to evaluate Fig 7. A successful case
plate-candidates with a bad quality plate

In our work, we implemented two hoziontal cuts at 1/3


and 2/3 of plate-candidate's height. The average of

748
Proceedings of 2004 International Symposium on Intelligent Multimedia, Video and Speech Processing October 20-22,2004 Hong Kong

evaluate plate-cadidates.We believe these will improve


the accuracy and the speed of the algorithm furthermore.

5. REFERENCES

[I] Jun-Wei Hsieh, Shih-Hao Yu, Yung-Sheng Chen,


Fig 8. A successful case "Morphology-based License Plate Detection from
with motorbikes' plates Complex Scenes", 16th International Conference on
Pattern Recognition (ICPR'02) Vol 3,2002.

[2] Kwang In Kim, Keechul Jung and Jin Hyung Kim,


"Color Texture-based Object Detection: an Applica­
tion to License Plate Localization", Lecture Notes
4. CONCLUSIONS ANI) FUTURE WORK
in Computer Science, pp. 293-309, Sp ri n ger, 2002.
4.1. Conclusions
[3] Kamal, Varsha, and Ganesan, "An Efficient Im­
This algorithm perfomls well on various types of VLP plementation of the Hough Transform for Detecting
images, even on scratched, scaled plate images. How­ Vehicle License Plates Using DSP'S", Proceedings
ever, it still has a few errors w he n deal ing with bad of Real-Time Technology and Appl icalions, p 58 -

quality plates. If we used the more modem camer a, the 59, 1995.
results would be be tter and we could reduce many errors
[4] Yasuharu Yanamura, Ma sah ir o Goto, Daisuke Ni­
of bad plates. For example, by using an infrared camera,
s hiyama , "Extraction and Tracking of the License
we can obtain high quality images of pl at es which are
Plate Using Hough Transform and Voted Block
not clearly seen due to mud or dust.
Ma tc hin g", IEEE IV2003 Intelligent Vehicles Sym­
In summary, the combination of Hough transform and p osi um Conference, 2003.
contour algorithm produces the higher accuracy and
[5] A. Rahman, Ahmad Radmanesh, "A Real Time
faster speed for VLP detection. This made the approach
Vehicle's License Plate Recognition", P rocee di n gs
practical for real time systems. In practice, we use this
of the IEEE on Advanced Video and Signal Based
algorithm in our automatic VLPs recog ni ti on system.
Surveillance, AVSS'OJ, 2003.
4.2. Future work
[6] K. Kanayama, Y. Fujikawa, K.Fujimoto, and
We are working on a number of algorithms in the M.Horino, "Development of Vehicle-License Num­
preprocessing module. The purpose is to detect regions ber Recognition System Using Real-Time Image
that are likely plate regions first and thus to reduce the Processing and Its Application to Tracal-time meas­
computation cost of the VLP detection algorithm. In urement", In Proceedings of IEEE Vehicular Tech­
addition, we intend to combine a number of texture· nology Conference, p 798-804, 1991.
based approachs, and machine learning methods to

750

Das könnte Ihnen auch gefallen