CN102880863B - Method for positioning license number and face of driver on basis of deformable part model - Google Patents

Method for positioning license number and face of driver on basis of deformable part model Download PDF

Info

Publication number
CN102880863B
CN102880863B CN201210352669.8A CN201210352669A CN102880863B CN 102880863 B CN102880863 B CN 102880863B CN 201210352669 A CN201210352669 A CN 201210352669A CN 102880863 B CN102880863 B CN 102880863B
Authority
CN
China
Prior art keywords
face
plate
driver
license plate
model
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.)
Expired - Fee Related
Application number
CN201210352669.8A
Other languages
Chinese (zh)
Other versions
CN102880863A (en
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.)
Beijing Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
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 Beijing Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN201210352669.8A priority Critical patent/CN102880863B/en
Publication of CN102880863A publication Critical patent/CN102880863A/en
Application granted granted Critical
Publication of CN102880863B publication Critical patent/CN102880863B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Traffic Control Systems (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

本发明为涉及一种基于可变形部件模型的车牌及驾驶员人脸定位方法,属于物体检测领域。该方法通过可变形部件模型对正面视图中的车辆进行建模,将车牌和驾驶员人脸作为模型中的部件,通过训练得到模型中的参数;基于所建立的模型进行精确的车牌定位和驾驶员人脸定位,并基于车牌与驾驶员人脸的相对位置关系进行车型识别。本发明可以充分的利用车牌和驾驶员人脸之间的位置信息,可以准确的定位车牌和驾驶员人脸,并得到车型信息。

The invention relates to a method for locating a license plate and a driver's face based on a deformable component model, and belongs to the field of object detection. The method uses a deformable part model to model the vehicle in the front view, takes the license plate and the driver's face as the parts in the model, and obtains the parameters in the model through training; based on the established model, accurate license plate positioning and driving Driver's face location, and vehicle model recognition based on the relative positional relationship between the license plate and the driver's face. The invention can make full use of the position information between the license plate and the driver's face, can accurately locate the license plate and the driver's face, and obtain vehicle model information.

Description

一种基于可变形部件模型的车牌及驾驶员人脸定位方法A license plate and driver's face location method based on a deformable component model

技术领域technical field

本发明属于物体检测技术领域,特别涉及车牌定位技术与人脸检测技术的组合应用。The invention belongs to the technical field of object detection, in particular to the combined application of license plate positioning technology and face detection technology.

背景技术Background technique

随着社会的不断发展,现代交通的管理也日趋复杂、繁重。为了准确高效地监控交通状况和节约成本,很多的智能交通监控技术已经得到了广泛的应用。其中,车牌自动识别系统是目前比较成熟的技术,适用于各种交通场景。车牌识别系统分为车牌定位,字符分割与字符识别三部分。其中的车牌定位技术目前已经可以获得较高的准确率,但是也已经到达了一个瓶颈。如果不能利用场景中的其他信息,车牌定位的准确率基本无法得到进一步的提高。With the continuous development of society, the management of modern traffic is becoming more and more complex and burdensome. In order to accurately and efficiently monitor traffic conditions and save costs, many intelligent traffic monitoring technologies have been widely used. Among them, the automatic license plate recognition system is a relatively mature technology and is applicable to various traffic scenarios. The license plate recognition system is divided into three parts: license plate location, character segmentation and character recognition. Among them, the license plate positioning technology can already obtain a relatively high accuracy rate, but it has also reached a bottleneck. If other information in the scene cannot be used, the accuracy of license plate location can hardly be further improved.

随着成像技术的发展,高清摄像机已经得到了广泛的应用。高清摄像机能够获得行驶中的车辆和驾驶员的清晰图像。目前对应此类场景下的人脸定位的研究还不多,而且由于驾驶员人脸一般是在前挡风玻璃的后面,容易受到光线和视角的影响,目前还无法得到较好的定位结果。With the development of imaging technology, high-definition cameras have been widely used. High-definition cameras can obtain clear images of moving vehicles and drivers. At present, there are not many studies on face positioning in such scenarios, and since the driver's face is generally behind the front windshield, it is easily affected by light and viewing angles, so it is still impossible to obtain good positioning results.

因此,如果能将驾驶员的人脸信息与车辆的车牌信息有效地结合起来,则可以进一步的提高车牌定位的准确率。同时由于车牌和驾驶员人脸的相对位置比较固定,也可以通过车牌的定位结果来改善驾驶员人脸的定位结果。此外还可以通过车牌与驾驶员人脸的相对位置来进行车型的识别。Therefore, if the driver's face information can be effectively combined with the vehicle's license plate information, the accuracy of license plate location can be further improved. At the same time, since the relative positions of the license plate and the driver's face are relatively fixed, the positioning result of the driver's face can also be improved through the positioning result of the license plate. In addition, the vehicle model can also be identified by the relative position of the license plate and the driver's face.

发明内容Contents of the invention

本发明的目的是克服现有技术的不足,在高清摄像机获得的图像中进行驾驶员人脸定位和车牌定位,进而进行车型识别,为后续的交通监控任务提供更加有效的信息。The purpose of the present invention is to overcome the deficiencies of the prior art, to locate the driver's face and license plate in the image obtained by the high-definition camera, and then to identify the vehicle type, so as to provide more effective information for subsequent traffic monitoring tasks.

本发明的目的是通过下述技术方案实现的。The purpose of the present invention is achieved through the following technical solutions.

一种基于可变形部件模型的车牌与驾驶员人脸定位方法,具体实施步骤如下:A method for locating a license plate and a driver's face based on a deformable component model, the specific implementation steps are as follows:

步骤一:建立正面车辆的可变形部件模型Step 1: Establish a deformable part model of the frontal vehicle

将车牌和驾驶员人脸作为部件,建立正面车辆的可变形部件模型,通过训练数据,得到车牌与驾驶员人脸之间的位置关系,作为模型参数;The license plate and the driver's face are used as components to establish a deformable part model of the frontal vehicle, and the positional relationship between the license plate and the driver's face is obtained through the training data as model parameters;

正面视图中的车辆的可变形部件模型M定义如下The deformable part model M of the vehicle in the front view is defined as follows

M={partplate,partface,posplate,face}   (1)M={part plate , part face , pos plate, face } (1)

其中,partplate表示模型中的车牌部件,partface表示模型中的人脸部件,posplate,face={pplate,face,dplate,face}表示车牌与驾驶员人脸之间的位置关系。其中pplate,face表示车牌与驾驶员人脸的空间位置关系。对于不同国家和地区,由于驾驶员所在的位置不同,此位置关系也不同。对于大陆地区,需满足其中plate.x,face.x表示车牌和人脸的x坐标,plate.y,face.y表示车牌和人脸的y坐标,即车牌在人脸的左下方。dplate,face表示车牌与人脸之间的距离,且Among them, part plate represents the license plate part in the model, part face represents the face part in the model, pos plate, face = {p plate, face , d plate, face } represents the positional relationship between the license plate and the driver's face . Among them, p plate, face represents the spatial position relationship between the license plate and the driver's face. For different countries and regions, because the location of the driver is different, the location relationship is also different. For mainland China, it is necessary to meet Among them, plate.x, face.x represent the x coordinates of the license plate and the face, and plate.y, face.y represent the y coordinates of the license plate and the face, that is, the license plate is at the lower left of the face. d plate, face represents the distance between the license plate and the face, and

dplate,face∈Niii),i∈{big,middle,samll}   (2)d plate,face ∈N iii ),i∈{big,middle,samll} (2)

N(μ,δ)表示均值为μ,方差为δ的高斯模型。N(μ,δ) represents a Gaussian model with mean μ and variance δ.

通过统计标注的车牌与人脸之间的距离,得到每一类型的车辆所对应的By counting the distance between the marked license plate and the human face, the corresponding distance of each type of vehicle is obtained.

高斯模型的均指和方差,即得到了车辆的可变形部件模型。The mean and variance of the Gaussian model, that is, the deformable part model of the vehicle is obtained.

步骤二:进行车牌的粗定位,得到车牌的候选区域和对应的可信度。Step 2: Carry out rough positioning of the license plate to obtain the candidate area of the license plate and the corresponding credibility.

目前有多种车牌定位的方法可以得到车牌的候选区域和对应的可信度,本发明采用基于成对形态学算子的车牌定位方法获得车牌的候选区域和对应的可信度。Currently, there are various license plate location methods that can obtain license plate candidate areas and corresponding credibility. The present invention adopts a license plate location method based on paired morphological operators to obtain license plate candidate areas and corresponding credibility.

设Sm×n是大小为m×n的结构元且所有值为1,某个像素点的局部邻域由Sm×n决定。I表示灰度图像,分别表示数学形态学中的腐蚀和膨胀操作,以下定义所用到的形态学操作:Suppose S m×n is a structural element with size m×n and all values are 1, the local neighborhood of a certain pixel is determined by S m×n . I represents a grayscale image, and Denote the corrosion and dilation operations in mathematical morphology, respectively, and the morphological operations used in the following definitions:

闭运算: I · S m × n = ( I ⊕ S m × n ) ⊗ S m × n Closing operation: I · S m × no = ( I ⊕ S m × no ) ⊗ S m × no

开运算: Open operation:

高帽运算: IΔ S m × n = I - ( I · S m × n ) High hat operation: IΔ S m × no = I - ( I &Center Dot; S m × no )

黑帽运算: Black hat operation:

高帽运算(top-hat)通过源图像和开运算图像做差,能够提取局部较亮的区域;黑帽变换(bot-hat)通过闭运算图像和源图像做差能够提取出局部较暗的区域。由于车牌背景亮度和字符亮度之间对比显著,利用这两个操作能够分离出车牌的字符和背景区域,并抑制背景,消除不均匀光照。而大陆车牌具有亮底暗字和暗底亮字两种类型,仅使用单一形态学操作(高帽变换或黑帽变换)无法同时成功提取出字符区域进行车牌定位。我们通过成对的形态学操作,将字符信息和车牌背景信息进行显式结合,能够在统一的框架下检测两种类型的车牌。The top-hat operation (top-hat) can extract the locally brighter area by making the difference between the source image and the open operation image; the black hat transformation (bot-hat) can extract the locally darker area by making the difference between the closed operation image and the source image area. Due to the significant contrast between the license plate background brightness and character brightness, these two operations can separate the character and background areas of the license plate, suppress the background, and eliminate uneven illumination. Continental license plates have two types, dark characters on a bright background and bright characters on a dark background. Using only a single morphological operation (high-hat transformation or black-hat transformation) cannot simultaneously extract character regions for license plate location. We explicitly combine character information and license plate background information through pairwise morphological operations, and are able to detect both types of license plates under a unified framework.

以暗底亮字车牌为例,为了提取出字符区域,可对其进行高帽操作并二值化,如图2所示。Taking the license plate with bright characters on the dark background as an example, in order to extract the character area, it can be binarized by high-hat operation, as shown in Figure 2.

现考虑暗底亮字车牌的背景区域,若选取水平方向的线形结构元S1×n,可将车牌背景划分为三部分,分别为字符间背景部分(红色),字符内部背景部分(绿色)和其它背景部分(蓝色),如图3(b)所示。Now consider the background area of the license plate with dark background and bright characters. If the linear structure element S 1×n in the horizontal direction is selected, the background of the license plate can be divided into three parts, which are the background part between characters (red) and the background part inside characters (green). and other background parts (blue), as shown in Fig. 3(b).

在S1×n作用下,蓝色区域是局部非显著变化区域(像素点所在线形结构元邻域内的像素集亮度一致),红色区域和绿色区域是局部显著变化的。若对暗底亮字车牌进行黑帽变换并二值化,则蓝色区域对应的背景被滤除而绿色区域和红色区域对应的背景被保留,如图3(c)所示。将不同区域进行背景归类(图3(d)),并仅考虑字符间部分背景(图3(e)),可以发现,字符间部分的背景区域满足车牌字符高度一致,均匀分布的特点。我们称字符间背景对应的区域为伪字符区域。Under the effect of S 1×n , the blue area is a local non-significant change area (the brightness of the pixel set in the neighborhood of the linear structural element where the pixel is located is consistent), and the red area and green area are local significant changes. If the black hat transformation and binarization are performed on the license plate with bright characters on the dark background, the background corresponding to the blue area will be filtered out while the background corresponding to the green area and red area will be retained, as shown in Figure 3(c). Classify the background of different regions (Figure 3(d)), and only consider the part of the background between characters (Figure 3(e)), it can be found that the background area of the part between characters meets the characteristics of license plate characters with consistent height and uniform distribution. We call the region corresponding to the background between characters the pseudo-character region.

对暗底亮字车牌进行成对的形态学操作能够分别提取出实际字符和伪字符,它们都满足车牌字符高度一致,分布均匀的特点,如图3(e)所示。因此可将它们的并集用来进行车牌定位。同样对于亮底暗字的车牌进行成对的形态学操作能够分别提取出伪字符和实际字符。成对的形态学算子方法有效解决了单个形态学算子方法的限制——需要预先知道车牌前景-背景搭配。成对算子分别用于提取实际字符区域和伪字符区域,将车牌前景信息和车牌背景信息有效结合共同表示车牌,能够将两种类型车牌统一进行处理。字符区域提取流程如下:Paired morphological operations on the license plate with bright characters on the dark background can extract the actual characters and pseudo characters respectively, and they all meet the characteristics of the license plate characters being highly consistent and evenly distributed, as shown in Figure 3(e). Therefore, their union can be used for license plate location. Similarly, performing pairwise morphological operations on license plates with bright background and dark characters can extract pseudo characters and actual characters respectively. The paired morphological operator method effectively solves the limitation of the single morphological operator method - the foreground-background collocation of the license plate needs to be known in advance. The paired operator is used to extract the actual character area and the pseudo-character area respectively, effectively combining the license plate foreground information and the license plate background information to jointly represent the license plate, and can process the two types of license plates in a unified manner. The character area extraction process is as follows:

1)分别对灰度图像I进行如下形态学操作,I1=I△S1×n,I2=I▽S1×n 1) Perform the following morphological operations on the grayscale image I respectively, I 1 =I△S 1×n , I 2 =I▽S 1×n

2)使用大津法对I1和I2分别进行二值化,得到对应二值图I3和I42) Use the Otsu method to binarize I1 and I2 respectively to obtain corresponding binary images I3 and I4 ;

3)对I3和I4分别进行连通成分标记,得到两个连通成分集合Ctop和Cbot3) mark the connected components of I 3 and I 4 respectively, and obtain two sets of connected components C top and C bot ;

4)将真字符和伪字符合并,并通过车牌的先验大小利用面积对字符进行滤除,得到最终的字符集合:C=Ctop∪Cbot 4) Merge the real characters and dummy characters, and use the area to filter the characters through the prior size of the license plate to obtain the final character set: C=C top ∪C bot

得到字符集合后,可以进一步得到每个字符的中心点。根据车牌上的字符分布在一条直线上的特点,我们通过判断这些中心点是否位于同一条直线上来定位车牌。通常车牌大小的变化范围在场景中是已知的,根据此先验知识,我们将检测窗口设置为最大车牌宽高的2倍。在图像中移动检测窗口进行车牌定位,在x方向上每次移动的步长为检测窗口宽度的二分之一,在y方向上每次移动的步长为检测窗口高度的二分之一。这样可确保车牌将至少出现在一个窗口检测器中,并且可以显著减少候选区域的数目。在每个检测窗口中判断所得到的字符的中心点是否位于同一条直线上,如果位于同一条直线上的中心点的数目大于给定阈值,则认为这些中心点对应的区域为候选车牌区域。同时可计算该候选区域的置信度为After obtaining the character set, the center point of each character can be further obtained. According to the characteristics that the characters on the license plate are distributed on a straight line, we locate the license plate by judging whether these center points are on the same straight line. Usually the variation range of the license plate size is known in the scene, according to this prior knowledge, we set the detection window to be twice the width and height of the maximum license plate. Move the detection window in the image to locate the license plate. The step size of each movement in the x direction is 1/2 of the width of the detection window, and the step size of each movement in the y direction is 1/2 of the height of the detection window. This ensures that the license plate will appear in at least one window detector and can significantly reduce the number of candidate regions. In each detection window, it is judged whether the center points of the obtained characters are on the same straight line. If the number of center points on the same straight line is greater than a given threshold, the area corresponding to these center points is considered to be a candidate license plate area. At the same time, the confidence of the candidate region can be calculated as

confidenceplate=|num_c-num_thres|   (3)confidence plate =|num_c-num_thres| (3)

其中num_c为所得到的字符数目,num_thres为设定的阈值。Among them, num_c is the number of characters obtained, and num_thres is the set threshold.

步骤三:进行驾驶员人脸的粗定位,得到人脸的候选区域和对应的可信度。Step 3: Carry out rough positioning of the driver's face, and obtain the candidate area of the face and the corresponding reliability.

目前有多种人脸监测的方法可以得到驾驶员人脸的候选区域和对应的可信度,本发明采用基于AdaBoost的人脸检测方法获得驾驶员人脸的候选区域和对应的可信度。Currently, there are multiple face monitoring methods to obtain the candidate areas of the driver's face and the corresponding reliability. The present invention adopts the face detection method based on AdaBoost to obtain the candidate areas of the driver's face and the corresponding reliability.

基于AdaBoost的人脸检测方法以矩形特征为依据来构造弱分类器,再用AdaBoost方法挑选出少量关键特征,对相应的弱分类器进行加权求和从而构建出强分类器,并将其作为最终分类器用于人脸检测。其中,每个矩形特征由2-3个矩形组成,如图4所示,其值为白色矩形内的像素值之和减去黑色矩形内的像素值之和。The AdaBoost-based face detection method constructs a weak classifier based on rectangular features, and then uses the AdaBoost method to select a small number of key features, and weights and sums the corresponding weak classifiers to construct a strong classifier, which is used as the final The classifier is used for face detection. Among them, each rectangle feature is composed of 2-3 rectangles, as shown in Figure 4, and its value is the sum of the pixel values in the white rectangle minus the sum of the pixel values in the black rectangle.

每个弱分类器由一个矩形特征组成,强分类器的的训练流程如下:Each weak classifier consists of a rectangular feature, and the training process of the strong classifier is as follows:

(1)给定训练数据(x1,y1),...(xn,yn),其中yi=0表示负样本,yi=1表示正样本,n为训练样本的个数。(1) Given training data (x 1 , y 1 ),...(x n , y n ), where y i =0 represents negative samples, y i =1 represents positive samples, and n is the number of training samples .

(2)初始化权值,yi=0时yi=1时m,l分别是负样本和正样本的个数。(2) Initialize weights, when y i =0 When y i =1 m and l are the number of negative samples and positive samples respectively.

(3)对应t=1,...,T:(3) Corresponding to t=1,...,T:

A.归一化权值 A. Normalized weights

B.对与每一个特征j,训练弱分类器hj,此若分类器的误差为B. For each feature j, train a weak classifier h j , if the error of the classifier is

C.选择具有最小误差的分类器ht C. Choose the classifier h t with the smallest error

D.更新权值其中ei=0如果xi被正确分类,否则D. Update weights where e i = 0 if xi is correctly classified, otherwise

ei=1, β t = ϵ t 1 - ϵ t e i =1, β t = ϵ t 1 - ϵ t

(4)则最终的强分类器为(4) Then the final strong classifier is

h ( x ) = 1 Σ t = 1 T α t h t ( x ) ≥ 1 2 Σ t = 1 T α t 0 otherwise , 其中 α t = log 1 β t h ( x ) = 1 Σ t = 1 T α t h t ( x ) &Greater Equal; 1 2 Σ t = 1 T α t 0 otherwise , in α t = log 1 β t

由于可以通过后续的基于可变形部件模型对粗定位得到的区域进行滤除,因此我们在利用强分类器进行人脸检测时,目标是使得漏检率最小,容许有一定的误检率。设置检测规则为:当被检测区域通过前K(K<T)个弱分类器时,认为该区域为人脸候选区域,同时继续使用第K+1至第T个弱分类器进行扫描,并记录其通过的弱分类器的数目做为该候选区域的可信度。既Since the region obtained by rough positioning can be filtered out through the subsequent model based on deformable parts, when we use a strong classifier for face detection, the goal is to minimize the missed detection rate and allow a certain false detection rate. The detection rule is set as follows: when the detected area passes the first K (K<T) weak classifiers, the area is considered to be a face candidate area, and at the same time continue to scan using the K+1 to T weak classifiers, and record The number of weak classifiers it passes is taken as the credibility of the candidate region. now that

confidenceface=numpassed_classifier   (4)confidence face = num passed_classifier (4)

步骤四:基于可变形部件模型的车牌及驾驶员人脸精细定位Step 4: Fine positioning of the license plate and driver's face based on the deformable part model

步骤二提供了图像中的可能的车牌候选区域,步骤三提供了图像中的可能的驾驶员人脸的候选区域。然后我们通过步骤一中得到的车辆的可变形部件模型,进行车牌及驾驶员人脸的精细定位。Step two provides possible license plate candidate areas in the image, and step three provides possible driver face candidate areas in the image. Then we use the deformable part model of the vehicle obtained in step 1 to perform fine positioning of the license plate and driver's face.

设L={lplate,lface}为模型M在图像中的一个实现。其中lplate表示车牌在图像中的位置,lface表示人脸在车牌中的位置。设m(lplate)表示车牌位置在lplate的可信度,可通过式(3)计算,m(lface)表示人脸位置在lface的可信度,可通过式(4)计算。m(lplate,lface)表示车牌与人脸之间的位置关系与模型的符合度,且Let L={l plate , l face } be a realization of the model M in the image. Among them, l plate represents the position of the license plate in the image, and l face represents the position of the face in the license plate. Let m(l plate ) represent the reliability of the license plate position on l plate , which can be calculated by formula (3), m(l face ) represents the credibility of the face position on l face , which can be calculated by formula (4). m(l plate ,l face ) indicates the degree of conformity between the positional relationship between the license plate and the face and the model, and

mm (( ll plateplate ,, ll facethe face )) argarg maxmax ii PP (( dd ll plateplate ,, ll facethe face &Element;&Element; NN ii (( &mu;&mu; ii ,, &delta;&delta; ii )) )) -- -- -- (( 55 ))

其中为车牌候选区域与人脸候选区域之间的距离,Niii)为步骤一中通过训练得到的高斯模型,i∈{big,middle,samll}。in is the distance between the license plate candidate area and the face candidate area, N ii , δ i ) is the Gaussian model obtained through training in step 1, i∈{big,middle,samll}.

根据可变形部件模型进行车牌及驾驶员人脸精细定位,既找到L*使得According to the deformable part model, the license plate and the driver's face are finely positioned, and L * is found so that

LL ** == {{ ll ** plateplate ,, ll ** facethe face }} == argarg maxmax LL (( mm (( ll plateplate )) ++ mm (( ll facethe face )) ++ mm (( ll platteplatter ,, ll facethe face )) )) -- -- -- (( 66 ))

通过步骤二可提取到车牌后续区域,通过步骤三可提取到人脸候选区域,我们根据候选区域的可信度,对候选区域进行排序。设排序后的车牌候选区域为lplate_1,...lplate_n,n为车牌候选区域的数目,排序后的驾驶员人脸候选区域为lface_1,...lface_m,m为驾驶员人脸候选区域。则通过可变形部件模型进行车牌及驾驶员人脸定位的过程为:对应j=1,...,m,计算打分值记录最大的打分值及其对应的车牌和驾驶员人脸位置作为最终的车牌和驾驶员人脸定位的结果。The subsequent area of the license plate can be extracted through step 2, and the candidate area of the face can be extracted through step 3. We sort the candidate areas according to the credibility of the candidate areas. Let the sorted license plate candidate areas be l plate_1 ,...l plate_n , n is the number of license plate candidate areas, the sorted driver face candidate areas are l face_1 ,...l face_m , m is the driver's face Candidate area. Then the process of locating the license plate and the driver’s face through the deformable part model is as follows: corresponding to j=1,...,m, calculate scoring value Record the maximum scoring value and its corresponding license plate and driver's face position as the final result of license plate and driver's face positioning.

步骤五:基于车牌及驾驶员人脸的相对位置关系进行车型识别Step 5: Vehicle model recognition based on the relative positional relationship between the license plate and the driver's face

通过步骤四找到最佳的车牌位置l* plate及驾驶员人脸位置l* face后,通过计算After finding the best license plate position l * plate and the driver's face position l * face through step 4, calculate

ii ** == argarg maxmax ii PP (( dd (( ll ** plateplate ,, ll ** facethe face )) &Element;&Element; NN ii (( &mu;&mu; ii ,, &delta;&delta; ii )) )) -- -- -- (( 77 ))

i∈{big,middle,samll},可得到最终的车型识别结果,既得到该车是大型车,中型车或小型车。i∈{big,middle,samll}, the final vehicle type recognition result can be obtained, that is, whether the vehicle is a large vehicle, a medium-sized vehicle or a small vehicle.

本发明的主要内容为:使用可变形部件模型对正面视图的车辆进行建模,将车牌与驾驶员人脸作为车辆模型中的部件,根据模型进行车牌及驾驶员人脸的定位,可提高车牌定位的准确率和驾驶员人脸定位的准确率。同时根据车牌与驾驶员人脸的相对位置关系可以进行车型识别。The main content of the present invention is: use the deformable component model to model the vehicle in the front view, use the license plate and the driver's face as the components in the vehicle model, and perform the positioning of the license plate and the driver's face according to the model, which can improve the accuracy of the license plate. The accuracy of positioning and the accuracy of driver face positioning. At the same time, vehicle type recognition can be performed according to the relative positional relationship between the license plate and the driver's face.

本发明的优点Advantages of the invention

本发明与现有技术相比,具有以下几个方面的优势:Compared with the prior art, the present invention has the following advantages:

(1)采用广泛使用的高清摄像机来获取图像,无需额外成本投入。(1) Widely used high-definition cameras are used to obtain images without additional cost input.

(2)充分利用场景中的各种信息,提高车牌和驾驶员人脸的定位准确率。(2) Make full use of various information in the scene to improve the positioning accuracy of the license plate and driver's face.

(3)根据车牌和驾驶员人脸的相对位置关系可以实现车型识别,应用前景广阔。(3) According to the relative positional relationship between the license plate and the driver's face, the vehicle type recognition can be realized, and the application prospect is broad.

附图说明Description of drawings

图1为基于可变形部件模型的车牌及驾驶员人脸定位流程图;Figure 1 is a flow chart of license plate and driver's face location based on the deformable component model;

图2为高帽操作提取亮字符示意图;其中,(a)原始图像,(b)高帽图像,(c)高帽二值图;Fig. 2 is a schematic diagram of bright characters extracted by high-hat operation; wherein, (a) original image, (b) high-hat image, (c) high-hat binary image;

图3为伪字符提取示意图;其中,(a)原始图像,(b)背景划分示意图,(c)黑帽二值图,(d)背景归类,(e)伪字符区域,(f)实际字符与伪字符Figure 3 is a schematic diagram of pseudo-character extraction; where, (a) original image, (b) schematic diagram of background division, (c) black hat binary image, (d) background classification, (e) pseudo-character area, (f) actual Characters and Pseudocharacters

图4为矩形特征。Figure 4 is a rectangular feature.

具体实施方式Detailed ways

本发明提出的基于可变形部件模型的车牌与驾驶员人脸定位方法的流程如图1所示,具体实施步骤如下:The process flow of the license plate and driver's face positioning method based on the deformable component model proposed by the present invention is shown in Figure 1, and the specific implementation steps are as follows:

步骤一:建立正面车辆的可变形部件模型Step 1: Establish a deformable part model of the frontal vehicle

可变形部件模型(Deformable Part-Based Model)是近年来比较流行的在图像中进行物体检测的模型,是目前最好的物体检测算法之一。可变形部件模型通过描述各个部件之间的位置关系来表示物体。在我们建立的正面视图的车辆模型中,包括两个部件:车牌和驾驶员人脸。在确定了模型中的部件之后,模型的训练就是通过训练数据,得到车牌与驾驶员人脸之间的位置关系。Deformable Part-Based Model (Deformable Part-Based Model) is a popular model for object detection in images in recent years, and it is currently one of the best object detection algorithms. The deformable part model represents the object by describing the positional relationship between various parts. In the vehicle model of the front view we built, there are two parts: the license plate and the driver's face. After determining the components in the model, the training of the model is to obtain the positional relationship between the license plate and the driver's face through the training data.

我们的训练数据包括大型车,中型车和小型车三类,对每一类中的每幅图像中的车牌位置和驾驶员人脸位置进行人工标注。使用混合高斯模型来表示车牌和驾驶员人脸之间的位置关系,对于每一类型的车辆,都有一个高斯模型来表示车牌与驾驶员人脸之间的位置关系。Our training data includes three categories of large cars, medium-sized cars and small cars, and the position of the license plate and the position of the driver's face in each image in each category are manually annotated. A Gaussian mixture model is used to represent the positional relationship between the license plate and the driver's face. For each type of vehicle, there is a Gaussian model to represent the positional relationship between the license plate and the driver's face.

正面视图中的车辆的可变形部件模型M定义如下The deformable part model M of the vehicle in the front view is defined as follows

M={partplate,partface,posplate,face}    (1)M={part plate , part face , pos plate, face } (1)

其中,partplate表示模型中的车牌部件,partface表示模型中的人脸部件,posplate,face={pplate,face,dplate,face}表示车牌与驾驶员人脸之间的位置关系。其中pplate,face表示车牌与驾驶员人脸的空间位置关系。对于不同国家和地区,由于驾驶员所在的位置不同,此位置关系也不同。对于大陆地区,需满足其中plate.x,face.x表示车牌和人脸的x坐标,plate.y,face.y表示车牌和人脸的y坐标,即车牌在人脸的左下方。Among them, part plate represents the license plate part in the model, part face represents the face part in the model, pos plate, face = {p plate, face , d plate, face } represents the positional relationship between the license plate and the driver's face . Among them, p plate, face represents the spatial position relationship between the license plate and the driver's face. For different countries and regions, because the location of the driver is different, the location relationship is also different. For mainland China, it is necessary to meet Among them, plate.x, face.x represent the x coordinates of the license plate and the face, and plate.y, face.y represent the y coordinates of the license plate and the face, that is, the license plate is at the lower left of the face.

dplate,face表示车牌与人脸之间的距离,且d plate, face represents the distance between the license plate and the face, and

dplate,face∈Niii),i∈{big,middle,samll}   (2)d plate,face ∈N iii ),i∈{big,middle,samll} (2)

N(μ,δ)表示均值为μ,方差为δ的高斯模型。N(μ,δ) represents a Gaussian model with mean μ and variance δ.

我们通过统计标注的车牌与人脸之间的距离,得到每一类型的车辆所对应的高斯模型的均指和方差,即得到了车辆的可变形部件模型。We obtain the mean and variance of the Gaussian model corresponding to each type of vehicle by counting the distance between the marked license plate and the human face, that is, the deformable part model of the vehicle.

步骤二:采用基于成对形态学算子的车牌定位方法进行车牌的粗定位,得到车牌的候选区域和对应的可信度。Step 2: Use the license plate location method based on paired morphological operators to perform rough positioning of the license plate, and obtain the candidate areas of the license plate and the corresponding credibility.

采用基于成对形态学算子的车牌定位方法进行车牌的粗定位。设Sm×n是大小为m×n的结构元且所有值为1,某个像素点的局部邻域由Sm×n决定。I表示灰度图像,分别表示数学形态学中的腐蚀和膨胀操作,以下定义所用到的形态学操作:A license plate location method based on paired morphological operators is used for rough location of the license plate. Suppose S m×n is a structural element with size m×n and all values are 1, the local neighborhood of a certain pixel is determined by S m×n . I represents a grayscale image, and Denote the corrosion and dilation operations in mathematical morphology, respectively, and the morphological operations used in the following definitions:

闭运算: I &CenterDot; S m &times; n = ( I &CirclePlus; S m &times; n ) &CircleTimes; S m &times; n Closing operation: I &CenterDot; S m &times; no = ( I &CirclePlus; S m &times; no ) &CircleTimes; S m &times; no

开运算: Open operation:

高帽运算: I&Delta; S m &times; n = I - ( I &CenterDot; S m &times; n ) High hat operation: I&Delta; S m &times; no = I - ( I &Center Dot; S m &times; no )

黑帽运算: Black hat operation:

高帽运算(top-hat)通过源图像和开运算图像做差,能够提取局部较亮的区域;黑帽变换(bot-hat)通过闭运算图像和源图像做差能够提取出局部较暗的区域。由于车牌背景亮度和字符亮度之间对比显著,利用这两个操作能够分离出车牌的字符和背景区域,并抑制背景,消除不均匀光照。而大陆车牌具有亮底暗字和暗底亮字两种类型,仅使用单一形态学操作(高帽变换或黑帽变换)无法同时成功提取出字符区域进行车牌定位。我们通过成对的形态学操作,将字符信息和车牌背景信息进行显式结合,能够在统一的框架下检测两种类型的车牌。The top-hat operation (top-hat) can extract the locally brighter area by making the difference between the source image and the open operation image; the black hat transformation (bot-hat) can extract the locally darker area by making the difference between the closed operation image and the source image area. Due to the significant contrast between the license plate background brightness and character brightness, these two operations can separate the character and background areas of the license plate, suppress the background, and eliminate uneven illumination. Continental license plates have two types, dark characters on a bright background and bright characters on a dark background. Using only a single morphological operation (high-hat transformation or black-hat transformation) cannot simultaneously extract character regions for license plate location. We explicitly combine character information and license plate background information through pairwise morphological operations, and are able to detect both types of license plates under a unified framework.

以暗底亮字车牌为例,为了提取出字符区域,可对其进行高帽操作并二值化,如图2所示。Taking the license plate with bright characters on the dark background as an example, in order to extract the character area, it can be binarized by high-hat operation, as shown in Figure 2.

现考虑暗底亮字车牌的背景区域,若选取水平方向的线形结构元S1×n,可将车牌背景划分为三部分,分别为字符间背景部分(红色),字符内部背景部分(绿色)和其它背景部分(蓝色),如图3(b)所示。Now consider the background area of the license plate with dark background and bright characters. If the linear structure element S 1×n in the horizontal direction is selected, the background of the license plate can be divided into three parts, which are the background part between characters (red) and the background part inside characters (green). and other background parts (blue), as shown in Fig. 3(b).

在S1×n作用下,蓝色区域是局部非显著变化区域(像素点所在线形结构元邻域内的像素集亮度一致),红色区域和绿色区域是局部显著变化的。若对暗底亮字车牌进行黑帽变换并二值化,则蓝色区域对应的背景被滤除而绿色区域和红色区域对应的背景被保留,如图3(c)所示。将不同区域进行背景归类(图3(d)),并仅考虑字符间部分背景(图3(e)),可以发现,字符间部分的背景区域满足车牌字符高度一致,均匀分布的特点。我们称字符间背景对应的区域为伪字符区域。Under the effect of S 1×n , the blue area is a local non-significant change area (the brightness of the pixel set in the neighborhood of the linear structural element where the pixel is located is consistent), and the red area and green area are local significant changes. If the black hat transformation and binarization are performed on the license plate with bright characters on the dark background, the background corresponding to the blue area will be filtered out while the background corresponding to the green area and red area will be retained, as shown in Figure 3(c). Classify the background of different regions (Figure 3(d)), and only consider the part of the background between characters (Figure 3(e)), it can be found that the background area of the part between characters meets the characteristics of license plate characters with consistent height and uniform distribution. We call the region corresponding to the background between characters the pseudo-character region.

对暗底亮字车牌进行成对的形态学操作能够分别提取出实际字符和伪字符,它们都满足车牌字符高度一致,分布均匀的特点,如图3(e)所示。因此可将它们的并集用来进行车牌定位。同样对于亮底暗字的车牌进行成对的形态学操作能够分别提取出伪字符和实际字符。成对的形态学算子方法有效解决了单个形态学算子方法的限制——需要预先知道车牌前景-背景搭配。成对算子分别用于提取实际字符区域和伪字符区域,将车牌前景信息和车牌背景信息有效结合共同表示车牌,能够将两种类型车牌统一进行处理。字符区域提取流程如下:Paired morphological operations on the license plate with bright characters on the dark background can extract actual characters and pseudo characters respectively, and they all meet the characteristics of license plate characters with consistent height and uniform distribution, as shown in Figure 3(e). Therefore, their union can be used for license plate location. Similarly, performing pairwise morphological operations on license plates with bright background and dark characters can extract pseudo characters and actual characters respectively. The paired morphological operator method effectively solves the limitation of the single morphological operator method - the foreground-background collocation of the license plate needs to be known in advance. The paired operator is used to extract the actual character area and the pseudo-character area respectively, effectively combining the license plate foreground information and the license plate background information to jointly represent the license plate, and can process the two types of license plates in a unified manner. The character area extraction process is as follows:

1)分别对灰度图像I进行如下形态学操作,I1=I△S1×n,I2=I▽S1×n 1) Perform the following morphological operations on the grayscale image I respectively, I 1 =I△S 1×n , I 2 =I▽S 1×n

2)使用大津法对I1和I2分别进行二值化,得到对应二值图I3和I42) Use the Otsu method to binarize I1 and I2 respectively to obtain corresponding binary images I3 and I4 ;

3)对I3和I4分别进行连通成分标记,得到两个连通成分集合Ctop和Cbot3) mark the connected components of I 3 and I 4 respectively, and obtain two sets of connected components C top and C bot ;

4)将真字符和伪字符合并,并通过车牌的先验大小利用面积对字符进行滤除,得到最终的字符集合:C=Ctop∪Cbot 4) Merge the real characters and dummy characters, and use the area to filter the characters through the prior size of the license plate to obtain the final character set: C=C top ∪C bot

得到字符集合后,可以进一步得到每个字符的中心点。根据车牌上的字符分布在一条直线上的特点,我们通过判断这些中心点是否位于同一条直线上来定位车牌。通常车牌大小的变化范围在场景中是已知的,根据此先验知识,我们将检测窗口设置为最大车牌宽高的2倍。在图像中移动检测窗口进行车牌定位,在x方向上每次移动的步长为检测窗口宽度的二分之一,在y方向上每次移动的步长为检测窗口高度的二分之一。这样可确保车牌将至少出现在一个窗口检测器中,并且可以显著减少候选区域的数目。在每个检测窗口中判断所得到的字符的中心点是否位于同一条直线上,如果位于同一条直线上的中心点的数目大于给定阈值,则认为这些中心点对应的区域为候选车牌区域。同时可计算该候选区域的置信度为After obtaining the character set, the center point of each character can be further obtained. According to the characteristics that the characters on the license plate are distributed on a straight line, we locate the license plate by judging whether these center points are on the same straight line. Usually the variation range of the license plate size is known in the scene, according to this prior knowledge, we set the detection window to be twice the width and height of the maximum license plate. Move the detection window in the image to locate the license plate. The step size of each movement in the x direction is 1/2 of the width of the detection window, and the step size of each movement in the y direction is 1/2 of the height of the detection window. This ensures that the license plate will appear in at least one window detector and can significantly reduce the number of candidate regions. In each detection window, it is judged whether the center points of the obtained characters are on the same straight line. If the number of center points on the same straight line is greater than a given threshold, the area corresponding to these center points is considered to be a candidate license plate area. At the same time, the confidence of the candidate region can be calculated as

confidenceplate=|num_c-num_thres|   (3)confidence plate =|num_c-num_thres| (3)

其中num_c为所得到的字符数目,num_thres为设定的阈值。Among them, num_c is the number of characters obtained, and num_thres is the set threshold.

步骤三:采用基于AdaBoost的人脸检测方法进行驾驶员人脸的粗定位,得到人脸的候选区域和对应的可信度。Step 3: Use the AdaBoost-based face detection method to roughly locate the driver's face, and obtain the candidate areas of the face and the corresponding reliability.

我们采用基于AdaBoost的人脸检测方法进行驾驶员人脸的粗定位。该方法以矩形特征为依据来构造弱分类器,再用AdaBoost方法挑选出少量关键特征,对相应的弱分类器进行加权求和从而构建出强分类器,并将其作为最终分类器用于人脸检测。其中,每个矩形特征由2-3个矩形组成,如图4所示,其值为白色矩形内的像素值之和减去黑色矩形内的像素值之和。We use an AdaBoost-based face detection method for coarse localization of the driver's face. This method constructs a weak classifier based on rectangular features, and then uses the AdaBoost method to select a small number of key features, and weights and sums the corresponding weak classifiers to construct a strong classifier, which is used as the final classifier for the face detection. Among them, each rectangle feature is composed of 2-3 rectangles, as shown in Figure 4, and its value is the sum of the pixel values in the white rectangle minus the sum of the pixel values in the black rectangle.

每个弱分类器由一个矩形特征组成,强分类器的的训练流程如下:Each weak classifier consists of a rectangular feature, and the training process of the strong classifier is as follows:

(1)给定训练数据(x1,y1),...(xn,yn),其中yi=0表示负样本,yi=1表示正样本,n为训练样本的个数。(1) Given training data (x 1 , y 1 ),...(x n , y n ), where y i =0 represents negative samples, y i =1 represents positive samples, and n is the number of training samples .

(2)初始化权值,yi=0时yi=1时m,l分别是负样本和正样本的个数。(2) Initialize weights, when y i =0 When y i =1 m and l are the number of negative samples and positive samples respectively.

(3)对应t=1,...,T:(3) Corresponding to t=1,...,T:

A.归一化权值 w t , i &LeftArrow; w t , i &Sigma; j = 1 n w t , j A. Normalized weights w t , i &LeftArrow; w t , i &Sigma; j = 1 no w t , j

B.对与每一个特征j,训练弱分类器hj,此若分类器的误差为B. For each feature j, train a weak classifier h j , if the error of the classifier is

C.选择具有最小误差的分类器ht C. Choose the classifier h t with the smallest error

D.更新权值其中ei=0如果xi被正确分类,否则ei=1, &beta; t = &epsiv; t 1 - &epsiv; t D. Update weights where e i = 0 if xi is correctly classified, otherwise e i = 1, &beta; t = &epsiv; t 1 - &epsiv; t

(4)则最终的强分类器为(4) Then the final strong classifier is

h ( x ) = 1 &Sigma; t = 1 T &alpha; t h t ( x ) &GreaterEqual; 1 2 &Sigma; t = 1 T &alpha; t 0 otherwise , 其中 &alpha; t = log 1 &beta; t h ( x ) = 1 &Sigma; t = 1 T &alpha; t h t ( x ) &Greater Equal; 1 2 &Sigma; t = 1 T &alpha; t 0 otherwise , in &alpha; t = log 1 &beta; t

由于可以通过后续的基于可变形部件模型对粗定位得到的区域进行滤除,因此我们在利用强分类器进行人脸检测时,目标是使得漏检率最小,容许有一定的误检率。我们设置检测规则为:当被检测区域通过前K(K<T)个弱分类器时,认为该区域为人脸候选区域,同时继续使用第K+1至第T个弱分类器进行扫描,并记录其通过的弱分类器的数目做为该候选区域的可信度。既Since the region obtained by rough positioning can be filtered out through the subsequent model based on deformable parts, when we use a strong classifier for face detection, the goal is to minimize the missed detection rate and allow a certain false detection rate. We set the detection rule as follows: when the detected area passes through the first K (K<T) weak classifiers, it is considered that the area is a face candidate area, and at the same time continue to use the K+1th to Tth weak classifiers for scanning, and Record the number of weak classifiers it passes as the credibility of the candidate region. now that

confidenceface=numpassed_classifier   (4)confidence face = num passed_classifier (4)

步骤四:基于可变形部件模型的车牌及驾驶员人脸定位Step 4: License plate and driver face location based on deformable parts model

步骤二提供了图像中的可能的车牌候选区域,步骤三提供了图像中的可能的驾驶员人脸的候选区域。然后我们通过步骤一中得到的车辆的可变形部件模型,进行车牌及驾驶员人脸的精细定位。Step two provides possible license plate candidate areas in the image, and step three provides possible driver face candidate areas in the image. Then we use the deformable part model of the vehicle obtained in step 1 to perform fine positioning of the license plate and driver's face.

设L={lplate,lface}为模型M在图像中的一个实现。其中lplate表示车牌在图像中的位置,lface表示人脸在车牌中的位置。设m(lplate)表示车牌位置在lplate的可信度,可通过式(3)计算,m(lface)表示人脸位置在lface的可信度,可通过式(4)计算。m(lplate,lface)表示车牌与人脸之间的位置关系与模型的符合度,且Let L={l plate , l face } be a realization of the model M in the image. Among them, l plate represents the position of the license plate in the image, and l face represents the position of the face in the license plate. Let m(l plate ) represent the reliability of the license plate position on l plate , which can be calculated by formula (3), m(l face ) represents the credibility of the face position on l face , which can be calculated by formula (4). m(l plate ,l face ) indicates the degree of conformity between the positional relationship between the license plate and the face and the model, and

mm (( ll plateplate ,, ll facethe face )) argarg maxmax ii PP (( dd ll plateplate ,, ll facethe face &Element;&Element; NN ii (( &mu;&mu; ii ,, &delta;&delta; ii )) )) -- -- -- (( 55 ))

其中为车牌候选区域与人脸候选区域之间的距离,Niii)为步骤一中通过训练得到的高斯模型,i∈{big,middle,samll}。in is the distance between the license plate candidate area and the face candidate area, N ii , δ i ) is the Gaussian model obtained through training in step 1, i∈{big,middle,samll}.

根据可变形部件模型进行车牌及驾驶员人脸精细定位,既找到L*使得According to the deformable part model, the license plate and the driver's face are finely positioned, and L * is found so that

LL ** == {{ ll ** plateplate ,, ll ** facethe face }} == argarg maxmax LL (( mm (( ll plateplate )) ++ mm (( ll facethe face )) ++ mm (( ll platteplatter ,, ll facethe face )) )) -- -- -- (( 66 ))

通过步骤二可提取到车牌后续区域,通过步骤三可提取到人脸候选区域,我们根据候选区域的可信度,对候选区域进行排序。设排序后的车牌候选区域为lplate_1,...lplate_n,n为车牌候选区域的数目,排序后的驾驶员人脸候选区域为lface_1,...lface_m,m为驾驶员人脸候选区域。则通过可变形部件模型进行车牌及驾驶员人脸定位的过程为:对应j=1,...,m,计算打分值记录最大的打分值及其对应的车牌和驾驶员人脸位置作为最终的车牌和驾驶员人脸定位的结果。The subsequent area of the license plate can be extracted through step 2, and the candidate area of the face can be extracted through step 3. We sort the candidate areas according to the credibility of the candidate areas. Let the sorted license plate candidate areas be l plate_1 ,...l plate_n , n is the number of license plate candidate areas, the sorted driver face candidate areas are l face_1 ,...l face_m , m is the driver's face Candidate area. Then the process of locating the license plate and the driver’s face through the deformable part model is as follows: corresponding to j=1,...,m, calculate scoring value Record the maximum scoring value and its corresponding license plate and driver's face position as the final result of license plate and driver's face positioning.

步骤五:基于车牌及驾驶员人脸的相对位置关系进行车型识别Step 5: Vehicle model recognition based on the relative positional relationship between the license plate and the driver's face

通过步骤四找到最佳的车牌位置l* plate及驾驶员人脸位置l* face后,通过计算After finding the best license plate position l * plate and the driver's face position l * face through step 4, calculate

ii ** == argarg maxmax ii PP (( dd (( ll ** plateplate ,, ll ** facethe face )) &Element;&Element; NN ii (( &mu;&mu; ii ,, &delta;&delta; ii )) )) -- -- -- (( 77 ))

i∈{big,middle,samll},可得到最终的车型识别结果,既得到该车是大型车,中型车或小型车。i∈{big,middle,samll}, the final vehicle type recognition result can be obtained, that is, whether the vehicle is a large vehicle, a medium-sized vehicle or a small vehicle.

Claims (2)

1. based on car plate and the driver's Face detection method of deformable part model, it is characterized in that, a kind of car plate based on deformable part model and driver's Face detection method, specific implementation step is as follows:
Step one: the deformable part model setting up front vehicle
Using car plate and driver's face as parts, set up the deformable part model of front vehicle, by training data, obtain the position relationship between car plate and driver's face, as model parameter;
The deformable part model M of the vehicle in front view is defined as follows
M={part plate,part face,pos plate,face} (1)
Wherein, part platerepresent the car plate parts in model, part facerepresent the face component in model, represent the position relationship between car plate and driver's face; Wherein p plate, facerepresent the spatial relation of car plate and driver's face; For country variant and area, because the position at driver place is different, this position relationship is also different; For Continental Area, plate.x < face.x need be met, plate.y < face.y, wherein plate.x, face.x represent the x coordinate of car plate and face, plate.y, face.y represents the y coordinate of car plate and face, and namely car plate is in the lower left of face; And
d plate,face∈N iii),i∈{big,middle,samll} (2)
D plate, facerepresent the distance between car plate and face;
N (μ, δ) represents that average is μ, and variance is the Gauss model of δ;
Distance between the car plate marked by statistics and face, is obtained all referring to and variance of the Gauss model corresponding to vehicle of each type, has namely arrived the deformable part model of vehicle;
Step 2: adopt the license plate locating method based on paired morphological operator to carry out the coarse positioning of car plate, obtains the candidate region of car plate and corresponding confidence level
Step 3: adopt the method for detecting human face based on AdaBoost to carry out the coarse positioning of driver's face, obtains the candidate region of face and corresponding confidence level
Step 4: the face candidate region that the license plate candidate area that the deformable part model of front vehicle set up based on step one, step 2 obtain and confidence level and step 3 obtain and confidence level carry out the meticulous location of car plate and driver's face
If L={l plate, l faceit is a model M realization in the picture; Wherein l platerepresent car plate position in the picture, l facerepresent the position of face in car plate; If m is (l plate) represent that car plate position is at l plateconfidence level, m (l face) represent that face location is at l faceconfidence level; M (l plate, l face) represent the degree of conformity of position relationship between car plate and face and model, and
m ( l plate , l face ) = arg max i P ( d l plate , l face &Element; N i ( &mu; i , &delta; i ) ) - - - ( 3 )
Wherein for the distance between license plate candidate area and face candidate region, N ii, δ i) train the Gauss model obtained, i ∈ { big, middle, samll} for passing through in step one;
Carry out car plate and the meticulous location of driver's face according to deformable part model, both find L *make
L * = { l * plate , l * face } = arg max L ( m ( l plate ) + m ( l face ) + m ( l plate , l face ) ) - - - ( 4 )
Car plate subsequent sections can be extracted by step 2, face candidate region can be extracted by step 3, according to the confidence level of candidate region, be sorted in candidate region; If the license plate candidate area after sequence is l plate_1 ...l plate_n, n is the number of license plate candidate area, and the driver's face candidate region after sequence is l face_1 ...l face_m, m is driver's face candidate region; The process of then carrying out car plate and driver's Face detection by deformable part model is: corresponding i=1 ..., n, j=1 ..., m, calculates marking value m (l plate_i)+m (l face_j)+m (l plate_i, l face_j), record the car plate of maximum marking value and correspondence thereof and the driver's face location result as final car plate and driver's Face detection;
Step 5: vehicle cab recognition is carried out in the position of the car plate obtained based on step 4 and driver's face
Best car plate position l is found by step 4 * plateand driver face location l * faceafter, by calculating
i * = arg max i P ( d ( l * plate , l * face ) &Element; N i ( &mu; i , &delta; i ) ) - - - ( 5 )
{ big, middle, samll} can obtain final vehicle cab recognition result to i ∈.
2. a kind of car plate based on deformable part model according to claim 1 and driver's Face detection method, is characterized in that, adopts the license plate locating method based on paired morphological operator to carry out the coarse positioning of car plate.
CN201210352669.8A 2012-09-20 2012-09-20 Method for positioning license number and face of driver on basis of deformable part model Expired - Fee Related CN102880863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210352669.8A CN102880863B (en) 2012-09-20 2012-09-20 Method for positioning license number and face of driver on basis of deformable part model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210352669.8A CN102880863B (en) 2012-09-20 2012-09-20 Method for positioning license number and face of driver on basis of deformable part model

Publications (2)

Publication Number Publication Date
CN102880863A CN102880863A (en) 2013-01-16
CN102880863B true CN102880863B (en) 2014-12-31

Family

ID=47482180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210352669.8A Expired - Fee Related CN102880863B (en) 2012-09-20 2012-09-20 Method for positioning license number and face of driver on basis of deformable part model

Country Status (1)

Country Link
CN (1) CN102880863B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399357A (en) * 2017-02-08 2018-08-14 浙江宇视科技有限公司 A kind of Face detection method and device

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473567B (en) * 2013-08-27 2016-09-14 东莞中国科学院云计算产业技术创新与育成中心 A kind of vehicle checking method based on department pattern
CN103473564B (en) * 2013-09-29 2017-09-19 公安部第三研究所 A Frontal Face Detection Method Based on Sensitive Regions
CN104484680B (en) * 2014-09-26 2017-08-08 徐晓晖 A kind of pedestrian detection method of multi-model multi thresholds combination
CN104794462B (en) * 2015-05-11 2018-05-22 成都野望数码科技有限公司 A kind of character image processing method and processing device
CN104966066A (en) * 2015-06-26 2015-10-07 武汉大学 Traffic block port monitoring oriented in-car human face detection method and system
CN105225523B (en) * 2015-10-15 2018-01-02 浙江宇视科技有限公司 A kind of parking space state detection method and device
CN106909936B (en) * 2017-01-21 2020-02-21 江苏大学 A Vehicle Detection Method Based on Dual Vehicle Deformable Parts Model
CN107977643A (en) * 2017-12-18 2018-05-01 浙江工业大学 A kind of officer's car monitoring method based on road camera
CN110633705A (en) * 2019-08-22 2019-12-31 长沙千视通智能科技有限公司 Low-illumination imaging license plate recognition method and device
CN112613401A (en) * 2020-12-22 2021-04-06 贝壳技术有限公司 Face detection method and device, electronic equipment and storage medium
CN114332785A (en) * 2021-12-31 2022-04-12 航天科工智慧产业发展有限公司 Face matting method, device, device and storage medium based on bayonet camera

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968646A (en) * 2012-10-25 2013-03-13 华中科技大学 Plate number detecting method based on machine learning

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI431559B (en) * 2010-10-29 2014-03-21 Univ Nat Chiao Tung A vehicle registration-plate detecting method and system thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968646A (en) * 2012-10-25 2013-03-13 华中科技大学 Plate number detecting method based on machine learning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
结合Gabor特征与Adaboost的人脸表情识别;朱健翔 苏光大 李迎春 ZHU Jian-xiang SU Guang-da LI Ying-chun;《JOURNAL OF OPTOELECTRONICS·LASER》;20060831(第8期);993-998 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399357A (en) * 2017-02-08 2018-08-14 浙江宇视科技有限公司 A kind of Face detection method and device
CN108399357B (en) * 2017-02-08 2020-12-29 浙江宇视科技有限公司 Face positioning method and device

Also Published As

Publication number Publication date
CN102880863A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
CN102880863B (en) Method for positioning license number and face of driver on basis of deformable part model
TWI409718B (en) Method of locating license plate of moving vehicle
CN109886896B (en) A blue license plate segmentation and correction method
CN105373794B (en) A kind of licence plate recognition method
CN103268489B (en) Automotive number plate recognition methods based on sliding window search
CN105913041B (en) Signal lamp identification method based on pre-calibration
CN103824066B (en) A kind of licence plate recognition method based on video flowing
CN104951784B (en) A kind of vehicle is unlicensed and license plate shading real-time detection method
CN103198315B (en) Based on the Character Segmentation of License Plate of character outline and template matches
CN103366190B (en) A kind of method of identification traffic signss
CN102509098B (en) A fisheye image vehicle recognition method
CN102968646B (en) A license plate detection method based on machine learning
CN104134079B (en) A kind of licence plate recognition method based on extremal region and extreme learning machine
CN103824081B (en) Method for detecting rapid robustness traffic signs on outdoor bad illumination condition
CN103473571B (en) Human detection method
CN104715252B (en) A kind of registration number character dividing method of dynamic template combination pixel
CN106845480A (en) A kind of method that car plate is recognized from picture
CN103136528B (en) A kind of licence plate recognition method based on dual edge detection
CN107895492A (en) A kind of express highway intelligent analysis method based on conventional video
CN108009518A (en) A kind of stratification traffic mark recognition methods based on quick two points of convolutional neural networks
CN103903018A (en) Method and system for positioning license plate in complex scene
CN105512640A (en) Method for acquiring people flow on the basis of video sequence
CN103324913A (en) Pedestrian event detection method based on shape features and trajectory analysis
CN106709530A (en) License plate recognition method based on video
CN101859382A (en) A license plate detection and recognition method based on the maximum stable extremum region

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141231

Termination date: 20160920

CF01 Termination of patent right due to non-payment of annual fee