IEEE International Conference on Information and Communication Technologies (ICICT 05), August 2005 Karachi, Pakistan.

Shadow Based On-Road Vehicle Detection and Verification Using Haar Wavelet Packet Transform Salman Afghani 2 Asad Ali 1 1 GIK Institute of Engineering Sciences and Technology, Topi, Swabi, Pakistan 2 AIR University, PAF Complex, Islamabad, Pakistan Abstract The paper describes a novel approach for an on road vehicle detection system with the view of driving assistance. The presented technique generates the initial hypothesis by detecting the shadows projected by vehicles on the road surface. The results of detection are then verified using the Haar wavelet packet transform. The verification step compares the standard deviations of the best basis vector of the hypothesized vehicle with pre-computed feature vector of similar values for different vehicular structures. Experimental results confirm the validity of the presented approach in different lightening conditions and scenarios. The presented technique is capable of detecting vehicles at twelve frames per sec which makes it ideal for real time pre-crash sensing. 1. Introduction This paper deals with the detection of vehicles from a camera mounted on a vehicle with a view to driving assistance. On road vehicle detection is an active research area in the building of intelligent transportation systems and over the past decade several approaches have been developed for detecting moving objects in indoor and outdoor scenes. The importance of detecting vehicles on the road and guiding drivers in navigation is highlighted by the fact that during the year 2003-2004 the total number of reported accidents on highways in Pakistan were 10,308 of which 4184 were fatal, resulting in 5199 causalities and about 65% of those accidents occurred in day light. A more detailed data on traffic accidents can be found in [4]. In this paper we present a novel approach for pre-crash sensing based on shadow cast by the vehicles on the road surface. The presented technique generates a hypothesis, when some shadow is detected within the road boundaries, about the presence of a potential obstacle i.e vehicle, which is verified by comparing standard deviation of the wavelet packet transform

coefficients at level 2 against a pre-determined coefficient model of vehicles. The transform is applied on a rectangular box just above the detected shadow region, because the actual vehicle lies just above the hypothesized shadow. Shadows are generally divided into two broad classes namely static and dynamic. Static shadows result from static objects such as buildings, trees etc. Where as dynamic shadows which are the subject of interest in this paper are caused by moving objects such as vehicles (cars, buses, trucks etc.) The shadows can take any size and shape depending on the direction of the illumination source. Also the shadows can be Umbra (dark shadows) or penumbra (soft shadows). The focus of our research is outdoor scenes where we have a far away light source (sun) and a diffuse source (sky) contributing to the illumination in the scene. As the illumination can change as the vehicle moves along a terrain so does the shadows, hence we deal with both types of shadows i.e umbra and penumbra in this work. Note that the penumbra or weak shadows exist only when the sky is cloudy or illumination is highly diffuse. 1.1 Wavelet Transform Wavelet transform is a powerful tool for the analysis and synthesis of signals. Localization of signal characteristics in spatial (or time) and frequency domains can be accomplished very efficiently with wavelets. This allows to simultaneously determine sharp transitions in the spectrum of the signal and in the position (or time) of their occurrence. An attractive feature of the Wavelet Transform is its relationship with Sub-band Coding Systems and Filter Banks. Wavelet Theory provides new ideas and in-sights, which certainly enriches the important area of multi-rate filter banks. Wavelet Transform theory can also be coupled with other techniques, like vector quantization or multiscale edges. This leads to powerful compression techniques for non-stationary signals.

IEEE International Conference on Information and Communication Technologies (ICICT 05), August 2005 Karachi, Pakistan.

Figure 1 shows the complete system diagram of the presented algorithm for on Road vehicle detection The fields of statistical signal processing, multiscale model of stochastic processes and analysis and synthesis of 1/f noise have shown interesting results when associated with the wavelet theory. Wavelet Packets, which correspond to arbitrary adaptive tree-structure filter banks is another very promising example. [8] 1.2 Haar Wavelet Packet Transform Wavelet packet transform was preferred over the Wavelet transform because the former considers the high-pass information at each step. And high pass information is nothing but the edges of objects within an image. Also the only way two vehicles with different colors can be classified as same is the structure or edge information. Beside this some of the important properties of haar wavelets are orthogonality, compact support regularity and symmetry. The property of orthogonality is satisfied because the inner products of all of the various translates of the haar wavelets is zero. The regularity property is satisfied because the haar wavelets can reproduce linear functions. 2. Related Approaches Research is being conducted by many around the world to develop robust mechanism for the detection of moving obstacles / vehicles. Motion based methods such as developed by Lefaix et al [2] perform detection based on dominant image motion assumed to be due to camera motion. A 2D quadratic motion model incorporating eight free parameters is used to represent the dominant motion. They have reported good results but the major draw back is that the technique only works for speeds less than 50km/h. Stereo-based approaches developed by Broggi et al [6], [10] take advantage of the Inverse Perspective Mapping (IPM) to estimate the locations of vehicles in images. By taking the IPM of the left and right images is compared,

and objects that are not projected on the ground plane are found. Using this information, the free space in front of the vehicle is determined. The main problem with stereo-based methods is that they are sensitive to the recovered camera parameters. Accurate and robust methods are required to recover these parameters because of vibrations due to vehicle motion. Appearance-based method developed by Sun et al [7] learn the characteristics (Gabor features) of the vehicle class from a set of training images which should capture the variability in vehicle appearance. Usually, the variability of the nonvehicle class is also modeled to improve performance. First, each training image is represented by a set of local or global features. Then, the decision boundary between the vehicle and non-vehicle classes is learned either by training a classifier (e.g., Support vector machine (SVM)) or by modeling the probability distribution of the features in each class. The major disadvantage is that the technique is not capable of handling changes in the lightning conditions along a terrain which is a severe drawback. Physics based method developed by Nadimi et al [1] uses an integrated approach based on sound physical models of illumination and reflectance to detect shadows of objects. Spatio-temporal albedo segmentation is used to segment frame into sub-regions that are verified as shadows or objects based on reflectance model. The disadvantage of this technique is that it requires spectral power distribution of each illuminating source to be constant, need to extend to handle highly specular surfaces. A comparative study of selected works can be found in [1], [3].

IEEE International Conference on Information and Communication Technologies (ICICT 05), August 2005 Karachi, Pakistan. 3. Proposed Technique The algorithm is provided an input stream of images from a camera. The dimensions of each of the extracted video frames are 352 X 288. A step wise approach is described below which explains the vehicle detection algorithm. 3.1 Step 1: Preprocessing As a first step the lower 1/3rd portion of the image after converting into gray scale is raster scanned for acmes above a certain threshold. This helps to determine the lightning conditions of the environment in which the vehicle is being driven as it observers the gradient of white lane markers. If the acmes are found and amount a suitable number, then it can be said that the image has been acquired in good lightning conditions. Otherwise a contrast and a brightness stretch are applied on the 2/3rd portion of the image using the following formulas on the three channels of the RGB color model: X = max (0 , min (M , ∑ ( α + β + γ )))

(1)

where α = ( Channel – β ) x Contrast β = 128 γ = Brightness M = 255 Channel = R , G , B

Figure 2 Shows an image acquired under poor lightning conditions (left image) and after contrast and brightness stretch has been applied(right image). 3.2 Step 2: Segmentation In order to extract shadows projected on the road surface by vehicles we first need to extract road from the video sequences and establish its boundaries so that the search region for finding shadows is minimized. For this purpose segmentation based on region splitting and merging is performed on the lower 2/3rd portion of the incoming stream of images. Segmentation is performed by dividing the image into 2 X 2 blocks and comparing the blue ratio, standard deviation and mean of the individual blocks against similar parameters of eight pre-computed road texture models. The

output obtained from the above step is shown below:

Figure 3 shows the extracted road in gray color. The important point to be noted here is that the segmentation will always fail when some object is encountered on the road region because the computed value of the above mentioned parameters will never match (except the case of similar object texture which is highly unlikely) with the pre-computed road texture model values. 3.3 Step 3: Quad and Blue Ratio Test The regions where the segmentation fails within the road boundaries are extracted by performing a left and right raster scan separately on the segmented image. Before a region can be extracted it must satisfy the property of being quadrilateral and of length greater than 30 pixels. A blue ratio test is performed on the extracted regions which, exploits the observation that shadow pixels falling on neutral surfaces such as asphalt roads tend to be more bluish. This is also true for many gray structures such as concrete buildings, walkways etc. Shadow regions are illuminated by the sky and sky is assumed to be blue and the only source of illumination on shadowed regions. Let pb, pr, pg denote the pixel values in the non shadowed road regions and pB, pR, pG denote the pixel values in the RGB space in the shadowed road region. Then the ratio (pB/pb) is larger than (pR/pr) and (pG/pg).

Figure 4 The region where the segmentation failed within the road region is shown in green. All the pixels that satisfy the said condition are considered to be part of the shadow region, and a

IEEE International Conference on Information and Communication Technologies (ICICT 05), August 2005 Karachi, Pakistan. rectangular box from the base of the shadow to 3 times its height is formed generating the hypothesis about the presence of the vehicle. 3.4 Step 4: Hypothesis Verification Using Haar Wavelet Packet Transform To verify the generated hypothesis Haar wavelet packet transform with decomposition at level two is applied on the rectangular window enclosing the hypothesized vehicle. Lifting scheme [6] for the computation of Haar wavelets is used. The formulas for computing the scaling (low pass) and wavelet (high pass) coefficients are described below:

S n-1, L = (S n, 2L + S n, 2L+1) / 2 D n-1, L = S n, 2L+1 – S n, 2L

3.5 Additional Computed Parameters with the view of Driving Assistance After the presence of vehicle is verified, number of other parameters like Location, relative distance and angle are computed with respect to vehicle in which this system is deployed for all the detected vehicles. A sample from the program is shown below:

(2)

Where S n is the input image i.e signal which has 2n samples and is split into two signals: S n-1, L with 2n-1 averages and Dn-1, L with 2n-1 differences L is the index into the array containing the signal. The formulas are recursively applied to construct a complete wavelet packet binary tree. The next step is to find the best basis vector which is the most desirable representation of the image relative to a particular cost function. So the cost function used for finding the best basis vector is: N −1

Cost threshold =

Euclidean distance is used for computing the difference which when below a certain threshold indicates the presence of vehicle and hence validates the generated hypothesis and results in highlighting of the detected vehicle on the screen by forming a rectangular box around it. The step 1 to step 4 are repeated for every frame of the incoming video stream.

∑ (| s[i] |> t )?1 : 0

(3)

t =0

Where t is the threshold value and s[i] are the scaling or wavelet coefficient values in a particular node of the tree. The above function is used to count the number of values in a wavelet packet tree node whose absolute value is greater than t (threshold). A node is made part of the best basis vector if the sum of the value of its children is greater than the sum of its parent values. Other wise the cost value of the node is replaced by the cost values of its children. The best basis vector looks like:

When ever some detected vehicle gets to closer, the driver is alerted by generating a tone in the frequency range of 18000 HZ to 21000 HZ. 4 Experimental Results The algorithm was tested on a 2 GHz Pentium 4 machine with Windows XP and Visual C++ as the development tool. An original movie of the Islamabad – Lahore Motorway was recorded in the summer and fall of 2004. The algorithm was tested on continuous runs of the movies which depicted actual scenario encountered by the drivers while driving on highways. Lightening conditions also varied significantly along the terrain. On all the 45 occasions when some new vehicle became visible, it was detected immediately and accurately before the 90m distance limit. After successfully testing the algorithm on recorded movies it was tested in real time using a Compaq 800 MHz laptop with Windows XP as the operating system. All occurrences of vehicles were successfully detected by the algorithm. Shown below are some of the scenarios where vehicle were successfully detected.

Best basis = {23.6, 22.2, -4.8, 0.18, -2.8, -1.23, 3.75, 1.0, 3.25, 0.75, -1.75, 5.6} The standard deviation of the computed best basis vectors is compared with 10 pre-computed standard deviations of the similar vectors modeling different vehicular structures.

(a)

(b)

IEEE International Conference on Information and Communication Technologies (ICICT 05), August 2005 Karachi, Pakistan. systems the number of accidents and related fatalities will definitely fall significantly. 6. References

(c)

(d)

(e)

(f)

(g) (h) Figure 5 shows detected vehicles in different lightning conditions and scenarios. Fig a, b, c, d and h depict detection based on umbra shadows where as fig e, f, g depict the detection based on penumbra shadows. The detected vehicles are highlighted by a rectangular box around them. The algorithm is capable of processing 12 frames per second which makes it ideal for real time use by the drivers. 5. Conclusion In this paper a novel approach for the on road detection of vehicles based on shadows and the verification of vehicles presence using haar wavelet packet transform was proposed. Experimental results demonstrate that our approach is robust to widely different scenarios encountered by the driver along a terrain. Step 1, 2, 3 laid the foundation for the generation of hypothesis about the presence of the vehicle which was verified by step 4 of the proposed methodology. Presently work is in progress to detect vehicles on highways during night driving. After its completion the algorithms will be embedded into an imaging DSP for actual deployment and use. By incorporating such

[1] Sohail Nadimi, Bir Bhanu “Physical Models for Moving Shadows and object detection in video”, IEEE transactions on pattern analysis and machine intelligence page 1079-1087 August 2004. [2] Gildas Lefaix, Eric Marchand “Motion Based Obstacle Detection and Tracking For Car Driving Assistance”, International Conference on Pattern recognition ICPR page 74-77 August 2002. [3] A. Prati, I. Mikic, MmM Trivedi and R. Cucchiara, Detecting Moving Shadows: Algorithms and Evaluation, “IEEE Transaction on Pattern Analysis and Machine Intelligence” page 918923 July 2003. [4] Statistical Survey of Pakistan 2003-2004. [5] Erdem Bala, A.Enis Cetin “Computationally Efficient wavelet Affine Invariant Functions for Shape Recognition” IEEE Transactions on Pattern Analysis and Machine Intelligence page 1095-1098 August 2004 [6] Massimo Bertozzi, Alberto Broggi, Gianni Conte, and Alessandra Fascioli “Vision-based Automated Vehicle Guidance: the experience of the ARGO vehicle” IEEE Transactions on Intelligent Transportation Systems 1998. [7] Zehang Sun, George Bebis and Ronald Miller “On Road vehicle detection Using Gabor Filters and support Vector Machines”, IEEE Transactions on Intelligent Transportation Systems, 2004. [8] Ripples In Mathematics: The Discrete Wavelet Transform by Jensen and La Cour Harbo, Springer Verlag 2001 [9] Ronan Fablet, Patrick Bouthemy Mare Gelgon Moving Object Detection In Color Image Sequences using Region Level Graph labeling 6th IEEE International Conference on Image Processing ICIP October 1999. [10] Bertozzi, Alberto Broggi, Fascioli, “A Stereo Vision System For Real Time Automotive Obstacle Detection Massimo” IEEE Transactions on Intelligent transportation systems 1999. [11] Shioyama, Tadayoshi, Wu, Haiyuan “Segmentation and free space detection using Gabor Filters” Image Analysis Scandinavian Conference, SCIA 2003, Halmstad, Sweden, June 29 - July 2, 2003. [12] Zehang Sun, Ronald Miller, George Bebis, “A Real Time Pre-crash vehicle detection system”, Ford Motor Company, IEEE Transactions on Intelligent Transportation Systems, 2002.

E-Mail: 1 [email protected]

Shadow Based On-Road Vehicle Detection and ...

IEEE International Conference on Information and Communication Technologies (ICICT 05), August ... important area of multi-rate filter banks. ... of each of the extracted video frames are 352 X ... (low pass) and wavelet (high pass) coefficients.

200KB Sizes 1 Downloads 282 Views

Recommend Documents

2009_TRR_Draft_Video-Based Vehicle Detection and Tracking Using ...
2009_TRR_Draft_Video-Based Vehicle Detection and Tracking Using Spatiotemporal Maps.pdf. 2009_TRR_Draft_Video-Based Vehicle Detection and Tracking ...

Shadow Detection and Removal in Real Images: A ... - Semantic Scholar
Jun 1, 2006 - This may lead to problems in scene understanding, object ..... Technical report, Center for Automation Research, University of Maryland, 1999.

Vehicle-to-Vehicle Network Based Collaborative ...
A vehicle-to-vehicle (V2V) network-based collaborative navigating method ...... distributing GPS data over a network and motivates the introduction of an additional ...... [3] L. Jacobson, GNSS Markets and Applications, Artech House, 2007.

Attitudes Toward Vehicle-Based Sensing and ... - Research at Google
Sep 7, 2015 - person video devices to personal healthcare devices [22, 26,. 28], as well as CCTV and ...... Home is safer than the cloud!: Privacy concerns for.

Face Detection Algorithm based on Skin Detection ...
systems that analyze the information contained in face images ... characteristics such as skin color, whose analysis turns out to ..... software version 7.11.0.584.

Shadow Lattices and Shadow Codes
which are a class of Type I codes and show that shadow-optimal codes over. Z4 are closely related to shadow-optimal lattices. 2 Unimodular Lattices and Shadows. Let Rn be n-dimensional Euclidean space with the inner product x · y = x1y1 + x2y2 + ·Â

A Compressive Sensing Based Secure Watermark Detection And ...
the cloud will store the data and perform signal processing. or data-mining in an encrypted domain in order to preserve. the data privacy. Meanwhile, due to the ...

Design and Implement Online SQL Injection Detection System Based ...
There was a problem previewing this document. ... Design and Implement Online SQL Injection Detection System Based on Query Signature.pdf. Design and ...

Boundary based corner detection and localization ...
proposed approach is invariant to image transformations viz., rotation, translation and ... the eigenvalues of the covariance matrix of data points on a curve ...

MEX based Convolution For Image Gradient Filtering And Detection ...
MEX based Convolution For Image Gradient Filtering And Detection.pdf. MEX based Convolution For Image Gradient Filtering And Detection.pdf. Open. Extract.

Efficient and Effective Video Copy Detection Based on ...
Digital videos, which have become ubiquitous over ... The merit of the ordinal signature is the robust- ... butions, while the centroid-based signature computes.

Enhancing Memory-Based Particle Filter with Detection-Based ...
Nov 11, 2012 - The enhance- ment is the addition of a detection-based memory acquisition mechanism. The memory-based particle filter, called M-PF, is a ...

Visual-Similarity-Based Phishing Detection
[email protected] ... republish, to post on servers or to redistribute to lists, requires prior specific .... quiring the user to actively verify the server identity. There.

Bilattice-based Logical Reasoning for Human Detection.
College Park, MD [email protected]. Abstract. The capacity to robustly detect humans in video is a crit- ical component of automated visual surveillance systems.

Host Based Intrusion Detection and Countermeasure Selection in Cloud
Particularly, intruders can exploit vulnerability to a cloud system and compromise virtual machines to deploy further large scale types of attack like distributed ...

FAST SVM-BASED KIDNEY DETECTION AND ...
leverages a database of 480 3D images through a support vec- tor machine(SVM)-based detection ..... don, “Kidney detection and real-time segmentation in 3d.

Video Forgery Detection and Localization based on 3D ...
ó We propose an effective video copy-move algorithm ó It extends our image ... ó A real-world case. D.Cozzolino, G.Poggi, and L.Verdoliva, “Efficient dense-field copy-move forgery detection”, IEEE ... C. Barnes et al., “PatchMatch: a randomi

Efficient and Effective Video Copy Detection Based on Spatiotemporal ...
the Internet, can be easily duplicated, edited, and redis- tributed. From the view of content ... in this paper, a novel method for video copy detection is proposed. The major ...... images," IEEE International Conference on Computer. Vision, 2005.

Host based Attack Detection using System Calls
Apr 3, 2012 - This calls for better host based intrusion detection[1]. ... Intrusion detection is the process of monitoring the events occurring in a ... System Call in Linux ... Rootkits[2] are a set of software tools used by an attacker to gain.

Detection-based Object Labeling in 3D Scenes
In computer vision, both scene labeling and object de- tection have been extensively .... Hence, the maximum detector response across all scales is the best estimate of the true ..... at 30, 45, and 60 degrees with the horizon. Each detector is.

Support vector machine based multi-view face detection and recognition
theless, a new problem is normally introduced in these view- ...... Face Recognition, World Scientific Publishing and Imperial College. Press, 2000. [9] S. Gong ...

Robust Subspace Based Fault Detection
4. EFFICIENT COMPUTATION OF Σ2. The covariance Σ2 of the robust residual ζ2 defined in (11) depends on the covariance of vec U1 and hence on the first n singular vectors of H, which can be linked to the covariance of the subspace matrix H by a sen

Strip-based amperometric detection of ...
Min-Chieh Chuang, Vera Bocharova, Ta-Feng Tseng, Tzu-Yang Chou,. Evgeny Katz*, Joseph Wang*. Supplementary data. Figure S1. Figure S1 (A) Chronoamperograms recorded for 20 U/L MPO (red) and with the addition of. 0.1 mM AA and 650 U/L AOx (green). (B)