http://www.jcupt.com
Abstract
Related algorithms of traffic video incidents detection are discussed systematically in this paper. All kinds of technologies in
the disposal process of video incidents detection also have been analyzed and investigated. Based on the widely research on the
theory of video processing arithmetic both at home and abroad, this paper put up a new algorithm of traffic video incidents
detection which has a good applicability under the condition of highway traffic. At the same time, this paper also provides a
whole solution for traffic video incidents detection in the highway environment. Experimental results show that the correct rate of
incidents detection can reach more than 95% during the day and 90% at night.
Keywords
intelligent traffic, video incidents detection, background extraction, moving object recognition
Introduction
80
2 System implementation
2.1 Pre-processing images
In order to reduce the noise of the images, we need to do
the image filtering to improve the quality of the images,
which is conducive for image processing. Most of the image
energy is concentrated in the low-frequency and mediumfrequency bands in the amplitude spectrum, while in highfrequency band, interesting information is often overwhelmed
by noise. Therefore, a low-pass filter will be able to weaken
the impact of high-frequency noise. Common low-pass filters
are Gaussian low-pass filters, mean filters. This paper uses
mean filters to reduce high-frequency noise of the images [1].
For each pixel (m, n) in the given image (i, j), take its
neighborhood S. Given S contains M pixels, take the average
as the gray scale of the processed image pixel (m, n). This
paper takes mean filter and uses the average gray scale of
every pixel in the neighborhood instead of the gray scale of
the original pixel.
The shape and the size of S is determined by the
characteristics of the image. Generally, the shape is square,
rectangular, cross and so on. Point (m, n) is usually located in
the center of S. If S is 33 neighborhoods and point (m, n) is
in the center of S, then
1 1 1
f (m, n) = f ( m + i, n + j )
(1)
9 i = 1 j = 1
2010
1 2
, which means the variance of the noise
M
becomes smaller, indicating that the intensity of the noise is
decreasing, that is, the noise is suppressed.
variance a2 =
1
1
1
f (m, n ) =
f (i, j ) =
g (i, j ) + n(i, j )
(2)
M
M
M
From Eq. (2) we can see that after the average of
neighborhood, the mean of the noise doesnt change, the
Fig. 1
Supplement
LIU Xiao-ming, et al. / Research on technology of traffic video incidents detection under highway condition
81
the image Inr, the binary image which is used to update the
background is
1 ; I n I n r > Th
I bin =
0; others
After the binary image Ibin is obtained, the point whose value is
0 in the image Ibin is stationary point, corresponding to the
background is as follows.
I diff = I n I b
We denote I b as the background image, the histogram of
Idiff is shown in Fig. 2. It can be seen from Fig. 2 that, after the
difference method, most of the pixels are in the low pixel area.
As shown in Fig. 2, the related threshold of the difference
between two frames is good to be set within 20. The
following equation is used in the actual calculation.
Th = aI med + (1 a) I max
(4)
where Imed and Imax are the mean pixel and the highest pixel
after the frame difference method respectively. When a=0.8, it
can detect the moving region stably.
(7)
Fig. 2
Fig. 3
82
Fig. 4
Original image
Fig. 5
Front image based on the adaptive updated
background image
2010
Supplement
LIU Xiao-ming, et al. / Research on technology of traffic video incidents detection under highway condition
83
Fig. 6
Conclusions
References
Fig. 7