Title: An Adaptive Windowing Prediction Algorithm for Vehicle Speed Estimation
1An Adaptive Windowing Prediction Algorithm for
Vehicle Speed Estimation
- Tun-Wen Pai and Wen-Jung Juang
- Dept. of CS, National Taiwan Ocean University,
Taiwan - Lee-Lyi Wang
- Dept. of EE, Tung-Nan Institute of
Technology,Taiwan
2Outlines
- Motivation
- System Configuration and Assumptions
- System Algorithms
- Modules in Phase I
- Modules in Phase II
- Simulation Results and Conclusions
- Future Works
3Motivation
4Motivation
5Motivation
6Basic Assumptions
- 1.The speed is finite and its value is
nonnegative. - 2.The speed and direction cannot change suddenly.
- 3.Drive in the permitted direction on the road.
- 4.The size is realized from a know distribution
- 5.The height of CCD and the distance between the
CCD and Base line on screen is known.
7System Configuration
8Modules in Phase I
- To acquire video image sequences
- From road-side CCTV
- 320X240 pixels
- Fifteen frames per second
- Perform CCD noise margin calibration
- Tolerant parameter em
9Modules in Phase I (cont.)
- Moving Object Detection
- gi (x,y) fi (x,y)-fi-1 (x,y) ?em AND
- fi1 (x,y)-fi (x,y) ?em
10Moving Object Detection Example ( i-1th frame
fi-1 )
11Moving Object Detection Example ( ith frame fi )
12Moving Object Detection Example ( i1th frame
fi1 )
13Moving Object Detection Example ( gi )
14Morphological operations
- Dilation
- Erosion
- Structuring Element 3x5 square element
n
15Morphological example
16BCC and Region Growing
- Block size more then 5x5 we see it as seed
- Region growing criteria
- 1. different not more then 2(em )
- 2. pixel add to region at least one of his
8-neighboring pixel previously included in the
region. - Bounding Box size larger than 5x5 we see it as
candidate vehicle objects.
17BCC and Region Growing Example
18BCC and Region Growing Example(cont.)
19Modules in Phase II
- AWP Block Matching
- Inverse Perspective Transformation
- Statistical Analysis
20Adaptive Windowing Prediction (AWP)
- Block Matching Algorithm (BMA)
- Mean Absolute Difference (MAD)
- Uni-direction problem
- Uni-model error surface
21Uni-model error surface
22AWP algorithm
23AWP algorithm (cont.)
24AWP algorithm summarized
- 1.Use full search found initial moving distance
- 2.MAD for predefined adaptive checking point set
- 3.Find a temporary minimal MAD point
- 4.Checking the 4-neighbor , if all MAD measured
then stop, else calculate un-measured neighbors - 5.If new MAD value greater then old MAD then stop
- else replace the temporary minimal MAD point
- 6.Go to step3,until AWP found minimal MAD or
until moving object vanished from screen - 7.Use look-up table to obtain speed, and provide
pixel distance to next coming frame
25Full Search BMA Initial Moving Distance
Adaptive Checking Point set MAD(V)
Temporary Minimal MAD p(i,j)min(MAD(q))q V
4-neighboring points MAD measurement
No
Minimal MAD ?
Yes
Measuring Moving Distance
Look-up Table
Next coming frame
26Partial Look-up table
Distance
Position
27Inverse Perspective Transformation
28Inverse Perspective Transformation (cont.)
29Statistical Analysis
- Obtain a set of sequential speed data for each
observed vehicle,we can get a mean speed for each
time slot. - So we can obtain it form www or wap
30Simulation Examples
- The mean value of tolerant margin for CCD is
2.45(with gray-level scale0,255) - There are vehicle objects detected from frame
number 450 to 600 - The average speed is about 30km/hr
- Only 8.6 of the computations(in terms of check
points) are required in AWP algorithm with
respect to the Full Search algorithm
31Examples
Original Video
Detected Vehicles
32Future Work
- Difference Weather Condition
- Size distribution
- CCD height and base line distance
- Morphological structure element