CN103390161A - Method for performing binarization processing on license plate with local shadow area - Google Patents

Method for performing binarization processing on license plate with local shadow area Download PDF

Info

Publication number
CN103390161A
CN103390161A CN2013103099550A CN201310309955A CN103390161A CN 103390161 A CN103390161 A CN 103390161A CN 2013103099550 A CN2013103099550 A CN 2013103099550A CN 201310309955 A CN201310309955 A CN 201310309955A CN 103390161 A CN103390161 A CN 103390161A
Authority
CN
China
Prior art keywords
image
rectangular
grayscale
processing
grayscale image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013103099550A
Other languages
Chinese (zh)
Inventor
胡传平
蔡烜
齐力
尚岩峰
侯茜颖
颜志国
吴晶
汤志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Third Research Institute of the Ministry of Public Security
Original Assignee
Third Research Institute of the Ministry of Public Security
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Third Research Institute of the Ministry of Public Security filed Critical Third Research Institute of the Ministry of Public Security
Priority to CN2013103099550A priority Critical patent/CN103390161A/en
Publication of CN103390161A publication Critical patent/CN103390161A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

本发明涉及一种对于带有局部阴影区域的标牌进行二值化处理的方法,其中包括首先对所述的标牌图像进行灰度化处理,得到灰度图像,再对所述的灰度图像进行矩形分割,得到矩形区域集合,然后基于所述的矩形区域集合中各个矩形区域的边缘统计信息计算各个矩形区域的亮度阈值和二值图像,最后基于投票策略计算所述的灰度图像的二值图像。采用该种结构的对于带有局部阴影区域的标牌进行二值化处理的方法,可以实现显著改善带阴影车牌的二值化效果,从而使得车牌图像得到更加合理的分割,提高复杂环境下车牌识别的准确率,不仅可以对带局部阴影区域的车牌图像进行处理,还可以应用于其他带有局部阴影区域的标牌的图像处理,具有更广泛的应用范围。

Figure 201310309955

The invention relates to a method for binarizing a signboard with a partial shadow area, which includes firstly performing grayscale processing on the signboard image to obtain a grayscale image, and then performing grayscale processing on the grayscale image Rectangular segmentation to obtain a set of rectangular areas, then calculate the brightness threshold and binary image of each rectangular area based on the edge statistics of each rectangular area in the set of rectangular areas, and finally calculate the binary value of the grayscale image based on the voting strategy image. Using this structure to binarize the signboards with partial shadow areas can significantly improve the binarization effect of the license plate with shadows, so that the license plate image can be segmented more reasonably, and license plate recognition in complex environments can be improved. It can not only process license plate images with partial shadow areas, but also can be applied to image processing of other signs with partial shadow areas, and has a wider range of applications.

Figure 201310309955

Description

Carry out the method for binary conversion treatment for the label with local shadow region
Technical field
The present invention relates to image processing field, relate in particular to the binary conversion treatment field of image, specifically refer to a kind of method of carrying out binary conversion treatment for the label with local shadow region.
Background technology
Along with the continuous increase of China's automobile quantity and the develop rapidly of highway construction, the task of traffic administration is increasingly heavy, utilize computing machine and the information processing technology realize the robotization of traffic system and intelligent management particularly important.Wherein, license plate recognition technology is one of research topic in the intelligent transportation system field, and it also has wide market outlook and economic worth simultaneously for providing the wisdom urban construction that important technical support is provided.
The related research direction of license plate recognition technology is more, mainly contains Digital Image Processing, computer vision, pattern-recognition etc.The task of car plate identification is to process, analyze in the video flowing of picked-up with the image of information of vehicles, successively passes through the digital picture pre-service, locates and be partitioned into license plate area, automatically identifies the character on vehicle license.
From early 1990s, external researchist has just started the research to license plate identification.The See/Car System series of Israel Hi-Tech company, the VLPRS series of Singapore Optasia company is all the product of comparative maturity, wherein the VLPRS product mainly is fit to the car plate of Singapore, and the See/Car System of Hi-Tech company has the product of various deformation to adapt to respectively the car plate of some countries.The domestic research that has also started car plate identification in the nineties: the product of comparative maturity has " Han Wang Eye numberplate recognizing system " of Chinese princes and dukes department of automation research institute of the Chinese Academy of Sciences at present, also there is the product of oneself in Asia vision Science and Technology Ltd., Shenzhen Electronics Co., Ltd. of Jitong, the subordinate's of China's Ministry of Information Industry middle intelligence Jiaotong Electronics Co., Ltd etc., and the image of Xi'an Communications University is processed in addition and the Department of Automation of the computer science of Study of recognition chamber, Shanghai Communications University and engineering department, artificial intelligence National Key Laboratory of Tsing-Hua University, Zhejiang University etc. also done similarly and studied.Vehicle License Plate Recognition System has under lab obtained gratifying effect, but be difficult to be applied in Practical Project, this is because the environment in laboratory is in perfect condition, and in physical environment, due to the impact that is subject to the factors such as weather, discrimination is difficult to reach requirement, wherein because licence plate by stained or while being subject to outside shadow interference, OTSU license plate binary method commonly used has run into very large challenge.
When the car plate regional area during with shade, use traditional OTSU algorithm to process, the non-constant of binaryzation effect, because with the impact due to shade of the car plate of shadow region, after making the license plate image gray processing, the brightness of character is inconsistent, generally can not carry out binary conversion treatment based on a threshold value.
The license plate area binaryzation is directly connected to Character segmentation and the identification in car plate identification, therefore,, in order to improve the recognition efficiency of whole car plate identification, designs a kind of binarization method for car plate partial-band shade most important.
Summary of the invention
The objective of the invention is to overcome the shortcoming of above-mentioned prior art, provide a kind of can realize for the car plate with local shadow region carry out binary conversion treatment, improve the car plate recognition efficiency, easy to implement, have a broader applications scope carry out the method for binary conversion treatment for the label with local shadow region.
To achieve these goals, method of for the label with local shadow region, carrying out binary conversion treatment of the present invention has following formation:
Should carry out the method for binary conversion treatment for the label with local shadow region, its principal feature is that described method comprises the following steps:
(1) described label image is carried out gray processing and process, obtain gray level image;
(2) described gray level image is carried out rectangle and cut apart, obtain the rectangular area set;
(3) calculate luminance threshold and the bianry image of each rectangular area based on the edge statistics information of each rectangular area in the set of described rectangular area;
(4) calculate the bianry image of described gray level image based on temporal voting strategy.
Preferably, described step (1) is before, and is further comprising the steps of:
(0) described label detected and cuts apart, obtaining only comprising the label image of the rectangular shape of pending information.
Preferably, describedly described label image carried out gray processing process, obtain gray level image, comprise the following steps:
(11) judge whether described label image is coloured image, if so, continues step (12), if not, continues step (2);
(12) based on following formula, described label image is carried out gray processing and processes, obtain gray level image:
ImgGray=(R×299+G×587+B×114+500)/1000;
Wherein, ImgGray is the gray-scale value of the gray level image after processing, and R is the red color channel value of the label image before processing, and G is the green channel value of the label image before processing, and B is the blue channel value of the label image before processing.
Preferably, describedly described gray level image carried out rectangle cut apart, obtain the rectangular area set, comprise the following steps:
(21) suitable according to the quality Dynamic Selection of the described gray level image rectangle of cutting apart;
(22) use respectively four angle points of described gray level image and central point as initial point, described gray level image is carried out rectangle cut apart and obtain the rectangular area set.
Preferably, between described step (2) and step (3), further comprising the steps of:
(23) regular smoothing processing is carried out in each rectangular area in the rectangular area set of described gray level image.
Preferably, described edge statistics information based on each rectangular area in the set of described rectangular area is calculated luminance threshold and the bianry image of each rectangular area, comprises the following steps:
(31) brightness value of the both sides of edges of each rectangular area in statistics described rectangular area set;
(32) calculate the luminance threshold of each rectangular area in the set of described rectangular area;
(33) calculate the bianry image of each rectangular area in the combination of described rectangular area.
Preferably, the described bianry image that calculates described gray level image based on temporal voting strategy comprises the following steps:
(41) judge the brightness value of each location point of described gray level image based on temporal voting strategy;
(42) calculate the bianry image of described gray level image by combination.
Adopted and carried out the method for binary conversion treatment for the label with local shadow region in this invention, had following beneficial effect:
1, the present invention is a kind of digital image processing method, relates to an important integral link in license plate recognition technology.Use the method can significantly improve the binaryzation effect of band portion shadow region car plate, thereby make license plate image obtain more reasonably cutting apart, improve the accuracy rate of car plate identification under complex environment.
2, the range of application of binary processing method of the present invention not only is confined to car plate, and can comprise all has the label of shade or contamination by dust, has range of application widely.
Description of drawings
Fig. 1 is the process flow diagram that carries out the method for binary conversion treatment for the label with local shadow region of the present invention.
Fig. 2 is that method of for the label with local shadow region, carrying out binary conversion treatment of the present invention is applied to the process flow diagram that car plate is processed.
Fig. 3 is with the gray level image of the car plate of local shadow region in embodiments of the invention.
Fig. 4 is that in embodiments of the invention, the rectangle with the car plate of local shadow region is cut apart image.
Fig. 5 is with the bianry image of the car plate of local shadow region in embodiments of the invention.
Embodiment
, in order more clearly to describe technology contents of the present invention, below in conjunction with specific embodiment, conduct further description.
The objective of the invention is to propose a kind of for the binary processing method of car plate regional area with the shade situation.The new method that the present invention proposes comprises the partition strategy that car plate is carried out 5 directions, based on edge statistics information, calculates the threshold alpha i in binaryzation and calculates bianry image based on temporal voting strategy finally.
Method of the present invention is applied to have following steps with the method for the processing of the car plate of local shadow region:
Be illustrated in figure 1 as the process flow diagram that carries out the method for binary conversion treatment for the label with local shadow region of the present invention.
Be illustrated in figure 2 as method of for the label with local shadow region, carrying out binary conversion treatment of the present invention and be applied to the process flow diagram that car plate is processed.
In order to express easily, the image that uses the method to process is the rectangular area image I mgSource that only comprises car plate through car plate detects and partitioning algorithm splits from image.Namely before binary conversion treatment, need to proceed as follows car plate:
(0) described car plate detected and cuts apart, obtaining only comprising the license plate image ImgSource of the rectangular shape of pending information.
(1) calculate the gray level image ImgGray of described license plate image ImgSource.
Be illustrated in figure 3 as in embodiments of the invention the gray level image with the car plate of local shadow region.
If described license plate image ImgSource is coloured image, use following formula to carry out gray processing to this license plate image and process, obtain gray level image ImgGray:
ImgGray=(R×299+G×587+B×114+500)/1000;
Wherein, ImgGray is the gray-scale value of the gray level image after processing, R is the green channel value of the license plate image ImgSource before described processing for the red color channel value of the license plate image ImgSource before processing, G, and B is the blue channel value of the license plate image ImgSource before processing.
(2) described gray level image ImgGray is carried out rectangle and cut apart, obtain the rectangular area set.
Be illustrated in figure 4 as in embodiments of the invention with the rectangle of the car plate of local shadow region and cut apart image.
(21) according to the suitable rectangle Rect of quality Dynamic Selection of described gray level image ImgGray, it is wide is w, and height is h;
(22), respectively take four angle points of described gray level image ImgGray and central point as initial point, described gray level image ImgGray is carried out Rect cut apart and obtain a rectangular area S set;
(23) all rectangular areas in the S set of the described rectangular area of traversal, carrying out normalization process for each rectangular area Recti can be enough level and smooth.
(3) calculate luminance threshold and the bianry image of each rectangular area Recti based on the edge statistics information of each rectangular area Recti in the set of described rectangular area.
(31) use the Canny operator to calculate the brightness value at the edge of each rectangular area Recti in the set of described rectangular area;
(32), according to the brightness value of the both sides of edges of adding up, calculate the luminance threshold α i of each rectangular area Recti in the set of described rectangular area;
(33) calculate the bianry image Imgi of each rectangular area Recti in the set of described rectangular area.
(4), for each position (i, j) of image, according to temporal voting strategy, judge its brightness value, bianry image ImgBW is calculated in combination finally.
Be illustrated in figure 5 as in embodiments of the invention the bianry image with the car plate of local shadow region.
(41) judge the brightness value of each location point (i, j) of described gray level image based on temporal voting strategy;
(42) calculate the bianry image ImgBW of described gray level image by combination.
Adopted and carried out the method for binary conversion treatment for the label with local shadow region in this invention, had following beneficial effect:
1, the present invention is a kind of digital image processing method, relates to an important integral link in license plate recognition technology.Use the method can significantly improve the binaryzation effect of band portion shadow region car plate, thereby make license plate image obtain more reasonably cutting apart, improve the accuracy rate of car plate identification under complex environment.
2, the range of application of binary processing method of the present invention not only is confined to car plate, and can comprise all has the label of shade or contamination by dust, has range of application widely.
In this instructions, the present invention is described with reference to its specific embodiment.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.

Claims (7)

1.一种对于带有局部阴影区域的标牌进行二值化处理的方法,其特征在于,所述的方法包括以下步骤:1. A method for binarizing a signboard with a local shadow area, characterized in that the method comprises the following steps: (1)对所述的标牌图像进行灰度化处理,得到灰度图像;(1) Perform grayscale processing on the signage image to obtain a grayscale image; (2)对所述的灰度图像进行矩形分割,得到矩形区域集合;(2) performing rectangular segmentation on the grayscale image to obtain a set of rectangular regions; (3)基于所述的矩形区域集合中各个矩形区域的边缘统计信息计算各个矩形区域的亮度阈值和二值图像;(3) Calculating the brightness threshold and binary image of each rectangular area based on the edge statistical information of each rectangular area in the set of rectangular areas; (4)基于投票策略计算所述的灰度图像的二值图像。(4) Calculate the binary image of the grayscale image based on the voting strategy. 2.根据权利要求1所述的对于带有局部阴影区域的标牌进行二值化处理的方法,其特征在于,所述的步骤(1)之前,还包括以下步骤:2. The method for binarizing signs with partial shadow areas according to claim 1, characterized in that before the step (1), the following steps are further included: (0)对所述的标牌进行检测和分割,得到只包含待处理信息的矩形形状的标牌图像。(0) Detect and segment the sign to obtain a rectangular sign image containing only the information to be processed. 3.根据权利要求1所述的对于带有局部阴影区域的标牌进行二值化处理的方法,其特征在于,所述的对所述的标牌图像进行灰度化处理,得到灰度图像,包括以下步骤:3. The method for binarizing a signboard with a local shadow area according to claim 1, wherein said grayscale processing is performed on said signboard image to obtain a grayscale image, comprising The following steps: (11)判断所述的标牌图像是否为彩色图像,如果是,则继续步骤(12),如果否,则继续步骤(2);(11) Judging whether the signage image is a color image, if yes, proceed to step (12), if not, proceed to step (2); (12)基于如下公式对所述的标牌图像进行灰度化处理,得到灰度图像:(12) Perform grayscale processing on the signage image based on the following formula to obtain a grayscale image: ImgGray=(R×299+G×587+B×114+500)/1000;ImgGray=(R×299+G×587+B×114+500)/1000; 其中,ImgGray为处理后的灰度图像的灰度值,R为处理前的标牌图像的红色通道值,G为处理前的标牌图像的绿色通道值,B为处理前的标牌图像的蓝色通道值。Among them, ImgGray is the gray value of the grayscale image after processing, R is the red channel value of the sign image before processing, G is the green channel value of the sign image before processing, and B is the blue channel of the sign image before processing value. 4.根据权利要求1所述的对于带有局部阴影区域的标牌进行二值化处理的方法,其特征在于,所述的对所述的灰度图像进行矩形分割,得到矩形区域集合,包括以下步骤:4. The method for binarizing a signboard with a partial shadow area according to claim 1, wherein said grayscale image is subjected to rectangular segmentation to obtain a set of rectangular areas, comprising the following step: (21)根据所述的灰度图像的质量动态选择合适的分割矩形;(21) Dynamically select an appropriate segmentation rectangle according to the quality of the grayscale image; (22)分别以所述的灰度图像的四个角点和中心点作为初始点,对所述的灰度图像进行矩形分割得到矩形区域集合。(22) Using the four corner points and the central point of the grayscale image as initial points, perform rectangular segmentation on the grayscale image to obtain a set of rectangular regions. 5.根据权利要求1所述的对于带有局部阴影区域的标牌进行二值化处理的方法,其特征在于,所述的步骤(2)与步骤(3)之间,还包括以下步骤:5. The method for binarizing signs with partial shadow areas according to claim 1, characterized in that, between the steps (2) and (3), the following steps are further included: (23)对所述的灰度图像的矩形区域集合中的各个矩形区域进行正规化平滑处理。(23) Perform normalization and smoothing processing on each rectangular area in the set of rectangular areas of the grayscale image. 6.根据权利要求1所述的对于带有局部阴影区域的标牌进行二值化处理的方法,其特征在于,所述的基于所述的矩形区域集合中各个矩形区域的边缘统计信息计算各个矩形区域的亮度阈值和二值图像,包括以下步骤:6. The method for binarizing a sign with a partially shaded area according to claim 1, wherein the calculation of each rectangle is based on the edge statistical information of each rectangle in the set of rectangles. Luminance thresholding of regions and a binary image, comprising the following steps: (31)统计所述的矩形区域集合中各个矩形区域的边缘两侧的亮度值;(31) Count the brightness values on both sides of the edges of each rectangular area in the set of rectangular areas; (32)计算所述的矩形区域集合中各个矩形区域的亮度阈值;(32) Calculating the brightness threshold of each rectangular area in the set of rectangular areas; (33)计算所述的矩形区域结合中各个矩形区域的二值图像。(33) Computing binary images of each rectangular area in the combination of rectangular areas. 7.根据权利要求1所述的对于带有局部阴影区域的标牌进行二值化处理的方法,其特征在于,所述的基于投票策略计算所述的灰度图像的二值图像,包括以下步骤:7. The method for binarizing a signboard with a partially shaded area according to claim 1, wherein said calculating the binary image of said grayscale image based on a voting strategy comprises the following steps : (41)基于投票策略判定所述的灰度图像的每个位置点的亮度值;(41) Determine the brightness value of each position point of the grayscale image based on the voting strategy; (42)通过组合计算得到所述的灰度图像的二值图像。(42) Obtain the binary image of the grayscale image through combination calculation.
CN2013103099550A 2013-07-22 2013-07-22 Method for performing binarization processing on license plate with local shadow area Pending CN103390161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103099550A CN103390161A (en) 2013-07-22 2013-07-22 Method for performing binarization processing on license plate with local shadow area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103099550A CN103390161A (en) 2013-07-22 2013-07-22 Method for performing binarization processing on license plate with local shadow area

Publications (1)

Publication Number Publication Date
CN103390161A true CN103390161A (en) 2013-11-13

Family

ID=49534428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103099550A Pending CN103390161A (en) 2013-07-22 2013-07-22 Method for performing binarization processing on license plate with local shadow area

Country Status (1)

Country Link
CN (1) CN103390161A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550684A (en) * 2015-12-14 2016-05-04 广东安居宝数码科技股份有限公司 Image-based license plate positioning method and system thereof
CN106815587A (en) * 2015-11-30 2017-06-09 浙江宇视科技有限公司 Image processing method and device
CN108205675A (en) * 2016-12-20 2018-06-26 浙江宇视科技有限公司 The processing method and equipment of a kind of license plate image
CN109508719A (en) * 2017-09-14 2019-03-22 精工爱普生株式会社 Image processing apparatus, bianry image generation method and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004042673A2 (en) * 2002-11-04 2004-05-21 Imperial Vision Ltd. Automatic, real time and complete identification of vehicles
CN102496020A (en) * 2011-10-31 2012-06-13 天津大学 Image binarization method based on accumulative edge point visual gray range histogram

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004042673A2 (en) * 2002-11-04 2004-05-21 Imperial Vision Ltd. Automatic, real time and complete identification of vehicles
CN102496020A (en) * 2011-10-31 2012-06-13 天津大学 Image binarization method based on accumulative edge point visual gray range histogram

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐泉等: "基于分块聚类的车牌图像二值化方法", 《计算机仿真》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815587A (en) * 2015-11-30 2017-06-09 浙江宇视科技有限公司 Image processing method and device
CN106815587B (en) * 2015-11-30 2019-10-18 浙江宇视科技有限公司 Image processing method and device
CN105550684A (en) * 2015-12-14 2016-05-04 广东安居宝数码科技股份有限公司 Image-based license plate positioning method and system thereof
CN105550684B (en) * 2015-12-14 2019-10-29 广东安居宝数码科技股份有限公司 License plate locating method and its system based on image
CN108205675A (en) * 2016-12-20 2018-06-26 浙江宇视科技有限公司 The processing method and equipment of a kind of license plate image
CN109508719A (en) * 2017-09-14 2019-03-22 精工爱普生株式会社 Image processing apparatus, bianry image generation method and storage medium
CN109508719B (en) * 2017-09-14 2023-04-07 精工爱普生株式会社 Image processing apparatus, binary image generation method, and storage medium

Similar Documents

Publication Publication Date Title
CN102043950B (en) Vehicle outline recognition method based on canny operator and marginal point statistic
CN105893949B (en) A kind of method for detecting lane lines under complex road condition scene
CN105354599A (en) Color recognition method based on improved SLIC super-pixel segmentation algorithm
CN104952256B (en) A kind of detection method of the intersection vehicle based on video information
CN103971524B (en) A kind of traffic flow detection method based on machine vision
CN103810716B (en) Move and the image partition method of Renyi entropy based on gray scale
CN110210451A (en) A kind of zebra line detecting method
CN103824081A (en) Method for detecting rapid robustness traffic signs on outdoor bad illumination condition
CN101968924A (en) High-resolution image-based real-time traffic flow detection method
CN104599511B (en) Traffic flow detection method based on background modeling
CN102243705B (en) Method for positioning license plate based on edge detection
CN104408424A (en) Multiple signal lamp recognition method based on image processing
CN105488492A (en) Color image preprocessing method, road identification method and related device
WO2015024257A8 (en) Unstructured road boundary detection
CN106295528A (en) A kind of vehicle checking method based on multi-part spatial relation GMM modeling
CN102880863A (en) Method for positioning license number and face of driver on basis of deformable part model
CN106097368A (en) A kind of recognition methods in veneer crack
CN103390161A (en) Method for performing binarization processing on license plate with local shadow area
CN107316022A (en) Dynamic gesture identification method and device
CN104463134A (en) License plate detection method and system
CN105893960A (en) Road traffic sign detecting method based on phase symmetry
CN106203336A (en) A kind of mine alley way lamp recognition methods based on gray level image labelling
CN105654140B (en) The positioning of rail tank car license number and recognition methods towards complex industrial environment
CN104298966B (en) A kind of license plate locating method
CN107066985B (en) Intersection zebra crossing detection method based on rapid Hough transform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20131113

RJ01 Rejection of invention patent application after publication