Motion Detection
Goals of motion detection Identify moving objects Detection of unusual activity patterns Computing trajectories of moving objects
Applications of motion detection Indoor/outdoor security Real time crime detection Traffic monitoring Many intelligent video analysis systems are based on motion detection.
3
Change detection
Detect objects within a scene Track object across a number of frames
4
Background Subtraction
Uses a reference background image for comparison purposes. Current image (containing target object) is compared to reference image pixel by pixel. Places where there are differences are detected and classified as moving objects.
Motivation: simple difference of two images shows moving objects
5
a. Original scene
Background Model
10
Statistical Methods (e.g., Gaussian Mixture Model, Stauffer and Grimson 2000)
Background Subtraction: 1. Construct a background image B as average of few images 2. For each actual frame I, classify individual pixels as foreground if |B-I| > T (threshold) 3. Clean noisy pixels
11
12
Background Subtraction
Background Image
Current Image
13
Statistical Methods
Pixel statistics: average and standard deviation of color and gray level values
(e.g., W4 by Haritaoglu, Harwood, and Davis 2000)
15
200
200
150
150
B
100 50
100
50
50
100 R
150
200
250
16
R-G Distribution
R-G-B Distribution
VIDEO
17
In our system we divide video plane in disjoint blocks (4x4 pixels), and compute motion measure for each block.
8x8 Blocks
20
21
22
10 principal components
-0.5221 -0.0624 -0.1734 -0.2221 -0.2621 -0.4739 -0.4201 -0.4224 -0.0734 -0.1386 23
Texture of spatiotemporal blocks works better than color pixel values More robust Faster
499
624
863
1477
25
PCA 3
-1 -2 -3 -4 2 -5 0 -6 4 2 0 -2
-2
PCA 2
-4
-6
PCA 1
26
3 2 1 0
RGB-PCA 3
499
PCA 3
-1 -2 -3 -4 2 -5 0 -6 4 2 0 -2
0 -2
-4 5
RGB-PCA 2-5
-10 -2 -1 0 1 2 3 4
-2
PCA 2
-4
-6
PCA 1
RGB-PCA 1
Standardized PCA components of RGB pixel values at pixel location (185,217) that is inside of block (24,28).
27
28
Feature vectors
4.2000 4.1000 3.9000 4.0000 4.1000 4.2000 4.3000 3.5000 3.7000 3.9000 4.0000 3.9000 3.8000 3.7000 2.6000 2.8000 2.9000 3.0000 2.8000 2.7000 2.6500
2.8
2.7
2.6
2.5
2.4 3.5 3.6 3.7 3.8 3.9 4 4.5 4.4 4.3 4.2 4.1 4
Current time
Covariance matrix
0.0089 -0.0120 -0.0096 -0.0120 0.0299 0.0201 -0.0096 0.0201 0.0157
3.9
3.8
Feature vectors
4.3000 4.4191 4.1798 4.2980 4.2843 4.1396 4.3257 3.7000 3.5944 3.8415 3.6195 3.7529 3.7219 3.6078 2.6500 2.4329 2.6441 2.5489 2.7114 2.7008 2.8192
2.9
2.8
2.7
2.6
2.5
Covariance matrix
Current time
4.5 4.4 4.3 4.2 4.1 4 3.9 3.8
Motion Measure
Eigenvalues
0.0209 0.0093 0.0020
30
31
1000
1000
800
800
600
600
400
400
200
200
100
200
300 Frames
400
500
600
100
200
300 Frames
400
500
600
Motion Measure
Detected Motion
32
f (t ) mean (t 1) C1 std (t 1)
Detect Outlier
(2)
f (t ) mean(t 1) C2 std (t 1)
(3)
mean(t ) u mean(t 1) (1 u) f (t )
std (t ) 2 (t )
Update the estimates of mean and standard deviation only when the outliers are not detected
(4)
(5)
2 (t ) u 2 (t 1) (1 u ) ( f (t ) mean (t 1)) 2
33