Summary of the invention
The objective of the invention is to propose a kind of susceptibility that reduces illumination, considered the mutual relationship on the geometric position between each human face characteristic point, and can obtain globally optimal solution, thereby the man face characteristic point positioning method in the face identification system of raising bearing accuracy.
Purpose of the present invention can be achieved through the following technical solutions:
Man face characteristic point positioning method in the face identification system utilizes the statistical model of image gradient directional information, determines human face characteristic point by the method for statistical reasoning, may further comprise the steps:
(1) definition and location human face characteristic point promptly utilize the direction definition of image gradient and location candidate's human face characteristic point;
(2) proper vector of human face characteristic point in the extraction step (1);
(3) utilize a statistical model of having considered the feature and the relativeness of human face characteristic point, adopt the method for statistical reasoning, mark human face characteristic point, thereby the position of definite human face characteristic point that needs.
Purpose of the present invention can also further realize by following technical measures:
Man face characteristic point positioning method in the aforesaid face identification system, wherein said human face characteristic point comprise the central point and the marginal point of people's face face, the perhaps central point of other people face characteristic portion and marginal point.
Man face characteristic point positioning method in the aforesaid face identification system, wherein said step (1) is utilized the directional information definition human face characteristic point of gradient image, the face characteristic point location is realized in the projection maximum of specific direction or the mode of minimum value by searching specific gradient direction information, be may further comprise the steps:
1. to input imagery I, calculate its gradient Ix and Iy in X and Y direction;
2. Ix and Iy are carried out smothing filtering;
3. according to Ix and Iy after level and smooth, the directional image Ang of compute gradient;
4. the directional image Ang of gradient is carried out binaryzation and obtains Angmap, if promptly Ang (j, i) in a certain scope, then Angmap (j, i)=1, otherwise Angmap (j, i)=0;
5. extract the distributed intelligence of 0 and 1 pixel among the Angmap, this message reflection the positional information of human face characteristic point.
Man face characteristic point positioning method in the aforesaid face identification system, definition and location human face characteristic point may further comprise the steps:
1. in image, determine the sweep trace of some different angles;
2. to each pixel in the every sweep trace, get a sweep trace vertical with this sweep trace, in Angmap, calculate the number that near continuous 0 this pixel is worth or 1 value is put in this sweep trace, thereby to every sweep trace, obtain two one-dimensional vector, each vector value is represented the number of continuous 0 value or 1 value point;
3. this one-dimensional vector is carried out smothing filtering;
4. extract local minimum and maximum value point in the one-dimensional vector after level and smooth, these minimum and maximum value points have promptly been represented the position of candidate's human face characteristic point.
Man face characteristic point positioning method in the aforesaid face identification system, wherein said statistical model is latent Marko husband statistical model or condition random field statistical model.
Man face characteristic point positioning method in the aforesaid face identification system, utilize latent Marko husband statistical model that human face characteristic point is marked and may further comprise the steps:
1. set up the latent Marko husband statistical model of a two dimension, comprise aforesaid human face characteristic point as the unique point that observes, in this model, represent the sequence of an observed reading with X, represent a mark sequence with L, the joint probability of X and L is:
In the formula: X
LiExpression Li observed reading constantly, L
LiRepresent corresponding state, the L in the subscript, Z, R represent the left, middle and right sweep trace respectively, P (L
Zi| L
Zi-1) represent by state L
Zi-1To state L
ZiTransition probability, P (X
Zi| L
Zi) the expression output probability, promptly at state L
ZiFind X
ZiProbability, X
ZiBe the proper vector of extracting at this candidate feature point;
2. seek mark sequence L and make P (X|L) maximum, promptly find argmax
LP (X, L).2. wherein said step can realize by dynamic programming or exhaustive method.
The latent Marko husband statistical model of two dimension comprises the image feature information and the unique point state transitions information of each unique point.
Man face characteristic point positioning method in the aforesaid face identification system, utilize the condition random field statistical model that human face characteristic point is marked and may further comprise the steps:
1. set up a condition random field statistical model, aforesaid human face characteristic point is as the unique point that observes, and in this model, represents the stochastic variable that observes, L with X
LiDeng the corresponding state of expression, the probability of y under the condition of given x
Wherein Ψ (y x) is potential energy function,
F wherein
l 1And f
l 2Be fundamental function, θ
l 1And θ
l 2Be parameter, E represents a figure who comprises set of node and arc collection, and (j k) has arc connected node y in the ∈ E presentation graphs
jAnd y
k
2. obtain optimum mark sequences y * and make P (y|x) maximization, i.e. y
*=argmax
yP (y|x).Wherein 2. step can realize by the method for dynamic programming.
Two-dimensional condition random field statistical model comprises the image feature information and the unique point state transitions information of each unique point.
Advantage of the present invention is: the present invention utilizes the direction of image gradient to define and locate human face characteristic point, external change such as illumination can influence the absolute intensity value of image, what but gradient was considered is the variation of the relative gray-scale value between pixel, the directional information of gradient image is subjected to the influence of illumination just very little, thereby has reduced the susceptibility to illumination.In addition, the present invention has considered the mutual relationship on the geometric position between each human face characteristic point, by the method for statistical reasoning, can obtain globally optimal solution.The present invention has also introduced condition random field (Conditional Random Field) in the face characteristic point location, has overcome mark prejudice problem, thereby has had more performance.Comprehensive above each point, the present invention can obtain human face characteristic point locating effect more accurately.
Embodiment
The present invention proposes the localization method of the human face characteristic point in a kind of face identification system, human face characteristic point comprises the central point and the marginal point of people's face face, the perhaps central point of other people face characteristic portion and marginal point.The present invention utilizes the statistical model of image gradient directional information, determines human face characteristic point by the method for statistical reasoning, and its flow process may further comprise the steps as shown in Figure 1:
(1) definition and location human face characteristic point promptly utilize the direction definition of image gradient and location candidate's human face characteristic point;
(2) proper vector of human face characteristic point in the extraction step (1);
(3) utilize a statistical model of having considered the feature and the relativeness of human face characteristic point, adopt the method for statistical reasoning, mark human face characteristic point, thereby the position of definite human face characteristic point that needs.
This method supposition people face detects to be finished, and people's face positional information obtains.At detected human face region, scan image at first obtains the position of possible human face characteristic point.For apparent in view human face characteristic point such as eye, nose utilizes a sorter in different positions and yardstick scan image and judge whether current region comprises human face characteristic point to be detected.The realization example of sorter comprises the AdaBoost algorithm, support vector machine (SVM) etc.But can reduce many to all the other distant human face characteristic point preceding method validity.In addition, preceding method all needs independent and more loaded down with trivial details training process to everyone face characteristic point.The present invention utilizes the directional information of gradient image to define some new human face characteristic points.These unique points can realize in the projection maximum of specific direction or the mode of minimum value by searching gradient direction information.An obvious benefit utilizing the directional information of gradient image is to be subjected to the influence of external change such as illumination little.External change such as illumination can influence the absolute intensity value of image, but the gradient consideration is the variation of the relative gray-scale value between pixel, and the angle information of gradient image is subjected to the influence of illumination just very little.Can also adopt smothing filtering in addition, methods such as binaryzation further reduce the influence that is subjected to external change such as illumination.
Definition and location human face characteristic point may further comprise the steps:
1. to input imagery I, calculate its gradient Ix and Iy in X and Y direction;
2. Ix and Iy are carried out smothing filtering;
3. according to Ix and Iy after level and smooth, the directional image Ang of compute gradient;
4. the directional image Ang of gradient is carried out binaryzation and obtains Angmap, if promptly Ang (j, i) in a certain scope, then Angmap (j, i)=1, otherwise Angmap (j, i)=0;
5. extract the distributed intelligence of 0 and 1 pixel among the Angmap, this message reflection the positional information of human face characteristic point.
Can determine several sweep traces at the human face characteristic point position, as shown in Figure 2, then define and locate human face characteristic point specific implementation as follows:
1. in image, determine the sweep trace of some different angles;
2. to each pixel in the every sweep trace, get a sweep trace vertical with this sweep trace, in Angmap, calculate the number that near continuous 0 this pixel is worth or 1 value is put in this sweep trace, thereby to every sweep trace, obtain two one-dimensional vector, each vector value is represented the number of continuous 0 value or 1 value point;
3. this one-dimensional vector is carried out smothing filtering;
4. extract local minimum and maximum value point in the one-dimensional vector after level and smooth, these minimum and maximum value points have promptly been represented the position of candidate's human face characteristic point.
Obtain then can these human face characteristic points to be marked after candidate's the human face characteristic point, can realize by following two kinds of embodiments by the method for statistical reasoning:
Embodiment one
The latent Marko husband statistical model of present embodiment utilization marks human face characteristic point.Set up a faceform that following unique point is arranged earlier:
Along sweep trace 1: in the eye, in the middle of eye and the nose, in the nose, in the middle of nose and the mouth, cheek;
Along in 2: two of the sweep traces, nose top, in the nose, mouth top, in the mouth, mouth bottom, chin;
Along sweep trace 3: in the eye, in the middle of eye and the nose, in the nose, in the middle of nose and the mouth, cheek;
In addition, also have a dummy status to represent not belong to above any unique point.The state of above-mentioned unique point as markov model, we set up the latent markov model of a two dimension, as shown in Figure 3, and X wherein
LiExpression Li observed reading constantly, L
LiRepresent corresponding state, the L in the subscript, Z, R represent the left, center, right sweep trace respectively.
Represent the sequence of an observed reading with X, represent the sequence of a mark with L, the joint probability of X and L is so:
P(X,L)=P(X
L1...X
LMX
Z1...X
ZNX
R1...X
RML
L1...L
LML
Z1...L
ZNL
R1...L
RM)
Consider the latent markov model of Fig. 3, the joint probability of X and L is approximate to be reduced to
P (L wherein
Zi| L
Zi-1) represent by state L
Zi-1To state L
ZiTransition probability, P (X
Zi| L
Zi) the expression output probability, promptly at state L
ZiFind X
ZiProbability.X
ZiBe the proper vector of extracting at this candidate feature point.Proper vector is included on every side and extracts gray-scale value and carry out principal component analysis (PCA) in the KxK zone, also comprises the geometric position of candidate feature point.
If known candidate face unique point, the task of recognition feature point mark these points exactly.Method makes P (X|L) maximum for seeking mark sequence L, promptly finds argmax
LP (X, L).This can find the solution by the method for dynamic programming (Dynamic Programming).Dynamic programming method for solving to latent markov model commonly used also is called the Viterbi method, that we adopt is Li, the article Image Classification by aTwo-dimensional Hidden Markov Model.IEEE Trans on SignalProcessing of Najmi and Gray, Vol.48, No.2, the Viterbi method in 2000.This method has a detailed description in article, does not repeat them here.Optimal L also can be found the solution by exhaustive method.
Embodiment two
Present embodiment utilizes condition random field (Conditional Random Field) statistical model that human face characteristic point is marked, and sets up a faceform that following unique point is arranged:
Along sweep trace 1: in the eye, in the middle of eye and the nose, in the nose, in the middle of nose and the mouth, cheek;
Along in 2: two of the sweep traces, nose top, in the nose, mouth top, in the mouth, mouth bottom, chin;
Along sweep trace 3: in the eye, in the middle of eye and the nose, in the nose, in the middle of nose and the mouth, cheek;
In addition, also have a dummy status to represent not belong to above any unique point.
Along three scan-line directions, respectively choose most probable 7 candidate feature points, set up condition random field (Conditional Random Field) statistical model as shown in Figure 4.In this model, represent the stochastic variable that observes, L with X
LiDeng the corresponding state of expression.The probability of y is P (y|x) under the condition of given x, and optimum mark sequences y * makes P (y|x) maximization, i.e. y
*=argmax
yP (y|x).
Based on condition random field (Conditional Random Field) model, can represent like this
Wherein (y x) is potential energy function (Potential Function) to Ψ
It is defined as follows:
F wherein
l 1And f
l 2Be fundamental function, θ
l 1And θ
l 2Be parameter, represent a figure who comprises set of node and arc collection, and (j k) have arc connected node y in the ∈ E presentation graphs
jAnd y
kf
l 1And f
l 2Comprise the geometric position information of image characteristic point and the image feature information around the image characteristic point.Image feature information can comprise gray scale, color and gradient etc.Optimum y* finds the solution the method that can use dynamic programming (Dynamic Programming).Dynamic programming method for solving commonly used also is called the Viterbi method, that we adopt is Li, the article ImageClassification by a Two-dimensional Hidden Markov Model.IEEETrans on Signal Processing of Najmi and Gray, Vol.48, No.2, the Viterbi method in 2000.This method has a detailed description in article, does not repeat them here.
After obtaining human face characteristic point according to above step, meticulousr human face characteristic point can obtain by near the method for Local Search these points, and perhaps the method by the predetermined cell sampling obtains.
The present invention can also have other embodiment, and the technical scheme that equal replacement of all employings or equivalent transformation form all drops within the claimed scope of the utility model.