License plate location method based on image processing and projection

Publisher:mancozcLatest update time:2011-04-19 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
The positioning of license plates plays an important role in the license plate recognition system and is a prerequisite for the subsequent license plate character recognition. However, since the license plate images for license plate positioning are collected outdoors, the image background is complex, the noise interference is serious, and the image quality is low, so the license plate positioning is often affected and cannot be accurately positioned. Therefore, in the license plate positioning algorithm, the key is to find a certain image processing method so that the original image can clearly show the license plate area after being processed by the algorithm, and at the same time make the non-license plate area in the image disappear or weaken, so as to accurately and effectively locate the position of the license plate in the image. This paper mainly focuses on the blue background white license plate. First, the blue feature of the license plate and the image processing method are used for the initial positioning, which reduces the candidate area of ​​the license plate. Then the license plate image located at the initial position is projected, and finally the license plate positioning is completed.

1. Initial license plate location

1.1. License plate after conversion from RGB space to HSI space

Color images contain rich color information and give people a good visual effect. The initial positioning is based on this feature. However, in general, color images are all under the RGB model, and the HSI model is more suitable for the human visual system, so color space conversion is required to convert the RGB model into the HSI model. The conversion formula from RGB space to HSI space is:

Conversion formula

When B <=G, H = θ; when B > G, H = 360°- θ.

In the blue-background white-letter license plate, the chromaticity H of blue is about 240° and the saturation S value is relatively large. Through these two quantities, the blue part of the input image can be completely filtered out, thereby removing a large amount of background noise.

The experimental test shows that the chroma of the blue license plate is >= 0.75 and the saturation is >= 0.51. It can be seen that the license plate area can be roughly located by using the range values ​​of chroma and saturation in the HSI space, and the result is shown in Figure 1.

Rough positioning of license plate area

1.2. Preprocessing of license plate location

After preliminary positioning, the license plate range is reduced and the license plate image is processed in grayscale. The texture distribution of the grayscale image is mainly in the headlights, license plate, and radiator. The grayscale value of the license plate position is also different from that of other parts. Most of the grayscale changes in the non-license plate area are relatively gentle.

(1) Remove isolated bright spots

Generally speaking, the acquisition process of license plate images is affected by various factors, such as background, lighting and some characteristics of the car itself, which easily cause noise in the image. Since the initial positioning has removed most of the background of the license plate image, the noise points are reduced. In order to reduce the possible area of ​​the license plate, the bwmorph function in the Matlab toolbox is used to effectively remove isolated points. The result is shown in Figure 3.

Remove isolated points

(2) Shift scanning and edge detection

The shift scan is to scan the entire image from left to right, using adjacent pixels as the grayscale to weaken the horizontal texture and retain and increase the grayscale at the vertical transition, as shown in formula (4).

Grayscale

In the formula, f (xj, yi) is the original image, g (xj, yi) is the scanned image. After processing, the vertical texture and lines of the image become more obvious, thereby weakening other areas and highlighting the license plate area. As shown in Figure 4. Then, using edge detection, the boundary of the license plate area is highlighted from the entire image, making the features of the license plate area more obvious. The effect is shown in Figure 5.

Edge detection graph

Figure 5 Edge detection diagram

2. Accurate positioning of license plates

After the shift scan, the texture and lines of the license plate area in the grayscale image become more obvious, and the noise of the entire image is less, so the horizontal and vertical boundaries of the license plate can be determined.

This paper uses horizontal projection and vertical projection to determine the boundaries of the license plate respectively.

By edge detection of the image, the license plate area is clearly divided and the noise points in the non-license plate area are reduced, so the horizontal projection method is used to determine the vertical license plate boundary.

Horizontal projection is to scan the image f (xj, yi) row by row from top to bottom, add the values ​​of each column, and get a one-dimensional function f (yi). This converts the two-dimensional function into a one-dimensional function, as shown in formula (5).

One-dimensional function

The obtained one-dimensional function is a statistic of the white pixels in each column of the image. When the value of f(yi) is large, it corresponds to the license plate area; when the value of f(yi) is small or 0, it corresponds to the noise in the non-license plate area. This feature is used to determine the horizontal boundary of the license plate. When the image is drawn for the function fyi, it can be found that when f(yi) is not 0, there is a white pixel in the vertical direction of the corresponding f(xj,yi). When fyi is 0, there is no white pixel in the vertical direction of the corresponding f(xj,yi), which can be determined as a non-license plate area.

When the left and right boundaries of the license plate are determined, the relative noise of the vertical positioning is reduced. The vertical projection is to first scan the image f (xj, yi) line by line from left to right, add the values ​​of each line, and obtain a one-dimensional function f (xj).

As shown in formula (6).

One-dimensional function f

The projection diagrams of the horizontal projection and the vertical projection are shown in FIGS. 6 and 7 .

 Projection diagram of horizontal and vertical projection

In this process, the selection of the threshold is determined based on the image of the projection map. Because in the projection map, it represents the accumulation of white pixels in each column or row. So when the value of the projection map is large, it means that there are more white pixels in this column or row, which is the license plate area; when the value of the projection map is small, it is a noise point, so a threshold must be determined to remove the noise. The image processing method used in this article has removed most of the noise points, so the threshold is set here first. The area greater than this value is the license plate area. At the same time, because the license plate itself has the characteristics of length and width ratio, the ratio of the license plate is generally 22:7, and the final positioning is based on this feature.

In license plate positioning, the positioning method mainly considers whether the anti-interference ability to noise is good. The initial positioning of the license plate area in this paper is through the conversion of the color model, and the license plate position is roughly determined by the range of chroma and saturation. A large amount of background noise is removed, providing a reliable basis for the accuracy of secondary positioning. In precise positioning, considering the noise of the car itself, such as radiator, headlights, etc., but because the texture of the license plate position is prominent and the body noise is relatively small, the license plate position is more prominent by using differential scanning, and only a single isolated bright spot is left in the non-license plate area. In precise positioning, projection is used, so isolated bright spots must be removed. In this paper, Matlab toolbox is used to effectively remove a large number of isolated bright spots. Horizontal and vertical projections are used to determine the horizontal and vertical boundaries, and the characteristics of the length and width ratio of the license plate itself are used for final positioning. Experiments have shown that the anti-interference ability to the license plate image noise is good and the positioning effect is good.

3. Conclusion

This paper uses a license plate positioning method based on color and projection to determine the license plate area in two steps. By testing 320 car pictures with a resolution of 1 024%768 and different backgrounds, the positioning success rate reaches more than 8%.

Reference address:License plate location method based on image processing and projection

Previous article:Video conferencing video debugging techniques and skills
Next article:Design and implementation of Ethernet video surveillance based on KT8818

Latest Analog Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号