CN106022223B - A high-dimensional partial binary pattern face recognition method and system - Google Patents

A high-dimensional partial binary pattern face recognition method and system Download PDF

Info

Publication number
CN106022223B
CN106022223B CN201610305175.2A CN201610305175A CN106022223B CN 106022223 B CN106022223 B CN 106022223B CN 201610305175 A CN201610305175 A CN 201610305175A CN 106022223 B CN106022223 B CN 106022223B
Authority
CN
China
Prior art keywords
image
feature
gray
characteristic
dimensional
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
CN201610305175.2A
Other languages
Chinese (zh)
Other versions
CN106022223A (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.)
Wuhan University of Technology WUT
Original Assignee
Wuhan University of Technology WUT
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 Wuhan University of Technology WUT filed Critical Wuhan University of Technology WUT
Priority to CN201610305175.2A priority Critical patent/CN106022223B/en
Publication of CN106022223A publication Critical patent/CN106022223A/en
Application granted granted Critical
Publication of CN106022223B publication Critical patent/CN106022223B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

本发明公开了一种高维局部二值模式人脸识别算法及系统,该算法包括以下步骤:S1、获取人脸图像,并对其进行预处理得到相同尺寸的灰度图像;S2、对预处理后的灰度图像进行HDLBP特征提取,得到对应的特征图像;S3、提取特征图像的直方图,得到对应的特征向量;S4、根据特征向量与特征数据库中的信息进行比较,得到识别结果。本发明能够提取图像的局部特征和全局特征,大幅提高了算法的识别率;且在保证算法复杂度不高的基础上,增加了图像识别的准确率。

The invention discloses a high-dimensional local binary mode face recognition algorithm and system, the algorithm comprising the following steps: S1, acquiring a face image, and preprocessing it to obtain a grayscale image of the same size; The processed grayscale image is subjected to HDLBP feature extraction to obtain the corresponding feature image; S3. Extract the histogram of the feature image to obtain the corresponding feature vector; S4. Compare the feature vector with the information in the feature database to obtain the recognition result. The invention can extract the local features and the global features of the image, greatly improving the recognition rate of the algorithm; and increasing the accuracy rate of the image recognition on the basis of ensuring that the complexity of the algorithm is not high.

Description

一种高维局部二值模式人脸识别方法及系统A high-dimensional partial binary pattern face recognition method and system

技术领域technical field

本发明涉及人脸识别领域,尤其涉及一种高维局部二值模式人脸识别方法及系统。The invention relates to the field of face recognition, in particular to a face recognition method and system of a high-dimensional local binary pattern.

背景技术Background technique

局部二值模式(Local Binary pattern,LBP)算法作为人脸识别算法的一种,是由Ojala、Ahonen等于1996年提出的一种依赖于局部纹理描述的算法,用于描述像素点与其邻域内像素点在数值上的关系,因其计算方法简明,对图像的局部特征有很好的描述性,对光照的不敏感性等特点而在人脸识别领域中被广泛的采用。同时,由于LBP描述子只注重了图像的局部特征的描述,忽略了对图像全局特征的描述,导致了LBP算法在全局特征提取上的不足。为了有效的解决这个问题,众多学者对其进行了研究,并且提出了许多的改进和优化方法。Local Binary pattern (LBP) algorithm, as a face recognition algorithm, is an algorithm that relies on local texture description proposed by Ojala and Ahonen et al. in 1996, and is used to describe pixels and pixels in their neighborhood. The numerical relationship between points is widely used in the field of face recognition because of its concise calculation method, good description of local features of the image, and insensitivity to illumination. At the same time, because the LBP descriptor only pays attention to the description of the local features of the image, and ignores the description of the global features of the image, it leads to the shortage of the global feature extraction of the LBP algorithm. In order to effectively solve this problem, many scholars have studied it and proposed many improvement and optimization methods.

周汐等提出分块处理的方法,以期待解决LBP描述子在提取全局特征上不足的问题。分快处理的核心思想是按照一定的大小等分原图,或是按照人的五官所在的位置划分原图,对子图分别提取LBP特征,将所有的特征向量级联在一起,得到全局上的一些特性,通过实验证明分快处理后LBP算法的性能要优于未处理前的LBP算法,但是在对原图按照一个什么样的标准进行划分这一点上却没有一个肯定的答案。既不能在对原图的处理上得到很好的效果,于是王红等从LBP描述子本身进行研究,其思路是通过等倍的放大LBP描述子,使其能够提取到更大范围内的图像特征。进行比较的不再是某一个像素点,而是包括某个像素点在内的固定邻域内的像素点的均值来进行计算,保证了局部特性也在一定程度上体现了全局特性,但对于邻域大小的选择又成为了研究的重点。同样是从BLP描述子本身出发,不同于等倍放大的原理,王成等通过多尺度加权中心点多层次邻域内的特征体现全局特征,邻域内的点距离中心点越近,进行加权时的权值就越重,加权的层次越多,体现的全局性就越好,同时计算复杂度就越高。Zhou Xi et al. proposed a method of block processing in order to solve the problem that LBP descriptors are insufficient in extracting global features. The core idea of split processing is to divide the original image into equal parts according to a certain size, or divide the original image according to the location of human facial features, extract LBP features from the sub-images, concatenate all the feature vectors together, and obtain the global According to some characteristics, the performance of the LBP algorithm after sub-processing is better than that of the unprocessed LBP algorithm through experiments, but there is no definite answer on the point of dividing the original image according to what standard. Neither can get a good effect on the processing of the original image, so Wang Hong et al. conduct research from the LBP descriptor itself, the idea is to enlarge the LBP descriptor by equal times, so that it can extract images in a wider range feature. The comparison is no longer a certain pixel, but the average value of the pixels in the fixed neighborhood including a certain pixel is calculated, which ensures that the local characteristics also reflect the global characteristics to a certain extent, but for the neighbor The choice of domain size has become the focus of research again. Also starting from the BLP descriptor itself, different from the principle of equal magnification, Wang Cheng et al. reflect the global features through the features in the multi-level neighborhood of the multi-scale weighted center point. The closer the point in the neighborhood is to the center point, the weighted The heavier the weight, the more weighted levels, the better the globality, and the higher the computational complexity.

发明内容Contents of the invention

本发明要解决的技术问题在于针对现有技术中不能提取全局特征的缺陷,提供一种能够大大提高算法识别率的高维局部二值模式人脸识别方法及系统。The technical problem to be solved by the present invention is to provide a high-dimensional local binary mode face recognition method and system that can greatly improve the recognition rate of the algorithm for the defect that the global feature cannot be extracted in the prior art.

本发明解决其技术问题所采用的技术方案是:The technical solution adopted by the present invention to solve its technical problems is:

本发明提供一种高维局部二值模式人脸识别算法,包括以下步骤:The present invention provides a kind of face recognition algorithm of high dimension partial binary value mode, comprises the following steps:

S1、获取人脸图像,并对其进行预处理得到相同尺寸的灰度图像;S1. Obtain a face image, and preprocess it to obtain a grayscale image of the same size;

S2、对预处理后的灰度图像进行HDLBP特征提取,得到对应的特征图像;S2. Perform HDLBP feature extraction on the preprocessed grayscale image to obtain a corresponding feature image;

S3、提取特征图像的直方图,得到对应的特征向量;S3. Extracting the histogram of the feature image to obtain a corresponding feature vector;

S4、根据特征向量与特征数据库中的信息进行比较,得到识别结果。S4. Comparing the feature vector with information in the feature database to obtain a recognition result.

进一步地,本发明的步骤S1中预处理得到灰度图像的方法具体为:Further, the method for preprocessing the grayscale image in step S1 of the present invention is specifically:

设人脸灰度图像的局部纹理V的分布为:Let the distribution of the local texture V of the face grayscale image be:

V=v(gc g0 … gp-1 g)V=v(g c g 0 ... g p-1 g)

其中,gc代表窗口的中心阈值,gk中k=0,2...p-1,gk表示各邻域像素点的灰度值,p表示邻域点个数,g表示人脸灰度图像的灰度均值,计算公式为:Among them, g c represents the central threshold of the window, k=0,2...p-1 in g k , g k represents the gray value of each neighborhood pixel, p represents the number of neighborhood points, and g represents the face The gray mean value of the grayscale image, the calculation formula is:

其中,m×n是灰度图像的大小,g(i j)是图像中每一个像素点的灰度值。Among them, m×n is the size of the grayscale image, and g(i j) is the grayscale value of each pixel in the image.

进一步地,本发明的步骤S2中进行HDLBP特征提取的方法具体为:Further, the method for HDLBP feature extraction in step S2 of the present invention is specifically:

HDLBP描述子在计算时,首先延用了经典的LBP描述子在窗口内的计算方法,保证了局部特征;然后对窗口中心像素点灰度值和人脸灰度图像的灰度均值运用同样的计算方法,保证全局特征;最后将局部特征作为低维,全局特征作为高维整合在一起,计算的结果就是该窗口内中心像素点的特征值。When calculating the HDLBP descriptor, firstly, the calculation method of the classic LBP descriptor in the window is used to ensure the local features; The calculation method guarantees the global features; finally, the local features are integrated as low-dimensional and global features as high-dimensional, and the calculation result is the feature value of the central pixel in the window.

进一步地,本发明的步骤S2中进行高维和低维融合的方法具体为:Further, the method for performing high-dimensional and low-dimensional fusion in step S2 of the present invention is specifically:

将中心特征作为最高维的分量加入到边缘特征的二进制序列中,使得特征序列向高一维伸展,扩大特征序列包含的信息量;根据如下公式将低维特征和高维特征融合在一起,使两列特征序列变成一列特征序列,并按照二进制转十进制的方法进行计算即可得到对应的特征值;计算公式为:The central feature is added to the binary sequence of the edge feature as the highest dimension component, so that the feature sequence is extended to a higher dimension, and the amount of information contained in the feature sequence is expanded; the low-dimensional features and high-dimensional features are fused together according to the following formula, so that Two columns of feature sequences become one column of feature sequences, and the corresponding feature values can be obtained by calculating according to the method of converting binary to decimal; the calculation formula is:

其中,gc代表窗口的中心阈值,gk中k=0,2...p-1,gk表示各邻域像素点的灰度值,p表示邻域点个数,g表示人脸灰度图像的灰度均值,计算公式为:Among them, g c represents the central threshold of the window, k=0,2...p-1 in g k , g k represents the gray value of each neighborhood pixel, p represents the number of neighborhood points, and g represents the face The gray mean value of the grayscale image, the calculation formula is:

其中,m×n是灰度图像的大小,g(i j)是图像中每一个像素点的灰度值。Among them, m×n is the size of the grayscale image, and g(i j) is the grayscale value of each pixel in the image.

进一步地,本发明的步骤S2中进行HDLBP特征提取的公式为:Further, the formula for HDLBP feature extraction in step S2 of the present invention is:

其中,s函数如下: Among them, the s function is as follows:

进一步地,本发明的步骤S3中提取特征图像的直方图的方法具体为:Further, the method for extracting the histogram of the feature image in step S3 of the present invention is specifically:

根据输入的特征图像,将图像中所有的像素点按照其灰度值的大小进行升序排序,然后统计具有相同灰度值的像素点出现的次数,得到一个n*1序列,即特征向量,其中n表示特征图像中不同灰度值的个数,直方图的计算公式如下:According to the input feature image, sort all the pixels in the image in ascending order according to their gray value, and then count the number of occurrences of pixels with the same gray value to obtain an n*1 sequence, which is the feature vector, where n represents the number of different gray values in the feature image, and the calculation formula of the histogram is as follows:

h(i)=NUM(gi)i∈(1,n)h(i)=NUM(g i )i∈(1,n)

其中h(i)表示灰度值为gi的像素点的个数。Among them, h(i) represents the number of pixels whose gray value is g i .

进一步地,本发明的步骤S4中得出识别结果的方法具体为:Further, the method for obtaining the recognition result in step S4 of the present invention is specifically:

根据特征向量与特征数据库中的信息进行比较,以欧氏距离为衡量,利用最邻近分类法进行识别。According to the comparison between the feature vector and the information in the feature database, the Euclidean distance is used as the measure, and the nearest neighbor classification method is used for identification.

本发明提供一种高维局部二值模式人脸识别系统,包括:The invention provides a high-dimensional local binary pattern face recognition system, comprising:

图像预处理单元,用于获取人脸图像,并对其进行预处理得到相同尺寸的灰度图像;An image preprocessing unit is used to obtain a face image and preprocess it to obtain a grayscale image of the same size;

HDLBP特征提取单元,用于对预处理后的灰度图像进行HDLBP特征提取,得到对应的特征图像;The HDLBP feature extraction unit is used to extract the HDLBP feature from the preprocessed grayscale image to obtain a corresponding feature image;

特征向量提取单元,用于提取特征图像的直方图,得到对应的特征向量;A feature vector extraction unit is used to extract the histogram of the feature image to obtain a corresponding feature vector;

图像识别单元,用于根据特征向量与特征数据库中的信息进行比较,得到识别结果。The image recognition unit is used to compare the feature vector with information in the feature database to obtain a recognition result.

本发明产生的有益效果是:本发明的高维局部二值模式人脸识别算法,通过延用经典的LBP描述子在窗口内的计算方法,保证了局部特征;然后对窗口中心像素点灰度值和人脸灰度图像的灰度均值运用同样的计算方法,保证全局特征;最后将局部特征作为低维,全局特征作为高维整合在一起,作为该窗口内中心像素点的特征值;本发明的算法能够提取图像的局部特征和全局特征,大幅提高了算法的识别率;且在保证算法复杂度不高的基础上,增加了图像识别的准确率。The beneficial effects produced by the present invention are: the high-dimensional local binary mode face recognition algorithm of the present invention ensures the local features by extending the calculation method of the classic LBP descriptor in the window; The same calculation method is used to ensure the global features; finally, the local features are regarded as low-dimensional, and the global features are integrated as high-dimensional, as the feature value of the central pixel in the window; The invented algorithm can extract the local and global features of the image, greatly improving the recognition rate of the algorithm; and on the basis of ensuring that the complexity of the algorithm is not high, the accuracy of image recognition is increased.

附图说明Description of drawings

下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with accompanying drawing and embodiment, in the accompanying drawing:

图1是本发明实施例的高维局部二值模式人脸识别算法的流程图;Fig. 1 is the flow chart of the face recognition algorithm of the high-dimensional local binary pattern of the embodiment of the present invention;

图2是本发明实施例的高维局部二值模式人脸识别算法的融合过程;Fig. 2 is the fusion process of the high-dimensional local binary pattern face recognition algorithm of the embodiment of the present invention;

图3是本发明实施例的高维局部二值模式人脸识别算法的框图;Fig. 3 is the block diagram of the face recognition algorithm of the high-dimensional local binary pattern of the embodiment of the present invention;

图4是本发明实施例的高维局部二值模式人脸识别算法的计算过程图;Fig. 4 is the calculation process diagram of the high-dimensional local binary pattern face recognition algorithm of the embodiment of the present invention;

图5是本发明实施例的高维局部二值模式人脸识别系统的框图。FIG. 5 is a block diagram of a high-dimensional local binary pattern face recognition system according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

如图1所示,本发明实施例的高维局部二值模式人脸识别算法,包括以下步骤:As shown in Figure 1, the high-dimensional local binary pattern face recognition algorithm of the embodiment of the present invention comprises the following steps:

S1、获取人脸图像,并对其进行预处理得到相同尺寸的灰度图像;预处理得到灰度图像的方法具体为:S1. Obtain a face image, and preprocess it to obtain a grayscale image of the same size; the method of preprocessing to obtain a grayscale image is specifically:

设人脸灰度图像的局部纹理V的分布为:Let the distribution of the local texture V of the face grayscale image be:

V=v(gc g0 … gp-1 g)V=v(g c g 0 ... g p-1 g)

其中,gc代表窗口的中心阈值,gk中k=0,2...p-1,gk表示各邻域像素点的灰度值,p表示邻域点个数,g表示人脸灰度图像的灰度均值,计算公式为:Among them, g c represents the central threshold of the window, k=0,2...p-1 in g k , g k represents the gray value of each neighborhood pixel, p represents the number of neighborhood points, and g represents the face The gray mean value of the grayscale image, the calculation formula is:

其中,m×n是灰度图像的大小,g(i j)是图像中每一个像素点的灰度值。Among them, m×n is the size of the grayscale image, and g(i j) is the grayscale value of each pixel in the image.

S2、对预处理后的灰度图像进行HDLBP特征提取,得到对应的特征图像;进行HDLBP特征提取的公式为:S2. Carry out HDLBP feature extraction to the preprocessed grayscale image to obtain a corresponding feature image; the formula for HDLBP feature extraction is:

其中,s函数如下: Among them, the s function is as follows:

S3、提取特征图像的直方图,得到对应的特征向量;S3. Extracting the histogram of the feature image to obtain a corresponding feature vector;

S4、根据特征向量与特征数据库中的信息进行比较,得到识别结果。S4. Comparing the feature vector with information in the feature database to obtain a recognition result.

HDLBP描述子在计算时,首先延用了经典的LBP描述子在窗口内的计算方法,保证了局部特征;然后对窗口中心像素点灰度值和人脸灰度图像的灰度均值运用同样的计算方法,保证全局特征;最后将局部特征作为低维,全局特征作为高维整合在一起,计算的结果就是该窗口内中心像素点的特征值。When calculating the HDLBP descriptor, firstly, the calculation method of the classic LBP descriptor in the window is used to ensure the local features; The calculation method guarantees the global features; finally, the local features are integrated as low-dimensional and global features as high-dimensional, and the calculation result is the feature value of the central pixel in the window.

如图2所示,融合的过程具体为:As shown in Figure 2, the fusion process is as follows:

中心特征作为最高维的分量加入到边缘特征的二进制序列中,使得特征序列向高一维伸展,特征序列包含的信息量更大。由于低维特征和高维特征融合在一起,使得两列特征序列变成一列特征序列,因此将特征序列转化成特征值时,只需要按照二进制转十进制的方法进行计算即可得到对应的特征值,计算公式为:The central feature is added to the binary sequence of the edge features as the highest dimension component, so that the feature sequence is extended to a higher dimension, and the feature sequence contains a larger amount of information. Since the low-dimensional features and high-dimensional features are fused together, the two columns of feature sequences become one column of feature sequences. Therefore, when converting the feature sequence into a feature value, it only needs to be calculated according to the binary to decimal method to obtain the corresponding feature value. , the calculation formula is:

如图3所示,在本发明的另一个具体实施例中,As shown in Figure 3, in another specific embodiment of the present invention,

算法的具体计算过程如下:The specific calculation process of the algorithm is as follows:

第一步:输入待识别的人脸图像;Step 1: Input the face image to be recognized;

第二步:对输入的人脸图片进行预处理,得到相同尺寸的灰度图像;Step 2: Preprocess the input face image to obtain a grayscale image of the same size;

第三步:按照下列公式提取待识别人脸图像的HDLBP特征,得到对应的特征图像;The third step: extract the HDLBP feature of the face image to be recognized according to the following formula, and obtain the corresponding feature image;

根据输入的灰度图像,按照如下计算g的公式计算出g的取值,然后利用HDLBP特征的计算公式对灰度图像自左向右,自上而下进行扫描,对于每一次i,j的取值都有一个对应的特征值,由特征值组成的图像即是特征图像。According to the input grayscale image, calculate the value of g according to the formula for calculating g as follows, and then use the calculation formula of HDLBP feature to scan the grayscale image from left to right and top to bottom, for each i, j Each value has a corresponding eigenvalue, and the image composed of eigenvalues is the feature image.

第四步:提取特征图像的直方图,得到对应的特征向量;Step 4: Extract the histogram of the feature image to obtain the corresponding feature vector;

根据输入的特征图像,将图像中所有的像素点按照其灰度值的大小进行升序排序,然后统计具有相同灰度值的像素点出现的次数,得到一个n*1序列,即特征向量,其中n表示特征图像中不同灰度值的个数,直方图的计算公式如下:According to the input feature image, sort all the pixels in the image in ascending order according to their gray value, and then count the number of occurrences of pixels with the same gray value to obtain an n*1 sequence, which is the feature vector, where n represents the number of different gray values in the feature image, and the calculation formula of the histogram is as follows:

h(i)=NUM(gi)i∈(1,n)h(i)=NUM(g i )i∈(1,n)

其中h(i)表示灰度值为gi的像素点的个数。Among them, h(i) represents the number of pixels whose gray value is g i .

第五步:在建立的特征数据库上,以欧氏距离为衡量,利用最邻近分类法进行识别;Step 5: On the established feature database, use the Euclidean distance as a measure, and use the nearest neighbor classification method to identify;

n维空间中的欧氏距离计算公式如下:The Euclidean distance calculation formula in n-dimensional space is as follows:

其中x1k和x2k分别是n维向量x1和x2的第k为分量。最近邻分类法:将待分类数据,按照距离划分到与其距离最近的样本所在的类中。Where x 1k and x 2k are the kth components of n-dimensional vectors x 1 and x 2 respectively. Nearest neighbor classification method: divide the data to be classified into the class of the nearest sample according to the distance.

利用欧氏距离的公式计算出特征向量与特征数据库中所有样本的欧氏距离,其中具有最小距离的样本即是识别的结果。其中,dm是特征向量xk与数据库中第m个样本yk的欧氏距离。Use the Euclidean distance formula to calculate the Euclidean distance between the feature vector and all samples in the feature database, and the sample with the smallest distance is the result of recognition. Among them, d m is the Euclidean distance between the feature vector x k and the mth sample y k in the database.

第六步:输出识别的结果。Step 6: Output the recognition result.

如图4所示,利用ORL人脸库和YALE人脸库进行实验,ORL人脸库由剑桥大学媒体AT&T实验室创建的。该库包括40类人脸,每类10幅,大小为112×92的灰度图像。所有的图像都有相似的暗背景,同一人的不同图像是在不同时间、不同光照、不同头部姿态、不同表情和不同细节下拍摄而成的;YALE人脸库是美国耶鲁大学建立的一个人脸数据库,该库包含15个人,每人11幅,包括不同表情、不同光照方向以及细节变化等。将人脸库统一分为测试样本和实验样本,对于ORL人脸库,测试样本:实验样本=5:5;对YALE人脸库,测试样本:实验样本=6:5。As shown in Figure 4, the ORL face database and the YALE face database were used for experiments. The ORL face database was created by the Media AT&T Laboratory of the University of Cambridge. The library includes 40 categories of faces, each category has 10 grayscale images with a size of 112×92. All images have similar dark backgrounds, and different images of the same person are taken at different times, under different lighting, different head postures, different expressions, and different details; the YALE face database is a database established by Yale University in the United States. Face database, the database contains 15 people, each with 11 images, including different expressions, different lighting directions, and changes in details. The face database is uniformly divided into test samples and experimental samples. For ORL face database, test sample:experimental sample=5:5; for YALE face database, test sample:experimental sample=6:5.

实验结果如下表所示。The experimental results are shown in the table below.

由上可见:不论是在YALE人脸库还是在ORL人脸库上,高维局部二值模式算法的识别率都要高于传统局部二值模式。It can be seen from the above that whether it is in the YALE face database or the ORL face database, the recognition rate of the high-dimensional local binary pattern algorithm is higher than that of the traditional local binary pattern.

针对传统局部二值模式的人脸识别算法不能提取全局特征的缺点,提出了一种基于高维局部二值模式的人脸识别算法。本算法相对于传统的局部二值模式算法,大大的提高了算法的识别率。Aiming at the shortcoming that the traditional local binary pattern face recognition algorithm cannot extract global features, a face recognition algorithm based on high-dimensional local binary pattern is proposed. Compared with the traditional local binary pattern algorithm, this algorithm greatly improves the recognition rate of the algorithm.

如图5所示,本发明实施例的高维局部二值模式人脸识别系统,用于实现本发明实施例的高维局部二值模式人脸识别算法,包括:As shown in Figure 5, the high-dimensional local binary pattern face recognition system of the embodiment of the present invention is used to realize the high-dimensional local binary pattern face recognition algorithm of the embodiment of the present invention, including:

图像预处理单元,用于获取人脸图像,并对其进行预处理得到相同尺寸的灰度图像;An image preprocessing unit is used to obtain a face image and preprocess it to obtain a grayscale image of the same size;

HDLBP特征提取单元,用于对预处理后的灰度图像进行HDLBP特征提取,得到对应的特征图像;The HDLBP feature extraction unit is used to extract the HDLBP feature from the preprocessed grayscale image to obtain a corresponding feature image;

特征向量提取单元,用于提取特征图像的直方图,得到对应的特征向量;A feature vector extraction unit is used to extract the histogram of the feature image to obtain a corresponding feature vector;

图像识别单元,用于根据特征向量与特征数据库中的信息进行比较,得到识别结果。The image recognition unit is used to compare the feature vector with information in the feature database to obtain a recognition result.

应当理解的是,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,而所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should belong to the protection scope of the appended claims of the present invention.

Claims (3)

1. a kind of higher-dimension local binary patterns face identification method, which comprises the following steps:
S1, facial image is obtained, and it is pre-processed to obtain the gray level image of identical size;
S2, HDLBP feature extraction is carried out to pretreated gray level image, obtains corresponding characteristic image;
S3, the histogram for extracting characteristic image, obtain corresponding feature vector;
S4, it is compared according to feature vector with the information in property data base, obtains recognition result;
The method of HDLBP feature extraction is carried out in step S2 specifically:
HDLBP description has adopted calculation method of LBP description in window first, ensure that local feature when calculating; Then calculating of the son in window is described with LBP to the gray average of window center pixel gray value and face gray level image Method guarantees global characteristics;Finally using local feature as low-dimensional, global characteristics are combined as higher-dimension, the knot of calculating Fruit is exactly the characteristic value of central pixel point in the window;
The method that higher-dimension and low-dimensional fusion are carried out in step S2 specifically:
It is added to central feature as the component of most higher-dimension in the binary sequence of edge feature, so that characteristic sequence Xiang Gaoyi Dimension stretching, extension expands the information content that characteristic sequence includes;Low-dimensional feature and high dimensional feature are fused together according to the following formula, made Two column characteristic sequences become a column characteristic sequence, and according to binary system turn metric method calculate can be obtained it is corresponding Characteristic value;Calculation formula are as follows:
Wherein, gcRepresent the central threshold of window, gkMiddle k=0,2...p-1, gkIndicate the gray value of each neighborhood territory pixel point, p table Show neighborhood point number, g indicates the gray average of face gray level image, calculation formula are as follows:
Wherein, m × n is the size of gray level image, and g (i j) is the gray value of each pixel in image;
The formula of HDLBP feature extraction is carried out in step S2 are as follows:
Wherein, s function is as follows:
2. higher-dimension local binary patterns face identification method according to claim 1, which is characterized in that extracted in step S3 The method of the histogram of characteristic image specifically:
According to the characteristic image of input, pixel all in image is subjected to ascending sort according to the size of its gray value, so The number that there is statistics the pixel of same grayscale value to occur afterwards, obtains a n*1 sequence, i.e. feature vector, and wherein n indicates special The number of different gray values in image is levied, the calculation formula of histogram is as follows:
H (i)=NUM (gi)i∈(1,n)
Wherein h (i) indicates that gray value is giPixel number.
3. higher-dimension local binary patterns face identification method according to claim 1, which is characterized in that obtained in step S4 The method of recognition result specifically:
It is compared according to feature vector with the information in property data base, is to measure with Euclidean distance, utilizes nearest neighbour classification Method is identified.
CN201610305175.2A 2016-05-10 2016-05-10 A high-dimensional partial binary pattern face recognition method and system Expired - Fee Related CN106022223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610305175.2A CN106022223B (en) 2016-05-10 2016-05-10 A high-dimensional partial binary pattern face recognition method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610305175.2A CN106022223B (en) 2016-05-10 2016-05-10 A high-dimensional partial binary pattern face recognition method and system

Publications (2)

Publication Number Publication Date
CN106022223A CN106022223A (en) 2016-10-12
CN106022223B true CN106022223B (en) 2019-10-25

Family

ID=57100152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610305175.2A Expired - Fee Related CN106022223B (en) 2016-05-10 2016-05-10 A high-dimensional partial binary pattern face recognition method and system

Country Status (1)

Country Link
CN (1) CN106022223B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309692B (en) * 2018-03-27 2023-06-02 杭州海康威视数字技术股份有限公司 Face recognition method, device and system, and model training method and device
CN110543853A (en) * 2019-09-04 2019-12-06 上海观安信息技术股份有限公司 Method for realizing face recognition processing based on image processing technology
CN110956090B (en) * 2019-11-04 2022-08-30 南京邮电大学 Face feature extraction method based on fusion of positive and negative illumination invariant units
CN111709312B (en) * 2020-05-26 2023-09-22 上海海事大学 Local feature face recognition method based on combined main mode
CN111832639B (en) * 2020-06-30 2022-05-31 山西大学 A painting emotion prediction method based on transfer learning
CN116719966B (en) * 2023-05-25 2024-03-08 中国医学科学院皮肤病医院(中国医学科学院皮肤病研究所) Hospital patient information management system
CN117373100B (en) * 2023-12-08 2024-02-23 成都乐超人科技有限公司 Face recognition method and system based on differential quantization local binary pattern

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447021A (en) * 2008-12-30 2009-06-03 爱德威软件开发(上海)有限公司 Face fast recognition system and recognition method thereof
CN102663400A (en) * 2012-04-16 2012-09-12 北京博研新创数码科技有限公司 LBP (length between perpendiculars) characteristic extraction method combined with preprocessing
CN104318219A (en) * 2014-10-31 2015-01-28 上海交通大学 Face recognition method based on combination of local features and global features
CN105550658A (en) * 2015-12-24 2016-05-04 蔡叶荷 Face comparison method based on high-dimensional LBP (Local Binary Patterns) and convolutional neural network feature fusion

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100866792B1 (en) * 2007-01-10 2008-11-04 삼성전자주식회사 Method and apparatus for generating face descriptor using extended local binary pattern and method and apparatus for face recognition using same
US9171226B2 (en) * 2012-09-26 2015-10-27 Carnegie Mellon University Image matching using subspace-based discrete transform encoded local binary patterns

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447021A (en) * 2008-12-30 2009-06-03 爱德威软件开发(上海)有限公司 Face fast recognition system and recognition method thereof
CN102663400A (en) * 2012-04-16 2012-09-12 北京博研新创数码科技有限公司 LBP (length between perpendiculars) characteristic extraction method combined with preprocessing
CN104318219A (en) * 2014-10-31 2015-01-28 上海交通大学 Face recognition method based on combination of local features and global features
CN105550658A (en) * 2015-12-24 2016-05-04 蔡叶荷 Face comparison method based on high-dimensional LBP (Local Binary Patterns) and convolutional neural network feature fusion

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Blessing of Dimensionality:High-dimensional Feature and Its Efficient Compression for Face Verification;Dong Chen等;《2013 IEEE Conference on Computer Vision and Pattern Recognition》;20131003;第5.5节 *

Also Published As

Publication number Publication date
CN106022223A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN106022223B (en) A high-dimensional partial binary pattern face recognition method and system
CN106127196B (en) Facial expression classification and identification method based on dynamic texture features
US10445562B2 (en) AU feature recognition method and device, and storage medium
CN110929593B (en) Real-time significance pedestrian detection method based on detail discrimination
WO2019134327A1 (en) Facial expression recognition feature extraction method employing edge detection and sift
CN105046197B (en) Multi-template pedestrian detection method based on cluster
CN105825183B (en) Facial expression recognition method based on partially occluded images
CN104778457B (en) Video face identification method based on multi-instance learning
Yu et al. Anchor cascade for efficient face detection
CN101493887B (en) Eyebrow image segmentation method based on semi-supervised learning and hash index
CN105335725A (en) Gait identification identity authentication method based on feature fusion
CN107633226A (en) A kind of human action Tracking Recognition method and system
CN105760858A (en) Pedestrian detection method and apparatus based on Haar-like intermediate layer filtering features
CN108681737A (en) A kind of complex illumination hypograph feature extracting method
Cai et al. Traffic sign recognition algorithm based on shape signature and dual-tree complex wavelet transform
CN105760472A (en) Video retrieval method and system
CN108734200B (en) Human target visual detection method and device based on BING feature
Kheirkhah et al. A hybrid face detection approach in color images with complex background
Han et al. Multilinear supervised neighborhood embedding of a local descriptor tensor for scene/object recognition
CN104834891A (en) Method and system for filtering Chinese character image type spam
CN103902965B (en) Spatial domain symbiosis image representing method and its application in image classification, identification
TW201820260A (en) All-weather thermal image-type pedestrian detecting method to express the LBP encoding in the same window by HOG as the feature representation, and use SVM and Adaboost to proceed classifier training
Bhattacharyya et al. IRIS texture analysis and feature extraction for biometric pattern recognition
Nguyen et al. LAWNet: A lightweight attention-based deep learning model for wrist vein verification in smartphones using RGB images
CN105095901A (en) Method and device used for processing to-be-processed block of urine sediment image

Legal Events

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

Granted publication date: 20191025

Termination date: 20200510

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