threshold
_acc thr
and larger than all of their
immediate neighbours. These candidate centers are
sorted in descending order of their accumulator
values, so that the centers with the most supporting
pixels appear first. For each center, all of the
nonzero pixels are considered. These pixels are
sorted according to their distance from the center.
Working out from the smallest distances to the
maximum radius, a single radius is selected that is
best supported by the nonzero pixels according to
the threshold
_Rthr
. A center is kept if it has
sufficient support from the nonzero pixels in the
edge image and if it is a sufficient distance from and
previously selected center. (Bradski, 2008).
So we can see Hough gradient method can be
decomposed the circle finding problem into two
stages. First stage is to find candidate centers and
second stage is to find satisfied radius of circle. A
two dimensional array is required to accumulate
votes along the normal of each edge point. To
identify the radius of circles, the distance of each
point from a candidate centre is calculated and a
radius histogram is produced. The storage space
required for the method is quite small, since only a
single 2-D accumulator and a 1-D histogram are
necessary. (Yuen, 2001).
This Hough gradient method run much faster
and, more importantly, helps overcome the problem
of the otherwise sparse population of a three
dimensional accumulator. (Bradski, 2008).
2.3 Post-processing
After above step, some image regions satisfied HCT
are decided as head candidates. While with the
interference from background and clothing, some
candidates are not related with person head.
Although edge subtraction of background is
taken in pre-processing step, some circles at
background are also detected after HCT process. So
our post-processing should remove candidate circles
according to foreground image firstly.
For elevator application, pose of head are usually
various in images. Sometime we can see back, side
or front of head. So the color of head is usually
different according to the pose of head. While
without regard to wearing hat, the color distribution
of head can be clustered. In this paper, we use GMM
to get the color clusters around the center of head in
marked images. To reduce the illumination
interference, we transform the image from RGB
color space to HSV color space. Here, H (hue) and S
(saturation) values are used to color cluster.
In post-processing, we check the color feature of
the region beside candidate center to decide whether
this circle can be maintained. After this process,
some candidates with different color feature as head
can be removed.
3 EXPERIMENTAL RESULTS
To compare our approach, we also realize another
method based on Adaboost classifier (Viola, 2001).
The train data come from videos captured in lift car.
We use 783 images with 1788 head-shoulders as
positive samples and 8000 images without person as
negative samples collected from Corel Image
Gallery. All manually marker samples are
normalized to the size of 20×20 pixels. We train one
classifier with 16 stages of cascade. Some detect
results from this method are shown in figure2. The
red rectangles are the results after head-shoulder
detection based on Adaboost classifier. We can see
that some false detections on body and background,
while many head regions are missing in the second
image in crowed situation.
Figure 2: Some results based on Adaboost.
We also test our approach to detect head contour
in elevator surveillance video. Some results are
shown in figure 3. Figure 3(a) is the result only
using HCT method. The green points are the centers
of circle and the red circles are the corresponding
head candidates. Many head candidates are false
alarms in this image, some come from regions on
background and some located on body part, which
have different color feature compare with usual head
color. So we adopt pre-processing and post-
processing to modify this condition.
Figure 3(b) is the edge image of adaptive
background image after Canny edge detection. Edge
image of current image is also obtained. Then
subtraction is performed to get the edge of
foreground as figure 3(c) shows, which reduce some
interference edge points at background. Finally,
figure 3(d) shows the result using our method. With
pre-processing and post-processing, some false
detection on background and body are removed.
Figure 4 shows another result based on our approach
DETECTING PERSONS USING HOUGH CIRCLE TRANSFORM IN SURVEILLANCE VIDEO
269