Image Processing and Particle Analysis for Road Traffic Detection

Similar documents
Morphological Image Processing Approach of Vehicle Detection for Real-Time Traffic Analysis

An Evaluation of Automatic License Plate Recognition Vikas Kotagyale, Prof.S.D.Joshi

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

World Journal of Engineering Research and Technology WJERT

AUTOMATIC NUMBER PLATE DETECTION USING IMAGE PROCESSING AND PAYMENT AT TOLL PLAZA

Implementation of License Plate Recognition System in ARM Cortex A8 Board

COMPARATIVE PERFORMANCE ANALYSIS OF HAND GESTURE RECOGNITION TECHNIQUES

Vehicle Number Plate Recognition with Bilinear Interpolation and Plotting Horizontal and Vertical Edge Processing Histogram with Sound Signals

Number Plate Recognition System using OCR for Automatic Toll Collection

AUTOMATIC LICENSE PLATE RECOGNITION USING IMAGE PROCESSING AND NEURAL NETWORK

VEHICLE LICENSE PLATE DETECTION ALGORITHM BASED ON STATISTICAL CHARACTERISTICS IN HSI COLOR MODEL

MAV-ID card processing using camera images

Smart License Plate Recognition Using Optical Character Recognition Based on the Multicopter

Automated Driving Car Using Image Processing

Digital Image Processing Lec.(3) 4 th class

Keyword: Morphological operation, template matching, license plate localization, character recognition.

Machine Vision for the Life Sciences

An Artificial Intelligence System for Monitoring and Security for Vehicular Plate Number in Lyceum of the Philippines University Laguna

Automatics Vehicle License Plate Recognition using MATLAB

Real-Time License Plate Localisation on FPGA

Vehicle License Plate Recognition System Using LoG Operator for Edge Detection and Radon Transform for Slant Correction

Automatic Licenses Plate Recognition System

Matlab Based Vehicle Number Plate Recognition

Automated License Plate Recognition for Toll Booth Application

FPGA based Real-time Automatic Number Plate Recognition System for Modern License Plates in Sri Lanka

A Novel Morphological Method for Detection and Recognition of Vehicle License Plates

Automatic License Plate Recognition System using Histogram Graph Algorithm

ISSN No: International Journal & Magazine of Engineering, Technology, Management and Research

Volume 7, Issue 5, May 2017

IMAGE PROCESSING FOR EVERYONE

Recognition Of Vehicle Number Plate Using MATLAB

OPEN CV BASED AUTONOMOUS RC-CAR

License Plate Localisation based on Morphological Operations

Detection and Verification of Missing Components in SMD using AOI Techniques

Image Processing. 2. Point Processes. Computer Engineering, Sejong University Dongil Han. Spatial domain processing

International Journal of Advance Engineering and Research Development

An Improved Bernsen Algorithm Approaches For License Plate Recognition

Automated Car Number Plate Detection System to detect far number plates Jatinder Singh 1 Vinay Bhardwaj 2

Malaysian Car Number Plate Detection System Based on Template Matching and Colour Information

A Review of Optical Character Recognition System for Recognition of Printed Text

Detection of License Plates of Vehicles

NON UNIFORM BACKGROUND REMOVAL FOR PARTICLE ANALYSIS BASED ON MORPHOLOGICAL STRUCTURING ELEMENT:

Computer Vision. Howie Choset Introduction to Robotics

Automated Number Plate Recognition System Using Machine learning algorithms (Kstar)

ME 6406 MACHINE VISION. Georgia Institute of Technology

Wheeler-Classified Vehicle Detection System using CCTV Cameras

Locating the Query Block in a Source Document Image

Digitizing Color. Place Value in a Decimal Number. Place Value in a Binary Number. Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally

FACE RECOGNITION BY PIXEL INTENSITY

Automatic Morphological Segmentation and Region Growing Method of Diagnosing Medical Images

Automated Number Plate Verification System based on Video Analytics

5/17/2009. Digitizing Color. Place Value in a Binary Number. Place Value in a Decimal Number. Place Value in a Binary Number

AUTOMATIC IRAQI CARS NUMBER PLATES EXTRACTION

USE OF HISTOGRAM EQUALIZATION IN IMAGE PROCESSING FOR IMAGE ENHANCEMENT

An Automatic System for Detecting the Vehicle Registration Plate from Video in Foggy and Rainy Environments using Restoration Technique

Table of Contents 1. Image processing Measurements System Tools...10

CHARACTERS RECONGNIZATION OF AUTOMOBILE LICENSE PLATES ON THE DIGITAL IMAGE Rajasekhar Junjunuri* 1, Sandeep Kotta 1

][ R G [ Q] Y =[ a b c. d e f. g h I

APPLICATION OF COMPUTER VISION FOR DETERMINATION OF SYMMETRICAL OBJECT POSITION IN THREE DIMENSIONAL SPACE

A Global-Local Contrast based Image Enhancement Technique based on Local Standard Deviation

Number Plate Recognition Using Segmentation

Real-Time Face Detection and Tracking for High Resolution Smart Camera System

A NOVEL APPROACH FOR CHARACTER RECOGNITION OF VEHICLE NUMBER PLATES USING CLASSIFICATION

An Efficient Method for Vehicle License Plate Detection in Complex Scenes

Libyan Licenses Plate Recognition Using Template Matching Method

Linear Gaussian Method to Detect Blurry Digital Images using SIFT

Bandit Detection using Color Detection Method

Keywords ANPR, Acquisition, Character Segmentation, Localization, DWT, Haar wavelet.

A new technique for distance measurement of between vehicles to vehicles by plate car using image processing

Lane Segmentation for Self-Driving Cars using Image Processing

Real- Time Computer Vision and Robotics Using Analog VLSI Circuits

EE 5359 MULTIMEDIA PROCESSING. Vehicle License Plate Detection Algorithm Based on Statistical Characteristics in HSI Color Model

Exercise questions for Machine vision

IJRASET 2015: All Rights are Reserved

License Plate Recognition Using Convolutional Neural Network

Automatic Electricity Meter Reading Based on Image Processing

Hand Segmentation for Hand Gesture Recognition

An Approach to Korean License Plate Recognition Based on Vertical Edge Matching

AN EXPANDED-HAAR WAVELET TRANSFORM AND MORPHOLOGICAL DEAL BASED APPROACH FOR VEHICLE LICENSE PLATE LOCALIZATION IN INDIAN CONDITIONS

Bare PCB Inspection and Sorting System

A Study for Choosing The Best Pixel Surveying Method by Using Pixel Decision Structures in Satellite Images

Smart Parking System for Locating Vacant Parking Slots

Feasibility of a multifunctional morphological system for use on field programmable gate arrays

Fig.1: Sample license plate images[13] A typical LPR system is composed of several hardware and software components as illustrated in Figure 2

Car Over-Speed Detection with Remote Alerting

AN EFFICIENT TRAFFIC CONTROL SYSTEM BASED ON DENSITY

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

Human Computer Interaction by Gesture Recognition

Improving the Safety and Efficiency of Roadway Maintenance Phase II: Developing a Vision Guidance System for the Robotic Roadway Message Painter

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Gesture Based Smart Home Automation System Using Real Time Inputs

A Real Time Automatic License Plate Recognition Using Optical Character Recognition

IMAGE PROCESSING: POINT PROCESSES

Design and Implementation of an Intelligent Parking Management System Using Image Processing

MICROCHIP PATTERN RECOGNITION BASED ON OPTICAL CORRELATOR

CS 484, Fall 2018 Homework Assignment 1: Binary Image Analysis

Kye-Si Kwon and Steven Ready Practical Guide to Machine Vision Software

Automated Parking Management System Using License Plate Recognition

Real Time ALPR for Vehicle Identification Using Neural Network

Cellular Bioengineering Boot Camp. Image Analysis

Transcription:

Image Processing and Particle Analysis for Road Traffic Detection ABSTRACT Aditya Kamath Manipal Institute of Technology Manipal, India This article presents a system developed using graphic programming on LabVIEW using image processing and particle analysis so as to indicate increase in vehicular density on particularly traffic-prone roads and hence alert necessary officials of the same instantly. This system primarily focusses on the vehicular density and sets specific thresholds in accordance with the time of the day to give almost accurate results. It also displays an application of computer vision for traffic flow management and road traffic analysis. The method mentioned provides the functionality of alert during times of road clogging and will hence; ensure immediate rectification of the same. General Terms Particle Analysis, LabVIEW, Graphical Programming, Image Processing Applications Keywords Computer Vision, Traffic Analysis, Image Processing, Particle Analysis, Visual Programming. 1. INTRODUCTION In metropolitan cities, especially in overpopulated countries like India, control and regulation of traffic is a very crucial detail to ensure safety for commuters. A recent boom in vehicular numbers just elevates this problem. It is imperative that appropriate measures be taken to curb this problem or at least develop a system to be precise enough to reduce it to a great extent, while decreasing human effort at the same time. The approach in this article focusses on methods of image processing and computer vision using pre-defined modules of pattern analysis and image filtering with a user-friendly interface for data calibration. This real-time system is based on stationary video cameras connected to computers/processing devices. The objective of this document is to provide solution to the aforementioned problem of excessive road traffic using National Instruments visual programming language, LabVIEW. Usage of graphical programming enables easy debugging, easy calibration and hence ensures greater accuracy. Several other systems involving the same idea have been implemented [1][2] but this system aims at reducing computational costs with respect to simplicity in the algorithm used and the increasing of efficiency due to additional debugging capabilities. 2. OVERVIEW Abhijeet Khanna Manipal Institute of Technology Manipal, India This section covers the details regarding preparation of the system, the algorithms and calculations used and a description of the development environment. 2.1 Overview of LabVIEW and graphical programming LabVIEW, short for Laboratory Virtual Instrumentation Engineering Workbench is a visual programming software developed by National Instruments. LabVIEW is used usually for data acquisition, instrument control and industrial instrumentation. For additional functionality, LabVIEW has various modules like, Vision and Motion, Robotics, Data Acquisition which can be used instead of standard modular programming for an easier approach to the end result of a project. Graphical programming is a kind of programming method incorporated in LabVIEW. This includes usage of modules for particular functions. Such a method of programming increases the capability of debugging to a great extent and allows easy programming. 2.2 Image Processing methods used This system involves usage of various pre-defined image processing modules and algorithms to get a more advanced image from road traffic camera footage. Following are the methods used: 2.1.1 Color plane extraction An RGB image (of three color planes red, green and blue) is converted into an 8-bit grayscale image by extracting the information of a single color plane and discarding all the other elements of the original image. The final image after this method is made of three parameters hue, saturation and luminance (HSL). Leaving just the luminance plane, a final grayscale output is extracted. 2.1.2 Image reversal This is a particular toll in the grayscale image tab which operates on 8-bit grayscale images only. This method involves inverting the intensity of gray in the images. Grayscale involves an image of varied intensities. 255 for white and 0 for black. The intensity value at every point is subtracted from 255 to get the inverted intensity. 2.1.3 Gray morphology This tool performs the basic grayscale morphological operations: a. Erode b. Dilate c. Open 26

d. Close e. Proper open f. Proper close This idea uses the process of Proper Open Gray morphological filter. As mentioned in a lecture by Gleb V. Tcheslavski [3], the opening and closing of images can have a simple geometric interpretation. Assuming the image as a function f(x,y) is viewed as a three-dimensional surface, the opening of the function f(x,y) by a structuring element b(x,y) can be stated as the pushing of the structural element from below, against the undersurface of f(x,y). Luminance Plane Extraction Image Reversal using LUTs Proper Open Gray Morphology Masking Thresholding (manual or automatic) Figure 2: Filtering procedure 2.3 Hardware Review Although this system can be incorporated using feed from the cameras installed on the roads/junctions, special equipment from National Instruments will be helpful at locations where high amounts of processing is required. The NI Smart Cam 17xx series is a range of cameras by National Instruments which have inbuilt processers that process data and output only necessary information. 2.4 System Overview Figure 1: Description of Open and Close operations on images On opening, the intensity of all bright particles in the image is decreased, depending upon the sizes of the particles in comparison with the structural element. This method was chosen with the basic intention that the total image is a bit brighter considering this image, unlike the erosion operation has negligible effects on the dark regions of the image. 2.1.4 Grayscale thresholding This method involves conversion of a grayscale image to a binary image with respect to a threshold value manually chosen using a scroll-bar on the tool in LabVIEW. The threshold is in essence an intensity value. All pixels with intensities above this value is maintained as one color and all intensities below the value are set as the other color (Black or Red, according to manual controls on LabVIEW. This is further changed to Black and White for processes later). 2.1.5 Image masking and arithmetic operations These toolboxes consist of arithmetic and logical operations to be performed on the captured images. To provide additional accuracy to the program, images of the empty road are captured and appropriate logical expressions are created to remove the parts of the road observed by the camera during the times of traffic. This leaves only the images of the vehicles in the final output. Now, regions that are not required are masked, i.e. those parts are removed from the image. The final output displays only the vehicles on the road. Figure 3: Basic System Algorithm Once the system described in Figure 1 is designed on LabVIEW, it is incorporated on-site. The description is showed in detail in Figure 2. 27

Figure 4: On-site system description 3. DESIGN AND METHODOLOGY 3.1 Design process Image processing on LabVIEW involves a Vision Assistant module, a tool which can be used to incorporate morphological filters, logical operations and other methods mentioned with sufficient ease. The installation of this system is done in the control room and the initial calibration is done on both empty roads and ones with vehicles. An image of the empty road is captured in different times of the day, masked and is compared with the masked image of the same road with traffic using the exclusive OR (XOR) operation. The end result is an image showing objects not present in one of the images only, i.e. vehicles, in this instance. Calibrations are performed on this final image. The images of the calibration process performed during prototyping are shown in Section 4 (Figure 3 to Figure 8). This calibration process is followed by the calculation of the area of the total part of the image in red. This is compared with the total area of image and is then compared with a set threshold. If the amount of red is more, a signal indicating high road traffic is initiated. All of this is done using the Particle Analysis tool. This tool generates an automated report regarding the particles in the image. The parameters can be chosen. An example of such a generated report is shown in Section 4 (Figure 9) 3.2 Errors and rectifications A huge hurdle faced during the development of this system was the change in threshold values in different intensities of light. One rectification method thought of was using inbuilt LabVIEW modules to increase light intensity in the received video stream in inverse proportion to the time of the day or the intensity of light at the time. As the implementation of this was quite difficult and created errors in debugging, a simpler system was thought of the usage of a highly sensitive light intensity detector. A small prototype was made using the Arduino development board and the Arduino IDE to detect analog values given by a Light Dependent Resistor (LDR) and change in threshold values accordingly. The same system could be implemented in this case. The sensor could detect light intensity at times and can measure pre-defined threshold and ratio values from an already calibrated Look Up Table (LUT) which can be defined in LabVIEW. This could give more accurate values and data at all times of the day. 3.3 Improvement, current and future works This segment describes future implementations of this system and modifications for modular use in different cases. 3.3.1 Inclusion of microphones This idea requires the usage of microphones to detect anomalies in physical noise levels. This system then can be integrated with the aforementioned system to get more accurate results. This is in accordance with the fact that there might be incidents like accidents which might not cause clogging of the roads. 3.3.2 Automatic number plate recognition Several ideas of the usage of number plate recognition for using image processing have been developed. Ideas by Kim et al [4] or Hansen et al [5] have been implemented successfully but none of these ideas have implemented LabVIEW. Building on one of the LabVIEW implementations by Kuldeepak, Kaushik and Vashishath [6], this development includes the usage of the LabVIEW toolkit of Optical Character Recognition (OCR) to detect and recognize alphanumeric details on number plates of vehicles. Errors in this idea include different placements of number plates and this could possibly be standardized for rectification. A basic algorithm is mentioned in the flowchart below. Figure 5: Algorithm for recognition of number plates using LabVIEW 28

3.3.3 Efficient traffic light control This could be controlled in relation with the thresholding and particle analysis to control traffic lights during times of road clogging. Road/Junction traffic could be controlled by giving more preference to the roads with more density of vehicles. Although several systems [7] have been developed on the same idea, the same can be implemented as an addition to the system described in this paper. 3.3.4 Prevention of traffic signal violation Implementation of this idea needs the usage of cameras to detect motion/discrepancies in stream after thresholding in the area in front of the traffic signals. If any values are detected in the region with motion in a particular direction, the cameras for number plate recognition is initiated. 3.3.5 Implementation of machine learning for automatic thresholding This idea involves usage of machine learning algorithms to train the system so as for it to learn to change threshold values automatically according to light intensity. 3.3.6 Transmission of road traffic data to user Owing to the major usage of smart-phones in the current world, this solution requires the development of applications in major mobile operating systems. A basic algorithm for the process of the application is mentioned in the flowchart below. Figure 6: Description of algorithm for the transmission of road traffic data to users via a smart-phone application 29

4. FIGURES/TABLES Figure 11: Manual Threshold Figure 7: Original Image Figure 12: After thresholding Figure 8: Extracting HSL luminance plane Figure 13: First mask Figure 9: Image reversal using LUTs Figure 14: Second mask Figure 10: Proper open gray morphological filter 30

Figure 15: Third mask Figure 16: Particles labeled Object Area Image Area % Area/Image Area # 1 11039 117936 9.36016 2 36 117936 0.03053 3 1 117936 0.000848 4 1 117936 0.000848 5 123 117936 0.10429 6 15 117936 0.01272 7 13 117936 0.01102 8 2079 117936 1.76282 9 2 117936 0.0017 10 6 117936 0.00509 11 1 117936 0.000848 12 3 117936 0.00254 13 1 117936 0.000848 14 5 117936 0.00424 15 5 117936 0.00424 16 6 117936 0.00509 17 2 117936 0.0017 18 4 117936 0.00339 19 1 117936 0.000848 20 7 117936 0.00594 21 2 117936 0.0017 22 1 117936 0.00001 23 1 117936 0.000848 24 1 117936 0.000848 25 1 117936 0.000848 26 1 117936 0.000848 27 5 117936 0.00424 28 1 117936 0.000848 29 2 117936 0.0017 30 1 117936 0.000848 31 1 117936 0.000848 32 8 117936 0.00678 33 12 117936 0.01018 34 1 117936 0.000848 35 12 117936 0.01018 36 2 117936 0.0017 37 1 117936 0.000848 38 2 117936 0.0017 39 4 117936 0.00339 40 3 117936 0.00254 41 1 117936 0.000848 42 1 117936 0.000848 43 2 117936 0.0017 44 6 117936 0.00509 45 3 117936 0.00254 46 1 117936 0.000848 47 67 117936 0.05681 48 1 117936 0.000848 49 1 117936 0.000848 50 1 117936 0.000848 51 2 117936 0.0017 52 4 117936 0.00339 53 43 117936 0.03646 54 1 117936 0.000848 55 2 117936 0.0017 56 1 117936 0.000848 57 1 117936 0.000848 58 1 117936 0.000848 59 1551 117936 1.31512 60 3 117936 0.00254 61 4 117936 0.00339 62 1 117936 0.000848 63 1 117936 0.000848 64 1 117936 0.000848 65 3 117936 0.00254 66 1093 117936 0.92677 67 1 117936 0.000848 68 1 117936 0.000848 31

69 1 117936 0.000848 70 3 117936 0.00254 71 2 117936 0.0017 72 1 117936 0.000848 73 4 117936 0.00339 74 5 117936 0.00424 75 4 117936 0.00339 76 3 117936 0.00254 77 1 117936 0.000848 78 2 117936 0.0017 79 2 117936 0.0017 80 1 117936 0.000848 81 8 117936 0.00678 Total 16247 117936 13.775304 15 10 Percentage =16247/117936*100 13.77611586 Table 1: Particle measurements and measurement of percentage density of vehicular traffic 5 0 % Area/Image Area 0 20 40 60 80 100 % Area/Image Area Graph 1: Particle measurements and measurement of percentage density of vehicular traffic 5. CONCLUSION In conclusion, this system could be implemented in the present day scenario regarding road traffic detection and control while reducing manual video stream monitoring time (reduction of human effort). In addition, this system is fairly simple to incorporate and calibrate and as all codes can be converted into executable files, no extra software requirements are required with the currently used systems. 6. REFERENCES [1] V. Kastrinaki, M. Zervakis and K. Kalaitzakis, A Survey of Video Processing Techniques for Traffic Applications, Image and Vision Computing, vol. 21, pp 359-381, Apr 1, 2003. [2] E. Atkociunas, R. Blake, A Juozapavicius and M. Kazimianec, Image Processing in Road Traffic Analysis, Nonlinear Analysis: Modelling and Control, 2005, vol. 10, no. 4, pp 315-332 [3] Morphological Image Processing: Gray Scale Morphology, Gleb V. Tcheslavski. http://ee.lamar.edu/gleb/dip/index.htm [4] Kim, K. K., Kim, K. I., Kim, J.B., and Kim, H. J., "Learning based approach for license plate recognition", Proceedings of IEEE Processing Society Workshop on Neural Networks for Signal Processing, vol. 2, pp: 614-623, 2000. [5] Cowell, J., and Hussain, F., "Extracting features from Arabic characters",proceedings of the IASTED International Conference on COMPUTER GRAPHICS AND IMAGING, Honolulu, Hawaii, USA, pp. 201-206, 2001 [6] Kuldeepak, Monika Kaushik, Munish Vashishath, License Plate Recognition System based on Image Processing Using LabVIEW. International Journal of Electronics Communication and Computer Technology (IJECCT), Vol 2, Issue 4, July 2012 [7] Pallavi Choudekar, Sayanti Banerjee and M. K. Muju, Real Time Traffic Light Control Using Image Processing Indian Journal of Computer Science and Engineering (IJCSE), vol. 2, no. 1, ISSN: 0976-5166. 32