Classification of Vehicles using Image Processing Techniques

DOI : 10.17577/IJERTCONV3IS21012

Download Full-Text PDF Cite this Publication

Text Only Version

Classification of Vehicles using Image Processing Techniques

Shobha Rani.B.R

Dept. of M.C.A

Dr. Ambedkar Institute of Technology Bangalore, India

Teja.K.S

Dept. Dept. of M.C.A

Suparna.B. M

Dept. Dept. of M.C.A

Dr. Ambedkar Institute of Technology Bangalore, India

Dr. Ambedkar Institute of Technology Bangalore, India

Abstract In the present life style everything is turning into automatic. This research helps in identifying the vehicles and tells if it is a LMV or HMV. In toll collection plazas this project can play a very important role in identifying the incoming vehicle and fix the toll rate as per the kind of vehicle. Classification of LMV and HMV is done using the image of the incoming vehicle captured and processed to find the kind of vehicle that is entering into the frame of a camera. The camera is placed where the front view of the vehicle is clearly visible with a static background. A picture is captured when the vehicle is at a defined distance. Once the image is captured, the same is processed and worked on to find the length and width of the vehicle. And thus we will be identifying it as a Light Motor Vehicle (LMV) or a Heavy Motor Vehicle (HMV).

Index Terms Segmentation; background subtraction; region tracking; vehicle classification

  1. INTRODUCTION

    DETECTING and TRACKING vehicles is an important and emerging research area for intelligent transportation systems. Image processing plays an important role in detecting vehicles from a traffic surveillance videos. Traffic monitoring through image processing leads to better control of flow of traffic as well as to identify reckless users and speed violators.

    Usually Image Processing system includes treating images as two dimensional signals while applying already set signal processing methods to them. Vehicle classification is an efficient technique used for transportation systems such as toll stations, traffic Intersections, traffic congestion avoidance, terrorist activities inspection etc. Different toll stations define a standard for classifying vehicles. This standard is based on different types of vehicles like two- wheeler, four-wheeler, heavy-motor vehicles. There are some standard hardware based systems for detecting and classifying the vehicles coming near the toll stations like sensors, loop detectors etc. But the installation and maintenance charges are high, as the detectors are costly, can cause damage to the roads and would give limited information on the vehicles. Whereas using software based classification, installation and maintenance is very cost

    effective as the detection is done using video frames or through static photographs take from the cameras installed in front of the lanes of the toll section. Hence the technique of detecting vehicles using video frames is more advantages than other technologies.

    Classification of the vehicles on the road in traffic has many advantages and uses. Some of them are listed below:

    • Will be able to find the kind of vehicles that travel in that given area.

    • A count can be kept on the particular kind of vehicle that passes in front of the eyes of the camera.

    • Security and surveillance: can improve the security of a place and prevent unwanted attention.

    • Traffic management: The prohibited vehicles in a particular road or an area can cause a lot of traffic problem and cause delay.

    Now a days the video camera or still cameras are installed in almost installed in every corner of the road and traffic intersection, so it is not a difficult job to capture the images of incoming vehicles and process on it. The surveillance cameras put in toll gates help in collecting the tolls as per the kind of the vehicle. The cameras can be setup in any place where there is a static background and only one vehicle is visible in the frame.

    Classification of vehicles is a challenging problem and a process that is still going on. Difficulties in classification of vehicles can arise due to abrupt vehicle motion, changing background and scene, vehicles of non-standard size, vehicle occlusions, and camera motion. Classification of vehicles is usually performed in the context of higher-level applications that require the location of the vehicle at every frame. In this paper the incoming vehicle is differentiated into a light motor vehicle or a heavy motor vehicle depending on its length and breadth.

    The rest of the paper is organized as follows: in section 2, brief descriptions of the literature survey are discussed. In section 3, vehicle classification techniques, a method for vehicle classification based height and width. In section 4, experimental results along with performance evaluation are

    given in section 5. Finally conclusion and future enhancements are mentioned in section 6.

  2. LITERATURE SURVEY

    An Automatic vehicle counting system makes use of video data acquired from stationary traffic cameras, performing causal mathematical operations over a set of frames obtained from the video to estimate the number of vehicles present in a scene. It is just the ability of automatically extract and recognize the number of vehicles in each frame. Detection involves different steps in indentifying vehicles in video. Firstly background/Foreground Extraction has been done using different techniques as discussed in [1-2] by Sen-Ching

    S. Cheung and Chandrika Kamath ,like frame differencing, adaptive median filtering, median filtering, mixture of Gaussians, and Kalman filtering. Once foreground is extracted, apply morphological operations on it which eliminates isolated foreground pixels and merges nearby disconnected foreground regions. Using blobs (bounding boxes) as discussed in [3] were used to identify and track vehicles. Also, different feature extraction methods such as principal component analysis, wavelets, and Gabor filters have been used in vehicle detection.

    A rear-vehicle detection system of static images based on monocular vision is presented in [7], which segments the region of interest (ROI) by using the shadow underneath the vehicle and determine the edges and later accurately localizes the ROI by vehicle features such as symmetry, edges and the shadow underneath the vehicle, etc. Finally, it completes vehicle detection by combining knowledge-based and statistics-based methods.

    A survey on vision-based on road vehicle detection and shape recognition algorithms using fuzzy logic, contour matching, sensor fusion, support vector machine, probability distribution, hidden markov model are discussed[12]. These methods save the information very fast and consumes less time for the systems to react in case of an emergency.

  3. VEHICLE DETECTION

    Traffic management and information systems rely on a suite of sensors for estimating traffic parameters. Currently, magnetic loop detectors are often used to count vehicles passing over them. Vision-based video monitoring systems offer a number of advantages. In addition to vehicle counts, a much larger set of traffic parameters such as vehicle classifications, lane changes, etc. can be measured. Besides, cameras are much less disruptive to install than loop detectors. Numerous approaches have been introduced for object and vehicle detection based on shape, color, texture or combination of any of these features on both still image and moving images. There are different image processing techniques in detecting and tracking vehicles in traffic surveillance videos. The paper[4] proposes an efficient video based vehicle detection system based on Harri-Stephen corner detector algorithm. The algorithm was used to develop a standalone vehicle detection and tracking system that determines vehicle counts and speeds at arterial road- ways and freeways. The proposed video based vehicle detection system was developed to eliminate the need of com- plex

    calibration, robustness to contrasts variations, and better performance with low resolutions videos. The algorithm performance for accuracy in vehicle counts and speed was evaluated. The performance of the proposed system is equi- valent or better compared to a commercial vehicle detection system. Using the developed vehicle detection and tracking system an advance warning intelligent transportation system was designed and implemented to alert commuters in ad- vance of speed reductions and congestions at work zones and special events.

  4. PROPOSED METHOD

    1. System Overview

      The proposed system has four stages in identifying and classifying the incoming vehicles viz, reading a image, background subtraction, bounding the identified image with bounding box and measuring the properties of the detected vehicle like height, length, width etc.,for the region extracted within the bounding box and finally determine the type of vehicle.

    2. Vehicle classification algorithm

    The image of the vehicle is captured using a video or a still camera. The image should be in such a way where the vehicle in the image is completely and clearly visible. Only the front face of the vehicle should be clearly visible, there can be very less occlusions of the vehicle in the image. The image is operated in matlab and processed to find only the vehicle present in the image by removing all the unwanted background in the image. The background of the image needs to be removed so as to make it easy to work on the image. By subtracting the background of the image only the required region in the image is obtained.

    Each vehicle after being detected further classified based on vehicles height and width to indicate the type of the vehicle being passed in each lane at Toll Booths. In this system there is no interference of humans to identify the vehicles, all that is needed here is a camera that capture the images and a computer that processes the image using

    matlab. There are places where humans cannot always keep a watch on the incoming vehicles, so this system will help in identifying the vehicles and can classify them. There are chances where the human who are assigned the work to identify or count the vehicles may miss their sight and miss the vehicles coming, where as this system will not only definitely identify the incoming vehicle but also classify the same as LMV or HMV.

    Once the length and breadth of the vehicles are found in the image, a threshold value is defined to classify it as a LMV or a HMV. A particular threshold values are defined for a LMV and HMV, if the length and breadth of the bounding box falls in the threshold value of a LMV it is determined as an Light Motor Vehicle. If the length and breadth of the bounding box falls in the threshold value of HMV it is determined as a Heavy Motor Vehicle. If the length and breadths of the vehicle in the image does not fall in any of the threshold values due to variation of the constraints, then the type of vehicle cannot be determined.

  5. EXPERIMENTAL RESULTS

    The images considered for this project are all of jpeg format. All the images considered are of RGB type. Tests were conducted on various samples of images. There are about more than 50 images that were tested on this algorithm.

    Fig.1 and Fig. 4 shows the original images of the vehicles coming to the individual lanes of the toll booths. Fig. 2 and Fig. 5 shows the detected vehicle identified by the bounding box obtained after converting the rgb image to gray scale image.Fig.3 and Fig. 6 shows the message boxes being displayed after classifying the vehicle based on height and width of the bounding box.

    Fig: 1 Original Image

    .Fig 2:Bounded Image

    Fig 3 : Message Box

    Fig 4: Original Image

    Toll Booths, no damage to roads, involves very less installation and maintenance cost. This system also provides much more information than hardware based detectors, can be adjusted easily to provide wider view and more information about traffic. The present system only identifies one vehicle. This can be extended in future to identify more than one vehicle in one frame. The algorithm can be extended to work on videos by extracting particular frames of the video and working on those frames as images.

    Fig 5:Bounded image

    Fig 6: Message Box

    Tests were conducted on the algorithm by taking images with vehicles of different colors. When different colors were tried, other than red, yellow and blue, shades of red and brown colored vehicles along with vehicles with different shades of blue gave a fruitful result.

    The algorithm was also tried on images that contained more than one vehicle. The vehicles in the image were recognised but the algorithm failed to put a boundingbox around one single vehicle. Instead the boundingbox was drawn around the whole area.

    True positive-correct identification False positive-wrong identification

    True negative-correctly identified as wrong False negative-wrongly identified as wrong

    Accuracy=33+2/(33+2+2+0)=35/37=.9459=94.59%

    Number of sample images take are a total of 37. Of those images 35 images were correct and 2 images were wrong. There are a few cases where the algorithm has failed, but still obtaining an accuracy of 94.59%. Hence the algorithm can be called as efficient and accurate.

  6. CONCLUSION

The system identifies the incoming vehicle and segregates them as LMV or HMV depending on their size. The size of LMV and that of a HMV varies very much. The size is determined based on the vehicles height and width and the algorithm shows an accuracy of 94.59%. This project is run on MATLAB 2010. Furthermore, it is advantageous due to easy installation of cameras near

REFERENCES

  1. Brutzer, Sebastian, Benjamin Hoferlin, and Gunther Heidemann. "Evaluation of background subtraction techniques for video surveillance." Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on. IEEE, 2011.

  2. Sen-Ching S. Cheung and Chandrika Kamath Robust techniques for background subtraction in urban traffic video ,Visual Communications and Image Processing 2004, Vol. 5308, No. 1. (2004), pp. 881-892.

  3. Djalalov, M.; Nisar, H.; Salih, Y.; Malik, A.S., "An algorithm for vehicle detection and tracking," Intelligent and Advanced Systems (ICIAS), 2010 International Conference on , vol., no., pp.1,5, 15-17 June 2010.

  4. Chintalacheruvu, Naveen, and Venkatesan Muthukumar. "Video based vehicle detection and its application in intelligent transportation systems." Journal of transportation technologies 2.04 (2012): 305.

  5. Kanwal Yousaf, Arta Iftikhar, Ali Javed, Comparative Analysis of Automatic Vehicle Classification Techniques: A Survey, I.J. Image,

    Graphics and Signal Processing, 2012, 9, pp.52-59

  6. Gupte, Surendra, et al. "Detection and classification of vehicles." Intelligent Transportation Systems, IEEE Transactions on 3.1 (2002): 37-47.

  7. Sen-Ching, S. Cheung, and Chandrika Kamath. "Robust techniques for background subtraction in urban traffic video." Electronic Imaging 2004. International Society for Optics and Photonics, 2004.

  8. Alawi, Mahmoud Abdulwahab, Othman O. Khalifa, and MD Rafiqul Islam. "Performance comparison of Background Estimation algorithms for detecting moving vehicle." World Applied Sciences Journal 21 (2013): 109-114.

  9. Vikramaditya Dangi, Amol Parab, Kshitij Pawar & S.S Rathod, Image Processing Based Intelligent Traffic Controller, Undergraduate Academic Research Journal (UARJ), ISSN : 2278 1129, Volume-1, Issue-1, 202.

  10. Aarthi, R., S. Padmavathi, and J. Amudha. "Vehicle detection in static images using color and corner map." Recent Trends in Information, Telecommunication and Computing (ITC), 2010 International Conference on. IEEE, 2010.

  11. Wen, Xuezhi, et al. "A rear-vehicle detection system for static images based on monocular vision." Control, Automation, Robotics and Vision, 2006. ICARCV'06. 9th International Conference on. IEEE, 2006.

  12. Atiq, Hafiz Muhammad, et al. "Vehicle detection and shape recognition using optical sensors: a review." Machine Learning and Computing (ICMLC), 2010 Second International Conference on. IEEE, 2010.

  13. Huang, Deng-Yuan, et al. "Feature-based vehicle flow analysis and measurement for a real-time traffic surveillance system." Journal of Information Hiding and Multimedia Signal Processing 3.3 (2012): 279- 294.

  14. Lipton, Alan J., Hironobu Fujiyoshi, and Raju S. Patil. "Moving target classification and tracking from real-time video." Applications of Computer Vision, 1998. WACV'98. Proceedings., Fourth IEEE Workshop on. IEEE, 1998.

  15. Chen, Zezhi, et al. "Road vehicle classification using support vector machines." Intelligent Computing and Intelligent Systems, 2009. ICIS 2009. IEEE International Conference on. Vol. 4. IEEE, 2009.

  16. Jain, Isha, and Babita Rani. "Vehicle detection using image processing and fuzzy logic." International Journal of Computer Science & Communication 1.2 (2010): 255-257.

Leave a Reply