An Efficient Method of Vehicle Registration Number Plate Extraction and Recognition using Image
S M Sohel Ranaα, M. Humayun Kabirσ, Md. Shohel Ranaρ & Sanjoy Kumer SarkerѠ
Due to increasing population, the number of vehicles is growing day by day. These increases numbers of vehicles create various problems for traffic police such as signal light violations, parking problems, wrong lane violations and toll booth violations. This research will be helpful to control these traffic violations for traffic police. Moreover, it will also be helpful for the other number plate extraction and character recognition applications. We proposed in this research car registration number extraction and character or number recognition. This research will be able to extract and recognize alphanumeric characters in a given image. The final output will be stored in a text file. This file will have extracted alphanumeric characters. This technology will be, cost effective, fast and highly accurate. In this research we will try various algorithms and logics in MATLAB and find best process to extract number plate and recognition of alphanumeric each character. The main goal of this research is to reduce the manpower, cost, time and to make the process quick and highly available.
Keyword: character recognition, extraction, alphanumeric character, traffic.
Author α σ ρ: Dept. of Electrical and Electronic Engineering, Islamic University, Kushtia.
Ѡ: Dept. of Information and Communication Engineering, Islamic University, Kushtia.
In recent world, the number of vehicle is increasing day by day. According to a recent survey, the number of vehicle on the roads reached more millions last year which creates new challenges for traffic police such as red light violations, wrong lane violations, parking problems, & toll booth violations. There need various automate processes to control that violation in addition to increasing traffic police. To resolve this issue traffic police installed plenty of surveillance devices such as traffic light cameras, parking booth cameras or toll booth cameras. It requires man-power to check these images, note down the vehicle’s registration number and forward it to the appropriate department to take an action on rule violators [1, 2]. Extraction of vehicle registration numbers and alphanumeric characters is the main topic of our research. Vehicle registration number is a unique identity for all vehicles in a given state. It represents a legal license to ply on the road. Therefore, the registration number is the primary, most widely accepted, human readable and mandatory identifier for motor vehicles.
Chittode J S has developed an algorithm based on morphological operations for number plate recognition to monitor and manage parking services . The ROI is another method area which includes the number plate from which alphanumeric characters are recognized. Paunwala proposed a method for directional segmentation which finds ROI using morphological processing . In the case of image acquisition and number plate recognition system Lekhna proposed an effective algorithm which is NPR algorithm . Chunyu C et al.  has developed a technique named global matching of CBP for recognition of vehicle license number plate from vehicle image. This technique has implemented using MATLAB and characters are recognized using edge detection segmentation. Singh M et al.  developed an efficient approach works on opening and closing of morphological operations. It has been done for segmentation process of alphanumeric characters. Recognition is done using the template matching. Kranti S et al.  presented a methodology for number plate extraction name. This methodology mainly deals with edge detection and window filtering method which are used in this methodology and give efficient results. Ganapathy V et al.  developed a methodology for Malaysian vehicles. This methodology is mainly based on morphological analysis and results extraction of number plate with 95% accuracy.
These sections include a proposed algorithm for vehicle number plate extraction and alphanumeric number recognition. The algorithm of proposed method is shown below.
Proposed algorithm consists of following steps:
- Image acquisition
- RGB to gray scale image
- Gray scale to binary image
- Vertical Edge Detection
- Dilation of an Image
- Extraction of number plate
- Enhance number plate
- Segmentation of characters
- Load and read templates
- Comparison and recognition
- Storing in file
3.1 Image acquisition
The first section is “Image acquisition. Images and videos is taken by a high resolution cameras. With the help of the image acquisition toolbox in MATLAB we can detect a camera easily. Using a camera, the project accepts an image path in MATLAB code. This research is suitable for all kinds of image. Figure 1 shows an input image.
Figure 1: Image acquisition
3.2 RGB to gray scale image
In this section RGB to grayscale conversion takes place by using rgb to gray function. A gray scale image is also known as a black and white image in which. Black is the weakest intensity and white is the strongest intensity. RGB to gray image is shown in figure 2.
3.3 Gray scale to binary image
In this case im2bw’ function is used for binarization of an image. The Otsu method has been used to converter into two color images
black and white.The pixel values above this threshold value turn into white and values below this threshold turns into black. Binary image is shown in figure 3.
3.4 Vertical Edge Detection
This section used to detect vertical edge by using Sobel operator and the result is shown in figure 4 after applying Sobel operator to binary image.
Figure 4: Vertical Edge detection.
3.5 Dilation of an Image
These operations are mainly used to remove unwanted noise from the image. In this step, image has been dilated. Dilation is a process for filling holes by using MATLAB toolbox imfill function in an image, sharpen edges of an object maximize brightness and connect the broken lines. Dilation of an image is shown in figure 5 and after filling holes is shown in figure 6. Then morphological opening and erode operations are used to detect the of candidate number plate area by using imerode function and its result in shown in figure 7.
3.6 Extraction of number plate
After the number plate detection, the original number plate area is extracted and the row and column indices of plate area by connected component analysis. Original extracted number plate area is shown in figure 8.
Figure 8: Extraction of number plate.
3.7 Enhance number plate
Theoriginal extracted number plate consists of various noise or unwanted holes. So the enhancement of the original number plate is done and the result of enhancement number plate is shown in figure 9.
Figure 9: Enhance number plate
3.8 Segmentation of characters
After enhancing plate, the ‘bwlabel’ function helps for the segmentation and labeling of the characters. It is used to separates each character and labels them according to the sequence. ‘imresize’ is another function which is used to resize the segmented images and make them same size, Moreover, the ‘imcrop’ function is use to crop the segmented characters. Horizontal and vertical histogram has been used for segmentation based on threshold value. Depend on Starting and ending points by horizontal direction each character is extracted is shown in figure 10.
Figure 10: Segmentation of Characters.
3.9 Load and read templates
In this step, we loads template image including 0 to 9 and a to z character for the comparison of characters for recognition.
3.10 Comparison and recognition
In this step, comparison of extracted characters with templates takes place and output of this step is the extracted letters or characters. It is easier to check and read each and every segment. The ‘corr2’ function compares and finds the minimum difference between the pixels. Recognition of each character is shown in figure 11.
Figure 11: Comparison and recognition
3.11 Storing in file
In this step, after extracting character from number plate with complete information is stored in file as shown in figure 12.
This proposed system work all types of input image for number plate extraction and recognition. In this case we have tested more than 133 input images which are different sizes and colors. This system work all time a day more accurately and user friendly. The input images are taken in different illumination. The result of proposed system is shown in table 1.
Table 1: Result of proposed system.
Successfully number plate Extracted and Recognition
Success Rate (%)
This research is able to process an input image of any format and successfully computed all the modules. Moreover, all the functions have been implemented perfectly. Users can directly find the extracted alphanumeric characters in the result text file. The results provided by car registration number plate extraction and recognition system are successfully tested on various images with accuracy 99.25%.
- Adaptive Recognition Hungary, Introduction of automatic number plate recognition. Automatic Number Plate Recognition, http://www.anpr.net/anpr_09/anpr_introduction.html, accessed August 2013, n.d.
- Automatic License Plate Recognition, Homepage. Automatic License Plate Recognition,http://www.platerecognition.info/1101.htm, accessed August 2013, n.d.
- J.S. Chittode and R. Kate, “Number plate recognition using segmentation,” International Journal of Engineering Research & Technology, Vol. 1 Issue 9, November- 2012.
- C N Paunwala and S Patnaik, ”A novel multiple license plate extraction technique for complex background in Indian traffic conditions,” International Journal of Image processing, Vol-4,Issue-2,pp 106-118.
- G. C.Lekhana and R.Srikantaswamy,” Real time license plate recognition system,” International Journal of Advanced Technology & Engineering Research, Vol-2, Issue-4, pp 5-9, July 2012.
- C. Chunyu, W. Fucheng, C. Baozhi and Z. Chen,” Application of image processing to the vehicle license plate recognition,” International Conference on Computer Science and Electronics Engineering, published by Allant is press, pp 2867-2869, 2013.
- Pandya and M Sing,” Morphology based approach to recognize number plates in India,” International Journal of Soft Computing and Engineering, Vol-1, Issue-3, pp 107-113, June 2011.
-  S Kranti and K Pranathi,” Automatic number plate recognition,” International Journal of Advancements in Technology,vol-2, no-3, pp 408-423, July 2011.
- V Ganapathy and W.L.D Lui,” A Malaysian vehicle license plate localization and recognition system,” Journal of Systemic and Cybernetics (pdf from freewebs.com)