<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">WJET</journal-id><journal-title-group><journal-title>World Journal of Engineering and Technology</journal-title></journal-title-group><issn pub-type="epub">2331-4222</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/wjet.2017.53B010</article-id><article-id pub-id-type="publisher-id">WJET-78332</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Chemistry&amp;Materials Science</subject><subject> Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Vision-Based Vehicle Detection for a Forward Collision Warning System
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Din-Chang</surname><given-names>Tseng</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ching-Chun</surname><given-names>Huang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Institute of Computer Science and Information Engineering, National Central University, Taiwan</addr-line></aff><pub-date pub-type="epub"><day>11</day><month>08</month><year>2017</year></pub-date><volume>05</volume><issue>03</issue><fpage>81</fpage><lpage>92</lpage><history><date date-type="received"><day>July</day>	<month>11,</month>	<year>2017</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>August</month>	<year>8,</year>	</date><date date-type="accepted"><day>August</day>	<month>11,</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  
    A weather-adaptive forward collision warning (FCW) system was presented by applying local features for vehicle detection and global features for vehicle verification. In the system, horizontal and vertical edge maps are separately calculated. Then edge maps are threshold by an adaptive threshold value to adapt the brightness variation. Third, the edge points are linked to generate possible objects. Fourth, the objects are judged based on edge response, location, and symmetry to generate vehicle candidates. At last, a method based on the principal component analysis (PCA) is proposed to verify the vehicle candidates. The proposed FCW system has the following properties: 1) the edge extraction is adaptive to various lighting condition; 2) the local features are mutually processed to improve the reliability of vehicle detection; 3) the hierarchical schemes of vehicle detection enhance the adaptability to various weather conditions; 4) the PCA-based verification can strictly eliminate the candidate regions without vehicle appearance. 
  
 
</p></abstract><kwd-group><kwd>Forward Collision Warning (FCW)</kwd><kwd> Advanced Driver Assistance System (ADAS)</kwd><kwd> Weather Adaptive</kwd><kwd> Principal Component Analysis (PCA)</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>To avoid the traffic accidents and to decrease injuries and fatalities, many advanced driving assistance systems (ADASs) have been developed paying more regard to situations on road for drivers, such as forward collision warning (FCW), lane departure warning (LDW), blind spot detection (BSD), etc. Based on our previous studies [<xref ref-type="bibr" rid="scirp.78332-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.78332-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.78332-ref3">3</xref>], this study focuses on developing a FCW system.</p><p>Extensive studies have been proposed for vision-based FCW systems [<xref ref-type="bibr" rid="scirp.78332-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.78332-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.78332-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.78332-ref7">7</xref>]. Sun et al. [<xref ref-type="bibr" rid="scirp.78332-ref4">4</xref>] and Sivaraman et al. [<xref ref-type="bibr" rid="scirp.78332-ref5">5</xref>] generally divided the vision-based vehicle detection methods into three categories: knowledge-based, motion- based, and stereo-based methods. Knowledge-based methods integrate many features of vehicles to recognize preceding vehicles in images. Most of these methods are implemented by two steps: hypothesis generation (HG) and hypothesis verification (HV) [<xref ref-type="bibr" rid="scirp.78332-ref4">4</xref>]. The HG step detects all possible vehicle candidates in an image; the vehicle candidates are then confirmed by the HV step to ensure correct detections.</p><p>Due to the rigidness and the specific appearance of vehicles, many features such as edges, shadow, symmetry, texture, color, and intensity can be observed in images. The features used in knowledge-based methods can be further divided into global features and local features according to whether the vehicle appearance is considered when using the features. A usable FCW system should be stable in various weather conditions and in various background scenes. Furthermore, the system should get high detecting rate with fewer false alarms by utilizing both local- and global features.</p><p>The weather adaptability of edge information is much better than other local features such as shadow and symmetry. The contour of a vehicle can represent by horizontal and vertical edges. However, the local edge features are not strict enough to describe vehicle appearance. The appearance based verification is better and need to support the vehicle detection based on edge information.</p><p>We here propose a FCW system combining the advantage of the global features and local features to improve the reliability of vehicle detection. The local feature is invariant to vehicle direction, lighting condition, and partial occlusion. The global feature is used to search objects in the image base on whole vehicle configuration. In the detection stage, all vehicle candidates are located according to the local as many as possible to avoid missing targets; in the verification stage, each candidate is confirmed as real target by the global as strictly as possible to reduce the false alarms.</p><p>The proposed FCW system detects vehicles relying on edges; thereby the proposed system can work well under various weather conditions. At first, the lane detector [<xref ref-type="bibr" rid="scirp.78332-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.78332-ref2">2</xref>] is performed to limit the searching region of preceding vehicles. Then an adaptive threshold is used to obtain bi-level horizontal and vertical edges in the region. The vehicle candidate is generated depending on a valid horizontal edge and the geometry constrains vertical edges at two ends of the horizontal edge. In verification stage, the vehicle candidates are verified by vehicle appearance and principal component analysis (PCA). A principal component set is obtained by applying PCA to a set of canonical vehicle images. These components are used to dominate the appearance of vehicle-like regions; therefore, the regions of vehicle-like objects can be well reconstructed by the principal components. The closer the distance between an image and its reconstruction image is, the higher the probability of the object on the image being a vehicle is.</p></sec><sec id="s2"><title>2. Vehicle Detection</title><p>Edge information is an important feature for detecting vehicles in an image, especially the horizontal edges of underneath shadows. In the detection stage, vehicle candidates are generated based on local edge features. Firstly, the appropriate edge points are extracted in the region of interest (ROI) defined by lane marks as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>. Then, the significant horizontal edges indicating vehicle locations are refined. The negative horizontal edges (NHE) are thought belonging to underneath shadow. The positive horizontal edges (PHE) are mostly formed by bumper, windshield and roof of vehicles. For each kind of horizontal edges with different property, a specific procedure to find vertical borders of vehicles is applied around each horizontal edge. Finally, the horizontal edges and vertical borders are used to find the bounding boxes of vehicle candidates.</p><p>The horizontal edges are expected belonging to underneath shadows or vehicle body. Considering the sunlight influences, the horizontal edges belonging to underneath shadows are further divided into the moderate or the long by edge widths. The procedures for searching the paired vertical borders are designed according to the specific properties of different kinds of horizontal edges. In the proposed vehicle detection, three detecting methods (Case-1, Case-2, and Case- 3) are respectively designed to generate vehicle candidates based on the horizontal edges of underneath shadows, long underneath shadows, and vehicle bodies. In the situations of clear weather with less influence from sunlight, the underneath shadows are distinct and the widths of shadows are similar to vehicle width; Case-1 method proposed based on horizontal edges of moderate underneath shadows is adequately used to generate candidates. In the situations of sunny weather with lengthened shadow, there is the strong possibility that only one vertical border is searched by using Case-1 method; Case-2 method is proposed based on horizontal edge of long underneath shadows to search two corresponding vertical borders in a larger region, as shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>. In the situations of bad weather disturbed by water spray and reflection, the underneath shadows are not reliable and are not observed at the worst; Case-3 method base on vehicle bodies is applied in a different way to retrieve the missing cases of using Case-1 and 2 methods.</p><p>If the only one vertical edge of the NHE is at the right side, it is taken as the</p><fig-group id="fig1"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Two examples of ROI setting based on the detected lane marks.</title></caption><fig id ="fig1_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x2.png"/></fig><fig id ="fig1_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x3.png"/></fig></fig-group><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> An example of the vertical characteristics in a long underneath shadow area</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x4.png"/></fig><p>right boundary of the window. The left boundaries of all windows are respectively set at the x-positions which are 0.3 w<sub>lane</sub> to 0.8 w<sub>lane</sub> away from the right boundaries, and vice versa. The symmetry of the vertical edge points in the window is calculated by</p><disp-formula id="scirp.78332-formula31"><label>, (1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/78332x5.png"  xlink:type="simple"/></disp-formula><p>where h and w are the height and the width of the window, x<sub>i</sub> and y<sub>j</sub> are the x- and y-locations in the window, eng(x<sub>i</sub>, y<sub>j</sub>) is the energy of symmetry at (x<sub>i</sub>, y<sub>j</sub>) defined by</p><disp-formula id="scirp.78332-formula32"><label>, (2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/78332x6.png"  xlink:type="simple"/></disp-formula><p>where I<sub>ep</sub>(x, y) is the value of the edge point map I<sub>ep</sub> at (x, y) and I<sub>ep</sub> is one of the vertical, the positive horizontal, and the negative horizontal edge point maps which are I<sub>vep</sub>, I<sub>p_hep</sub>, and I<sub>n_hep</sub>.</p><p>The horizontal edges in Case-3 are the edges of the vehicle body, though the components which they belong to are unknown. The y-positions of the horizontal edges can’t indicate the y-positions of the candidate bottoms, which only gives a hint of the vehicle’s location. In the image, two vertical edges could be detected at vehicle sides, which are similar to each other in length and y-posi- tion. Therefore, two characteristic vertical edges are extracted from the areas around two endpoints of the horizontal edge, respectively. The distance and the y-position overlapping between two vertical edges are used to determine candidate bottom.</p><p>Firstly, the areas for searching the vertical edges are set extending upward and downward from the horizontal edge endpoints, as the gray regions in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>According to the candidate bottoms, the images of the vehicle candidates are extracted with ratio height/width being 1. In the detecting result, the candidate locations are represented by “U” shape bounding boxes. The bottom of a “U” shape bounding box is the candidate bottom. The left and right margins of the</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> The searching areas for vertical edges and the longest vertical edges in each area</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x7.png"/></fig><p>bounding box are defined as the vertical line segments from (x<sup>l</sup>, y<sup>l</sup>) to (x<sup>l</sup>, y<sup>l</sup> +<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/78332x8.png" xlink:type="simple"/></inline-formula>) and from (x<sup>r</sup>, y<sup>(r)</sup>) to (x<sup>r</sup>, y<sup>r</sup> +<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/78332x9.png" xlink:type="simple"/></inline-formula>), respectively. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/78332x10.png" xlink:type="simple"/></inline-formula>is the width of the candidate bottom, that is <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/78332x11.png" xlink:type="simple"/></inline-formula> = x<sup>r</sup> ? x<sup>l</sup>. Each horizontal edge is individually determined if it belongs to a vehicle candidate. Around one vehicle target, there might be many bounding boxes which are set according to the horizontal edges at different y-positions. To delete the repetitions, the candidate being most closes to the host vehicle in a candidate group is reserved for the rest processes. That is, the bounding box with smallest y-position in image is reserved.</p></sec><sec id="s3"><title>3. Vehicle Verification</title><p>In the verification stage, the vehicle candidates are determined applying PCA reconstruction. The reconstruction images are obtained according to the images of pre-trained eigenvehicles. Then, the image comparison methods are used to evaluate the likelihood of the vehicle candidates to e vehicle.</p><sec id="s3_1"><title>3.1. The Principle and Procedure of PCA-based Verification</title><p>Principal components analysis (PCA) is a statistical technique used to analyze and simplify a data set. Each principle component (eigenvector) is obtained with a corresponding data variance (eigenvalue). The larger the corresponding variance is, the more important the data information contained by the principle component is. For application of reducing data dimensionality, the principle components are sorted by the corresponding variance; and the original data are projected onto the principle components with the largest m variance. PCA is widely performed to image recognition and compression.</p></sec><sec id="s3_2"><title>3.2. Eigenvehicle Generation</title><p>The images of the eigenvectors obtained by applying PCA to vehicle images are called “eigenvehicles”. To generate a set of eigenvehicles, a training set of preceding vehicle images cropped from on-road driving videos are prepared. The on-road driving videos are captured under various weather conditions; the training images are collected with various vehicle types, in various distance far from the own vehicle, and at the own/adjacent lane. The cropped images of preceding vehicles are firstly resized to 32 &#180; 32. For each resized image, the edge map is produced and then normalized by letting the sum of edge values being equal to 1. The normalized edge maps as the training images are represented as vectors G<sub>1</sub>, G<sub>2</sub>, …,and G<sub>M</sub> of size N, where M is the number of training images and N = 32 &#180; 32.</p><p>Only the leading eigenvehicles are applied in the verification of vehicle candidates. The sixteen leading eigenvehicles with largest eigenvalues of all are shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><p>Eigenvehicles are easily influenced by background content, foreground size, illumination variation, and imaged orientation. To solve most of the problems, the original vehicle images of the training set are manually identified and segmented fitting the contour. The color and illumination factors would be also eliminated by using edge map and applying normalization to the edge map.</p></sec><sec id="s3_3"><title>3.3. Evaluation by The Reconstruction Error</title><p>For each vehicle candidate, the original image is firstly resized to 32 &#180; 32 and transformed into a normalized edge map G. The edge map G subtracts the mean image Y to have the difference, and the difference is then projected onto the M' leading eigenvehicles. Each value representing a weight would be calculated by</p><disp-formula id="scirp.78332-formula33"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/78332x12.png"  xlink:type="simple"/></disp-formula><p>where i = 1, 2, …, M'. The reconstruction image</p><disp-formula id="scirp.78332-formula34"><graphic  xlink:href="http://html.scirp.org/file/78332x13.png"  xlink:type="simple"/></disp-formula><p>of the normalized edge map G is then obtained by</p><disp-formula id="scirp.78332-formula35"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/78332x14.png"  xlink:type="simple"/></disp-formula><p>The vehicle space is the subspace spanned by the eigenvehicles, and the reconstruction image is the closest point to G on the vehicle space. The reconstruction error of G could be easily calculated by Euclidean distance (ED),</p><disp-formula id="scirp.78332-formula36"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/78332x15.png"  xlink:type="simple"/></disp-formula><p>The reconstruction images are usually dusted by a lot of noises. For more accurate comparison between G and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/78332x16.png" xlink:type="simple"/></inline-formula>, the comparing method should be more robust to noise and neighboring variations. The images could be regarded as 3D models by taking the intensity at the image coordinate (x, y) to be the height of</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> The top 16 eigenvehicles of the training set</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x17.png"/></fig><p>the model bin (x, y). The 3D models can be compared to each other by a cross- bin comparison measurement such as the quadratic-form distance [<xref ref-type="bibr" rid="scirp.78332-ref8">8</xref>], Earth Mover’s Distance (EMD) [<xref ref-type="bibr" rid="scirp.78332-ref9">9</xref>], and the diffused distance (DD) method [<xref ref-type="bibr" rid="scirp.78332-ref10">10</xref>]. Earth Mover’s Distance is calculated as</p><disp-formula id="scirp.78332-formula37"><label>, (6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/78332x18.png"  xlink:type="simple"/></disp-formula><p>where H<sub>1</sub> and H<sub>2</sub> are two compared histograms, f<sub>ij</sub> is the work flow from bin i to bin j, and d<sub>ij</sub> is the ground distance between bins i and j. The diffused distance is calculated by</p><disp-formula id="scirp.78332-formula38"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/78332x19.png"  xlink:type="simple"/></disp-formula><p>where d<sub>0</sub>(x) = H<sub>1</sub>(x) ? H<sub>2</sub>(x) and d<sub>l</sub>(x) = [d<sub>l</sub><sub>?1</sub>(x) * f (x, s)] ↓<sub>2</sub> are different layers of the diffused temperature field with l = 1, 2, …, L, f (x, s) is a Gaussian filter of standard deviation s, and the notation “↓<sub>2</sub>“ denotes half size down- sampling.</p><p>The recognition abilities of ED, EMD, and DD can be compared by receiver operating characteristic (ROC) curves to decide the appropriate measurement for the proposed vehicle verification, as shown in <xref ref-type="fig" rid="fig5">Figure 5</xref>. There are 500 positive and 500 negative samples used to evaluate each ROC curve. The ROC curves are plotted with the false positive rate in x-axis and the true positive rate in y- axis by changing the threshold of judging a sample as a vehicle. The statistics of positive and negative samples measured using ED, EMD and DD are shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>. The x-axis is the measured distance and the y-axis is the accumulation of samples. The threshold of measured distance is changed in the statistics from minimum to maximum distance values to calculate the ratio of positive and negative samples being recognized as a vehicle.</p><p>The verification based on PCA reconstruction is deeply influenced by the</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> The ROC curves of the distance measurements: ED, EMD, and DD</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x20.png"/></fig><fig-group id="fig6"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> The measurement statistics of positive and negative samples using three methods. (a) ED; (b) EMD; (c) DD.</title></caption><fig id ="fig6_1"><label>(b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x21.png"/></fig><fig id ="fig6_2"><label>(c)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x22.png"/></fig><fig id ="fig6_3"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x23.png"/></fig></fig-group><p>number of used eigenvehicles. The distance between the original image and reconstruction image decreases with the increment of the eigenvehicle number; however, the execution time of projecting and reconstructing linearly increases with the increment of the eigenvehicle number. According to our analysis, the distance decrement is obviously slowdown when the eigenvehicle number is larger than 50. It is important to consider that is the time cost of using eigenvehicles more than 50 worth enough for the PCA-based verification. The verification ability of the PCA-based method can be analyzed by ROC curves. The variation of the area ratio under the ROC curves shows the limitation of improving reconstruction difference by increasing the eigenvehicle number. Depending on the application, a suggestion of the eigenvehicle number is 40 - 80.</p></sec></sec><sec id="s4"><title>4. Experiment and Discussions</title><p>The proposed FCW system has been tested with the videos captured under various weather conditions and environment situations: sunny day (S), cloudy day (C), long shadow (LS), facing sun ray (FS), rainy day (R), heavily rainy day (HR), etc.</p><p>The comparison of detecting vehicles without and with verification scheme is show in <xref ref-type="table" rid="table1">Table 1</xref>. The symbol “d*” and “d” represent the trials of detecting vehicles using the idealized constrains and the less rigorous constrains, respectively. The “d*” and “d” trials are both implemented without verification scheme. The geometry constrains being relaxed in “d” trail include the pre-trained learning threshold models, the thresholds of the length of small noise horizontal edge, the ratio width/height of the bounding box for extracting a significant horizontal edge, the searching areas of upper significant vertical edges and symmetric vertical border, the threshold of symmetry, etc. The symbol “v” represents the trial of detecting vehicles using the less rigorous constrains with the verification scheme.</p><p>To illustrate the effect of the proposed learning thresholding of edge maps, the system accuracies of using three constant thresholds and the learning threshold to each environment situation are compared in <xref ref-type="table" rid="table2">Table 2</xref>. The threshold for vertical edge map is dynamically calculated by the proposed learning thresholding in all case for the single-variable analysis. The proposed learning thresholding makes our FCW system having the ability to adjust an appropriate threshold for each frame of any environment situation. As shown in <xref ref-type="table" rid="table2">Table 2</xref>, applying the learning threshold produces higher accuracy with a lower false detection rate than applying the constant thresholds.</p><p>The detecting performances of various driving situation are given in <xref ref-type="table" rid="table3">Table 3</xref>. The average accuracy of all environment situations could reach 91%. The results</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> The Comparison of System Performance without and with Verification Procedure</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Weather conditions</th><th align="center" valign="middle"  colspan="3"  >Accuracy (%)</th><th align="center" valign="middle"  colspan="3"  >False detection rate (%)</th></tr></thead><tr><td align="center" valign="middle" >d*</td><td align="center" valign="middle" >d</td><td align="center" valign="middle" >d+v</td><td align="center" valign="middle" >d*</td><td align="center" valign="middle" >d</td><td align="center" valign="middle" >d + v</td></tr><tr><td align="center" valign="middle" >Sunny day</td><td align="center" valign="middle" >91.8</td><td align="center" valign="middle" >96.9</td><td align="center" valign="middle" >98.6</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >2.8</td><td align="center" valign="middle" >1.1</td></tr><tr><td align="center" valign="middle" >Cloudy day</td><td align="center" valign="middle" >93.0</td><td align="center" valign="middle" >97.6</td><td align="center" valign="middle" >98.7</td><td align="center" valign="middle" >1.2</td><td align="center" valign="middle" >3.1</td><td align="center" valign="middle" >0.8</td></tr><tr><td align="center" valign="middle" >Facing sun ray</td><td align="center" valign="middle" >88.6</td><td align="center" valign="middle" >92.2</td><td align="center" valign="middle" >93.9</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >1.3</td><td align="center" valign="middle" >0.2</td></tr><tr><td align="center" valign="middle" >Long shadow</td><td align="center" valign="middle" >81.3</td><td align="center" valign="middle" >92.8</td><td align="center" valign="middle" >95.3</td><td align="center" valign="middle" >6.3</td><td align="center" valign="middle" >11.4</td><td align="center" valign="middle" >4.3</td></tr><tr><td align="center" valign="middle" >Rainy day</td><td align="center" valign="middle" >77.1</td><td align="center" valign="middle" >83.5</td><td align="center" valign="middle" >84.4</td><td align="center" valign="middle" >1.2</td><td align="center" valign="middle" >5.6</td><td align="center" valign="middle" >2.3</td></tr><tr><td align="center" valign="middle" >Heavily rainy day</td><td align="center" valign="middle" >64.7</td><td align="center" valign="middle" >73.6</td><td align="center" valign="middle" >72.3</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >12.5</td><td align="center" valign="middle" >6.4</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> The Comparison between Constant Thresholds and the Learning Threshold</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Weather conditions</th><th align="center" valign="middle"  colspan="4"  >Accuracy (%)</th><th align="center" valign="middle"  colspan="4"  >False detection rate (%)</th></tr></thead><tr><td align="center" valign="middle" >10%</td><td align="center" valign="middle" >20%</td><td align="center" valign="middle" >30%</td><td align="center" valign="middle" >learning</td><td align="center" valign="middle" >10%</td><td align="center" valign="middle" >20%</td><td align="center" valign="middle" >30%</td><td align="center" valign="middle" >learning</td></tr><tr><td align="center" valign="middle" >Sunny day</td><td align="center" valign="middle" >97.8</td><td align="center" valign="middle" >98.8</td><td align="center" valign="middle" >97.6</td><td align="center" valign="middle" >98.6</td><td align="center" valign="middle" >1.3</td><td align="center" valign="middle" >1.2</td><td align="center" valign="middle" >2.1</td><td align="center" valign="middle" >1.1</td></tr><tr><td align="center" valign="middle" >Cloudy day</td><td align="center" valign="middle" >78.5</td><td align="center" valign="middle" >99.5</td><td align="center" valign="middle" >95.8</td><td align="center" valign="middle" >98.7</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.7</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.8</td></tr><tr><td align="center" valign="middle" >Facing sun ray</td><td align="center" valign="middle" >35.7</td><td align="center" valign="middle" >83.6</td><td align="center" valign="middle" >96.3</td><td align="center" valign="middle" >93.9</td><td align="center" valign="middle" >0.7</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.2</td></tr><tr><td align="center" valign="middle" >Long shadow</td><td align="center" valign="middle" >79.6</td><td align="center" valign="middle" >85.1</td><td align="center" valign="middle" >85.7</td><td align="center" valign="middle" >95.3</td><td align="center" valign="middle" >7.8</td><td align="center" valign="middle" >6.9</td><td align="center" valign="middle" >8.3</td><td align="center" valign="middle" >4.3</td></tr><tr><td align="center" valign="middle" >Rainy day</td><td align="center" valign="middle" >63.4</td><td align="center" valign="middle" >79.8</td><td align="center" valign="middle" >87.5</td><td align="center" valign="middle" >84.4</td><td align="center" valign="middle" >3.9</td><td align="center" valign="middle" >2.4</td><td align="center" valign="middle" >2.9</td><td align="center" valign="middle" >2.3</td></tr><tr><td align="center" valign="middle" >Heavily rainy day</td><td align="center" valign="middle" >38.0</td><td align="center" valign="middle" >66.8</td><td align="center" valign="middle" >63.7</td><td align="center" valign="middle" >72.3</td><td align="center" valign="middle" >15.0</td><td align="center" valign="middle" >8.8</td><td align="center" valign="middle" >5.9</td><td align="center" valign="middle" >6.4</td></tr></tbody></table></table-wrap><p>of the detection followed by verification in these difficult situations are shown in <xref ref-type="fig" rid="fig7">Figure 7</xref>. The left and right of a pair of images are the results of vehicle detection and vehicle verification, respectively.</p><fig-group id="fig7"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> Examples of detected and verified results in various weather situations. (a) In a low- contrast environment; (b) With long shadow of vehicles; (c) In rainy day; (d) With cast shadow; (e) With smeary road surface and on-road traffic sign; (f) In heavily rainy day.</title></caption><fig id ="fig7_1"><label> (b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x25.png"/></fig><fig id ="fig7_2"><label> (c)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x24.png"/></fig><fig id ="fig7_3"><label> (d)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x27.png"/></fig><fig id ="fig7_4"><label> (e)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x26.png"/></fig><fig id ="fig7_5"><label> (f)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x29.png"/></fig><fig id ="fig7_6"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x28.png"/></fig><fig id ="fig7_7"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x31.png"/></fig><fig id ="fig7_8"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x30.png"/></fig><fig id ="fig7_9"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x33.png"/></fig><fig id ="fig7_10"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x32.png"/></fig><fig id ="fig7_11"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x35.png"/></fig><fig id ="fig7_12"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/78332x34.png"/></fig></fig-group></sec><sec id="s5"><title>5. Conclusions</title><p>The proposed system possesses several special and unique properties: 1) The appropriate amount of edge points are reserved by a smart learning thresholding method for less influenced by weather conditions; 2) the vehicle detection is accomplished by applying the horizontal edges with the consideration of the location of vertical edges and edge symmetries instead of that each feature is individually used; 3) the vehicle detection is robust to partial occlusions and lighting variations by using local features; 4) the vehicle verification reliably determines the detected candidates by evaluating the probability that the candidate has vehicle appearance. The characteristics of local and global features are complementary to each other. However, most related studies apply only one of the features in their system. The proposed system efficiently uses the merits of local and global features to attain the stability and reliability.</p></sec><sec id="s6"><title>Acknowledgements</title><p>This work was supported in part by the Ministry of Science and Technology, Taiwan under the grant of the research projects MOST 103-2221-E-008-078 and MOST 104-2221-E-008-029-MY2.</p></sec><sec id="s7"><title>Cite this paper</title><p>Tseng, D.-C. and Huang, C.-C. (2017) Vision-Based Vehicle Detection for a Forward Collision Warning System. World Journal of Engineering and Technology, 5, 81-92. https://doi.org/10.4236/wjet.2017.53B010</p></sec></body><back><ref-list><title>References</title><ref id="scirp.78332-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Lin, C.-W., Tseng, D.-C. and Wang, H.-Y. (2009) A Robust Lane Detection and Verification Method for Intelligent Vehicles. Proc. Int. Symp. on Intelligent Information Technology Application, 1, 521-524.</mixed-citation></ref><ref id="scirp.78332-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Tseng, D.-C. and Lin, C.-W. (2013) Versatile Lane Depar-ture Warning using 3D Visual Geometry. Int. Journal of Innovative Computing, Information and Control, 9, 1899-1917.</mixed-citation></ref><ref id="scirp.78332-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Tseng, D.-C., Hsu, C.-T. and Chen, W.-S. (2014) Blind-Spot Vehicle Detection Using Motion and Static Features. Int. Journal of Machine Learning and Computing, 4, 516-521. https://doi.org/10.7763/IJMLC.2014.V6.465</mixed-citation></ref><ref id="scirp.78332-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Sun, Z., Bebis, G. and Miller, R. (2006) On-Road Vehicle Detection. A Review. IEEE Trans. Pattern Analysis and Machine Intelligence, 28, 694-711. 
https://doi.org/10.1109/TPAMI.2006.104</mixed-citation></ref><ref id="scirp.78332-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Sivaraman, S. and Trivedi, M.M. (2013) Looking at Vehicles on The Road: A Survey of Vision-Based Vehicle Detection, Tracking, and Behavior Analysis. IEEE Trans. Intelligent Transportation Systems, 14, 1773-1795.  
https://doi.org/10.1109/TITS.2013.2266661</mixed-citation></ref><ref id="scirp.78332-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Cheon, M., Lee, W., Yoon, C. and Park, M. (2012) Vision-Based Vehicle Detection System with Consideration of the Detecting Location. IEEE Trans. Intelligent Transportation Systems, 13, 1243-1252. https://doi.org/10.1109/TITS.2012.2188630</mixed-citation></ref><ref id="scirp.78332-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Teoh, S.S. and Br&amp;#228unl, T. (2012) Symmetry-Based Monocular Vehicle Detection System. Machine Vision and Applications, 23, 831-842. 
https://doi.org/10.1007/s00138-011-0355-7</mixed-citation></ref><ref id="scirp.78332-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Niblack, W., Barber, R., Equitz, W., Flickner, M.D., Glasman, E.H., Petkovic, D., Yanker, P., Faloutsos, C. and Taubin, G. (1993) QBIC Project: Querying Images by Content, Using Color, Texture, and Shape. Proc. SPIE 1908, Storage and Retrieval for Image and Video Databases, 1908, 173-187.</mixed-citation></ref><ref id="scirp.78332-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Rubner, Y., Tomasi, C. and Guibas, L.J. (2000) The Earth Mover’s Distance as a Metric for Image Retrieval. Int. Journal of Computer Vision, 40, 99-121. 
https://doi.org/10.1023/A:1026543900054</mixed-citation></ref><ref id="scirp.78332-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Ling, H. and Okada, K. (2006) Diffusion Distance for Histogram Comparison. Proc. IEEE Conf. on Computer Vision and Pattern Recognition, 1, 246-253.</mixed-citation></ref></ref-list></back></article>