SYSTEM AND METHOD FOR POSE-ANGLE ESTIMATION
FIELD OF THE INVENTION The present invention relates to the field of image analysis.
BACKGROUND OF THE INVENTION Head pose is an important visual cue that enhances the ability of vision systems to process facial images. Head pose includes three angular components: yaw, pitch, and roll.
Yaw refers to the angle at which a head is turned to the right or left about a vertical axis. Pitch refers to the angle at which a head is pointed up or down about a lateral axis. Roll refers to the angle at which a head is tilted to the right or left about an axis perpendicular to the frontal plane.
Yaw and pitch are referred to as out-of-plane rotations because the direction in which the face points changes with respect to the frontal plane. By contrast, roll is referred to as an in-plane rotation because the direction in which the face points does not change with respect to the frontal plane.
Estimating head pose from photographs, video sequences, and other images is a highly complex task since it implicitly requires finding a face at an arbitrary pose angle. Several approaches for estimating head pose have been developed. These fall into two principal categories: model-based techniques and appearance-based techniques.
Model-based techniques typically recover an individual's 3-D head shape from an image and then use a 3-D model to estimate the head's orientation. An exemplary model-based system is disclosed in "Head Pose Estimation from One Image Using a Generic Model," Proceedings IEEE International Conference on Automatic Face and Gesture Recognition, 1998, by Shimizu et al., which is hereby incorporated by reference. In the disclosed system, edge curves (e.g., the contours of eyes, lips, and eyebrows) are first defined for the 3-D model. Next, an input image is searched for curves corresponding to those
defined in the model. After establishing a correspondence between the edge curves in the model and the input image, the head pose is estimated by iteratively adjusting the 3-D model through a variety of pose angles and determining the adjustment that exhibits the closest curve fit to the input image. The pose angle that exhibits the closest curve fit is determined to be the pose angle of the input image.
But such model-based approaches suffer from several drawbacks. First, the computational complexity of model-based approaches is very high and beyond the capabilities of many personal computers.
Second, a single 3-D generic face model does not account for variations in head shape or facial expression. Thus, such models yield poor performance when applied to a wide variety of faces.
Third, model-based system performance is typically proportional to input image resolution and requires image resolutions on the order of 128 by 128 pixels for satisfactory performance. As the input-image resolution decreases, performance degrades.
In contrast to model-based techniques, appearance-based techniques typically compare a two-dimensional subject with a set of two-dimensional model images. A distance metric is used to determine the distance between the subject image and each of the model images. The closest model image is used to determine the pose angle of the subject image.
But appearance-based techniques also suffer from significant drawbacks. In particular, the computational complexity of appearance-based methods depends on the number of model images used. If a large number of model images are used, then the system may not be able to perform the comparison in real time.
One appearance-based system that attempts to address this problem is disclosed in U.S. Patent No. 6,144,755 to Niyogi et al., which is hereby incorporated by reference. Niyogi employs a tree-structured vector quantization technique to organize a training set of facial
images. Each of the images in the training set is stored as a leaf of the tree. When an input image is received, the tree is traversed to determine the closest image in the training set. The pose angle of the closest image is output as the pose angle of the input image.
One disadvantage of this system, however, is that it requires a large number of training images to be stored in memory throughout system operation. The storage requirements for these training images may exceed the amount of high-speed random-access memory found in many modem personal computers.
Furthermore, the output pose angles in this system are restricted to the available pose-angle values of the training-set images. Thus, this system will not exhibit adequate accuracy, within 5 to 10 degrees for many applications, unless a very large set of training images is stored.
Another appearance-based pose-angle estimation method is disclosed in "Support Vector Regression and Classification Based Multi-view Face Detection and Recognition," Proceedings IEEE International Conference on Automatic Face and Gesture Recognition, 2000, by Li et al., which is hereby incorporated by reference. In this technique, Principal Component Analysis (PCA) is first used to reduce the dimensionality of the input image. Then, a Support Vector Regression (SVR) module trained a priori estimates the head-pose angle.
But the estimation accuracy of this technique depends on the number of support vectors (SVs) employed, which can be a large portion of the training-set images. For instance, a 10,000-image training set requires, in this method, at least 1,500 SVs. Therefore, the SVR module requires a large memory to estimate pose with an acceptable margin of error. Moreover, the large number of SVs inflates the computation time required, making real-time implementation difficult.
Another appearance-based pose-angle estimation method is described in "Ensemble SVM Regression Based Multi-View Face Detection System," Microsoft Technical Report
MSR-TR-2001-09, January 18, 2001, by Yan et al, which is hereby incorporated by reference. This system uses wavelet transforms to extract frontal, half-profile, and profile features of an input image and produces an image for each feature. Next, the feature images are provided to three support- vector classifiers. The output of these classifiers is provided to an ensemble SVR module that yields a pose angle. But since this system uses a support vector technique, it suffers from the same problems as the Li system above and cannot be easily implemented as a real-time system.
Therefore, a need remains for a rapid, robust, and cost-effective method to determine head pose. Such a system should preferably have low processing and memory requirements even when operating in real time.
SUMMARY OF THE INVENTION A system and method are disclosed for determining the pose angle of an object in an input image. In a preferred embodiment, the present system comprises a pose estimator that includes a prototype projector, a regression estimator, and an angle calculator.
The prototype projector reduces the input image dimensionality by projecting the input image onto a Self-Organizing Map (SOM) neural network. The resulting projections are preferably provided to the regression estimator which maps them to a pattern that uniquely corresponds to the object's pose angle.
The angle calculator preferably comprises a curve fitter and an error analyzer. The curve fitter estimates the pose angle from the mapping pattern. The error analyzer produces a confidence signal representing the likelihood that the input image is a face at the calculated pose angle.
In a preferred embodiment, the SOM neural network is synthesized by a first network trainer in an unsupervised mode using a set of training images. The training preferably produces a plurality of object prototypes corresponding to different poses in the training images.
In a preferred embodiment, the regression estimator is implemented as a neural network synthesized by a second network trainer in a supervised mode using a set of training images with known pose angles. The regression estimator is preferably trained using an error back-propagation technique, in which the regression estimator is supplied with both projection vectors generated by the SOM neural network from the framing images and desired output for the regression estimator calculated using the known pose angles.
In a preferred embodiment, the present system and method may exist independently or be integrated with one or more object detection and/or recognition systems.
In one aspect, the present invention is directed to a system for determining the pose angle of an object, comprising a prototype projector adapted to receive an input image and generate a projection vector, a regression estimator adapted to receive the projection vector and output a mapping vector, and a pose-angle calculator adapted to receive the mapping vector and output an estimated pose angle.
In another aspect of the present invention, the object is a head.
In another aspect of the present invention, the system further comprises a face- confidence calculator adapted to receive the mapping vector and the estimated pose angle and to calculate a face-confidence value.
In another aspect of the present invention, the prototype projector comprises a first neural network and a projector.
In another aspect of the present invention, the first neural network is a SOM neural network comprising a plurality of object prototypes representative of object appearance in all possible pose angles.
In another aspect of the present invention, the set of object prototypes is generated during a one-time network synthesis using a set of framing images.
In another aspect of the present invention, the projecting is performed by calculating a Euclidean-based distance metric between the input image and the set of object prototypes.
In another aspect of the present invention, the regression estimator comprises a second neural network.
In another aspect of the present invention, the second neural network is a regression network comprising a plurality of input nodes and output nodes.
In another aspect of the present invention, the regression estimator is trained by projecting training images onto a first neural network and training the regression estimator to associate resulting image projections with calculated output patterns unique to input pose angle.
In another aspect of the present invention, the angle calculator comprises a curve fitter.
In another aspect of the present invention, the angle calculator comprises an error analyzer.
In another aspect, the present invention is directed to a method for determining the pose angle of an object, comprising run-time operation that includes projecting an object input image onto the set of prototypes to obtain input image projections, applying the input projections to trained regression network to obtain a mapping pattern and, estimating the object pose angle from the mapping pattern and producing an output signal indicative of estimation confidence.
In another aspect of the present invention, the object is a head.
In another aspect, the method further comprising one-time synthesis that includes generating a set of prototypes representative of the object appearance in all possible pose
angles from a set of training images, projecting training input images onto the set of prototypes to obtain a plurality of projection metrics and, training a regression network to associate input projection with output pattern unique to input pose angle.
In another aspect, the present invention is directed to a system for determining the pose angle of an object in an input image in at least one dimension, comprising a first neural network trained in an unsupervised mode using a first plurality of fraining images to develop a plurality of weight vectors, each weight vector representing a plurality of the training images, a projector adapted to receive an input image and generate a projection vector comprising a plurality of calculated distances representing distances between the input image and the weight vectors, a second neural network trained in a supervised mode with a second plurality of training images, the second plurality of fraining images comprising objects at known pose angles, the second neural network comprising a plurality of neurons, each neuron tuned to a particular pose angle and adapted to receive the projection vector and output a value in accordance with a function that is even and monotonically decreasing for changes in the pose angle of the object from the pose angle to which each neuron is tuned, a curve fitter adapted to receive the values output by the neurons and estimate the pose angle of the object in at least one dimension and, an error calculator that generates a value representative of the error between the values output by the neurons and the calculated values for the function using the" estimated pose angle.
In another aspect of the present invention, the error value is used to detect the presence of an object.
In another aspect of the present invention, the object is a face.
In another aspect, the present invention is directed to a method for determining the pose angle o an object in an input image in at least one dimension, comprising training a first neural network in an unsupervised mode using a first plurality of fraining images to develop a plurality of weight vectors, each weight vector representing a plurality of the fraining images, projecting the input image onto the first neural network to generate a projection vector
comprising a plurality of calculated distances representing distances between the input image and the weight vectors, fraining a second neural network in a supervised mode with a second plurality of fraining images, the second plurality of training images comprising objects at known pose angles, the second neural network comprising a plurality of neurons, each neuron tuned to a particular pose angle, processing the projection vector in the second neural network in accordance with a function that is even and monotonically decreasing for changes in the pose angle of the object from the pose angle to which each neuron is tuned to generate a plurality of output values, fitting the output values to a curve to estimate the pose angle of the object in at least one dimension and, calculating a value representative of the error between the output values and calculated values for the function using the estimated pose angle.
In another aspect of the present invention, the error value is used to detect the presence of an object.
In another aspect of the present invention, the object is a face.
BRIEF DESCRIPTION OF THE DRAWINGS The above summary of the invention will be better understood when considered in conjunction with the following detailed description and accompanying drawings, in which:
Fig. 1 shows a preferred embodiment of a system for pose-angle estimation;
Fig. 2 shows a preferred embodiment of the output of a pose estimator supplied with an input image that contains a face in half-profile;
Fig. 3 shows a preferred embodiment of the output of a pose estimator supplied with an input image that does not include a face;
Fig. 4 shows a preferred embodiment of a pose estimator;
Fig. 5 shows an alternate preferred embodiment of a pose estimator;
Fig. 6 is a flow diagram depicting a preferred embodiment for estimating the pose angle of a human face;
Fig. 7 shows a preferred embodiment of a system for estimating pose angle in three dimensions; and,
Fig. 8 shows an alternative preferred embodiment of a system for estimating pose angle in three dimensions.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS I. System Architecture
Fig. 1 shows a preferred embodiment of a system 100 suitable for estimating the pose angle of an object in an input image. For purposes of illustration, operation of system 100 will be primarily described in connection with estimating the pose angle of a particular class of objects, i.e., human heads. It should be recognized, however, that the present system and method may be more broadly applied to other objects, as described below.
In addition, for purposes of illustration, operation of system 100 will be primarily described in connection with estimating the pose angle of a human head in one dimension, i.e., yaw. It should be recognized, however, that the present system and method may be more broadly applied to calculate pose angle in one or more dimensions, as described, for example, in connection with Figs. 6-8 below.
In the following description, a particular convention is adopted to describe the pose angle of a human head in the yaw, pitch, and roll dimensions. As those skilled in the art will recognize, however, the present system and method may be implemented using any suitable convention for describing pose angle. The convention adopted herein is:
yaw: 0° when the face is frontal; positive (1° to 90°) when the subject rotates his or her head to the left; negative (-1° to -90°) when the subject rotates his or her head to the right.
pitch: 0° when the face is frontal; positive (1° to 90°) when the subject rotates his or her head upward; negative (-1° to -90°) when the subject rotates his or her head downward.
roll: 0° when the head is not tilted; positive (1° to 90°) when the subject tilts his or her head to the left; negative (-1° to -90°) when the subject tilts his or her head to the right.
Turning now to Fig. 1, system 100 preferably comprises an imaging sensor 102, a processor 103, a confrol memory 104, and a system output 105. In a preferred embodiment, processor 103 may comprise a general-purpose microprocessor such as those found in personal computers. Alternatively, processor 103 may comprise a digital signal processor (DSP) or an application specific integrated circuit (ASIC). Memory 104 may comprise any suitable storage medium or combination of media including, without hmitation, a magnetic or optical disc or other suitable storage means.
Imaging sensor 102 may comprise any suitable means for obtaining a digital signal representing a physical object such as a video camera or digital camera. Furthermore, imaging sensor 102 maybe adapted to capture images from any suitable source such as live subjects, photographs, printed images, or artists' renderings.
Confrol memory 104 preferably stores computer data and instructions used by processor 103 to implement two neural network trainers 106 and a pose estimator 107, as described below. It should be recognized that pose estimator 107 and network trainers 106 may alternatively be implemented in other ways, such as by use of dedicated electronic circuitry or other suitable combinations of hardware and software.
Before describing pose estimator 107 in more detail, a brief discussion of system operation is first provided. During operation, imaging sensor 102 captures an image of an object 101, such as a human face. Imaging sensor 102 forwards the image to pose estimator 107 which determines the pose angle of the face relative to some axis such as a vertical axis
in the field of view of imaging sensor 102. Pose estimator 107 also preferably calculates a confidence level that reflects, in this preferred embodiment, the likelihood that the input image represents a human face at the determined pose angle. The face confidence is preferably a numeric value (0 to 100) that yields a score in percent probability that the input image is a face at the calculated pose angle.
System output 105 maybe displayed for informational purposes. In most cases, however, system output 105 is also or alternatively supplied to another operating module, such as a pose compensation system adapted to recover a frontal image of the face from the input image.
Fig. 2 shows a preferred embodiment of the output of pose estimator 107 for an input image containing a half-profile face 200. As shown in Fig. 2, the output of pose estimator 107 preferably comprises two components: a measure of the face's yaw and a measure of the face confidence. A high face confidence value (as shown, e.g., in Fig. 2) supports the conclusion that there is a face at the determined output pose angle in the subject image.
By contrast, Fig. 3 shows a preferred embodiment of the output of pose estimator 107 for an input image 300 that does not contain a face. The low face-confidence value supports the conclusion that input image 300 does not contain a face and weakens reliance on the output pose angle.
A preferred embodiment for implementing pose estimator 107 is shown in Fig. 4. As shown in Fig. 4, pose estimator 107 preferably comprises a prototype projector 401, a regression estimator 450, and a pose-angle and face confidence calculator 470.
Prototype projector 401 preferably comprises a SOM neural network 402 ("SOM net 402") and a projector 404. SOM net 402 is preferably a rectangular neuron array comprising a plurality of prototype vectors 403.
Projector 404 is preferably adapted to receive an input image 400 and project it onto SOM net 402 to generate a projection vector comprising a plurality of calculated distances representing distances between the input image and prototype vectors 403. The purpose of this projection is to reduce the dimensionality from the input image size to the number of neurons in SOM net 402 array, as described below.
Pose estimator 107 further preferably comprises a regression estimator 450 that associates an input projection vector with a unique output pattern representing the pose angle of input image 400. In a preferred embodiment, regression estimator 450 is implemented as a multi-layer percepfron neural network. The neural network preferably comprises 14 input nodes 451, 9 hidden nodes 452, and 7 output nodes 453.
The number of prototype vectors 403 in SOM net 402 is preferably greater than the number of output neurons in regression estimator 450. In a preferred embodiment, SOM net 402 comprises 14 prototype vectors 403.
Each output neuron 453 is preferably tuned to a particular pose angle. In a preferred embodiment, neuron 1 corresponds to 04 = -90°; neuron 2 corresponds to cu = -45°, neuron 3 corresponds to α3 = -25°, neuron 4 corresponds to α4 = 0° (frontal view), neuron 5 corresponds to α5 = +25°, neuron 6 corresponds to α6 = +45°, and neuron 7 corresponds to c = +90°.
Each neuron k is preferably trained to produce a maximum output for input face images having a pose angle equal to its tuned angle ak. The neuron output values [Mapt, Map2,... Map7] are preferably correlated and compose a waveform defined by a mapping function F(a(x) - ak), where a(x) is the input image pose angle.
F(a(x) - is preferably selected to have high values when a(x) is near ak and low values when a(x) is far from ak. Consequently, this function is preferably chosen to be an even and monotonically decreasing function of the absolute value of the difference \a(x) - ak\.
In a preferred embodiment, the mapping function may be chosen as:
F(a(x) - k) = cos(a(x) - ak)
For this function, if, for example, an input image 400 comprising a face at a(x) = -30° is projected by prototype projector 401 and forwarded to regression estimator 450, output neurons 453 yield the following values:
• Mapt = cos(-30°- (-90°)) = +0.500
• Map2 = cos(-30°- (-45°)) = +0.966
• Map3 = cos(-30°- (-25°)) = +0.996
• Map4 = cos(-30°- (0°)) = +0.866
• Map5 = cos(-30°- (+25°)) = +0.574
• Map6 = cos(-30°- (+45°)) = +0.259
• Map7 = cos(-30°- (+90°)) = -0.500
As noted, pose estimator 107 also preferably comprises a pose-angle calculator 470. In a preferred embodiment, calculator 470 preferably comprises a curve fitter 471 and an error analyzer 472.
Curve fitter 471 is preferably adapted to estimate the pose angle (x) of an input image 400 from its mapping vector [Map!, Map2, ..., Mapj . In a preferred embodiment, curve fitter 471 implements a minimum square-error curve-fitting algorithm to minimize the following metric:
M
Square Error = T (Mapk-F(a'-ak))2
Here, α' is the estimated value of pose angle a(x) of input image 400. Curve fitter 471 preferably calculates the estimated pose angle α' that minimizes the square error between the actual output of regression estimator network 450 and the pre-specified waveform given by F(a(x) - α*).
In a preferred embodiment, when F(a(x) - ,) = cos(a(x) - ^), the optimum α' value that minimizes the square error maybe calculated as:
Error analyzer 472 is preferably adapted to calculate a face-confidence score that reflects the curve-fitting accuracy, i.e., how close the actual output vector [Map,, Map2, ..., MapM] is to the estimated F(a' - a^. In a preferred embodiment, the face-confidence output maybe calculated as:
Face Confidence = 100 x(l - y 'Square Error/ M)
Fig. 5 shows an alternative preferred embodiment of a pose estimator 507 suitable for estimating the pose angle of an object in an input image. As will be recognized, many components of pose estimator 507 correspond to components in pose estimator 107 described above, and like components in the two systems are identified by corresponding reference numerals that share the same last two digits.
Pose estimator 507 differs from pose estimator 107 in that it comprises a plurality of regression estimators 550 and a processor 575. Processor 575 is preferably adapted to combine the output of regression estimators 550 to produce a single mapping vector for input to calculator 570, as described below.
In a preferred embodiment, processor 575 may simply average the output of regression estimators 550 to produce the mapping vector. This simple algorithm requires rrunimal processing and thus, in many cases, may be implemented without affecting the ability of pose estimator 507 to operate in real time.
Alternatively, if sufficient processing capability is available or if real-time operation is not a concern, processor 575 may implement a more sophisticated algorithm to determine the mapping vector. For example, processor 575 may first calculate the average output of all the regression estimators 550 and the standard deviation from that average. A second average may then be calculated to produce the mapping vector that excludes the contribution of any regression estimator whose output is more than one standard deviation from the original average.
To avoid confusion, the following description concerning operation of the present system and method speaks primarily in terms of the preferred embodiment of Fig. 4 and a single regression estimator 450. It will be recognized, however, that the principles described below concerning the training and rurining of regression estimator 450 may also be applied to the plurality of regression estimators 550 in the preferred embodiment of Fig. 5.
II. System Operation
In a preferred embodiment, operation of the present system is divided into two phases: fraining and run-time. During fraining, neural networks 402, 450 are each trained by respective network trainers 106 using at least one relatively large set of fraining images, as described in more detail below. During run-time, the trained neural networks process input images and provide output to calculator 470 which determines the pose angles of subjects in the images. In the following description, a preferred embodiment for training each neural network 402, 450 is first described, and a preferred embodiment for run-time operation of system 100 is then described.
A. Training of the SOM Net and Regression Estimator(s)
In a preferred embodiment, fraining is conducted using several thousand grayscale training images containing human faces. The training set preferably includes images of 1,500 subjects of various races and genders, in different poses, under different lighting conditions, with different facial accessories (e.g., eyeglasses), forming a set of 30,000 fraining images.
As noted, for purposes of this description, it is assumed that pose estimator 107 is adapted to calculate only yaw pose angle. Accordingly, in this preferred embodiment, the faces in the training set preferably vary only with respect to yaw angle, and exhibit 0° pitch and roll angles.
Once network trainers 106 complete fraining of SOM net 402 and regression estimator 450, the fraining images may be discarded. Only the weights of the neural networks need to be stored. In this preferred embodiment, only 5,600 bytes for SOM net 402 and 820 bytes for regression estimator 450 are required to store the neural network weights. Therefore, the total run-time storage requirement of pose estimator 107 is less than 7 Kb.
In a preferred embodiment, before fraining begins, the fraining images are cropped to remove pixels outside of the face area. The cropped faces are then preferably rescaled to a canonical size, such as 20 pixels by 20 pixels.
In a preferred embodiment, the same set of training images may be used to train both neural networks 402, 450. As noted below, however, regression estimator 450 is preferably frained in a supervised mode and accordingly, in this preferred embodiment, the pose angle of each training image in the set must be known.
Alternatively, distinct sets of training images may be used to train SOM net 402 and regression estimator 450, respectively. In that case, the pose angles of the subjects in the first set of training images need not be known since SOM net 402 is preferably trained in an unsupervised mode, as described below.
1. Training of SOM Net
In a preferred embodiment, SOM net 402 is frained using a conventional shrinking Gaussian neighborhood function. To train SOM net 402, the canonical fraining images are presented to the network in an unsupervised mode; i.e., the SOM neurons are not forced to learn an associated output corresponding to a particular input. Rather, SOM net 402 organizes its neuron weight vectors 403 such that those neurons that are topographically close in the
array* up to a certain geometric distance, activate each other to learn something from the same input image. This results in local relaxation of the weight vectors of neurons in this neighborhood, which in continued learning leads to global ordering.
Thus, the SOM fraining produces a similarity graph of input data. It converts the nonlinear statistical relationships between high dimensional (in this preferred embodiment, 20 * 20 = 400 dimensional) input data into simple geometric relationships of the SOM network's two-dimensional grid of neurons 403. Therefore, SOM net 402 compresses information while preserving the most important topological metric relationships of the primary data elements. Further information concerning the design and operation of SOM neural networks is disclosed in T. Kohonen, "Self-Organizing Maps," ISBN 3-540-62017-6, Springer-Verlag 2nd edition, 1997, which is hereby incorporated by reference.
As a result of training, each neuron in the SOM array has a weight vector 403 that represents a plurality of fraining images. In a preferred embodiment, each weight vector 403 has the same dimensionality as the canonical training images and can be regarded as a prototype for those training images that contributed most to the weight- vector formation during the training process.
2. Training of Regression Estimator
Regression estimator 450 is preferably frained in a supervised mode using an error back-propagation technique in which both the input and the desired output are presented to the network. In a preferred embodiment, fraining of regression estimator 450 may be conducted as follows:
1. Apply a canonical training image to prototype projector 401 after SOM net 402 has been fully frained as described above.
2. Allow prototype projector 401 to calculate a projection vector for the training image [Projection!, Projection2, Projection, ..., Projectionv], where V is the number of SOM network prototype vectors 403.
3. Calculate the desired output of output nodes 453 [Map,, Map2, ..., MapM], where M is the number of output nodes 453. The desired-output calculation is preferably performed using the mapping function F(a(x) - a.j), where a(x) is the known pose angle of the input training image and ak is the tuned angle associated with output neuron k.
4. Present the projection vector [Projection,, Projection^ Projection3, ..., Projection,,] to regression estimator input nodes 451 and the corresponding mapping vector [Map,, Map2, ..., MapM] to regression estimator output nodes 453.
5. Update the weights of regression estimator network 450 using an error back-propagation technique.
6. Repeat steps 1-5 for additional fraining images until the mean squared error between the actual output and desired output of regression estimator 450 is acceptable. An error of approximately 2-3% maybe considered acceptable for typical applications requiring pose- angle estimation of a human head.
B. Run-Time Operation
Once neural networks 402, 450 have been frained, the system is ready for run-time operation. Referring now to Fig. 6, a preferred embodiment of run-time operation is described.
As shown in Fig. 6, in step 601, an image 400 with an unknown pose angle is provided to prototype projector 401. In a preferred embodiment, image 400 is a cropped image that includes only a face or suspected face. In step 601, projector 404 scales input image 400 to match its dimensions to SOM prototype vectors 403. In a preferred embodiment, these dimensions may be 20 pixels by 20 pixels.
In step 602, prototype projector 401 projects the input image onto the SOM network grid of prototype vectors 403. In a preferred embodiment, projector 404 performs this step by calculating the Euclidean distance between the image and prototype vectors 403. Projector
404 then outputs the set of calculated distances as a projection vector [Projection,, Projection^ Projection3)... Projection/], where V is the number of SOM network prototype vectors 403. The projection operation reduces the dimensionality from its original dimensionality (e.g., 20 by 20 = 400) to V. As noted, in a preferred embodiment, V is 14.
In step 603, regression estimator 450 processes the projection vector to calculate an output mapping vector [Map,, Map2, ..., MapM]. In step 604, curve fitter 471 fits the output mapping vector onto the curve F(a(x) - ak) by minimizing the least square error. In step 605, curve fitter 471 calculates the estimated pose angle a(x). In step 606, error analyzer 472 calculates a face confidence value.
In step 607, pose estimator 107 checks the output-confidence value. A high output- confidence value implies that the scaled input image represents a canonical face pointing in the direction indicated by the output pose angle. By contrast, a low output-confidence value indicates that the pose-angle output is not reliable. If a high value is found, an output signal is provided in step 608 that corresponds to the calculated confidence and pose angle. If a low value is found, an output signal is provided in step 609 that corresponds to the low confidence value and the pose angle is preferably disregarded.
A low confidence value results when mapping vector [Map,, Map2, ..., MapM] does not fit uniformly in the target waveform F(a' - a . This is typically caused by one of two situations:
1. Input image 400 does not include a face.
2. Input image 400 includes a face but differs significantly from the images used to train SOM net 402 and regression estimator 450. For example, if the fraining images included only male subjects wearing glasses and exposed to indoor lighting, then the present system might generate inaccurate results when presented with an image that includes a female subject without glasses in direct sunlight.
Increasing the number of training set images while broadening the range of faces and image conditions can minimize or eliminate the second situation. Consequently, when the set of training images is adequate, the cause of a low confidence value will typically be that the input image does not include a face. Therefore, the face confidence output may be used to detect the presence of a face as well as to indicate the reliability of the estimated pose angle.
During run-time operation, pose estimator 107 of the preferred embodiment is able to determine the yaw pose angle of facial images not in the fraining set at the rate of 75 frames per second using a Pentium πi 800 MHZ workstation.
It should be noted that although in the description above it has been assumed that the prototype projector is provided with cropped images that include only the face area, the present system and method may also be employed with ordinary undipped images by preprocessing such images using suitable processing techniques.
For example, a sliding constant size window with the same dimension as SOM prototype vectors 403 may be used to scan an undipped input image at multiple scales and shifts, and apply the window content to pose estimator 107 as a canonical input image 400. The output (pose angle and face confidence) may be recorded, and the window location exhibiting the best face confidence may be assumed to contain a facial image.
III. Pose-Angle Estimation in Other Dimensions
Although the above discussion has focused on yaw estimation, the present system and method may alternatively be adapted to determine pose angle in another dimension such as pitch and roll by fraining neural networks 402, 450 with fraining images that comprise subjects exhibiting a variety of pose angles in the desired dimension. For example, to adapt system 100 for pitch estimation, neural networks 402, 450 are preferably frained with fraining images that comprise faces that vary only with respect to pitch angle; and exhibit 0° yaw and roll angles.
In addition, if desired, an integrated system for calculating the head pose of a subject in all three dimensions may be implemented. A preferred embodiment of such a three-dimensional pose- angle estimator is illustrated in Fig. 7.
As shown in Fig. 7, a system 700 for pose-angle estimation in three dimensions preferably comprises three pose estimators 707, one for each degree of freedom: yaw, pitch, and roll. As above, each pose estimator 707 preferably comprises two neural networks: a SOM network included in a prototype projector 701, and a regression estimator network 750. The output of respective regression estimators 750 is preferably provided to respective calculators 770, in accordance with the description above.
In a preferred embodiment, the neural networks of system 700 are each trained using a separate set of images that vary in only one degree of freedom. Once estimators 707 have been trained, an input image 400 comprising a subject with a head pose at any yaw, pitch, and roll may be presented to each estimator. The output of each estimator 707 preferably comprises a respective pose angle and confidence value for its dimension.
An alternative embodiment of a three-dimensional estimator is shown in Fig. 8. As shown in Fig. 8, a system 800 for pose-angle estimation in three dimensions preferably comprises a shared prototype projector 801, three regression estimators 850 for yaw, pitch, and roll, and three calculators 870. The output of prototype projector 801 is preferably presented to each regression estimator 850.
In this preferred embodiment, a single fraining set may be used that includes subjects whose pose varies in all three degrees of freedom. When training regression estimators 450, the desired outputs for each estimator are calculated for each fraining image using a respective known pose angle in each of the three dimensions. For example, if a framing image has a yaw angle of -50°, a pitch angle of -10°, and a roll angle of 0°, the pose angle used for error back- propagation fraining for yaw regression estimator 850y is preferably set to -50°. Likewise, the pose angles for pitch and roll regression estimators 850p, 850r are preferably set to -10° and 0°, respectively.
It should be recognized that although the discussion above focuses on pose-angle estimation of human faces, the system and method of the present invention may be apphed to determine the pose angle of other objects. For example, with proper fraining images, the system and method described above may be used to estimate the angular orientation of cars, ships, airplanes, and other objects, both animate and manimate.
It should also be recognized that the present system and method advantageously do not depend on color or motion cues for determining pose angle.
While the invention has been described in conjunction with specific embodiments, it is evident that numerous alternatives, modifications, and variations will be apparent to those persons skilled in the art in light of the foregoing description.