Beruflich Dokumente
Kultur Dokumente
= (x
, y
) , :
]
= (x
]
, y
]
) , :
k
=
(x
k
, y
k
) are concyclic, the midperpendicular equations are
given by
_
y -
i
+
]
2
= k
]
(x -
x
i
+x
]
2
)
y -
]
+
k
2
= k
]k
(x -
x
]
+x
k
2
)
, (3)
Figure 2. Properties of circle chord
where k
]
=
x
i
-x
]
]
-
i
, k
]k
=
x
]
-x
k
k
-
]
. In case when k
]
= k
]k
or
y
]
= y
or y
k
= y
]
, we need to resample three points and
repeat the procedure.
From (3) we can obtain center (o
]k
, b
]k
) , radius
r
]k
= (x
- o
]k
)
2
+(y
- b
]k
)
2
, and the distance from a
fourth point :
I
= (x
I
, y
I
) to circle C
]k
is J
I-]k
=
|(x
I
- o
]k
)
2
+(y
I
-b
]k
)
2
- r
]k
|.
Ideally, if the four sampled points are on the same circle,
the distances of the four points to the circular contour are zero.
Taking into account the quantization error of the digital image,
one can set a threshold I
d
e (1,S). If any of J
-]kI
, J
]-kI
,
J
k-]I
, J
I-]k
is less than I
d
, then the circle is treated a
candidate circle.
After finding a candidate circle C, initialize a counter
count. Calculate distance J
p-C
, p e V from every point p
that belongs to the point set V of the edge image to C. If
J
p-C
< I
d
, then count = count + 1.
A circle completeness threshold I
e (u.2,u.8) is set. If
count > 2r
]k
I
u
k
u
]
u
C
]k
u
I
u
k
u
I
u
]
u
557
Similarly, we have
P
B
= _
N
2
N
i
4
i=1
]
4
, P
C
= _
N
3
N
i
4
i=1
]
4
. (S)
Then the effective probability for a valid sample of four points
is
P = P
A
+ P
B
+ P
C
=
N
i
4 4
i=1
( N
i
4
i=1
)
4
. (6)
Assume that the numbers of the points on the three circles
are the same as that of noisy points, that is, N
1
= N
2
= N
3
=
N. Then we can get P = (14)
3
. If there are S circles in an
image, the effective probability is P = 1(S +1)
3
. Thus the
minimum number of samples for testing a candidate circle can
be set as 1P. If there are n effective samples on the same
circle, then there are 4n points concyclic; when n 2, the
possibility of this candidate being a true circle is very large.
We can select the minimum number of samples for verifying
the true circle K = 2S(2S - 1)|S(
2
1
)P] = (S +1)
3
(2S - 1) when n = 2. For the actual detection process,
according to the level of noise, the number of samples can be
empirically set as 2K~8K such that a circle can be
successfully detected.
III. IMPROVED RANDOMIZED CIRCLE DETECTION
METHOD
RCD method generates good results when detecting
circular contours under noise. However, the detection speed
and precision reduce in case of deformation, incompleteness of
circles, and too much noise. We improve the algorithm by the
sampling constraint condition and the setting of the distance
ratio threshold.
A. RCD Using Distance Constraint
The probability analysis given above shows that the
probability of invalid sampling is much greater than that of
valid sampling. The accumulation of invalid sample group
means that the calculations of the circle parameters and the
evidence accumulation of candidate circles are increased, thus
reducing the probability of invalid sampling can increase the
detection speed.
We propose a simple idea of sampling distance constraint:
while the sampling probability is uniformly random, the point
distribution in the edge image is not uniform. Points on a circle
are concentrated in a particular region. Assume that we first
sample one point on the circle and then randomly sample three
points. If the distances of the three points to the first point are
less than the threshold I
dmax
(ideally set the maximum
diameter of the circle r
max
), calculate for these four points;
Otherwise, do not calculate for the four points. This effectively
reduces the number of testing of the candidate circles when the
distances from the three points to the first point are greater
than this threshold. Through a priori knowledge of the actual
detection process, this area constraint is easy to implement. We
(a) Coin (b) Planet (c) Gobang (d) Cake
Figure 3. Images for benchmarking
TABLE I. RCD METHOD. THOSE RESULTS UNDERLINED ARE FOR RCD
METHOD WITH DISTANCE CONSTRAINTS
Coin Planet Gobang Cake
N
P
22,404 7,793 13,254 8,874
9,374 2,492 9,118 4,847
N
c
1,093 925 726 529
304 282 339 187
can set I
dmax
= ]1,
1
2
,
1
4
,
1
8
min(rows, columns) according
to the size of an actual circle in the image, and the image size
is rowscolumns. For detection of traffic signs, the size of
circular traffic signs is related to the angle and distance of the
camera, and we can set I
dmax
=
1
4
min(rows, columns).
When the circle diameter is known, it can be set as the
maximum threshold.
The distance constraint-based method randomly selects
four points, points 1 to 4, on the circle. If the distances to point
1 satisfy J
-1
< I
dmax
, i = 2,S,4, the point set is valid, and
continue to determine the candidate circle; Otherwise, the
point group is invalid, and next sampling is needed.
We use four images of size 282282, as shown in Fig. 3,
as the test images. The CPU frequency is 1.66 GHz. Table 1
gives the number N
P
of calculations of circle parameters
required for successfully detecting all circles using the RCD
method and the number N
C
of candidate circles required for
the fourth point being on the circle determined by the first
three points. Table 1 also gives the results using the RCD
method with the distance constraint. As seen from Table 1, the
number of calculations of the circle parameters and the number
of candidate circles is significantly reduced when using RCD
with the distance constraints.
B. Analysis of RCD Parameter Settings
Use the distance threshold I
d
and the circle completeness
threshold I
1uu%, (7)
where r is the radius of the candidate circle, and r is the
radius deviation. When 0
2
o
2
+ b
2
[r +
2
_, (8)
where (o, b) is the center of the candidate circle. As long as a
point in the edge image is within this ring, the point is treated
as a valid point; thus improving the probability of being on the
ring. Before detection, set 0
, u
]
, u
k
, u
I
;
if J
-]
, J
]-k
, J
k-I
and J
I-
> I
dmIn
then
if J
-]
, J
]-k
and J
k-
< I
dmax
then
calculate center (o
]k
, b
]k
), radius r
]k
of circle C
]k
by (3);
create ring L:
_L_ [r
]k
-
2
o
]k
2
+ b
]k
2
[r
]k
+
2
_;
if u
I
is on circle C
]k
, then
accumulate the count of edge points in ring L;
if count 2nr
]k
I
then
circle C
]k
is real circle;
remove the points on circle from |V|;
- u;
else
- +1;
end
else
- + 1;
end
else
- +1;
end
else
- + 1;
end
end
Improved randomized circle detection (IRCD) algorithm
is described as Algorithm 1.
In IRCD algorithm, is a sample counter, F is the
maximum number of samples allowed for detecting a circle,
|V| is the size of the set of remaining edge points, N
mIn
is
the minimum number of edge points required for determining
whether an assuming circle is a true one, I
dmax
and I
dmIn
are, respectively, the maximum and minimum distances
allowed between two points, and I
, S
= 11u.
560
(a) RGB image (b) Extraction of red /blue regions (c) After median filtering
(d) Edge detection (e) Result
Figure 7. An illustration example.
The sample number required for detecting a circle is SK,
with K = S77S for a maximum of six circles. As the edge
points are within small regions, the number of remaining
points can be set to N
mIn
=100. If the point set size is smaller
than N
mIn
, terminate the detection process.
For positioning circular traffic signs, an image is first
converted from RGB to HSV space, and then median filtering
and edge extraction are subsequently applied. Circle detection
is performed to locate circular traffic signs. Figure 7 gives an
illustration example of the procedure.
C. Analysis of Positioning Experiments of Circular Traffic
Signs
We experiment the proposed algorithm on a number of
real images with circular traffic signs. The image size is
1280960.
Figure 8 shows some experimental results, wherein
circular traffic signs are marked with blue circles. The
results are for dark light (Fig. 8a), strong light (Fig. 8b), and
slightly deformed circular signs (Fig. 8f), respectively. The
experiments use MATLAB and a CPU with a clock of 1.66
GHz. The total positioning time for each image is 4 to 5 s.
The proposed method is used for images in complex
natural background, where circular traffic signs scale to
different size, and for image with geometrically deformed
traffic signs. It can accurately locate the traffic sign regions,
as shown in Fig. 8. The method also achieves robustness to
illumination.
V. CONCLUSIONS
Real-time accurate positioning of traffic signs is the premise
for correctly recognizing them. By combining color
segmentation and shape detection, we propose a positioning
method for circular traffic signs. We improve RCD method
by constraining sampling conditions and setting thresholds,
yielding IRCD method. Positioning of circular traffic signs
is implemented in three steps: (1) Perform color
(a) (b) (c)
(d) (e) (f)
Figure 8. Detection results for circular traffic signs
segmentation in HSV space, and extract the regions of
interest; (2) Apply median filtering on the image of extracted
regions, and then perform edge detection through Sobel
operator; (3) Apply IRCD method for circle detection in the
edge image. The experimental results indicate the
effectiveness and adaptability of the method for positioning
circular traffic signs in natural scenes under different
lighting conditions, variations in size and color, as well as
with geometric distortion due to the view angle.
REFERENCES
[1] A. de la Escalera and J. M. Armingol. Visual sign information
extraction and identification by deformable models. IEEE Transactions
on Intelligent Transportation Systems, 5:2 (2004), 57-68.
[2] B. Cyganek. Colour Image Segmentation with Support Vector Machines
for Road Sign Recognition. Technical Report, AGH-University of
Science and Technology, 2007.
[3] X. Shen, J. Zhang, S. Yu, L. Meng, and K.-L. Du. An improved
sampling strategy for randomized Hough transform based line detection.
In: Proc. IEEE International Conference on Systerms and Informatics
(ICSAI), Yantai, China, 2012, 1874-1877.
[4] M. A. Garca-Garrido, M. A. Sotelo, and E. Martn-Gorostiza. Fast road
sign detection using Hough transform for assisted driving of road
vehicles. In: Lecture Notes in Computer Science 3643, Springer, Berlin,
2005, 543-548.
[5] L. Xu and E. Oja. Randomized Hough transform (RHT): Basic
mechanisms, algorithms, and computational complexities. CVGIP:
Image Understanding, 57 (1993), 131-154.
[6] T. C. Chen and K. L. Chung. An efcient randomized algorithm for
detecting circles. Computer Vision and Image Understanding, 83:2
(2001), 172-191.
[7] K. L. Chung, Y. H. Huang, S. M. Shen, A. S. Krylov, D. V. Yuriny, and
E. V. Semeikina. Efcient sampling strategy and renement strategy for
randomized circle detection. Pattern Recognition, 45 (2012), 252-263.
[8] A. Broggi, P. Cerri, P. Medici, and P. Paolo. Real time road signs
recognition. In: Proc. IEEE Intelligent Vehicles Symposium, Istanbul,
Turkey, 2007, 981-985.
[9] J. L. Yang, and H. X. Liu. GB 5768-1999, Road Traffic Signs and
Markings. China Standards Press, 2000.
[10] L. Li and G. Ma. Detection and classification of traffic signs in natural
environments. Journal of Harbin Institute of Technology, 41:11 (2009),
pp. 682-687.