x16 Vehicle Detection Based Bakground Subtraction
x16 Vehicle Detection Based Bakground Subtraction
Abstract—A vehicle detection algorithm based on three-frame effective and practical background model and the method to
differencing and background subtraction is presented in this update is the focus of research methods.
paper. Firstly, improved GMM is for background subtraction, According to the shortcomings of frame differencing
then the moving object region is gained using background method and background subtraction method, this paper uses
subtraction, and then the background subtraction is combined improved GMM to get background frame, then uses
with three-frame differencing to detect the motion information. background subtraction method to extract the moving object,
The simulation results show that the proposed algorithm runs again with improved frame differencing algorithm that is
veraciously and can lower the false detection rate, and fits for three-frame differencing are combined to form a new simple
real time detection.
and effective method for the detection of moving target.
Keywords-Three-frame Differencing; Background II. MOTION DETECTION ALGORITHM BASED ON THREE
subtraction; Motion detection
FRAME DIFFERENCING AND BACKGROUND SUBTRACTION
;
background model updating rate directly influence the model
;
.
S (2.2) capacity of adaptation to environment. From (2.7)-(2.9)
W
L
L W W L W L W found that μt and σt2 is the same update factor ρ. But proved
Among them, the K for GMM in the number of Gaussian by the experiment, actually mean value and variance to the
distribution, generally take 3 to 5; ωi,t represents the estimate last of the discriminant influence is different. Mean value
of weight coefficient in the i Gaussian distribution; μ i,t influences the sensitivity of detection, and variance
represents mean value covariance matrix and Σi,t represents significantly influence model on adapted speed, so mean
vector covariance matrix; η represents Gaussian distribution value and variance use the same update factor is not
probability density function. reasonable. In order to solve this problem, mean value and
variance with a different update factor ρ1 and ρ2, like the
0 (2.3) expression given by equation (2.10) and (2.11) [4, 5].
N W N W N W
;
; W W 7
; W
(2.4)
W
W
;
W
(2.10)
H W
; W
W Q 7
(2.11)
W ;
W W W W
Among them, ρ1 and ρ2 is a constant and is concentrated
N ,
N W
(2.5) on the [0, 1] interval, in addition ρ1 > ρ2. ρ1 is larger in order
Each pixel will be made up of the K Gaussian to improve the detection sensitivity, ρ2 is smaller in order to
distribution according to the weights from big to small reduce the extent of model, and don’t adapt the target into
sorting, then most likely to describe the process of stable the background.
background Gaussian distribution will be located at the top C. Background Subtraction
of the sequence, and transient disturbance by background
After get the background image Bi(x, y), with the current
from the distribution will sliding into the bottom sequence,
frame Ii and background Bi(x, y) differencing, when the
and finally by the new assignment of the Gaussian
pixel grayscale value d of the difference image DBi is greater
distribution replaced. So, choose the front B Gaussian
than the threshold T, the detection is judged as the moving
distribution as background pixel model, like the expression
targets, like the expression given by equation (2.12) and
given by equation (2.6).
(2.13) [8, 9].
, [ \ % [ \
E
% DUJ PLQ N 7 (2.6)
G (2.12)
E
N L
2) Background Model Update G 7
To each frame image, compared with the pixels of each '% [ \
L
G 7
(2.13)
Gaussian model, if meet | Xt-μt-1 |≤2.5 σt-1, it is said the pixel
matches background model and belongs to the background; Among them, Ii(x, y) represents current frame pixel
otherwise the pixel belongs to foreground [3]. grayscale value, B(x, y) represents background frame pixel
For not match the Gaussian distribution, not to update, grayscale value, d represents the difference image DBi pixel
for matching of the Gaussian distribution, according to the grayscale value, and DBi(x, y) represents the binary image
equations (2.7)-(2.9) to update the mean value and the pixel grayscale value, T set for the threshold.
variance of the model, ρ as the update factor, α as learning D. Three -frame Differencing
rate.
In the process of image processing, frame differencing is
; W
(2.7) calculated difference of two adjacent frames Ii(x, y) and Ii +
W W
; W W ;
1(x, y) to get moving region, through the difference image
W
7
W W
(2.8) can rapidly detect the range of movement caused by moving
W
149
objects in adjacent images, but it's moving object extraction
bigger than the actual, and often has "double" phenomenon,
in addition, because of the detected object is two frames
before and after relative parts, can't detect overlap, lead to
detect target has "empty" phenomenon. And three frame
differencing is improved on the basis of the frame
differencing, it takes the three adjacent images as a group
frame and differences again up to detect the shape of the
moving object contour of the intermediate frame better [10].
Set image sequence as: Ii(x, y), Select three consecutive
frames image Ii-1(x, y), Ii(x, y), Ii+1(x, y) in image sequences,
and respectively calculate the difference value image
between two frames image, like the expression given by
equation (2.14).
G L L [ \ , L [ \ , L [ \
(2.14)
G L L
[ \ , L [ \ ,L [ \ Figure 1. From left to right: source image, background subtraction, three-
frame differencing, the proposed method.
Through select proper threshold to get the binary image
according to equation (2.15). From the experiment results can be seen, with the traffic
G L L [ \ 7
monitoring video influenced by the change of light, resulting
E [ \
in background subtraction method extracted moving targets
L L
G L L [ \ 7 (2.15)
more noise, and vehicle outline is incomplete; And the
detection with “double” phenomenon is relatively obvious in
G L L [ \ 7
E L L [ \
three-frame differencing; This paper combines two kinds of
G L L [ \ 7 methods, can avoid light effect, and eliminate the “double”
phenomenon, obtain more accurate and complete test results.
With binary image use logic "or" operation for each pixel This paper also contrasts three kinds of methods on the
(x, y) getting other binary image Li(x, y) according to processing time and detection accuracy and mistake
equation (2.16). detection rate. Table 1 to Table 4 details the obtained results.
E [ \ E L [ \ (2.16)
/ [ \
L L L
L
EL L
[ \ E L L
[ \ TABLE I. THREE METHODS OF PROCESSING TIME CONTRAST
(UNIT:S)
Necessary treatment is taken on binary image Li(x, y) to Time needed
remove the noise point of the images and the hole of targets, Algorithm 33s test 58s test 130s test
this can through the morphological filtering on to achieve, video video video
such as open and close operations. Background subtraction 64 90 250
E. Moving targets detection Three-frame differencing 45 79 189
Three-frame differencing adapts effectively to the change The proposed method 65 99 290
of environment light, overcomes the shortcoming of
background subtraction; and background subtraction does
not exist "double" and "holes" phenomenon, can make up the TABLE II. GMM BACKGROUND SUBTRACTION EXPERIMENTAL
defects of three-frame differencing. So, with background RESULTS
'% L [ \ /L [ \
Video 3 97 88 9 4 3% 90.7%
150
Statistical results same time can overcome light change to the influence of
Video
sequences Traffic Correct
Omission
Fall- Fallout Accuracy background subtraction and eliminate three-frame
volume detection out ratio ratio differencing bringing “double” phenomenon, anti-jamming
Video 1 10 10 0 1 10% 100% is strong, can get moving targets more complete regions, and
Video 2 49 46 3 5 10% 93.8% then identify moving objects from video series. The
experimental results show that this method is accurate and
Video 3 97 92 5 9 9.2% 94.8% rapid, and mistake detection rate is low, and has broad
Video 4 138 130 8 13 9.4% 94.2% application. Be used in such as neighborhood monitoring,
traffic monitoring, and so on. That can reduce manpower and
material resources, and get a good economic benefit.
TABLE IV. THE PROPOSED METHOD EXPERIMENTAL RESULTS
REFERENCES
Statistical results
Video [1] Tang Z, Miao Z J. Fast background subtraction and shadow
sequences Traffic Correct Fall- Fallout Accuracy
Omission elimination using Improved Gaussian mixture model[C]. IEEE
volume detection out ratio ratio
International Workshop on Haptic, Audio and Visual Environments
Video 1 10 10 0 0 0 100% and Games, 2007: 38-41.
Video 2 49 47 2 1 2% 95.9% [2] Ueng S K, Cheng H P, Lu R Y. An adaptive gauss filtering method
visualization symposium[J]. IEEE, 2008, (3): 127-134.
Video 3 97 94 3 2 2% 96.9%
[3] Gutehess D, Trajkovies M, Cohen Solal E. A background model
Video 4 138 133 5 4 2.8% 96.3% initialization algorithm for video surveillance, Computer Vision[C].
Proceedings, Eighth IEEE International Conference, 2001, 11(1):
733-740.
[4] Lipton A, Fujiyoshi H, Patil R. Moving target classification and
From the time, the proposed method is the longest for the tracking from real-time video[C]. IEEE Workshop on Applications of
combination of the two algorithms, but within the acceptable Computer Vision, Princeton: IEEE Press, 1998: 8-14.
range, and meets the real-time. From fallout ratio and [5] Valera M, Velastin S.A.Intelligent distributed surveillance systems[J].
IEEE Proc. Vision Image Signal Process, 2005, 152(2):192-204.
accuracy ratio, GMM background subtraction affected by
environmental impact is bigger, so its accuracy ratio is 90%, [6] Arseneau S, Cooperstock J. Real-time image segmentation for action
recognition [C]. Proc IEEE Pacific Rim Conference on
and three-frame differencing has higher accuracy ratio at Communications. Computers and Signal Processing, Canada: Victoria,
94%, otherwise fallout ratio of three-frame differencing is 1999: 86-89.
10% because of “double” phenomenon, and the proposed [7] Barron J, Fleet D, Beauchemin S. Performance of optical flow
method improved obviously at fallout ratio and accuracy techniques[J]. International Computer Vision, 1994, 12(1):42-77
ratio, by fallout ratio decreasing below 3% and accuracy [8] X.H.Zhou, B.Liu, and H.Q.Zhou. A motion detection method based
ratio also improving to more than 95%. on symmetrical differencing and background subtraciton[J]. The
computer simulation, 2005, 4: 117-120.
IV. SUMMARY [9] H.Wen, T.Hong. Based on background subtraction and symmetrical
difference target detection[J]. Micro computer information, 2007,9(1):
The innovation point of this paper is put forward a 99-101.
moving object detection algorithm which is based on three- [10] G.L.lv, S.G.Zhao, J.Zhao. A new method for motion detection based
frame differencing and background subtraction. This method on three-frame differencing and connectivity testing of target
can be applied to complex environment, allow the presence image[J]. LCD and Display, 2007, 22(1): 87-93.
of moving objects when background modeling, and at the
151