smart night

5
 Smart Night Vision System for Automobiles Pranav Tilak # , Chetan Patil * , Omkar Shirke #  #  Mechanical Department, Mumbai University 1 [email protected] 3 [email protected] *  Lokmanya Tilak College Of Engineering,Koparkhairne,  Navi Mumbai,India 2 [email protected]  Abstract We present smart night vision s ystem for automobiles in this paper. This system, implemented mainly by adopting infrared cameras and computer vision techniques, aims at enhancing safety and convenience of night driving by providing functionalities such as adaptive night vision, road sign detection and recognition, scene zooming and spotlight projection. We have tested the system in both simulated laboratory environments and in field highway environments. Initial results show the feasibility of constructing such a system. Keywords I. INTRODUCTION Night vision technology, by definition, literally allows one to see in the dark. Originally developed for military use, it has provided the United States with a strategic military advantage, the value of which can be measured in lives. Federal and state agencies not routinely utilize the technology for site security, surveillance as well as search and rescue. Night vision equipment has evolved from bulky optical instruments in lightweight goggles through the advancement of image intensification technology. With the proper night-vision equipment, you can see a person standing over 200 yards (183 m) away on a moonless, cloudy night! a system is equipped with night visors such as infrared cameras from which the information of objects presenting on the road, such as bends, poles, pedestrians, other cars etc, can be extracted. Then, this system will inform drivers by means of visual, acoustic or other signals about the obstacles appearing in their way. Some of the research results have been transformed into real products installed on high-end automobiles such as BMW 6 Series Coupe and Mercedes- Benz S-Class series. focuses on detecting, illuminating and recognizing road signs at night. Infrared cameras are adopted to tackle the problem of low visibility at night. Computer vision techniques, such as image enhancement, object detection and recognition etc., are used intensively in SNVS to analyze videos captured by the infrared cameras. Road sign detection and recognition functions are implemented to reduce the probability of missing traffic signs in dark environments. The system can be operated by the driver through a touch screen and audio notifications are used for informing the driver of the possible danger.

Upload: ay80

Post on 14-Apr-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Smart Night

7/27/2019 Smart Night

http://slidepdf.com/reader/full/smart-night 1/5

Smart Night Vision System for Automobiles

Pranav Tilak #, Chetan Patil*, Omkar Shirke# 

#  Mechanical Department, Mumbai [email protected]

[email protected]

* Lokmanya Tilak College Of Engineering,Koparkhairne, Navi Mumbai,India

[email protected] 

Abstract —We present smart night vision system for 

automobiles in this paper. This system, implementedmainly by adopting infrared cameras and computer visiontechniques, aims at enhancing safety andconvenience of night driving by providing functionalitiessuch as adaptive night vision, road sign detection andrecognition, scene zooming and spotlight projection. Wehave tested the system in both simulated laboratory environmentsand in field highway environments. Initial

results show the feasibility of constructing such a system.

Keywords —

I. INTRODUCTIONNight vision technology, by definition, literally allows one tosee in the dark. Originally developed for military use, it hasprovided the United States with a strategic military

advantage, the value of which can be measured in lives.Federal and state agencies not routinely utilize thetechnology for site security, surveillance as well as searchand rescue. Night vision equipment has evolved from bulkyoptical instruments in lightweight goggles through theadvancement of image intensification technology. With theproper night-vision equipment, you can see a personstanding over 200 yards (183 m) away on a moonless,cloudy night! a system is equipped with night visors such asinfrared cameras from which the information of objectspresenting on the road, such as bends, poles, pedestrians,other cars etc, can be extracted.Then, this system will inform drivers by means of visual,acoustic or other signals about the obstacles appearing intheir way. Some of the research results have beentransformed into real products installed on high-endautomobiles such as BMW 6 Series Coupe and Mercedes-Benz S-Class series. focuses on detecting, illuminating andrecognizing road signs at night. Infrared cameras are

adopted to tackle the problem of low visibility at night.Computer vision techniques, such as image enhancement,object detection and recognition etc., are used intensively inSNVS to analyze videos captured by the infrared cameras.Road sign detection and recognition functions areimplemented to reduce the probability of missing traffic

signs in dark environments. The system can be operatedby the driver through a touch screen and audio notificationsare used for informing the driver of the possible danger.

Page 2: Smart Night

7/27/2019 Smart Night

http://slidepdf.com/reader/full/smart-night 2/5

II. SYSTEM

OVERVIEWFigure 1 shows the system architecture of SNVS. Itillustrates the interactions between the hardware and

software modules. To provide a convenient, fast and simpleinput interface, a touch screen is used to get the driver'sinput and display the processed videos. The driver can alsouse virtual keyboard on the touch screen for data input.Unlike normal cameras, the infrared cameras are sensitiveto infrared and, therefore, it captures objects that reflectinfrared. Figure 2 compares the images captured by aninfrared camera and a common webcam in the same nightdriving scenario. The analog video signals are first encodedusing a TV capture card. Then, the video is enhanced andpre-processed for later stages. The enhancedimage isready for shape detection which locates possible road signsin the video frames. All the detected shapes will be sent toroad sign recognition module to check whether theycorrespond to the known road signs stored in the database.If a road sign is recognized, it will be displayed on thescreen. At the same time, SNVS will alert the driver whenan important road sign, such as a danger warning, is found.The detected shape will be displayed on the screen so thatthe driver will be able to move the spotlight to illuminate thecorresponding area. To adapt with different drivingrequirements, we have implemented four major functionalities in SNVS.Adaptive night vision – SNVS captures the front viewof the vehicle with an infrared camera and displays thevideo onto a touch screen. Meanwhile, the infraredcamera will adaptively change direction if the vehicle is

turning. The camera automatically adjusts to the bestangle so that it always captures the front view.Road sign detection and recognition - The detectionmodule firstly detects road signs by processing the imagecaptured. From these detected signs, the recognitionmodule recognizes important ones, such as warningsigns and regulatory signs. For recognized signs, aclearer picture will be displayed beside each one toincrease the awareness of drivers.Spotlight projection - Once a road sign has been detectedand selected by the user, the system immediately finds itscorresponding position and projects light onto it using aspotlight mounted on a rotating platform. Automatic

tracking is also implemented in SNVS. The spotlight willilluminate on the selected road sign while the vehicle ismoving.Scene zooming - The user is able to view road signs atlong distance using the zooming function. The user can

control the degree of magnification easily by sliding onthe touch screen. A video demonstrating all these functionalit ies is available.

III. DETAILS of 

IMPLEMENTATIONThe system is implemented on an embedded platformEVOC Embedded Star System board. The board isequipped with an Intel® CoreTM2Duo CPU and 2GBRAM. A touch screen is used as the input/output interfaceof the system. Figure 3 shows the appearance of thecentral part of the SNVS system.The road sign detection module locates and segmentspotential road signs in real-time. Based on the observationthat most of the road signs are in regular geometricshapes, such as rectangle, triangle and circle, the followingsteps are used for road sign detection in SNVS. The inputimage is first processed to reduce the noise by using a 5x5Gaussian filter. Shades of gray are then converted to blackand white (binarization) using different thresholds. For eachsegmented image thus obtained, at contours of the whiteregions are extracted. The contours are approximated intopolygons by using Douglas Peucker algorithm [4], whichrecursively find out a subset of vertices that the shapeenclosed is similar to the original one. The resultantpolygons approximated are further analyzed: In order toimprove detection speed and accuracy, they are classifiedinto “quadrilaterals” and “triangles” by polygons' vertexnumber.Their interior angles are then calculated. Candidate road

signs are selected from the detected shape by checkingtheir interior angles. For quadrilaterals, the interior anglesshould be within the range 90 _1 degrees; for triangles, theinterior 

Page 3: Smart Night

7/27/2019 Smart Night

http://slidepdf.com/reader/full/smart-night 3/5

angles should be within the range 60 _2 degrees. Theparameters _1 and _2 are constants defined to offer tolerances to deal with the perspective distortion and noisesin the frame captured. Shapes will be discarded if theydo not have three/four vertices respectively or their interior angles violate the rules defined above. Consequently,a set of quadrilaterals and triangles are detected, theseshapes are regarded as traffic signs and recorded by the

tracking algorithm of the detection module.

For round road signs, after the contours are extracted,

our program verifies the detected contours by matchingtheir shapes with the ellipse computed. If more than ahalf of the points are matched locally, the candidate ellipsebecomes verified. During the process of extraction,a geometric error is tolerated for each point. The degreeof the toleration varies adaptively on the size of eachellipse. Figure 4 illustrates the ellipse verification process.In order to stabilize the detection result while minimizingthe false acceptance rate, a tracking mechanism isemployed to follow the road signs detected in the capturedvideos. A circular buffer is created for each trafficsign successfully detected, the bounding rectangle andcenter point are recorded in the corresponding circular buffer. In the next frame, when a shape detected in similar location, the same circular buffer will be used, and itsbounding rectangle and center will be updated. Only theshapes that appear in more than 5 times in 10 consecutiveframes are considered as “successful detections” anddisplay onto the screen. Consequently, erroneous detectionwill be eliminated, since they cannot be detected inconsecutive frames. Figure 5 shows the flow chart of thestabilization process.

The road sign recognition function helps user by identifyingimportant signs, and inform the user via audio notification inreal-time. The recognition module is composed of threeparts: road sign image enhancement,feature extraction andrecognition.

In order to provide good input data for the next recognitionstage, the traffic signs are first rectified in shape andnormalized in color to remove possible illuminationvariations. A bounding rectangle is calculated from eachsign detected, according to their shapes. A sub-image iscropped from the frame using the bounding rectangle;four points from both source image and rectified image areselected from the cropped traffic sign. A transformationmatrix C, which maps points from source image tothe rectified image, is computed using singular valuedecomposition (SVD) [5]. After the transformation matrixC is obtained, the cropped traffic signs are rectified. Afterwards, the color of traffic signs cropped from the

video is normalized using histogram equalization. Figure 6shows examples of road signs enhancement.

The enhanced road signs are to be identified by therecognition module. Features of road signs are representedby histograms of gradients in four regions. After a croppedroad sign has been rectified and enhanced, its

x-derivative (_x) and y-derivates (_y) are computed byusing the Sobel operator [6]. For each edge pixel detectedby the Canny operator, its gradient is computed bythe equation: G(i,j) = tan-1(_y(i,j)/_x(i,j)).Subsequently, the cropped image is divided into four 

Page 4: Smart Night

7/27/2019 Smart Night

http://slidepdf.com/reader/full/smart-night 4/5

regions; a histogram of gradient is calculated in eachregion. There are eight bins in a histogram (45 degreesfor one bin); therefore 32 features are used to describe aroad sign. A road sign and its corresponding histograms areshown in Figure 7.

Each road sign will be passed to the recognition modulefor calculating its edge gradient histogram. Totally 32values will be used to represent its features. A list of standard image’s histogram will be evaluated in advanceand stored in the system to represent different road signs.For each recognition case, the edge gradient histogram of the target image will be calculated. The Euclidean distancebetween the histogram of the image and that of standardroad signs image will be evaluated. A similar image shouldresult in lowest Euclidean distance. The distance should belower than a certain threshold so that an image that doesnot similar to any predefined image also can separate out.Therefore, the target image can be classified to particular road sign.

The Spotlight Projection module is aimed at projectinglight onto specified spots accurately. As soon as users

give commands by touching a spot on the touch screen,the software automatically turns the spot light in thedirection of the spot and project onto it. This step refers tothe mapping between the video captured and the rotatingplatform of the spotlight. This process determines thedegree that the spotlight turns horizontally and verticallyrespectively, when the user touches on the screen. Thelight projection will last for one second and the spot willtrack the detected road sign within this time interval.Hence, the calculation process needs to continuouslygenerate control signals in real-time.The projection will terminate if the specified spot moves outof the image or a new command is given. Meanwhile, to

ensure that the light will not glare drivers in the oppositedirection, for the spotlight is too low.

The night vision feature is implemented by utilizing an

infrared camera to capture the front view. Since infraredcamera has strong sensibility against infrared, the capturedimages enable drivers to see the road conditions andidentify road signs or other objects at night. Inspired byBMW 7 Series’ Adaptive Headlights System [7], an adaptivecontrol mechanism is implemented by estimating anadjustment angle from the vehicle’s speed and turningangles. Figure 8 illustrates the usage of camera adjustment.

IV. PERFORMANCE

EVALUATIONThe system is tested in a night driving scenario on anintercity highway where road signs are placed along thelane and face to the driver of this lane. False positivedetection is defined as the detection that is due to other vehicles on the road or the background. All advertisementboards are not included in all calculation. During the 20minute test driving, among all 42 road signs, 28 have beencorrectly detected. And there are altogether 8 false positivedetections. The main reasons for missing road signs are: i)a road sign is too small; ii) the view angle is not wideenough. If the sign is near the left-most or right-most of thecamera view, the size of road sign in the image will be smalland discounted by the detection algorithm. When the roadsign gets closer, it will leave the camera view in short time. As a result, no road sign is detected seemingly; iii) theedges of the road sign are not sharp enough; iv) the roadsign is occluded by other objects.

Page 5: Smart Night

7/27/2019 Smart Night

http://slidepdf.com/reader/full/smart-night 5/5

False positive detections are mainly caused by objects thathave similar shapes to that of road signs.Figure 9 shows different cases discussed in the test. (a)There are 3 road sign detected successfully. (b) The rear windows of the van are detected and cause false positivedetections. (c) The road sign in the yellow is supposed tobe detected but it is still not big enough. (d) The road sign isdetected lately and it vanishes in one or two seconds since

it is near the bound of the view.For the road sign recognition, simulating experimentsare performed in the laboratory. The testing road sign isrotated clockwise and anti-clockwise to see whether thesystem can recognize the road sign and give a correctrespond. Experimental results show that our system cantolerate 20 degrees of rotation of the road sign.

V. CONCLUSIONIn this paper, we present a night vision system for automobiles - SNVS. With the night vision function,drivers achieve a better driving experience at night. The

real time road sign detection and headlight tracking featurescan provide more information of the road to the

 u

user. With the aid of this system, the chance of missingthe information of a road sign can be reduced and,therefore, driving in dark can be safer than before. Theextra functions such as road sign recognition and rear camera can ease the driving task.The detailed design and implementation of SNVS arealso presented. An overview of the hardware configurationand software architecture of the system are shown.We also discuss the implementation procedures andalgorithms involved in our system. The experimentalresults have demonstrated the feasibility of the proposed

system. The road sign recognition rate is around 67%and the average false alarm per minute is 0.4. The systemcan be further improved in two aspects: hardware andsoftware. For example, fish eye view cameras can beused to provider wider field of view and cameras with

optical zoom capability can help to increase the resolutionof the road sign so that higher recognition rate canbe achieved. In the software part, applying optical flowalgorithm into the road sign tracking process may improvethe reliability of the road sign detection.We believed that driving can be an enjoyable task.With the advance of technology, automobiles equippedwith embedded system are expected to be a trend in future.

SNVS can be regarded as a pioneer prototype toimprove driving experience and enhance driving safetyin the dark.

AcknowledgementsThe work described in this paper was partially supportedby a grant from the Research Grants Council of the Hong Kong Special Administrative Region, China(Project No. 415207).

References[1] DRIVSCO project: http://www.pspc.dibe.unige.it/~drivsco[2] http://www.bmw.com/com/en/newvehicles/6series/coupe/2

007/allfacts/ergonomics_nightvision.html[3] http://www.mercedesforum.com/m_35841/tm.htm[4] International presenters Tsz-Ho Yu, Yiu-Sang Moon, JianshengChen, Hung-Kwan Fung, Hoi-Fung Ko and Ran Wang 

Department of Computer Science and Engineering,The Chinese University of Hong Kong, Shatin, Hong Kong

{thyu, ysmoon, jschen, hkfung, hfko, rwang}@cse.cuhk.edu.hk[7] http://www.bmw.com/com/en/new