Abstract
License plate extraction is an important step of License Plate Recognition (LPR) in Intelligent Transportation System. This paper presents a hybrid license plate extraction method which combines edge detection and support vector machine (SVM) filtering. Observing that there are many vertical edges in the license plate region, we firstly extract several candidate license plates according to vertical edge density, after that these candidate license plates are verified by a SVM classifier based on Histograms of Oriented Gradient texture descriptor (T-HOG). Promising results are achieved in the experiments.
You have full access to this open access chapter, Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
With an increasing number of vehicles, Intelligent Transportation System is developed and applied for better vehicle monitor and management. As an important part of Intelligent Transportation System, License Plate Recognition has many applications in our daily life, such as electronic toll collection, traffic law enforcement, park entrance management and so on.
License Plate Recognition system is usually composed of three parts: license plate extraction, character segmentation, character recognition. License plate extraction is the most important step in the LPR system. The result of extraction can directly impact the subsequent processes and the whole efficiency of the system. Many factors like partial occlusion, uneven lights, different angels, complex background may disturb the results of extraction.
Plentiful methods have been proposed by scholars for license plate extraction in the past years. Traditional license plate extraction methods are mainly based on color [1–3], edge [4–6] or texture [7–9].
Different from these traditional methods, methods using local features are applied into license plate extraction recently. In [10], a two-stage method is used to extract license plate. Several possible license plate regions are first extracted by AdaBoost classifier. In the second stage, a SVM classifier based on SIFT descriptors is used to filter false positives.
Traditional edge-based methods require the continuity of the edges in common. Our approach extracts windows with high edge magnitudes as possible license plate regions, which overcomes the shortcoming of discontinues license plate. To increase the accuracy of license plate extraction, we also add the step of verification. Instead of point-based feature for verification, we select region-based feature: T-HOG for better characterizing license plate.
Figure 1 shows the framework of our approach, which consists of two key components: vertical edge density detector and SVM filter. Initially, we will perform vertical edge detection on the gray image. Then we get some candidate license plate regions by analyzing the vertical edge density. All the detected windows are passed to the SVM classifier in the second stage to filter the non-character regions. Finally, we get the license plate if exists.
The rest of the paper is organized as follows. In Sect. 2, the method of extracting candidate license plate windows is presented. We describe the SVM filter algorithm in Sect. 3. The experiment results are shown in Sect. 4. Section 5 concludes the paper.
2 Candidate License Plate Extraction
In this step, we aim at extracting areas with high vertical gradient density as candidate license plate regions.
2.1 Preprocessing
The input image is first converted into gray image. Then we apply illumination normalization to reduce the influence of the uneven light. An example image with 256 gray levels and its enhanced image are shown in Fig. 2.
2.2 Vertical Edge Detection
The magnitude of the vertical edges on the license plate is considered a robust extraction feature, while using the horizontal edges only can result in errors due to car bumper. Therefore we select Sobel vertical operator to detect edges. After convolving the gray image with Sobel vertical operator, we get the vertical gradient map. Finally, we use the mean of the absolute gradient values as the threshold and apply non-maximum suppression to horizontal direction of the gradient image.
2.3 Background Curves and Noise Removing
We remove the long background edges and short random noise edges by the algorithm mentioned in [12]. This algorithm only requires us to scan the edge image for three times. The first scan will record the edge lengths away from the top (or left) start points. And the second scan will record the edge lengths away from the bottom (or right) end points. And the last scan will add up the two kinds of lengths to denote the actual edge lengths. If the edge points are too long or too short, then these points will be removed from the edge image. There are two thresholds of edge length: \( T_{l} \) and \( T_{s} \). \( T_{l} \) is related to the estimated height of the license plate, and \( T_{s} \) is shorter than most of the length of the plate edges. The vertical edge image and the edge image after removing the background edges and noise edges are shown respectively as Fig. 3.
2.4 Candidate License Plate Region Location
In this step, we shift a rectangle window in the edge image processed after the last section, and record the number of the edge points in the window. Finally, we select the top three windows whose edge points are most as candidate license plate regions. The candidate regions need to be far away from each other in distance. When the background areas are edge densely, as a result, the true license plate is not selected among the candidate regions. In this case, we can change the parameter of the number of the candidate regions. In our test dataset, most of the license plates are included in these candidate regions. Figure 4 shows the result of candidate license plates extraction.
The parameters of our license plate sizes are predefined, while plates in real scene are of different sizes, we can resize the input image to ensure the real plate detected. In order to find large/small plate, we need to apply the algorithm on a small/large size image.
3 License Plate Verification
As license plate is usually composed of several characters, we can validate the candidate license plate by examining whether the region is textual. The variation of license plate types and environments causes the challenge in plate text verification. Experience shows that point-based features like SIFT can’t represent the features of texts well in common. Instead of point-based feature for text verification, we use the region-based method: T-HOG descriptor, which is based on the multi-cell HOG.
3.1 Histograms of Oriented Gradients
The distribution of local intensity gradients or edge directions can be used to characterize local object appearance and shape well even without precise information of gradient or edge positions. In practice, we divide the image window into small spatial regions called ‘cells’, then accumulate a local 1-D histogram of gradient directions over the pixels of the cell. The entrances to the histogram form the representation. A block is made up of several cells. Finally, a contrast-normalization is applied to the descriptor block in order to be invariant to illumination. The normalized descriptor is named as the HOG descriptor. This descriptor is robust to local geometric and photometric transformations: translations or rotations when the change is smaller than the cell or orientation bin size.
For each sample in the candidate image, we firstly compute its gradient:
The gradient magnitude m(x, y) is just the gradient norm, and orientation ÆŸ(x, y) is expressed as an angle in the range 0 to 2Ï€.
Inspired by the R. Minetto and N. Thome [13] on sing line text description, we participate the candidate region into horizontal stripes. For each stripe, we accumulate these samples into an orientation histogram. The histogram has eight bins covering 360 degrees range of orientation. Each sample contributes to the histogram with its gradient magnitude as well as a Gaussian-weighted function. To avoid boundary effect in which the descriptor changes abruptly as one sample orientation shifts smoothly from one bin to another, we distribute the gradient into two nearest bins in a linear way. Similarly, to reduce the problem of the displacement of the sample from one cell to another, a Gaussian bell function is used to assign a weight to each sample point. The values of all the orientation histogram entries form the feature vector. Then the vector is normalized to reduce the effects of illumination change.
Instead of overlapping blocks and block weight functions in the HOG, T-HOG divides the image into horizontal stripes as cell grids, and applies overlapping cell weight functions to these cells.
3.2 False Positive Removal with SVM
This paper uses SVM to train the license plate classifier. SVM is a supervised learning method proposed in [14]. It has been widely used in two-class classification for its good performance. The core idea of SVM is to find an optical separating hyper-plane which maximizes the margin between the two classes. In the non-linear situation, a kernel function is used to map the input data to higher dimensions so that we can solve the problem in a linear way. The SVM classifier is defined as:
where \( K \) is the kernel function; \( x_{i} \) is the support vector, \( y_{i} \) is corresponding class-label; \( \alpha_{i} \) and \( b \) are the parameters got from the SVM training step.
4 Experiments and Analysis
We collected 3000 license plate images which were of little affine distortion as positive samples as well as another 3000 negative samples in the training step. To evaluate the performance of the proposed approach, we select 2000 images as our testing dataset. These images are taken from traffic intersection by using a camera in China. License plates in these images are in different sizes, colors and orientations and exhibit different conditions, such as varying illumination and background clutter.
In the second stage of license plate verification, we perform extensive experiments in order to determine the optical parameters for our T-HOG descriptor. Best result was obtained with L2 whole-descriptor normalization when the number of horizontal stripes is 9, the number of bins is 8.
We evaluate the performance of the proposed method with two widely used measurement criterions, recall and precision. Recall rate reflects the ability of a classifier to classify a labeled positive license plate region as positive license plate. Precision rate measures the proportion of the labeled positive license plates to the classified positives.
In our experiment, the vertical edge detector is adopted to detect the license plate with the recall rate 0.85 and the precision rate 0.28, however, we can get the recall rate 0.93 and the precision rate 0.87 after the candidate verification process. In the first stage, in order to detect as many license plates as possible, we locate three candidate license plate regions for each image. As a result, almost all license plates are contained in the candidate regions as well as many non-plate regions, which dues to a high recall rate and a low precision rate. The false positive is removed after the candidate verification processing, the precision rate is improved. The final results show that we can get both a high precision rate and a recall rate.
Our license plate detection result has been compared with other methods using p, r criteria for images of our dataset. Table 1 shows the comparison results. We can see that the proposed approach has a higher recall rate than method [6]. It can be seen from the results that the proposed method and method [15] perform better than method [10] in precision. This is mainly because the former are region-based, while the latter is point-based. The experiments verify the fact that the expression ability of point-based features is lower than the region-based features. Further more, we compare our method with method [15], our algorithm shows better performance in precision rate, which proves T-HOG is more distinct than HOG in license plate classification.
Method [6] used canny detector in the edge detection, which was a time-consuming method. However in our work, Sobel operator was used, so it would reduce the run time greatly.
5 Conclusion and Future Work
In this paper, we have proposed a way to extract license plate using an edge detector and a SVM classifier with T-HOG descriptor to remove the false positives. Experiments show the efficiency of our approach. Since some parameters in the first stage are relative to the size of the candidate license plate, the results will be better when all the license plates in the dataset have similar sizes.
To extract the license plate information in the image, we also need to segment the verified license plate and recognize them, which will be done in our future work.
References
Ashtari, A.H., Nordin, M.J., Fathy, M.: An Iranian license plate recognition system based on color features[J]. IEEE Trans. Intell. Transp. Syst. 15(4), 1690–1705 (2014)
He, T., Yao, J., Zhang, K., et al.: Accurate multi-scale license plate localization via image saliency[C]. In: 2014 IEEE 17th International Conference on Intelligent Transportation Systems (ITSC), pp. 1567–1572, IEEE (2014)
Chen, C., Ren, M.: The significance of license plate location based on Lab color space[C]. In: 2nd International Conference on Information, Electronics and Computer, Atlantis Press (2014)
Gazcón, N.F., Chesñevar, C.I., Castro, S.M.: Automatic vehicle identification for Argentinean license plates using intelligent template matching[J]. Pattern Recogn. Lett. 33(9), 1066–1074 (2012)
Thome, N., Vacavant, A., Robinault, L., et al.: A cognitive and video-based approach for multinational license plate recognition[J]. Mach. Vis. Appl. 22(2), 389–407 (2011)
Anoual, H., Fkihi, S.E., Jilbab, A., et al.: Vehicle license plate detection in images[C]. In: 2011 International Conference on Multimedia Computing and Systems (ICMCS), pp. 1–5, IEEE (2011)
Gao, J., Blasch, E., Pham, K., et al.: Automatic vehicle license plate recognition with color component texture detection and template matching[C]. In: SPIE Defense, Security, and Sensing. International Society for Optics and Photonics, pp. 87390Z-1–87390Z-6 (2013)
Wang, Y.R., Lin, W.H., Horng, S.J.: A sliding window technique for efficient license plate localization based on discrete wavelet transform[J]. Expert Syst. Appl. 38(4), 3142–3146 (2011)
Yu, S., Li, B., Zhang, Q., et al.: A novel license plate location method based on wavelet transform and EMD analysis[J]. Pattern Recogn. 48(1), 114–125 (2015)
Ho, W.T., Lim, H.W., Tay, Y.H.: Two-stage license plate detection using gentle Adaboost and SIFT-SVM[C]. In: First Asian Conference on Intelligent Information and Database Systems 2009, ACIIDS 2009, pp. 109–114, IEEE (2009)
Lim, H.W., Tay, Y.H.: Detection of license plate characters in natural scene with MSER and SIFT unigram classifier[C]. In: 2010 IEEE Conference on Sustainable Utilization and Development in Engineering and Technology (STUDENT), pp. 95–98, IEEE (2010)
Zheng, D., Zhao, Y., Wang, J.: An efficient method of license plate location[J]. Pattern Recogn. Lett. 26(15), 2431–2438 (2005)
Minetto, R., Thome, N., Cord, M., et al.: T-HOG: an effective gradient-based descriptor for single line text regions[J]. Pattern Recogn. 46(3), 1078–1090 (2013)
Cortes, C., Vapnik, V.: Support-vector networks[J]. Mach. Learn. 20(3), 273–297 (1995)
Wang, R., Sang, N., Wang, R., et al.: Novel license plate detection method for complex scenes[C]. In: 2013 Seventh International Conference on Image and Graphics (ICIG), pp. 318–322, IEEE (2013)
Acknowledgment
The authors would like to thank National Natural Science Foundation of China (No. 61375021) and Natural Science Foundation of JiangSu Province (No. BK20131365) for supporting the research.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2015 Springer International Publishing Switzerland
About this paper
Cite this paper
Gao, H., Liu, N., Zhao, Z. (2015). A Combination Method of Edge Detection and SVM Filtering for License Plate Extraction. In: Zhang, YJ. (eds) Image and Graphics. ICIG 2015. Lecture Notes in Computer Science(), vol 9217. Springer, Cham. https://doi.org/10.1007/978-3-319-21978-3_3
Download citation
DOI: https://doi.org/10.1007/978-3-319-21978-3_3
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-21977-6
Online ISBN: 978-3-319-21978-3
eBook Packages: Computer ScienceComputer Science (R0)