CN107506777A - A kind of real-time more licence plate recognition methods and device based on Wavelet transformation and SVMs - Google Patents
A kind of real-time more licence plate recognition methods and device based on Wavelet transformation and SVMs Download PDFInfo
- Publication number
- CN107506777A CN107506777A CN201710423827.7A CN201710423827A CN107506777A CN 107506777 A CN107506777 A CN 107506777A CN 201710423827 A CN201710423827 A CN 201710423827A CN 107506777 A CN107506777 A CN 107506777A
- Authority
- CN
- China
- Prior art keywords
- license plate
- image
- character
- hyperplane
- support vector
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000012706 support-vector machine Methods 0.000 title claims abstract description 32
- 230000009466 transformation Effects 0.000 title claims abstract description 12
- 230000011218 segmentation Effects 0.000 claims abstract 3
- 238000012545 processing Methods 0.000 claims description 15
- 238000012549 training Methods 0.000 claims description 7
- 206010039203 Road traffic accident Diseases 0.000 claims description 3
- 238000000354 decomposition reaction Methods 0.000 claims description 3
- 230000002708 enhancing effect Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 claims description 3
- 230000009191 jumping Effects 0.000 claims 3
- 238000001914 filtration Methods 0.000 claims 2
- 238000011426 transformation method Methods 0.000 claims 2
- 238000012850 discrimination method Methods 0.000 claims 1
- 238000001514 detection method Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
- G06F18/2411—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on the proximity to a decision surface, e.g. support vector machines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/22—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
- G06V10/225—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition based on a marking or identifier characterising the area
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/30—Noise filtering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/14—Image acquisition
- G06V30/148—Segmentation of character regions
- G06V30/153—Segmentation of character regions using recognition of characters or words
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/60—Type of objects
- G06V20/62—Text, e.g. of license plates, overlay texts or captions on TV images
- G06V20/625—License plates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Computation (AREA)
- Evolutionary Biology (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Traffic Control Systems (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
本发明公开一种基于小波变化和支持向量机的实时多车牌识别方法及装置,包括以下步骤,步骤1,采集车辆图像;步骤2,对图像进行去噪处理;步骤3,根据矩形框内的边缘像素数与矩形面积之比的大小确定车牌图像的位置;步骤4,对车牌图像采用行扫描的方法确定车牌的水平位置,采用小波分层变换的方法确定车牌的垂直位置;步骤5,对每一幅车牌图像进行二值化处理,然后对处理后的车牌图像进行列扫描,当单列边缘像素数的超过预先设定的阈值范围时,则判断当前列包含车牌字符,否则该列不包含车牌字符将其作为字符分割的边界;步骤6,对车牌字符进行识别。本发明提出一种准确、快速且有效解决多车牌识别。
The invention discloses a real-time multi-license plate recognition method and device based on wavelet variation and support vector machine, comprising the following steps, step 1, collecting vehicle images; step 2, denoising the images; step 3, according to the The position of the license plate image is determined by the ratio of the number of edge pixels to the area of the rectangle; step 4, the horizontal position of the license plate is determined by the method of line scanning to the license plate image, and the vertical position of the license plate is determined by the method of wavelet layered transformation; step 5, the Each license plate image is binarized, and then the processed license plate image is scanned. When the number of edge pixels in a single column exceeds the preset threshold range, it is judged that the current column contains license plate characters, otherwise the column does not contain License plate characters use it as the boundary of character segmentation; step 6, identify the license plate characters. The invention proposes an accurate, fast and effective solution to multi-license plate recognition.
Description
技术领域technical field
本发明涉及计算机视觉图像处理技术领域,特别是指一种基于小波变化和支持向量机的实时多车牌识别方法和装置。The invention relates to the technical field of computer vision image processing, in particular to a real-time multi-license plate recognition method and device based on wavelet transformation and support vector machine.
背景技术Background technique
车牌识别技术就是在外界实际交通道路场景中对车辆的车牌进行检测并准确识别其车牌字符的算法技术。使用普通相机获取实际的交通道路场景图像,因为外界复杂环境的影响,比如天气,路况等,严重干扰了摄像头对车牌的检测和识别;并且,当前大多数车牌识别算法只能对图像中单个车牌进行检测和识别,对图像的多车牌无法实现准确定位和识别。现在车牌识别技术已经成为计算机图形学的研究焦点,被广泛应用于现实生活当中,如小区停车计时系统,交通路口安全监控系统等。License plate recognition technology is an algorithm technology that detects the license plate of a vehicle and accurately recognizes its license plate characters in the actual traffic road scene. Use ordinary cameras to obtain actual traffic road scene images, because the influence of complex external environments, such as weather, road conditions, etc., seriously interferes with the camera's detection and recognition of license plates; moreover, most current license plate recognition algorithms can only detect a single license plate in the image For detection and recognition, accurate positioning and recognition cannot be achieved for multiple license plates in the image. Now license plate recognition technology has become the research focus of computer graphics, and is widely used in real life, such as community parking meter system, traffic intersection safety monitoring system, etc.
车牌检测和车牌字符识别是车牌识别的两个关键技术。车牌检测是车牌识别的前端工作,对于多车牌识别来说,车牌检测尤为重要。只有准确定位图像中的车牌,才能对图像中的多个车牌进行识别等后续处理工作。采用现行的单目标算法进行简单扩展实现多个车牌的检测与识别,第一,它的检测效果达不到要求,因为单个车牌比较清晰,在图像中所处的区域比较大,而多个车牌分布在图像的各个区域,每个区域都不是很大,本身就并不是特别清晰;第二,简单的将其算法加入到多车牌检测上面来,算法复杂度大,实时效果不好。因此针对当前交通道路上车辆超速,违法超车,闯红灯等违法事件的存在,迫切需要一种能够实现多车牌识别的方法来制止这些交通违法活动的发生。License plate detection and license plate character recognition are two key technologies of license plate recognition. License plate detection is the front-end work of license plate recognition. For multiple license plate recognition, license plate detection is particularly important. Only by accurately locating the license plate in the image can subsequent processing work such as recognition of multiple license plates in the image be performed. Using the current single-objective algorithm to simply expand the detection and recognition of multiple license plates, first, its detection effect cannot meet the requirements, because a single license plate is relatively clear and the area in the image is relatively large, while multiple license plates Distributed in various areas of the image, each area is not very large, and it is not particularly clear; second, simply adding its algorithm to multi-license plate detection, the algorithm is complex and the real-time effect is not good. Therefore, in view of the existence of illegal events such as vehicle speeding, illegal overtaking, and red light running on the current traffic roads, there is an urgent need for a method that can realize multi-license plate recognition to stop the occurrence of these traffic violations.
发明内容Contents of the invention
本发明提出一种准确、快速且有效解决多车牌识别的基于小波变化和支持向量机的实时多车牌识别方法和装置。The invention proposes a real-time multi-license plate recognition method and device based on wavelet variation and support vector machine which can accurately, quickly and effectively solve multi-license plate recognition.
本发明的技术方案是这样实现的:Technical scheme of the present invention is realized like this:
一种基于小波变化和支持向量机的实时多车牌识别方法,包括以下步骤,A real-time multi-license plate recognition method based on wavelet variation and support vector machine, comprising the following steps,
步骤1,采集车辆图像;Step 1, collecting vehicle images;
步骤2,对图像进行去噪处理,具体为先对图像进行拉普拉斯变换,对图像的边缘进行增强,然后将彩色图像转变为256级的灰度图像,再对图像进行高斯模糊处理;Step 2, denoising the image, specifically performing Laplace transform on the image first, enhancing the edge of the image, then converting the color image into a 256-level grayscale image, and then performing Gaussian blur processing on the image;
步骤3,根据矩形框内的边缘像素数与矩形面积之比的大小确定车牌图像的位置;Step 3, determine the position of the license plate image according to the size of the ratio of the number of edge pixels in the rectangular frame to the area of the rectangle;
步骤4,对车牌图像采用行扫描的方法确定车牌的水平位置,采用小波分层变换的方法确定车牌的垂直位置;Step 4, adopting the method of line scanning to determine the horizontal position of the license plate to the license plate image, adopting the method of wavelet layered transformation to determine the vertical position of the license plate;
步骤5,对每一幅车牌图像进行二值化处理,然后对处理后的车牌图像进行列扫描,当单列边缘像素数的超过预先设定的阈值范围时,则判断当前列包含车牌字符,否则该列不包含车牌字符将其作为字符分割的边界;Step 5: Carry out binarization processing on each license plate image, and then perform column scanning on the processed license plate image. When the number of edge pixels in a single column exceeds a preset threshold range, it is judged that the current column contains license plate characters, otherwise The column does not contain the license plate character to use it as a character-separated boundary;
步骤6,对车牌字符进行识别,具体为利用事先训练好的SVM支持向量机对检测到的车牌图像进行字符识别,得到车牌号信息,并记录该车牌在车辆图像中的位置。Step 6: Recognize the characters of the license plate, specifically, use the pre-trained SVM support vector machine to perform character recognition on the detected license plate image, obtain the license plate number information, and record the position of the license plate in the vehicle image.
本发明还提供一种采用上述方法进行实时多车牌识别的装置,包括视频采集模块,用于图像的采集;车牌识别模块,用于对车牌进行识别;电源模块,用于给整个系统供电;存储模块,用于对系统程序及重要视频的存储;和显示模块,用于显示场景拍摄视频以及出现违法交通事故的视频帧;其中视频采集模块采集、电源模块、存储模块及显示模块均与牌识别模块讯号连接。The present invention also provides a device for real-time multiple license plate recognition using the above method, including a video acquisition module for image acquisition; a license plate recognition module for identifying license plates; a power supply module for supplying power to the entire system; Module, used to store system programs and important videos; and display module, used to display scene shooting videos and video frames of illegal traffic accidents; where the video acquisition module collects, power supply module, storage module and display module are all identified with the card Module signal connection.
本发明提供的一种基于小波变化和支持向量机的实时多车牌识别方法和装置,可实现在同一图像中多个车牌准确的检测,并能迅速的进行识别,从而为交通监管人员的监测安全提供极大帮助。A real-time multi-license plate recognition method and device based on wavelet variation and support vector machine provided by the present invention can realize accurate detection of multiple license plates in the same image, and can quickly identify them, thereby providing a safe monitoring for traffic supervisors Great help.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明一种基于小波变化和支持向量机的实时多车牌识别方法的流程图;Fig. 1 is a kind of flow chart of the real-time many license plate recognition method based on wavelet variation and support vector machine of the present invention;
图2为一种基于小波变化和支持向量机的实时多车牌识别装置的结构框图;Fig. 2 is a structural block diagram of a real-time multi-license plate recognition device based on wavelet variation and support vector machine;
图3为小波变换一次分解示意图。Fig. 3 is a schematic diagram of one-time decomposition of wavelet transform.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
请参见图1,一种基于小波变化和支持向量机的实时多车牌识别方法,包括以下步骤,Please refer to Figure 1, a real-time multi-license plate recognition method based on wavelet variation and support vector machine, including the following steps,
步骤1,采集车辆图像;其可通过摄像机进行实际场景车辆图像的采集;在本实施例中,其由处理器产生采集信号,控制摄像机对测量图像进行采集和解码,并且其采集速度在35帧/秒。Step 1, collect vehicle image; it can carry out the collection of vehicle image of actual scene through camera; In this embodiment, it generates collection signal by processor, controls camera to collect and decode measurement image, and its collection speed is in 35 /Second.
步骤2,对图像进行去噪处理,具体为先对图像进行拉普拉斯变换,对图像的边缘进行增强,然后将彩色图像转变为256级的灰度图像,再对图像进行高斯模糊处理;Step 2, denoising the image, specifically performing Laplace transform on the image first, enhancing the edge of the image, then converting the color image into a 256-level grayscale image, and then performing Gaussian blur processing on the image;
步骤3,根据矩形框内的边缘像素数与矩形面积之比的大小确定车牌图像的位置;Step 3, determine the position of the license plate image according to the size of the ratio of the number of edge pixels in the rectangular frame to the area of the rectangle;
步骤4,对车牌图像采用行扫描的方法确定车牌的水平位置,采用小波分层变换的方法确定车牌的垂直位置;Step 4, adopting the method of line scanning to determine the horizontal position of the license plate to the license plate image, adopting the method of wavelet layered transformation to determine the vertical position of the license plate;
步骤5,对每一幅车牌图像进行二值化处理,然后对处理后的车牌图像进行列扫描,当单列边缘像素数的超过预先设定的阈值范围时,则判断当前列包含车牌字符,否则该列不包含车牌字符将其作为字符分割的边界;Step 5: Carry out binarization processing on each license plate image, and then perform column scanning on the processed license plate image. When the number of edge pixels in a single column exceeds a preset threshold range, it is judged that the current column contains license plate characters, otherwise The column does not contain the license plate character to use it as a character-separated boundary;
步骤6,对车牌字符进行识别,具体为利用事先训练好的SVM支持向量机对检测到的车牌图像进行字符识别,得到车牌号信息,并记录该车牌在车辆图像中的位置。Step 6: Recognize the characters of the license plate, specifically, use the pre-trained SVM support vector machine to perform character recognition on the detected license plate image, obtain the license plate number information, and record the position of the license plate in the vehicle image.
进一步的,在执行步骤2时,其具体操作原理为:Further, when step 2 is executed, the specific operation principle is as follows:
步骤2-1:根据拉普拉斯变换模板: Step 2-1: Transform template according to Laplace:
步骤2-2:拉普拉斯边缘增强处理:其中(x,y)为车辆图像在时域中的坐标,c表示拉普拉斯算子的影响因子,其取值范围在0.4~0.7之间。g(x,y)表示增强之后(x,y)处的灰度值,f(x,y)为增强处理之前(x,y) 处的灰度值。Step 2-2: Laplacian edge enhancement processing: Where (x, y) is the coordinate of the vehicle image in the time domain, and c represents the influence factor of the Laplacian operator, and its value range is between 0.4 and 0.7. g(x, y) represents the gray value at (x, y) after enhancement, and f(x, y) represents the gray value at (x, y) before enhancement.
步骤2-3:彩色图像变成灰度图像:Gray(x,y)=0.3R(x,y)+0.59G(x,y)+0.11B(x,y);其中R(x,y)为R通道的灰度值,G(x,y)为G通道的灰度值,B(x,y)为B 通道的灰度值;Step 2-3: The color image becomes a grayscale image: Gray(x,y)=0.3R(x,y)+0.59G(x,y)+0.11B(x,y); where R(x,y ) is the gray value of the R channel, G(x, y) is the gray value of the G channel, and B(x, y) is the gray value of the B channel;
步骤2-4:高斯滤波去噪处理,高斯滤波模板为:Step 2-4: Gaussian filter denoising processing, the Gaussian filter template is:
进一步的,执行步骤4时,其具体步骤包括:Further, when performing step 4, the specific steps include:
步骤4-1,对车牌图像行扫描确定车牌的水平位置,具体为设定将每一行从黑到白或从白到黑都记为一次跳变,行扫描时每个字符至少会出现两个跳变,将跳变阈值设置为14次;扫描从下而上进行,统计行扫描的跳变数,若某一行跳变点数大于14,则判断这一行为车牌所在行,将其记为车牌底部,继续向上逐行扫描,直至跳变数小于14,将其作为车牌的顶部;在此步骤中,考虑车牌有7个字符,受字符的断裂、模糊、车牌倾斜等因素的影响,因此将跳变的阈值设置为14次,所以若某一行跳变数大于14则认为这一行可能是车牌所在行,因此将其即为车牌底部。Step 4-1, line scan the license plate image to determine the horizontal position of the license plate. Specifically, set each line from black to white or from white to black as a jump, and each character will appear at least two during line scanning. Jump, set the jump threshold to 14 times; scan from bottom to top, count the number of jumps in the row scan, if the number of jump points in a row is greater than 14, then judge the row where the license plate is located, and record it as the bottom of the license plate , continue to scan upward line by line until the number of jumps is less than 14, and use it as the top of the license plate; in this step, considering that the license plate has 7 characters, affected by factors such as character breaks, blurring, and license plate tilt, the jump The threshold is set to 14 times, so if the number of jumps in a row is greater than 14, it is considered that this row may be the row where the license plate is located, so it is the bottom of the license plate.
步骤4-2,M行图像每列的垂直投影VPj由下式得到:Step 4-2, the vertical projection VPj of each column of M rows of images is obtained by the following formula:
其中f(x,y)表示(x,y)点的灰度值,M为图像的行数,i为像素x坐标,j为像素y坐标。根据已确定水平位置的车牌在垂直方向的灰度值,采用小波分层变换的方法进行三层分解与重构确定车牌的垂直位置。根据本领域技术人员先前的经验,车牌字符区域的垂直区域通常会形成密集的波峰-波谷-波峰的特征,因此即可初步得到车牌的左右边界。然后再根据小波算法,一维小波变换实现的算法一般时mallat算法,先对尺度较大的信号进行变换得到信号的低频部分和高频部分,然后对低频部分再做2次分解,将其再分解成低频部分和高频部分,一次分解如图3所示,然后再从小波中提取有用信息进行信号的构建(有用信息为小波分解信号的高频部分),通过此方法进一步确定车牌的垂直位置。Where f(x, y) represents the gray value of point (x, y), M is the number of rows of the image, i is the x coordinate of the pixel, and j is the y coordinate of the pixel. According to the vertical gray value of the license plate whose horizontal position has been determined, the vertical position of the license plate is determined by using the method of wavelet layered transformation for three-layer decomposition and reconstruction. According to the previous experience of those skilled in the art, the vertical area of the license plate character area usually forms dense peak-trough-peak features, so the left and right boundaries of the license plate can be preliminarily obtained. Then according to the wavelet algorithm, the algorithm implemented by one-dimensional wavelet transform is generally the mallat algorithm. First, the signal with a large scale is transformed to obtain the low-frequency part and high-frequency part of the signal, and then the low-frequency part is decomposed twice. Decompose into low-frequency part and high-frequency part, once decomposed as shown in Figure 3, and then extract useful information from the wavelet to construct the signal (useful information is the high-frequency part of the wavelet decomposed signal), and further determine the vertical direction of the license plate by this method Location.
进一步的,执行步骤6时,其事先训练好的SVM支持向量机对检测到的车牌图像进行字符识别的执行步骤包括:Further, when performing step 6, the execution steps of its pre-trained SVM support vector machine performing character recognition on the detected license plate image include:
步骤6-1,根据34个省份的简称、26个英文字母以及10个数字字符对支持向量机进行训练,训练过程如下:Step 6-1, train the support vector machine according to the abbreviations of 34 provinces, 26 English letters and 10 numeric characters. The training process is as follows:
搜集训练样本数据,其中样本为标准的字符,是二值化的图形;Collect training sample data, where the samples are standard characters and binarized graphics;
构建图形样本的数据特征,所述数据特征至少包含字符的矩形内字符像素数与非字符像素数的比值,长宽比;Constructing data features of graphic samples, said data features at least including the ratio of the number of character pixels in a character rectangle to the number of non-character pixels, and the aspect ratio;
将样本按照上述数据特征构建特征向量,从中随机选择两两特征建立特征空间,所有数据特征均涉及;The sample is constructed according to the above data characteristics to construct a feature vector, from which two or two features are randomly selected to establish a feature space, and all data features are involved;
根据样本数据在特征空间中寻找区分样本与非样本的特征超平面,该特征超平面用来判断字符是否符合样本对应的数据特征,从而判断是否为对应的字符,二维的特征空间中超平面公式如下:According to the sample data, find the feature hyperplane that distinguishes the sample from the non-sample in the feature space. The feature hyperplane is used to judge whether the character conforms to the data characteristics corresponding to the sample, so as to judge whether it is the corresponding character. The hyperplane formula in the two-dimensional feature space as follows:
其中,w表示为判别字符的超平面斜率,x表示为空间x坐标,b表示为该特征平面与Y平面的交线,y表示为空间纵坐标,i表示为特征序列号。当特征超平面大于1表示属于字符类,小于1则不属于字符类,最优超平面公式中的系数由朗格朗日方程进行计算,其约束条件如下:Among them, w represents the slope of the hyperplane for discriminating characters, x represents the spatial x coordinate, b represents the intersection line between the feature plane and the Y plane, y represents the space ordinate, and i represents the feature sequence number. When the feature hyperplane is greater than 1, it means it belongs to the character class, and if it is less than 1, it does not belong to the character class. The coefficients in the optimal hyperplane formula are calculated by the Langrange equation, and the constraints are as follows:
yi[wxi+b]-1≥0,i=1,2,3,...,ly i [wx i +b]-1≥0,i=1,2,3,...,l
其中,的倒数表示平面离需要分离的两类中样本点的距离,根据此公式可知,超平面离两类中样本点的距离越大,说明它的区分能力越好,in, The reciprocal of represents the distance between the plane and the sample points in the two categories that need to be separated. According to this formula, the greater the distance between the hyperplane and the sample points in the two categories, the better its discrimination ability is.
拉格朗日判别公式如下:The Lagrangian discriminant formula is as follows:
根据拉格朗日判别方法,并计算下式,得:According to the Lagrangian discriminant method, and calculate the following formula, we get:
得到最优超平面的系数w,b,最终确定该空间中的最优超平面;Get the coefficients w and b of the optimal hyperplane, and finally determine the optimal hyperplane in this space;
步骤6-2,当对应的两两特征空间中都找到最优超平面,SVM支持向量机训练好。Step 6-2, when the optimal hyperplane is found in the corresponding pairwise feature space, the SVM support vector machine is trained.
进一步的,利用SVM支持向量机对字符进行识别,其具体步骤为:Further, using the SVM support vector machine to recognize the characters, the specific steps are:
S1:设计SVM支持向量机训练样本过程,生成一个分类器的.xml文件,文件中记录各个字符特征值;S1: Design the SVM support vector machine training sample process, generate a classifier .xml file, and record the feature values of each character in the file;
S2:将该.xml文件进行分类器加载,斌用分类器对字符进行识别。S2: Load the .xml file into a classifier, and use the classifier to identify characters.
进一步的,执行步骤3时,其具体步骤包括:Further, when performing step 3, the specific steps include:
步骤3-1,在图像中搜索边缘为矩形的轮廓;Step 3-1, searching for contours whose edges are rectangles in the image;
步骤3-2,统计落在每个矩形中的边缘像素数;Step 3-2, counting the number of edge pixels falling in each rectangle;
步骤3-3,计算落在矩形框内的边缘像素数与面积的比值,当其比值大于预设的阈值0.78时判断为车牌图像的位置,否则判断为非车牌区域。Step 3-3, calculate the ratio of the number of edge pixels falling within the rectangular frame to the area, when the ratio is greater than the preset threshold 0.78, it is judged as the position of the license plate image, otherwise it is judged as a non-license plate area.
进一步的,在执行步骤5时,其具体步骤包括:Further, when performing step 5, the specific steps include:
对每一幅车牌图像进行二值化处理,二值化为0或255,阈值为80;Perform binarization processing on each license plate image, the binarization is 0 or 255, and the threshold is 80;
对图像进行列扫描,统计每一列像素值为255的像素数,然后计算单列边缘像素数与列长度的比值,当单列边缘像素数的超过设定的阈值范围时,则判断当前列包含车牌字符,否则该列不包含车牌字符将其作为字符分割的边界。Scan the image in columns, count the number of pixels with a pixel value of 255 in each column, and then calculate the ratio of the number of edge pixels in a single column to the length of the column. When the number of edge pixels in a single column exceeds the set threshold range, it is judged that the current column contains license plate characters , otherwise the column does not contain the license plate character to use it as a character splitting boundary.
一种基于小波变化和支持向量机的实时多车牌识别装置,包括视频采集模块,用于图像的采集;车牌识别模块,用于对车牌进行识别;电源模块,用于给整个系统供电;存储模块,用于对系统程序及重要视频的存储;和显示模块,用于显示场景拍摄视频以及出现违法交通事故的视频帧;其中视频采集模块采集、电源模块、存储模块及显示模块均与牌识别模块讯号连接。A real-time multi-license plate recognition device based on wavelet transformation and support vector machine, including a video acquisition module for image acquisition; a license plate recognition module for recognizing license plates; a power supply module for supplying power to the entire system; a storage module , used to store system programs and important videos; and a display module, used to display scene shooting videos and video frames of illegal traffic accidents; where the video acquisition module, power supply module, storage module and display module are all connected with the card recognition module signal connection.
进一步的,所述车牌识别模块包括德州仪器(T1公司)TMS320DM8168数字媒体处理器,TMS320DM8168是面向多媒体应用的DSP处理器,它内部集成了1.2GHz的CortexTM-A8处理器和1GHz的C674x+TM浮点型DSP 处理器,并且拥有3个高清视频协处理器(HDVICP),可以支持同时处理 16路720p30fps同步视频流。由于其高速的实时运算能力和专门的视频接口以及丰富的扩展接口在多媒体领域获得了广泛的应用。Further, the license plate recognition module includes a Texas Instruments (T1 company) TMS320DM8168 digital media processor, TMS320DM8168 is a DSP processor for multimedia applications, which integrates a 1.2GHz Cortex TM -A8 processor and 1GHz C674x+ TM floating-point DSP processor, and has 3 high-definition video coprocessors (HDVICP), which can support simultaneous processing of 16 channels of 720p30fps synchronous video stream. Because of its high-speed real-time computing capability, special video interface and rich expansion interface, it has been widely used in the multimedia field.
视频采集模块由1个高清CCD模拟摄像机和TI公司的TVP5158解码器组成,TVP5158可以自动控制对比度,降低噪声,提高压缩比与整体视频质量。车牌识别模块由TMS320DM8168数字媒体处理器组成,在其上编写代码完成如上所述的车牌识别功能。电源模块采用车载电源供电,经过宽电压输入直流电平稳压芯片和转换芯片输出1.8V、3.3V、5V和12V电压,完成给整个系统的供电。存储模块由FLASH存储器、DDR3内存和带有SATA接口的硬盘组成。显示模块由带有HDMI接口的高清显示器组成,完成视频的高清显示,车牌也会更加清晰,有利于识别模块的车牌识别。本发明提供的装置其采用多线程编写方式,采集,识别以及显示实现并行操作,提高了算法的效率。The video acquisition module consists of a high-definition CCD analog camera and TI's TVP5158 decoder. TVP5158 can automatically control the contrast, reduce noise, improve the compression ratio and the overall video quality. The license plate recognition module is composed of TMS320DM8168 digital media processor, on which the code is written to complete the above-mentioned license plate recognition function. The power supply module is powered by the vehicle power supply, and outputs 1.8V, 3.3V, 5V and 12V voltages through a wide voltage input DC voltage stabilization chip and a conversion chip to complete the power supply for the entire system. The storage module is composed of FLASH memory, DDR3 memory and hard disk with SATA interface. The display module is composed of a high-definition display with an HDMI interface. After completing the high-definition display of the video, the license plate will be clearer, which is beneficial to the license plate recognition of the recognition module. The device provided by the invention adopts a multi-thread programming mode, and realizes parallel operations in acquisition, identification and display, thereby improving the efficiency of the algorithm.
本发明提供的一种基于小波变化和支持向量机的实时多车牌识别方法和装置,在硬件上采用高效能且可并行的处理器,在实现方法上通过算法以及支持向量机进行精准、有效的对同一图像中多个车牌进行识别,因此可应用于交通、车场等场所,为监管人员提供极大帮助。A real-time multi-license plate recognition method and device based on wavelet variation and support vector machine provided by the present invention adopts high-efficiency and parallel processors in hardware, and uses algorithms and support vector machines for accurate and effective recognition in terms of implementation methods. Recognize multiple license plates in the same image, so it can be applied to traffic, parking lots and other places, providing great help to supervisors.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of the present invention. within the scope of protection.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710423827.7A CN107506777A (en) | 2017-06-07 | 2017-06-07 | A kind of real-time more licence plate recognition methods and device based on Wavelet transformation and SVMs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710423827.7A CN107506777A (en) | 2017-06-07 | 2017-06-07 | A kind of real-time more licence plate recognition methods and device based on Wavelet transformation and SVMs |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107506777A true CN107506777A (en) | 2017-12-22 |
Family
ID=60678394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710423827.7A Pending CN107506777A (en) | 2017-06-07 | 2017-06-07 | A kind of real-time more licence plate recognition methods and device based on Wavelet transformation and SVMs |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107506777A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108305284A (en) * | 2018-02-28 | 2018-07-20 | 北京奇艺世纪科技有限公司 | A kind of determination method and device of strokes of characters width |
CN110689000A (en) * | 2018-07-05 | 2020-01-14 | 山东华软金盾软件股份有限公司 | Vehicle license plate identification method based on vehicle license plate sample in complex environment |
CN111160486A (en) * | 2019-12-31 | 2020-05-15 | 三峡大学 | Fuzzy image classification method based on support vector machine and wavelet decomposition |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009294704A (en) * | 2008-06-02 | 2009-12-17 | Mitsubishi Heavy Ind Ltd | License number recognition device and license number recognition method |
CN103235938A (en) * | 2013-05-03 | 2013-08-07 | 北京国铁华晨通信信息技术有限公司 | Method and system for detecting and identifying license plate |
CN107067002A (en) * | 2017-03-09 | 2017-08-18 | 华东师范大学 | Road licence plate recognition method in a kind of dynamic video |
-
2017
- 2017-06-07 CN CN201710423827.7A patent/CN107506777A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009294704A (en) * | 2008-06-02 | 2009-12-17 | Mitsubishi Heavy Ind Ltd | License number recognition device and license number recognition method |
CN103235938A (en) * | 2013-05-03 | 2013-08-07 | 北京国铁华晨通信信息技术有限公司 | Method and system for detecting and identifying license plate |
CN107067002A (en) * | 2017-03-09 | 2017-08-18 | 华东师范大学 | Road licence plate recognition method in a kind of dynamic video |
Non-Patent Citations (2)
Title |
---|
刘雄飞等: "基于行扫描和小波变换的车牌定位算法", 《计算机应用与软件》 * |
李耀: "复杂环境中的车牌定位算法研究", 《中国优秀硕士学位论文全文数据库工程科技II辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108305284A (en) * | 2018-02-28 | 2018-07-20 | 北京奇艺世纪科技有限公司 | A kind of determination method and device of strokes of characters width |
CN110689000A (en) * | 2018-07-05 | 2020-01-14 | 山东华软金盾软件股份有限公司 | Vehicle license plate identification method based on vehicle license plate sample in complex environment |
CN110689000B (en) * | 2018-07-05 | 2023-06-23 | 山东华软金盾软件股份有限公司 | Vehicle license plate recognition method based on license plate sample generated in complex environment |
CN111160486A (en) * | 2019-12-31 | 2020-05-15 | 三峡大学 | Fuzzy image classification method based on support vector machine and wavelet decomposition |
CN111160486B (en) * | 2019-12-31 | 2023-05-02 | 三峡大学 | Fuzzy Image Classification Method Based on Support Vector Machine and Wavelet Decomposition |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Wei et al. | Multi-vehicle detection algorithm through combining Harr and HOG features | |
Yuan et al. | A robust and efficient approach to license plate detection | |
Xu et al. | Detection of sudden pedestrian crossings for driving assistance systems | |
Al-Ghaili et al. | Vertical-edge-based car-license-plate detection method | |
Babu et al. | Vehicle number plate detection and recognition using bounding box method | |
US8608073B2 (en) | System and method for robust real-time 1D barcode detection | |
CN111382704B (en) | Vehicle line pressing violation judging method and device based on deep learning and storage medium | |
CN102208023B (en) | Method for recognizing and designing video captions based on edge information and distribution entropy | |
CN104751142B (en) | A kind of natural scene Method for text detection based on stroke feature | |
US8755563B2 (en) | Target detecting method and apparatus | |
CN103093201B (en) | Vehicle-logo location recognition methods and system | |
CN105678213B (en) | Dual-mode mask person event automatic detection method based on video feature statistics | |
Danescu et al. | Detection and classification of painted road objects for intersection assistance applications | |
CN107506777A (en) | A kind of real-time more licence plate recognition methods and device based on Wavelet transformation and SVMs | |
Rehman et al. | An efficient approach for vehicle number plate recognition in Pakistan | |
Aung et al. | Automatic license plate detection system for myanmar vehicle license plates | |
JP5201184B2 (en) | Image processing apparatus and program | |
Giri | Text information extraction and analysis from images using digital image processing techniques | |
Jaiswal et al. | Survey paper on various techniques of recognition and tracking | |
Anthimopoulos et al. | Multiresolution text detection in video frames | |
Sathiya et al. | Pattern recognition based detection recognition of traffic sign using SVM | |
Satish et al. | Edge assisted fast binarization scheme for improved vehicle license plate recognition | |
KR102139932B1 (en) | A Method of Detecting Character Data through a Adaboost Learning Method | |
Tanwar et al. | Indian licence plate dataset in the wild | |
CN103793722A (en) | Rapid vehicle detection method and device under low resolution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information |
Inventor after: Duan Zhikui Inventor after: Yang Faquan Inventor after: Xiao Yonghao Inventor after: Zhou Yuexia Inventor after: Li Jianhui Inventor after: Chen Jianwen Inventor after: Wang Xingbo Inventor after: Tan Haishu Inventor after: Zhu Zhen Inventor after: Yu Xinmei Inventor after: Wang Dong Inventor after: Fan Yun Inventor before: Duan Zhikui Inventor before: Xiao Yonghao Inventor before: Zhou Yuexia Inventor before: Chen Jianwen Inventor before: Wang Xingbo Inventor before: Tan Haishu Inventor before: Zhu Zhen Inventor before: Yu Xinmei Inventor before: Wang Dong Inventor before: Fan Yun Inventor before: Yang Faquan |
|
CB03 | Change of inventor or designer information | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210918 Address after: 528000 No. 18, No. 1, Jiangwan, Guangdong, Foshan Applicant after: FOSHAN University Applicant after: FOSHAN POLYTECHNIC Address before: 528000 No. 18, No. 1, Jiangwan, Guangdong, Foshan Applicant before: FOSHAN University |
|
TA01 | Transfer of patent application right | ||
CB02 | Change of applicant information |
Country or region after: China Address after: 528000 No. 18, No. 1, Jiangwan, Guangdong, Foshan Applicant after: Foshan University Applicant after: FOSHAN POLYTECHNIC Address before: 528000 No. 18, No. 1, Jiangwan, Guangdong, Foshan Applicant before: FOSHAN University Country or region before: China Applicant before: FOSHAN POLYTECHNIC |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171222 |