Vehicle License Plate Number Recognition and Segmentation System

Similar documents
Automatic Licenses Plate Recognition System

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

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

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

An Improved Bernsen Algorithm Approaches For License Plate Recognition

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

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

Number Plate Recognition System using OCR for Automatic Toll Collection

Automatic Electricity Meter Reading Based on Image Processing

Real Time Word to Picture Translation for Chinese Restaurant Menus

Automatic License Plate Recognition System using Histogram Graph Algorithm

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

Extraction and Recognition of Text From Digital English Comic Image Using Median Filter

An Efficient Method for Vehicle License Plate Detection in Complex Scenes

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

Number Plate Recognition Using Segmentation

Automatics Vehicle License Plate Recognition using MATLAB

A new seal verification for Chinese color seal

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

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

Iraqi Car License Plate Recognition Using OCR

Implementation of License Plate Recognition System in ARM Cortex A8 Board

License Plate Localisation based on Morphological Operations

Efficient Car License Plate Detection and Recognition by Using Vertical Edge Based Method

Libyan Licenses Plate Recognition Using Template Matching Method

World Journal of Engineering Research and Technology WJERT

A Chinese License Plate Recognition System

Automated License Plate Recognition for Toll Booth Application

License Plate Recognition Using Convolutional Neural Network

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

Real-Time License Plate Localisation on FPGA

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

Detection of License Plates of Vehicles

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

Method for Real Time Text Extraction of Digital Manga Comic

IJSRD - International Journal for Scientific Research & Development Vol. 4, Issue 05, 2016 ISSN (online):

AUTOMATIC LICENSE PLATE RECOGNITION USING IMAGE PROCESSING AND NEURAL NETWORK

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

Volume 7, Issue 5, May 2017

A Novel Method for Enhancing Satellite & Land Survey Images Using Color Filter Array Interpolation Technique (CFA)

An Effective Method for Removing Scratches and Restoring Low -Quality QR Code Images

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

A Method of Multi-License Plate Location in Road Bayonet Image

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

Research on Pupil Segmentation and Localization in Micro Operation Hu BinLiang1, a, Chen GuoLiang2, b, Ma Hui2, c

HEURISTICS FOR LICENSE PLATE DETECTION AND EXTRACTION

An Electronic Eye to Improve Efficiency of Cut Tile Measuring Function

Deep Green. System for real-time tracking and playing the board game Reversi. Final Project Submitted by: Nadav Erell

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

Matlab Based Vehicle Number Plate Recognition

Mobile Based Application to Scan the Number Plate and To Verify the Owner Details

Study and Analysis of various preprocessing approaches to enhance Offline Handwritten Gujarati Numerals for feature extraction

MAV-ID card processing using camera images

COMPARATIVE PERFORMANCE ANALYSIS OF HAND GESTURE RECOGNITION TECHNIQUES

Contrast adaptive binarization of low quality document images

Combined Approach for Face Detection, Eye Region Detection and Eye State Analysis- Extended Paper

Exercise questions for Machine vision

International Journal of Advanced Research in Computer Science and Software Engineering

International Journal of Scientific & Engineering Research, Volume 5, Issue 5, May ISSN

International Journal of Advance Engineering and Research Development

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

Enhanced MLP Input-Output Mapping for Degraded Pattern Recognition

Colored Rubber Stamp Removal from Document Images

Image Processing and Particle Analysis for Road Traffic Detection

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

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

International Conference on Computer, Communication, Control and Information Technology (C 3 IT 2009) Paper Code: DSIP-024

Advanced Maximal Similarity Based Region Merging By User Interactions

A Simple Skew Correction Method of Sudanese License Plate

Text Extraction from Images

Real Time ALPR for Vehicle Identification Using Neural Network

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

Chapter 17. Shape-Based Operations

Recursive Text Segmentation for Color Images for Indonesian Automated Document Reader

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

AUTOMATED MALARIA PARASITE DETECTION BASED ON IMAGE PROCESSING PROJECT REFERENCE NO.: 38S1511

Nova Full-Screen Calibration System

A Real Time Automatic License Plate Recognition Using Optical Character Recognition

Scrabble Board Automatic Detector for Third Party Applications

AUTOMATIC IRAQI CARS NUMBER PLATES EXTRACTION

Locating the Query Block in a Source Document Image

Number Plate recognition System

Machine Vision for the Life Sciences

Implementation of Barcode Localization Technique using Morphological Operations

IJRASET 2015: All Rights are Reserved

Nigerian Vehicle License Plate Recognition System using Artificial Neural Network

Automated Number Plate Verification System based on Video Analytics

RESEARCH PAPER FOR ARBITRARY ORIENTED TEAM TEXT DETECTION IN VIDEO IMAGES USING CONNECTED COMPONENT ANALYSIS

A SURVEY ON HAND GESTURE RECOGNITION

THE PROPOSED IRAQI VEHICLE LICENSE PLATE RECOGNITION SYSTEM BY USING PREWITT EDGE DETECTION ALGORITHM

PRODUCT RECOGNITION USING LABEL AND BARCODES

An Analysis of Image Denoising and Restoration of Handwritten Degraded Document Images

Keywords: Image segmentation, pixels, threshold, histograms, MATLAB

A Study on Single Camera Based ANPR System for Improvement of Vehicle Number Plate Recognition on Multi-lane Roads

License Plate Recognition. Patrick Greene

Wheeler-Classified Vehicle Detection System using CCTV Cameras

CHAPTER 4 LOCATING THE CENTER OF THE OPTIC DISC AND MACULA

Blur Detection for Historical Document Images

Modelling, Simulation and Computing Laboratory (msclab) School of Engineering and Information Technology, Universiti Malaysia Sabah, Malaysia

An Adaptive Kernel-Growing Median Filter for High Noise Images. Jacob Laurel. Birmingham, AL, USA. Birmingham, AL, USA

Transcription:

e t International Journal on Emerging Technologies 2(2): 75-79(2011) ISSN No. (Print) : 0975-8364 ISSN No. (Online) : 2249-3255 Vehicle License Plate Number Recognition and Segmentation System Aamir Khan, Devesh Pratap Singh, Pushpraj Singh Tanwar and Amit Rajput Department of Electronics and Communication, RITS, Bhopal, (MP) (Received 8 July, 2011, Accepted 14 August, 2011) ABSTRACT : This paper is proposed License Plate Recognition systems have been developed in the past. Our objective is to design a system implemented on a standard camera-equipped mobile phone, capable of recognizing vehicle license number. As a first step towards it we propose a license plate text segmentation approach that is robust to various lighting conditions, complex background owing to dirty or rusted LP and non-convential fonts. In the Indian scenario, some vehicle owners choose to write their vehicle number plates in regional languages. Since our method does not rely on language-specific features, it is therefore capable of segmenting license number written in different languages. Using color connected component labeling, stroke width and text heuristics we perform the task of accurately segmenting the number from the license plate. Experiments carried out on Indian vehicle license plate (LP) images acquired using a camera-equipped cell phone shows that our system performs well on different LP images some with different types of degradations. OCR evaluation on the extracted LP number text with the proposed method has an accuracy of 98.86%. Keywords: Vehicle License Number Segmentation, Text Segmentation, Mobile Phone based systems, Color Connected Component Labeling. I. INTRODUCTION Automatic License Number Plate Systems have existed for several years now. Our aim however, is to work to wards system implemented on a standard camera equipped cell phone. Such a system may allow the traffic police to enforce road laws more easily. Significant cost reductions can be made due to the elimination of specialized hardware. A complete system may work as follows: The user needs to just click the scene with the vehicle in it. The software on the cell phone proceeds to establish a connection with a central server using the internet and sends the image for processing. The software on the remote server first locates the license plate (LP) using any standard plate-detection algorithm. Subsequently, it segments the characters using our proposed method and recognizes the characters. The number can then be stored in a database or sent back to the client cellphonef or other uses. This improves traffic law enforcement and helps achieve a paperless system where all information is processed and stored electronically on a central server. An alternative may also be to implement the entire processing software on the cell phone itself, eliminating the need for any connection to a remote server. An extension to this use can be smart mobile phone software that can read text from signboards or a restaurant menu, etc. and thereby assist blind users or foreigners to understand the written content by use of appropriate textto-speech or translation software. Thus, as a first step towards such a system, we focus on robust license number segmentation. Our method works well even on degraded images, low resolution mobile camera acquired images; images with poor lighting, complex license plate background, non-conventional character fonts and different languages. Thus, it can also be extended to segmentation of text in any kind of natural scene image. Most other techniques use low-level techniques like morphology [1], histogram projection [2] and the Hough transform [3] for segmenting numbers on the license plate. They make use of the structural features of the LP characters including regularity of character spacing, number of characters, and fixed direction. Some work also makes use of geometric and spatial information. In [4] use of a two-layer Markov network has been made to integrate segmentation and recognition into one system. However, most of them assume text with high contrast on the license plate. Further, very few, if any, studies are available regarding segmentation of characters from LP images acquired with a cell phone camera. In the context of the utility of robust segmentation and extraction of license number text for character recognition purposes, a large number of methods have been presented to identify the segmented characters. Approaches include those using neural networks [5] and template matching [6]. High accuracy rates were reported by them if they receive well segmented character images as input. We propose an approach, based on color connected component labeling, character stroke width and color similarity to segment the LP text. The clear benefit of this method over others is its' robustness in segmenting characters from degraded LP images, low contrast, rusted or damaged LPsetc. Further, the results on images acquired using a cell phone camera yields very promising results, thus proving the efficacy of the system for possible implementation at a later stage on a standard mobile device. The algorithm proposed in this paper is designed to recognize license plates of vehicles automatically. Input of the system is the image of a vehicle captured by a camera. The captured image taken from 4-5 meters away is processed through

76 Khan, Singh, Tanwar and Rajput the license plate extractor with giving its output to segmentation part. Segmentation part separates the characters individually. And finally recognition part recognizes the characters giving the result as the plate number. Plate region extraction is the first stage in this algorithm. Image captured from the camera is first converted to the binary image consisting of only 1's and 0's (only black and white). by three sholding the pixel values of 0 (black) for all pixels in the input image with luminance less than threshold value and 1 (white) for all other pixels. Capture image (original image) and diarized image are Fig. 1 (a) and (b) respectively. (a) Plate region (a) (b) Fig. 1. The binarized image is then processed using some methods. To find the plate region, firstly smearing algorithm is used. Smearing is a method for the extraction of text areas on amixed image. With the smearing algorithm, the image is processed along vertical and horizontal runs (scanlines). If the number of white pixels is less than a desired threshold or greater than any other desired threshold, white pixels a reconverted to black. In this system, threshold values are selected as 10 and 100 for both horizontal and vertical smearing. Else; no change. If number of 'white' pixels > 100 ; pixels become 'black' Else; no change After smearing, a morphological operation, dilation, is applied to the image for specifying the plate location. However, there may be more than one candidate region for plate location. To find the exact region and eliminate the other regions, some criteria tests are applied to the image by smearing and filtering operation. The processed image after this stage is as Fig. 2 (a) and (b) image involving only plate follows: (b) Image involving only plate Fig. 2. After obtaining plate location, region involving only plate is cut giving the plate. In the segmentation of plate characters, license plate is segmented into its constituent parts obtaining the characters individually. Firstly, image is filtered for enhancing the image and removing the noises and unwanted spots. Then dilation operation is applied to the image for separating the characters from each other if the characters are close to each other. After this operation, horizontal and vertical smearing are applied for finding the character regions. The result of this segmentation is given below: Locations of plate characters The next step is to cut the plate characters. It is done by finding starting and end points of characters in horizontal direction. The individual characters cut from the plate are as follows:

II. SYSTEM DESCRIPTION In India, vehicle owners often use non-convential fonts and plate colors for their license plates. Although Indian vehicle Ownership laws specify a particular format for the license plate text, the rule is not strictly followed nor enforced. We may find license plates with both one or two lines of text. Secondly, due to natural degradations like lighting conditions while acquisition of the LP image, poor physical condition of the LP, etc. the LP number extraction process becomes challenging. We acquire images using two mobile phones equipped with a 2MP camera. Further details about the LP images dataset is given in section III. The license plate region in ea Our license number segmentation method consists of two stages. In the first stage, color segmentation is performed at the pixel-level using a novel color connected component labeling technique. In the second stage, we employ stroke and text color information to identify the license number text components. image is detected using a standard plate detection algorithm [7] and the detected region is cropped for license number segmentation. A. License Number segmentation Our license number segmentation method consists of two stages. In the first stage, color segmentation is performed at the pixel-level using a novel color connected component labeling technique. In the second stage, we employ stroke and text color information to identify the license number text components. 1. Color connected component labeling: The most common RGB color format is not suitable for color grouping tasks because there is a lot of correlation between the layers and it is not close to human perceptions. The color difference between two points with the same Euclidean distance in the RGB color space does not reflect the same change in the perceived color. So, we use a color space, namely CIE L*a*b*, which aspires to perceptual uniformity and matches human perception of lightness. Equations for conversion from RGB to this format can be found in [8]. The connected component (CC) labeling algorithm scans an image and groups the pixels into components based on a given pixel connectivity, i.e. all pixels sharing similar intensity values and connected with each other in some way are grouped into a single component. The image is traversed pixel by pixel from left to right and top to bottom. Let (i, j) denote the current pixel at any step in the scanning process. We consider its Khan, Singh, Tanwar and Rajput 77 two upper diagonal neighbors and the left and upper neighbors. The nature of the scanning process is such that these neighbors have already been processed in previous iterations by the time the procedure gets to pixel (i, j). The color distances of the four neighbors from the pixel at (i, j) are computed and our labeling algorithm proceeds as follows: The Euclidean distance between the colors. 1. If none of the neighboring pixels have a color distance smaller than a predefined threshold value Tc, assign a new label to pixel (i, j). 2. If only one of the neighboring pixels has a color distance smaller than Tc, assign its label to pixel (i, j). 3. (a) If two or more neighbors have a color distance smaller than Tc, the pixel at (i, j) is assigned the label of the one that has the least color distance. (b) All the pixels in the image that have the same label as that of the other neighbor pixels are then reassigned with the same label given to pixel (i, j). The threshold parameter Tc decides the similarity between two colors and is set to a value 8 after experimentation. It is observed that in some license plate (LP) images that have poor contrast, the color transition at the edges are not sharp and hence the neighbor pixels belonging to different labels can satisfy the color threshold. This condition leads to merging of previously correctly labeled CCs with the Background CC. To avoid this problem, we check whether the current pixel is an edge pixel or not. The re-alignment step [step 3 (b)] of the algorithm is skipped whenever the current pixel belongs to the edge image. Unlike conventional CC labeling methods that store equivalent label pairs into equivalent classes and perform re-assignment through a second scan, replacing each label by the label assigned to its equivalent class, our approach requires only a single scan through the image. Therefore, our method depends only on the license number plate image size and not on the number of CCs. 2. Stroke Width Estimation: Characters in a license plate usually have uniform stroke width and color. Based on the observation that the dominant stroke width in the entire cropped license plate image normally corresponds to the character stroke width, we seek to estimate the dominant stroke width in the labeled image using a variant of the method proposed in [9]. The possible text candidates are populated by treating all components whose stroke widths are reasonably close to the estimated dominant stroke width.the final text CCs extraction is based on the mean color. The stroke width of each CC is estimated using the edge information. At each pixel (i, j) in the edge map, the gradient angle is first computed. It may be observed here that the orientation of the stroke will generally be in a direction roughly perpendicular to the gradient angle. Let this angle be denoted by (i, j). Also, to accommodate the case of darker text on brighter neighboring background and vice versa the stroke direction could also be in the direction (i, j). Subsequently, we start traversal in the direction (i, j) until

78 Khan, Singh, Tanwar and Rajput we reach another edge pixel. When an edge pixel is found, we check for an angle condition to establish the validity of the traversed stroke segment. A valid stroke-ending edge pixel should have a gradient direction roughly opposite to that of the stroke-starting edge pixel. Thus, we treat the computed stroke segment as valid only if the gradient angle of the stroke-ending pixel is within the range of ± /8 radians from that of the stroke-starting pixel. The range is fixed based on extensive experiments performed. If this condition is satisfied, the length of the stroke segment is assumed to be the stroke width of the component. Now, all pixels in the stroke segment are assigned this particular stroke width, unless it had been previously assigned a smaller stroke width. This process is repeated in the direction This opposite angle condition is normally valid in text CC since they have closed contours and is effective in removing spurious stroke segments. However, after the first pass, complex areas of the character pixels, especially at the corners may not contain the true stroke width. Thus, we make a second pass where process of stroke traversal is repeated. However, this time we compute the median stroke over all the pixels of each valid stroke segment, and replace each pixel of that segment with this median value unless it already contains a smaller stroke width value. A few spurious stroke widths may still be present but since we make use of the dominant stroke width of the components, our results are not affected by such minor inconsistencies. the corresponding stroke width image and edge map for a particular component. Our observation is that this process results in a robust estimation of the stroke width of every component. 3. Final License Number Extraction: For LP number text components, we make use of the fact that the stroke width will be uniform to a large extent. Once the stroke width of the the labeled CC is obtained, we compute a dominant stroke width, SWdom over all those components. SWdom = median (SW) (2) where SW is the set of valid stroke widths. Since, we are dealing with only LP images, the global dominant stroke width will be very close to that of a LP text component. However, the individual stroke widths may differ slightly across different characters. Thus, all the stroke widths having frequency of occurrence greater than 50% of the global dominant stroke frequency are considered. The standard deviation, SWdev of these selected set of stroke widths is computed. Potential LP text components are identified as those CCs whose stroke width lie within (SWdom ± 0.5 SWdev) since the stroke width of the characters in a LP iregular.we compute the distance D color of the mean color of these potential LP text CCs from the mean color of the pixels whose stroke width is equal to SWdom. Assuming that the characters are of uniform color, we filter out CCs having value of color greater than a threshold which is set to 20 after experimentation. The final segmented LP text CCsare those that remain after the stroke width and color-based filtering. III. EXPERIMENTS AND RESULTS Images of vehicle license plates were acquired using a LGKP500 and Nokia phone both equipped with a MP camera. We used 85 images randomly collected from parked vehicles at different locations clicked under unconstrained conditions. These images include some with various kinds Lowenstein distance (LD) on the raw input images on the output from the proposed method 790 469 9 Percentage Accuracy40.63 98.86. The proposed method is implemented using MATLAB v. 7.9 and tested on a laptop PC with an Intel Centrino Duo processor-1.5 GHz CPU/4 GB DDR2 RAMof degradations such as uneven lighting conditions, complex backgrounds owing to rusting of LP, dirty/muddy LP or shadows, etc., variable fonts, and one or two lined text.the test images contain a total of 790 LP number characters. Small images are resized using bi-cubic interpolation so that it has a height of at least 70 pixels while maintaining the aspect ratio. This is done so as to ensure that the edges are properly detected for low resolution LP text.the results of color-based CC labeling and subsequent license number text CC extraction from the stroke width and color information are To illustrate the efficacy of our method, we evaluate the segmented LP number text using Nuance Omnipage Professional 16 (trial version) OCR software. Since, LP number recognition is beyond the scope of the present work we used the OCR software to test the efficiency of successfully segmenting the LP number text with our method. To quantify the OCR results, the Levenhstein distance [10] between the ground truth (raw LP images) and the OCRed text is computed and listed in Table 1. The lower value of LD implies less number of OCR errors. The results of OCR on the raw input images without using the proposed method is 40.63% which markedly increases to 98.86% when it is fed with the processed outputs from our method. IV. CONCLUSIONS In this paper, we primarily deal with the segmentation and extraction of license plate characters using a novel technique. Using color connected component labeling, stroke width and color information we achieve promising results. We evaluate the proposed algorithm on real-world license plate images captured using mobile phone cameras. The experiments show promising results even on degraded images where connected and distorted characters, rusted or muddy/dirty LPs, shadows or uneven lighting conditions are present. Since, we do not make use of any language specific or country specific LP information for our method, the work can be extended to LPs from other countries or in non- English LPs as demonstrated in one of the output (see vehicle license plate with Tamil A). Contribution towards Green Computing. This work is a first step towards a system fully implemented on a cell phone that can be used for traffic management and traffic law enforcement. Traffic

policemen will not need to use paper for noting down LP numbers of law-breaking vehicles. A centralized server can store the LP numbers electronically removing the need for paper on a larger scale. Other possible uses of such a system in contributing towards a greener world are possible and only limited by our imagination.in our future work we intend to implement this system using Symbian C++ on a Simian OS based mobile phone. Thereafter, we will design a complete system that will acquire, process and recognise vehicle LP numbers using just a cell phone and our software installed on it. REFERENCES [1] S. Nomura, K. Yamanaka, O. Katai, H. Kawakami, and T. Shiose, "Anovel adaptive morphological approach for degraded character imagesegmentation," Pattern Recognition, pp. 1961-1975, (2005). [2] S. Zhang, M. Zhang, and X. Ye, "Car plate character extraction under complicated environment," in Proc. of (2004) IEEE Intl. Conf. on Systems, Man and Cybernetics, (2004), p. 47224726. Khan, Singh, Tanwar and Rajput 79 [3] Y. Zhang and C. Zhang, "A new algorithm for character segmentationof license plate." [4] X. Fan, G. Fan, and D. Liang, "Joint segmentation and recognition oflicense plate characters." [5] S.L. Chang, L.S. Chen, Y.C. Chuang, and S.W. Chen, in Automaticlicense plate recognition, pp. 42-53, (2004). [6] S. Belongie, J. Malik, and J. Puzicha, in Shape matching and object recognition using shape contexts, pp. 509-522, (2002). [7] V. Abolghasemi and A. Ahmadyfard, "An edge-based coloraided method for license plate detection," Image and Vision Computing, pp. 1134-1142, (2009). [8] A. Koschan and M. Abidi, Digital Color Image Processing, (2008). [9] B. Epshtein, E. Ofek, and Y. Wexler, "Detecting text in natural scenes with stroke width transform," in Computer Vision and Pattern Recognition (CVPR), (2010) IEEE Conference on, (2010), pp. 2963-2970. [10] V.I. Levenshtein, "Binary codes capable of correcting deletions, insertions, and reversals." in Soviet Physics Doklady, (1966).