CN106778742B - Car logo detection method based on Gabor filter background texture suppression - Google Patents
Car logo detection method based on Gabor filter background texture suppression Download PDFInfo
- Publication number
- CN106778742B CN106778742B CN201611126129.2A CN201611126129A CN106778742B CN 106778742 B CN106778742 B CN 106778742B CN 201611126129 A CN201611126129 A CN 201611126129A CN 106778742 B CN106778742 B CN 106778742B
- Authority
- CN
- China
- Prior art keywords
- license plate
- vehicle
- image
- logo
- point
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/24—Aligning, centring, orientation detection or correction of the image
- G06V10/245—Aligning, centring, orientation detection or correction of the image by locating a pattern; Special marks for positioning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Multimedia (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
本发明公开了一种基于Gabor滤波器背景纹理抑制的车标检测方法,包含以下步骤:第一步,对图像进行倾斜校正预处理;第二步,在预处理后的图像中进行车牌检测,得到车牌区域;第三步,基于先验知识,根据车牌和车标的位置关系,在车牌定位后得到包含车标图案的车标粗定位区域;第四步,对车标粗定位区域进行Gabor滤波,抑制车标周围散热网纹理,凸显车标区域;第五步,进行高斯滤波和数学形态学闭操作;第六步,选定阈值对灰度图像阈值化,并框定检测目标区域,实现车标精定位。该车标检测方法检测时间短,检测率高。
The invention discloses a vehicle logo detection method based on Gabor filter background texture suppression, comprising the following steps: the first step is to perform tilt correction preprocessing on an image; Obtain the license plate area; the third step, based on the prior knowledge, according to the positional relationship between the license plate and the car logo, after the license plate is located, the rough positioning area of the car logo containing the car logo pattern is obtained; the fourth step, the rough positioning area of the car logo is subjected to Gabor filtering , suppress the texture of the heat dissipation network around the car logo and highlight the car logo area; the fifth step, perform Gaussian filtering and mathematical morphological closing operations; the sixth step, select a threshold to threshold the gray image, and frame the detection target area to realize the Precise positioning. The vehicle logo detection method has short detection time and high detection rate.
Description
技术领域technical field
本发明涉及车标检测方法,尤其涉及一种基于Gabor滤波器背景纹理抑制的车标检测方法。The invention relates to a vehicle logo detection method, in particular to a vehicle logo detection method based on Gabor filter background texture suppression.
背景技术Background technique
随着社会经济的快速增长,目前中国的汽车消费需求日益旺盛,汽车数目不断增长,也带来了诸如交通肇事逃逸,车辆被盗窃等交通问题。为了确定违法和违章车辆,目前普遍采用的是对汽车的车牌进行识别。然而近几年套牌,倒牌,车牌磨损以及车牌遮挡等现象的出现,使得仅仅通过识别车牌来确定汽车变得不可靠。车标是包含了车型和生产厂家信息的关键性图像,是汽车分类和识别的重要依据。如果能准确地定位车标,将会有效地提高汽车分类和识别的准确率。With the rapid growth of the social economy, the current demand for automobiles in China is growing, and the number of automobiles is increasing, which also brings traffic problems such as hit-and-run accidents and vehicle theft. In order to identify illegal and illegal vehicles, it is generally used to recognize the license plate of the car. However, in recent years, the phenomenon of license plate reversal, license plate wear, license plate occlusion, etc., makes it unreliable to identify the car only by recognizing the license plate. The car logo is a key image that contains the information of the model and manufacturer, and is an important basis for car classification and identification. If the car logo can be located accurately, it will effectively improve the accuracy of car classification and recognition.
然而车标种类丰富,形状多样,不具有稳定的外部特征,同时其所处的环境是纹理复杂的汽车格栅区域。另外车标易受天气影响:夜晚或雨天光照不足的情况下,车标难以辨认;强光条件下,车标极易反光。上述特点使得车标定位存在较大难度,很有挑战性。现有的车标定位方法还不够成熟,存在检测率低,易受光照变化干扰等问题,所以车标检测效果还有待进一步提高。However, car logos are rich in types and shapes, and do not have stable external features. At the same time, the environment in which they are located is the area of the car grille with complex textures. In addition, the car logo is easily affected by the weather: in the case of insufficient light at night or rainy days, the car logo is difficult to identify; under strong light conditions, the car logo is easily reflective. The above characteristics make the positioning of the vehicle logo more difficult and challenging. The existing vehicle logo positioning methods are not mature enough, and have problems such as low detection rate and easy interference from light changes, so the effect of vehicle logo detection needs to be further improved.
发明内容SUMMARY OF THE INVENTION
发明目的:本发明针对现有技术存在的问题,提供一种基于Gabor滤波器背景纹理抑制的车标检测方法。Purpose of the invention: The present invention provides a vehicle logo detection method based on Gabor filter background texture suppression, aiming at the problems existing in the prior art.
技术方案:本发明所述的基于Gabor滤波器背景纹理抑制的车标检测方法包括:Technical solution: The vehicle logo detection method based on Gabor filter background texture suppression according to the present invention includes:
(1)对拍摄获取的具有一定倾斜角度的车辆图像,基于SIFT算子进行车辆对称轴检测和倾斜校正;(1) For the vehicle image with a certain tilt angle obtained by shooting, the vehicle symmetry axis detection and tilt correction are performed based on the SIFT operator;
(2)利用Harr+AdaBoost的机器学习算法训练得到级联分类器,并采用该级联分类器从校正后的车辆图像中定位车牌区域;(2) Use the machine learning algorithm of Harr+AdaBoost to train a cascade classifier, and use the cascade classifier to locate the license plate area from the corrected vehicle image;
(3)基于先验知识,根据车牌和车标的位置关系,在定位的车牌区域中得到包含车标图案的车标粗定位区域;(3) Based on the prior knowledge, according to the positional relationship between the license plate and the car logo, obtain the rough positioning area of the car logo including the car logo pattern in the located license plate area;
(4)对车标粗定位区域进行Gabor滤波,抑制车标周围散热网纹理,凸显车标区域;(4) Gabor filtering is performed on the rough positioning area of the car logo to suppress the texture of the heat dissipation network around the car logo and highlight the car logo area;
(5)对车标区域进行高斯滤波和数学形态学闭操作;(5) Perform Gaussian filtering and mathematical morphological closing operations on the vehicle logo area;
(6)选定阈值对将步骤(5)得到的灰度图像阈值化,并框定检测目标区域,得到精定位的车标。(6) Selecting a threshold pair Thresholding the grayscale image obtained in step (5), and framing the detection target area to obtain a precisely positioned vehicle logo.
有益效果:本发明与现有技术相比,其显著优点是:Beneficial effect: Compared with the prior art, the present invention has the following significant advantages:
1)检测精度高:该方法对光照变化有一定的抗干扰性,在不同的光照条件下都有着较高的检测率,对车标在太阳光直射和夜间等光照条件下(尤其是在强光下)都有较好的定位效果;1) High detection accuracy: This method has a certain anti-interference to illumination changes, and has a high detection rate under different illumination conditions. Light) have better positioning effect;
2)实时性好:本发明方法在夜晚或者光照不足条件下,太阳光直射的强光条件下和光照均匀的条件下都有着较快的检测速度,对于高速公路卡口抓拍的图片数据来说,可以实现在线实时处理;2) Good real-time performance: the method of the present invention has a faster detection speed at night or under the condition of insufficient illumination, under the condition of direct sunlight and under the condition of uniform illumination, and for the picture data captured by the highway bayonet. , which can realize online real-time processing;
3)适用对象广:传统的背景纹理抑制算法往往是对车标粗定位区域先进行纹理方向判断,然后根据不同的纹理方向采用不同的车标定位算法,传统方法中一旦出现车标纹理方向判别错误的情况,错误的定位方法就会被使用,必然导致定位失败,而本发明采用的基于Gabor滤波器背景纹理抑制的方法具有较高的适用性而无需进行纹理方向判别,能够同时适用于车标背景为水平,垂直和网状纹理的车辆进行车标检测,所以本发明是一种适用于不同情况且鲁棒性更好的算法。3) Wide range of applicable objects: The traditional background texture suppression algorithm often judges the texture direction of the rough positioning area of the car logo first, and then adopts different car logo positioning algorithms according to different texture directions. In the wrong case, the wrong positioning method will be used, which will inevitably lead to the failure of positioning, and the method based on Gabor filter background texture suppression adopted in the present invention has high applicability without the need for texture direction discrimination, and can be applied to vehicles at the same time. Vehicles with horizontal, vertical and mesh textured backgrounds are used for vehicle logo detection, so the present invention is an algorithm that is suitable for different situations and has better robustness.
附图说明Description of drawings
图1是本发明的基于Gabor滤波器背景纹理抑制的车标检测方法的流程示意图;Fig. 1 is the schematic flow chart of the vehicle logo detection method based on Gabor filter background texture suppression of the present invention;
图2是车牌定位的流程示意图;Fig. 2 is the flow chart of license plate positioning;
图3是Gabor滤波器的滤波流程示意图。FIG. 3 is a schematic diagram of the filtering flow of the Gabor filter.
具体实施方式Detailed ways
如图1所示,本实施例的基于Gabor滤波器背景纹理抑制的车标检测方法包括:As shown in FIG. 1 , the vehicle logo detection method based on Gabor filter background texture suppression in this embodiment includes:
(1)对拍摄获取的具有一定倾斜角度的车辆图像,基于SIFT算子进行车辆对称轴检测和倾斜校正。(1) For the vehicle image with a certain tilt angle obtained by shooting, the vehicle symmetry axis detection and tilt correction are performed based on the SIFT operator.
该步骤具体包括:This step specifically includes:
(1-1)获取车辆图像的每一个特征点的点向量,其中,定义特征点i的点向量为xi,yi表示该点坐标,表示方向,si表示尺度信息,i=1,…,n,n为特征点的总数;(1-1) Obtain the point vector of each feature point of the vehicle image, wherein the point vector defining the feature point i is x i , y i represent the coordinates of the point, Represents the direction, s i represents the scale information, i=1,...,n, n is the total number of feature points;
(1-2)将特征点的方向经过归一化后,得到对应的特征描述子ki,i=1,…,n,并将所有点的特征描述子生成预设维数的SIFT特征点向量;(1-2) Direction of feature points After normalization, the corresponding feature descriptors k i are obtained, i=1,...,n, and the feature descriptors of all points are generated into SIFT feature point vectors of preset dimensions;
(1-3)通过直接修改特征描述子ki生成镜像mi,再通过匹配特征点和镜像生成可能的对称特征点对(pi,pj),i,j=1,…,n,i≠j;(1-3) Generate a mirror image m i by directly modifying the feature descriptor ki , and then generate a possible symmetrical feature point pair (pi , p j ) by matching the feature point and the mirror image, i, j =1,...,n, i≠j;
(1-4)计算每一对可能的对称特征点对(pi,pj)的角度置信度Φij、尺度置信度Sij和距离置信度Dij,再计算得到总置信度Mi,j,i,j=1,…,n,i≠j;其中:(1-4) Calculate the angle confidence Φ ij , the scale confidence S ij and the distance confidence D ij of each pair of possible symmetrical feature point pairs (pi , p j ), and then calculate the total confidence M i , j , i, j=1,...,n, i≠j; where:
角度置信度Φij的计算公式为:其中,分别为点pi和点pj的方向,θij为点pi到点pj的方向;The calculation formula of the angle confidence Φ ij is: in, are the directions of point p i and point p j respectively, and θ ij is the direction from point p i to point p j ;
尺度置信度Sij由量化pi和pj中尺度的相似度si和sj来得到:其中σs为尺度因子,是高斯函数包络线沿点pi到点pj的方向的标准方差;The scale confidence S ij is obtained by quantifying the similarities s i and s j of the scales in p i and p j : where σ s is the scale factor, which is the standard deviation of the Gaussian function envelope along the direction from point p i to point p j ;
距离置信度Dij为:σd为距离边界,d为为对称点pi到点pj的距离;The distance confidence D ij is: σ d is the distance boundary, and d is the distance from the symmetrical point p i to the point p j ;
总置信度Mi,j为: The total confidence M i,j is:
(1-5)计算每一对对称特征点对(pi,pj)的对称轴rij:rij=xc cosθij+yc sinθij,其中xc,yc分别为特征点对(pi,pj)在x轴和y轴方向上的长度,θij为点pi到点pj的方向;(1-5) Calculate the symmetry axis r ij of each pair of symmetrical feature points (pi , p j ) : r ij =x c cosθ ij + y c sinθ ij , where x c , y c are the feature point pair respectively (p i ,p j ) lengths in the x-axis and y-axis directions, θ ij is the direction from point p i to point p j ;
(1-6)利用线性霍夫变换来寻找主对称轴,每一对对称特征点对(pi,pj)对霍夫空间内的点(rij,θij)以权值Mi,j投票,得到主对称轴;(1-6) Use linear Hough transform to find the main axis of symmetry, each pair of symmetrical feature points (pi , p j ) to points (r ij , θ ij ) in the Hough space with weights M i , j vote to get the main axis of symmetry;
(1-7)将主对称轴的角度作为车辆倾斜角度θ;(1-7) Taking the angle of the main axis of symmetry as the vehicle inclination angle θ;
(1-8)根据车辆倾斜角度θ,将车辆图像进行倾斜校正,校正后的图像为:(1-8) Perform tilt correction on the vehicle image according to the vehicle tilt angle θ, and the corrected image is:
width、height,为原始图像的宽和高,width'、height'为校正图像的宽和高。width and height are the width and height of the original image, and width' and height' are the width and height of the corrected image.
(2)利用Harr+AdaBoost的机器学习算法训练得到级联分类器,并采用该级联分类器从校正后的车辆图像中定位车牌区域。(2) Use the machine learning algorithm of Harr+AdaBoost to train a cascade classifier, and use the cascade classifier to locate the license plate area from the corrected vehicle image.
步骤(2)具体包括以下步骤:Step (2) specifically includes the following steps:
(2-1)采集预设数量的正样本和负样本,分别建立正样本库和负样本库,其中,正样本是指从道路卡口拍摄的高清车辆照中裁剪出的车牌,负样本是从车辆照中的非车牌区域中随机剪裁的背景样本,包含各种各样的背景环境;(2-1) Collect a preset number of positive samples and negative samples, and establish a positive sample library and a negative sample library respectively, where the positive sample refers to the license plate cut out from the high-definition vehicle photos taken at the road checkpoint, and the negative sample is Randomly cropped background samples from non-license plate areas in vehicle photos, including a variety of background environments;
(2-2)提取所有正负样本的Harr特征,并用这些Harr特征训练出若干个AdaBoost算法的强分类器;(2-2) Extract the Harr features of all positive and negative samples, and use these Harr features to train several strong classifiers of the AdaBoost algorithm;
其中,AdaBoost算法的强分类器的训练方法为:Among them, the training method of the strong classifier of the AdaBoost algorithm is:
(2-2-1)设训练集S={(a1,b1),...,(am,bm)}包含m个样本,其中ai∈A(i=1,2,...,m)表示训练样本,A为训练样本集,bi∈B是ai对应的判别标志,且有B={1,-1},对于第i个训练样本的第j个弱分类器hj(ai)表示为(2-2-1) Let the training set S={(a 1 ,b 1 ),...,(am ,b m )} contain m samples, where a i ∈A(i=1,2, ...,m) represents the training sample, A is the training sample set, b i ∈ B is the discriminant sign corresponding to a i , and there is B={1,-1}, for the jth weak The classifier h j (a i ) is expressed as
其中,Fj(ai)表示子窗口中第j个Haar特征的值,δj表示设定的阈值,pj表示控制不等号的方向的量;Wherein, F j (a i ) represents the value of the j-th Haar feature in the sub-window, δ j represents the set threshold, and p j represents the amount that controls the direction of the inequality sign;
(2-2-2)用AdaBoost算法把弱分类器训练为强分类器,具体步骤如下:(2-2-2) Use the AdaBoost algorithm to train the weak classifier into a strong classifier. The specific steps are as follows:
初始化样本权值:Initialize sample weights:
其中,w1(i)表示第一轮训练中第i个样本的初始权值,p表示S中正样本的总数,q表示S中负样本的总数,有p+q=m,m为样本总数;Among them, w 1 (i) represents the initial weight of the ith sample in the first round of training, p represents the total number of positive samples in S, q represents the total number of negative samples in S, p+q=m, m is the total number of samples ;
对于t=1,2,…,T(T为迭代次数),进行如下循环:For t=1,2,...,T (T is the number of iterations), the following loop is performed:
①权值归一化①Weight normalization
其中,wt(i)表示第t轮训练中第i个样本的权值,i=1,2,...,m;Among them, w t (i) represents the weight of the i-th sample in the t-th round of training, i=1,2,...,m;
②对特征j训练出其弱分类器hj,计算其加权误差εj,即②Train out its weak classifier h j for feature j, and calculate its weighted error ε j , namely
并选择加权误差最低的分类器ht min作为此次循环的分类器;And select the classifier h t min with the lowest weighted error as the classifier for this cycle;
③按照如下公式更新样本权值:③ Update the sample weights according to the following formula:
其中当分类正确时,ht(ai)=bi,ei=0,分类错误时,ht(ai)≠bi,ei=1;Wherein, when the classification is correct, h t (a i )=b i , e i =0, and when the classification is wrong, h t (a i )≠ bi , e i =1;
(2-2-3)得到最终的强分类器,如下(2-2-3) Get the final strong classifier, as follows
其中a为待检窗口,ht(a)表示在第t轮训练中得到的弱分类器,H(a)的结果为1表示接受,0表示拒绝。in a is the window to be checked, h t (a) represents the weak classifier obtained in the t-th round of training, and the result of H(a) is 1 for acceptance and 0 for rejection.
(2-3)将训练得到的若干强分类器以级联的形式构造出车牌检测级联分类器;(2-3) Construct license plate detection cascade classifiers in the form of cascade from several strong classifiers obtained by training;
(2-4)如图2所示,采用训练好的车牌检测级联分类器来检测车辆图像中的车牌区域;(2-4) As shown in Figure 2, the trained license plate detection cascade classifier is used to detect the license plate area in the vehicle image;
(2-5)采用车牌比例特征和车牌位置特征为依据,将检测出的车牌区域进行误捡筛选。(2-5) Based on the license plate scale feature and the license plate position feature, the detected license plate area is picked up and screened by mistake.
步骤(2-5)用于在定位后排除误检的区域。Step (2-5) is used to exclude falsely detected areas after localization.
其中,车牌比例特征:车牌形状为矩形,车牌有固定的字数和固定大小的字体,实际宽度和高度分别为44厘米和14厘米,图像中的宽高比基本在3:1左右,算法中可对宽度和高度设定大小范围限;Among them, the proportion of license plate: the shape of the license plate is a rectangle, the license plate has a fixed number of characters and a fixed-size font, the actual width and height are 44 cm and 14 cm, respectively, and the aspect ratio in the image is basically about 3:1. Set size range limits for width and height;
车牌位置特征:由于实际道路监控摄像头由固定位置地感线圈信号触发拍摄而车牌的安装位置在整个车辆的偏下方,因此车牌在整幅图像中的垂直方向位置基本稳定(更趋向于出现在图像下半部分),根据统计信息可以求得平均车牌中心位置,偏离该中心位置越远的候选区域成为车牌的可能性越低。License plate position characteristics: Since the actual road surveillance camera is triggered by the fixed position ground sensing coil signal and the license plate is installed at the lower part of the entire vehicle, the vertical position of the license plate in the entire image is basically stable (more tends to appear in the image). The lower part), according to the statistical information, the average license plate center position can be obtained, and the candidate area that deviates from the center position is less likely to become a license plate.
(3)通过观察车辆的车头各部件拓扑结构可以发现:车标最容易分辨的特征是它的位置,它与其他干扰区域的最大区别在于车标不会出现在除车牌上方的其他位置,而干扰区域的位置是随机的、不确定的,因此可以由车牌位置粗略定位车标大致范围;通过对大量车辆图片试验,根据车牌和车标的位置关系,在定位的车牌区域中得到包含车标图案的车标粗定位区域为:(3) By observing the topological structure of the front parts of the vehicle, it can be found that the most easily distinguishable feature of the car logo is its position. The biggest difference between it and other interference areas is that the car logo will not appear in other positions except above the license plate. The position of the interference area is random and uncertain, so the approximate range of the car logo can be roughly located by the position of the license plate; through the test of a large number of vehicle pictures, according to the positional relationship between the license plate and the car logo, the located license plate area contains the car logo pattern. The rough positioning area of the vehicle logo is:
其中,X1、X2、Y1、Y2分别为粗定位得到的车标大致范围的左右及上下边界,Xleft、Xright分别为车牌区域的左右边界,Yup为车牌区域上边界,height为车牌区域高度,N为可选择的高度系数,一般取作N=3。Among them, X 1 , X 2 , Y 1 , and Y 2 are the left and right and upper and lower boundaries of the approximate range of the vehicle logo obtained by rough positioning, respectively, X left and X right are the left and right boundaries of the license plate area, and Y up is the upper boundary of the license plate area, height is the height of the license plate area, and N is an optional height coefficient, generally taken as N=3.
(4)对车标粗定位区域进行Gabor滤波,抑制车标周围散热网纹理,凸显车标区域。(4) Gabor filtering is performed on the rough positioning area of the car logo to suppress the texture of the heat dissipation network around the car logo and highlight the car logo area.
如图3所示,步骤(4)具体包括以下步骤:As shown in Figure 3, step (4) specifically includes the following steps:
(4-1)定义Gabor滤波器的二维Gabor核函数h(x,y)为(4-1) Define the two-dimensional Gabor kernel function h(x, y) of the Gabor filter as
其中,u0为函数中心频率,σx、σy为尺度因子,分别为高斯函数包络线沿x、y轴方向的标准差,exp(2πju0R1)为振荡函数,实部为余弦函数,虚部为正弦函数,为设定的方向;Among them, u 0 is the center frequency of the function, σ x and σ y are the scale factors, and are the standard deviations of the Gaussian function envelope along the x and y axes respectively, exp(2πju 0 R 1 ) is the oscillation function, and the real part is the cosine function, the imaginary part is a sine function, is the set direction;
通过改变Gabor核函数方向可以提取图像中不同方向的纹理信息,的取值范围为这个范围内的值可以描述所有的方向,即与描述的是同一个方向,同样通过改变Gabor核函数的尺度可以提取图像中不同尺度上的纹理信息,本发明中没有选择多尺度上纹理信息的提取,而是在一个效果良好的特定尺度下,选取了6个不同方向的Gabor滤波器构成滤波器组,方向分别为π/6,π/4,π/3,2π/3,3π/4,5π/6。By changing the direction of the Gabor kernel function The texture information in different directions in the image can be extracted, The value range of is within this range values can describe all directions, i.e. and It describes the same direction, and the texture information on different scales in the image can be extracted by changing the scale of the Gabor kernel function. In the present invention, the extraction of texture information on multiple scales is not selected, but at a specific scale with good effect, Six Gabor filters with different directions are selected to form a filter bank, and the directions are π/6, π/4, π/3, 2π/3, 3π/4, 5π/6.
(4-2)初始化Gabor滤波器:分别构建6个不同方向的Gabor滤波器{hl(x,y)|l=1,...,6},从而构成滤波器组,其中,方向分别设定为π/6,π/4,π/3,2π/3,3π/4,5π/6,6个方向的Gabor滤波器的尺度参数和带宽参数设置如下:尺度σx、σy的值均设定为1,带宽Sigma设置为2π,且Sigma=σu0,故中心频率u0为2π;(4-2) Initialize Gabor filter: Construct 6 Gabor filters {h l (x,y)|l=1,...,6} in different directions respectively to form a filter bank, where the direction Set as π/6, π/4, π/3, 2π/3, 3π/4, 5π/6, respectively, the scale parameters and bandwidth parameters of the Gabor filter in 6 directions are set as follows: scale σ x , σ y The values of are all set to 1, the bandwidth Sigma is set to 2π, and Sigma=σu 0 , so the center frequency u 0 is 2π;
(4-3)将步骤(3)得到的车标粗定位区域图像分别和6个不同方向的二维Gabor核函数h(x,y)进行卷积操作并取模,得到6个滤波图像G1(x,y),G2(x,y),G3(x,y),G4(x,y),G5(x,y),G6(x,y),滤波器组最终输出图像为G(x,y)=(G1(x,y)+G2(x,y)+G3(x,y)+G4(x,y)+G5(x,y)+G6(x,y))/6,其中,Gl(x,y)=∫∫f(x0,y0)hl(x-x0,y-y0)dx0dy0,式中,f(x,y)为车标粗定位区域图像;(4-3) Convolve the image of the rough positioning area of the vehicle logo obtained in step (3) with 6 two-dimensional Gabor kernel functions h(x, y) in different directions and take the modulo to obtain 6 filtered images G 1 (x,y), G2 ( x,y), G3 ( x,y), G4 ( x,y), G5 (x,y), G6 (x,y), filter bank The final output image is G(x,y) = ( G1 (x,y)+G2(x,y) + G3(x,y) + G4(x,y)+G5 ( x,y) )+G 6 (x,y))/6, where G l (x,y)=∫∫f(x 0 ,y 0 )h l (xx 0 ,yy 0 )dx 0 dy 0 , where, f(x,y) is the image of the rough positioning area of the vehicle logo;
(4-4)对步骤(4-3)获得的滤波器组最终输出图像G(x,y)的每一像素点pk计算其衰减系数λpk,k=1,...,num,num为像素点的总数目,计算步骤如下:(4-4) Calculate its attenuation coefficient λ pk for each pixel point pk of the final output image G(x,y) of the filter bank obtained in step (4-3), k=1,...,num,num is the total number of pixels, and the calculation steps are as follows:
①对车牌定位后得到的粗定位区域中分别用Sobel水平边缘检测方法和Sobel垂直边缘检测方法得到包含水平纹理的图像Ix以及包含垂直纹理的图像Iy;1. to obtain the image I x containing horizontal texture and the image I y containing vertical texture with Sobel horizontal edge detection method and Sobel vertical edge detection method respectively in the rough positioning area obtained after the license plate positioning;
②计算每一像素点pk的衰减系数为:②Calculate the attenuation coefficient of each pixel point pk as:
(xpk,ypk)为像素点pk的坐标,α和β是两个常数系数,本发明中取α=0.5,β=2;width_pai为定位得到的车牌区域的宽度;由公式可见:λpk的大小与Ix/Iy和xpk有关:Ix/Iy越趋近于0或无穷大(对应水平或垂直纹理的情况),λpk越小,同理,xpk越偏离width_pai/2处(车标及车牌的共同对称轴),λpk越小,(x pk , y pk ) are the coordinates of the pixel point pk, α and β are two constant coefficients, in the present invention, α=0.5, β=2; width_pai is the width of the license plate area obtained by positioning; it can be seen from the formula: λ The size of pk is related to I x /I y and x pk : the closer I x /I y is to 0 or infinity (corresponding to the case of horizontal or vertical texture), the smaller λ pk is. Similarly, the more x pk deviates from width_pai/ 2 places (the common axis of symmetry of the car logo and the license plate), the smaller the λ pk , the
(4-5)将波器组输出图像G(x,y)的每一像素点都乘以其对应的衰减系数λpk。(4-5) Multiply each pixel of the wave filter group output image G(x,y) by its corresponding attenuation coefficient λ pk .
(5)对车标区域进行高斯滤波和数学形态学闭操作。(5) Gaussian filtering and mathematical morphological closing operations are performed on the vehicle logo area.
该步骤对于步骤(4)得到的图像运用二维离散高斯滤波函数滤除噪声,并进行灰度级数学形态学闭操作,以弥合检测目标间断或断裂,消除目标中的细小空洞。In this step, the two-dimensional discrete Gaussian filter function is applied to the image obtained in step (4) to filter out noise, and gray-level mathematical morphological closing operation is performed to bridge the discontinuity or fracture of the detection target and eliminate small holes in the target.
(6)选定阈值对将步骤(5)得到的灰度图像阈值化,并框定检测目标区域,得到精定位的车标。(6) Selecting a threshold pair Thresholding the grayscale image obtained in step (5), and framing the detection target area to obtain a precisely positioned vehicle logo.
步骤(6)具体包括以下步骤:Step (6) specifically includes the following steps:
(6-1)选择步骤(5)得到的图像T(xpk,ypk)的像素灰度值均值的1/2作为阈值即(6-1)
(6-2)采用阈值进行阈值化,阈值化后的图像为(6-2) Thresholding is performed by thresholding, and the image after thresholding is
(6-3)从阈值化后的图像中框定检测目标区域,此目标区域即为车标区域。(6-3) The detection target area is framed from the thresholded image, and this target area is the vehicle logo area.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611126129.2A CN106778742B (en) | 2016-12-09 | 2016-12-09 | Car logo detection method based on Gabor filter background texture suppression |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611126129.2A CN106778742B (en) | 2016-12-09 | 2016-12-09 | Car logo detection method based on Gabor filter background texture suppression |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106778742A CN106778742A (en) | 2017-05-31 |
| CN106778742B true CN106778742B (en) | 2020-03-31 |
Family
ID=58877560
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611126129.2A Active CN106778742B (en) | 2016-12-09 | 2016-12-09 | Car logo detection method based on Gabor filter background texture suppression |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106778742B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108961137B (en) * | 2018-07-12 | 2023-05-23 | 中山大学 | A method and system for image steganalysis based on convolutional neural network |
| CN111915897B (en) * | 2019-05-10 | 2021-11-16 | 北京万集科技股份有限公司 | Method and device for determining position of identification area, storage medium and electronic device |
| CN110867083B (en) * | 2019-11-20 | 2021-06-01 | 浙江宇视科技有限公司 | Vehicle monitoring method, device, server and machine-readable storage medium |
| CN111723335B (en) * | 2020-05-21 | 2023-03-24 | 河海大学 | Target symmetry axis detection method based on concentric circumference filter |
| CN113873442B (en) * | 2021-09-08 | 2023-08-04 | 宁波大榭招商国际码头有限公司 | Positioning method for external collection card |
| CN114220101A (en) * | 2021-11-25 | 2022-03-22 | 慧之安信息技术股份有限公司 | Method and system for reducing the interference of natural light changes on extraction of license plate markers |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101520841A (en) * | 2009-03-10 | 2009-09-02 | 北京航空航天大学 | Real-time and anti-interference method for positioning license plate in high-definition TV video |
| CN101937508A (en) * | 2010-09-30 | 2011-01-05 | 湖南大学 | A license plate location and recognition method based on high-definition images |
| CN102419820A (en) * | 2011-08-18 | 2012-04-18 | 电子科技大学 | Method for rapidly detecting automobile logo in video and image |
| CN104156692A (en) * | 2014-07-07 | 2014-11-19 | 叶茂 | Automobile logo sample training and recognition method based on air-inlet grille positioning |
| CN105740886A (en) * | 2016-01-25 | 2016-07-06 | 宁波熵联信息技术有限公司 | Machine learning based vehicle logo identification method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7840059B2 (en) * | 2006-09-21 | 2010-11-23 | Microsoft Corporation | Object recognition using textons and shape filters |
-
2016
- 2016-12-09 CN CN201611126129.2A patent/CN106778742B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101520841A (en) * | 2009-03-10 | 2009-09-02 | 北京航空航天大学 | Real-time and anti-interference method for positioning license plate in high-definition TV video |
| CN101937508A (en) * | 2010-09-30 | 2011-01-05 | 湖南大学 | A license plate location and recognition method based on high-definition images |
| CN102419820A (en) * | 2011-08-18 | 2012-04-18 | 电子科技大学 | Method for rapidly detecting automobile logo in video and image |
| CN104156692A (en) * | 2014-07-07 | 2014-11-19 | 叶茂 | Automobile logo sample training and recognition method based on air-inlet grille positioning |
| CN105740886A (en) * | 2016-01-25 | 2016-07-06 | 宁波熵联信息技术有限公司 | Machine learning based vehicle logo identification method |
Non-Patent Citations (1)
| Title |
|---|
| Detecting Symmetry and Symmetric Constellations of Features;Gareth Loy et al.;《ECCV"06 Proceedings of the 9th European conference on Computer Vision-Volume Part II》;20060531;正文第3.1-3.2节 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106778742A (en) | 2017-05-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106778742B (en) | Car logo detection method based on Gabor filter background texture suppression | |
| Silva et al. | A flexible approach for automatic license plate recognition in unconstrained scenarios | |
| CN109740478B (en) | Vehicle detection and recognition method, device, computer equipment and readable storage medium | |
| CN108319964B (en) | A Fire Image Recognition Method Based on Hybrid Feature and Manifold Learning | |
| CN104778444B (en) | The appearance features analysis method of vehicle image under road scene | |
| CN105893946B (en) | A detection method for frontal face images | |
| CN102509098B (en) | A fisheye image vehicle recognition method | |
| CN103530600B (en) | Licence plate recognition method under complex illumination and system | |
| CN103473571B (en) | Human detection method | |
| CN107590492B (en) | A method of vehicle logo location and recognition based on convolutional neural network | |
| CN102214309B (en) | Special human body recognition method based on head and shoulder model | |
| CN102915435B (en) | Multi-pose face recognition method based on face energy diagram | |
| CN108257151B (en) | PCANet image change detection method based on significance analysis | |
| CN106778551A (en) | A kind of fastlink and urban road Lane detection method | |
| CN108681737A (en) | A kind of complex illumination hypograph feature extracting method | |
| CN107092876A (en) | The low-light (level) model recognizing method combined based on Retinex with S SIFT features | |
| CN109460722B (en) | Intelligent license plate recognition method | |
| CN111695373A (en) | Zebra crossing positioning method, system, medium and device | |
| CN116703895B (en) | Small sample 3D visual detection method and system based on generation countermeasure network | |
| CN110348289A (en) | A kind of finger vein identification method based on binary map | |
| Almaadeed et al. | Partial shoeprint retrieval using multiple point-of-interest detectors and SIFT descriptors | |
| CN110222661A (en) | It is a kind of for motion estimate and the feature extracting method of tracking | |
| CN111104857A (en) | Identity recognition method and system based on gait energy diagram | |
| CN108830179A (en) | Merge the pedestrian detection algorithm of Color Image Edge and depth direction histogram | |
| CN116246162A (en) | Unmanned ship passing gate recognition method based on multiple sensors |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |