referring to fig1 , there is illustrated a computer system 10 for implementing the present invention . the computer system 10 includes a microprocessor - based unit 12 for receiving and processing software programs and for performing other well known processing functions . the software programs are contained on a computer useable medium 14 , typically a compact disk , and are input into the microprocessor based unit 12 via the compact disk player 16 electronically connected to the microprocessor - based unit 12 . as an alternate to using the compact disk 14 , programs could also be contained in an internet server 18 and input into the microprocessor - based unit 12 via an internet connection 20 . a camera 22 is electronically connected to the microprocessor - based unit 12 to capture the 2 - d images of a person &# 39 ; s face . a display 24 is electronically connected to the microprocessor - based unit 12 for displaying the images and user related information associated with the software . a keyboard 26 is connected to the microprocessor based unit 12 for allowing a user to input information to the software . a mouse 28 is also connected to the microprocessor based unit 12 for selecting items on the display 24 or for entering 2 - d position information to the software , as is well known in the art . as an alternate to using the mouse 28 , a digital pen 30 and a digital pad 32 may be used for selecting items on the display 24 and entering position information to the software . the output of the computer system is either stored on a hard disk 34 connected to the microprocessor unit 12 , or uploaded to the internet server 18 via the internet connection 20 . alternatively , the output of the computer system can be stored on another computer useable medium 14 , typically a compact disk , via a compact disk writer 36 . the below - described steps of the present invention are implemented on the computer system 10 . referring to fig2 and 3 , there are illustrated the ten steps of the present invention which are first succinctly outlined and later described in detail . the first five steps are the initialization steps of the invention . briefly stated , the first five steps are as follows : ( a ) selecting or placing salient features on the person &# 39 ; s face ( step 100 ); ( b ) calculating the calibration parameter of the camera ( step 110 ); ( c ) acquiring a plurality of images of the person &# 39 ; s face using the camera ( step 120 ); ( d ) calculating the 3 - d positions of the salient features ( step 130 ); and ( e ) determining the surface normals and motion planes for the salient features ( step 140 ). the second five steps are the tracking steps of the invention . briefly stated , the second five steps are as follows : ( f ) acquiring a chronologically ordered sequence of 2 - d images of the person &# 39 ; s face in action ( step 150 ); ( g ) locking onto the salient features ( step 160 ); ( h ) tracking the global and local motion of the face ( step 170 ); ( i ) determining tracking failure ( step 180 ); and ( j ) storing or transmitting the global and local motion values ( step 190 ). a . selecting or placing features on the person &# 39 ; s face for motion tracking ( step 100 ) referring to fig3 and 4 , in the first step 100 , salient features are selected or placed on the person &# 39 ; s face for tracking the global and local motion of the face . salient features that can be selected for tracking the global motion are the hairline , the corners of the eyes , the nostrils , and contours of the ears . salient features that can be selected for tracking the local motion are the eyebrows , eyelids , pupils , and the lips . methods have been proposed in the prior art for using the aforementioned salient features to track the global and local motion of the face . in a preferred embodiment of the present invention , salient features are designed and placed on the face rather than selected from what is naturally available on the face . it is important to note that placing salient features on the face allows for faster and more reliable motion tracking under adverse conditions for tracking , such as variations in illumination , poor video quality , and partial occlusion of the features . referring the fig4 , in a first preferred embodiment of the invention , circular markers are placed on a head - set that is worn by the person . the head - set may comprise a strap 206 for the skull , a strap 207 for the chin , and a strap 208 for the eyebrows . to achieve rotation invariance , two concentric circles are used to create the markers ; one having twice the diameter of the other one , and the small one placed on top of the larger one . to achieve the highest contrast , the circles are painted in black and white . thus , in the preferred embodiment , two types of markers are used : black - on - white 213 and white - on - black 214 markers . those skilled in the art understand that other markers may be used , including and not limited to fluorescent dyes and contrasting paints . referring the fig5 , in a second preferred embodiment of the invention , circular markers are placed directly on the person &# 39 ; s face . markers are placed on the following ten locations on the person &# 39 ; s face for tracking the global motion of the face ; henceforth they are referred to as the global markers : right - ear - base 251 , left - ear - base 252 , right - temple 253 , left - temple 254 , right - outer - forehead 255 , left - outer - forehead 256 , right - central - forehead 257 , left - central - forehead 258 , node - base 259 , and nose - tip 260 . markers are placed on the following six locations on the person &# 39 ; s face for tracking the local motion of the face , henceforth they are referred to as the local markers : right - lip - corner 261 , left - lip - corner 262 , upper - lip - center 263 , lower - lip - center 264 , right - central - eyebrow 265 , and left - central - eyebrow 266 . b . calculating the calibration parameter of the camera ( step 110 ) referring to fig6 a and 6 b , in the second step 110 , a perspective image of a target object is captured with the camera with the target object being placed at approximately the same distance from the camera as the person &# 39 ; s face . the method of the present invention uses the perspective image of the target object to calculate a camera parameter that is used in the subsequent steps , hereinafter referred to as the e parameter . it is instructive to note at this point that the e parameter has a non - negative value and it is a measure of the amount of perspective deformation caused by the camera . a zero value indicates no perspective deformation and the larger the value of the e parameter the more the perspective deformation caused by the camera . still referring to fig6 a and 6 b , in a preferred embodiment of the invention , a square - shaped object 211 is employed as the target object and the value of the e parameter of the camera is calculated as follows : first , the four corners of the quadrilateral 212 are either automatically detected or manually marked by a user on the image 213 of the object captured by the camera . let ( x n , y n ), n = 1 , 2 , 3 , 4 , represent 2 - d the coordinates of the four corners of the object expressed in units of pixels with respect to the center 214 of the image 213 . letting ( x n , y n , z n ), n = 1 , 2 , 3 , 4 , represent the corresponding 3 - d coordinates of the corners of the object in 3 - d in units of meters with respect to the location 215 of the camera , the relationship between the 2 - d and 3 - d coordinates are mathematically expressed as follows : x n = x n z n ⁢ fd , y n = y n y n ⁢ fd where f denotes the focal length of camera in meters , and d denotes the meter to pixel conversion factor . for the purpose of present invention , it is necessary to find only the value of the product fd . in the present invention , we refer to the inverse of this product as the e parameter , hence in mathematical terms we also take advantage of the fact that the target object is square shaped and planar , hence letting αi denote the 3 - d vector from ( x 1 , y 1 , z 1 ) to ( x 2 , y 2 , z 2 ) and αj denote the 3 - d vector from ( x 1 , y 1 , z 1 ) to ( x 4 , y 4 , z 4 ), where i and j are orthonormal vectors and α is the size of the square , we have the following mathematical expressions for the 3 - d positions of the corners of the square object : ( x 2 , y 2 , z 2 )=( x 1 , y 1 , z 1 )+ αi , ( x 3 , y 3 , z 3 )=( x 1 , y 1 , z 1 )+ αi + αj , ( x 4 , y 4 , z 4 )=( x 1 , y 1 , z 1 )+ αj . it is well known to anyone having knowledge in the field of 3 - d geometry that the pair of 3 - d orthonormal vectors ( i , j ) are specified uniquely with 3 real numbers . thus , on the right hand side of the above equation set there is a total of 7 unknown real numbers defining the square object : 3 in ( i , j ), 3 in ( x 1 , y 1 , z 1 ), and the size of the square α . hence , including the e parameter , the following set of equations has a total of 8 unknown real numbers on the right hand side , and 8 measured quantities , namely ( x n , y n ), n = 1 , 2 , 3 , 4 , on the left hand side , resulting in a unique solution for the unknown real numbers in terms of the measured quantities . it is well known to anyone knowledgeable in the field of algebra how to obtain the value of the e parameter from the above equation set given only the measured quantities ( x n , y n ), n = 1 , 2 , 3 , 4 . c . acquiring a plurality of images of a person &# 39 ; s face using the camera ( step 120 ) referring to fig2 , the method of acquiring a plurality of images of a person &# 39 ; s face using the camera comprises the steps of ( 1 ) acquiring neutral images of the face ( step 121 ); and ( 2 ) acquiring action images of the face ( step 122 ). in the following , a detailed description of these steps is given . c1 . acquiring neutral images of the face ( step 121 ) referring to fig2 and 7 , in the third step 120 , a plurality of 2 - d images of the person &# 39 ; s face in the same neutral state are captured with the camera from different directions . the neutral state for the face means that all face muscles are relaxed , eyes are normally open , mouth is closed and lips are in contact . these images are subsequently used to obtain the neutral 3 - d positions of the salient features of the face , hence , hereinafter they are referred to as the neutral images . the camera directions to capture neutral images are selected so that the majority of salient features are visible in all images . the face is not required to be at the same distance from the camera in all the neutral images . still referring to fig7 , in a preferred embodiment of the present invention , markers are placed on the person &# 39 ; s face as described in step 100 , and fifteen camera directions selected for obtaining the neutral images . in order to obtain the neutral images , the camera remains fixed and the person rotates his / her head to realize the following fifteen different directions : front 221 , forehead 222 , chin 223 , angled - right 224 , angled - right - tilted - down 225 , angled - right - tilted - up 226 , angled - left 227 , angled - left - tilted - down 228 , angled - left - tilted - up 229 , full - right - profile 230 , full - right - profile - tilted - down 231 , full - right - profile - tilted - up 232 , full - left - profile 233 , full - left - profile - tilted - down 234 , and full - left - profile - tilted - up 235 . c2 . acquiring action images of the face ( step 122 ) referring to fig2 and 8 , in the third step 120 , a plurality of 2 - d images of the person &# 39 ; s face in action states are captured with the camera from different directions . the action states for the face include faces with a smiling mouth , a yawning mouth , raised eyebrows , etc . these images are subsequently used to obtain the 3 - d position of the local salient features when the face is in action states , hence , hereinafter they are referred to as the action images . the camera directions to capture the action images are selected so that the majority of salient features are visible in all images . the face is not required to be at the same distance from the camera in all the action images . still referring to fig8 , in a preferred embodiment of the present invention , markers are placed on the person &# 39 ; s face as described in step 100 and five facial action states and two camera directions for each action are selected . the facial action states are as follows : smiling mouth , yawning mouth , kissing mouth , raised eyebrows , and squeezed eyebrows . the camera directions are front and right . in order to obtain the action images , the camera remains fixed and the person rotates his / her head while his / her face assumes an action state to capture the following ten different images : front - yawning - mouth 241 , right - angled - yawning - mouth 242 , front - smiling - mouth 243 , right - angled - smiling - mouth 244 , front - kissing - mouth 245 , right - angled - kissing - mouth 246 , front - raised - eyebrows 247 , right - angled - raised - eyebrows 248 , front - squeezed - eyebrows - 249 , right - angled - squeezed - eyebrows 250 . d . calculating the neutral 3 - d positions of the salient features ( step 130 ) referring to fig2 , the method calculating the neutral 3 - d positions of the salient features comprises the steps of ( 1 ) locating the global and local salient features in the neutral and action images ( step 131 ); ( 2 ) calculating the 3 - d positions of the global and local salient features for the neutral face ( step 132 ); and ( 3 ) calculating the 3 - d positions of the local salient features for the action faces ( step 133 ). in the following , a detailed description of these steps is given . d1 . locating the global and local salient features in the neutral and action images ( step 131 ) the salient features are automatically or manually located on the acquired images . it is important to note that not all of the salient features may be visible in all neutral and action images and some salient features may not be in their neutral position in some action images . thus , in the present invention , the location of only the visible salient features and salient features that are in their neutral position are automatically or manually located in each neutral and action image . in a preferred embodiment of the invention , markers that are placed on the face are used as the salient features as described in step 100 . these markers are manually located in the neutral images that are indicated with an x in the table in fig9 , and are manually located in action images that are indicated with an x in fig1 . the markers are assumed as invisible in those neutral images that are not indicated with an x in the table in fig9 . the markers are not in their neutral position in those action images that are not indicated with an x in the table in fig1 . in operation , the computer program prompts the user to manually locate only the visible markers and markers that are in their neutral position in each image . d2 . calculating the 3 - d positions of the global and local salient features for the neutral face ( step 132 ) given the 2 - d locations of the salient features in the neutral images where they are visible , and the value of the e parameter of the camera obtained in step 110 , the 3 - d positions of the salient features of the person &# 39 ; s face are calculated using a modified version of the method in “ shape and motion from image streams under orthography : a factorization method ” by carlo tomasi and takeo kanade , international journal of computer vision , vol . 9 , no . 2 , pp . 137 – 154 , 1992 . in a preferred embodiment of the present invention , global and local markers placed on the person &# 39 ; s face as described in step 100 are used as the salient features . in the following , first , a general mathematical analysis of 2 - d image projections of 3 - d marker positions is given . next , the method of “ shape and motion from image streams under orthography ” is reviewed . then , the proposed modification to the method of “ factorization of shape and motion ” is presented . without loss of generality , assume that the coordinate axes of the camera system are the unit vectors î =( 1 , 0 , 0 ), ĵ =( 0 , 1 , 0 ), and { circumflex over ( k )}=( 0 , 0 , 1 ). hence , the image plane passes at ( 0 , 0 ,− f ) and is perpendicular to { circumflex over ( k )}. let n denote the number of global markers and p n , n = 1 , . . . , n , denote the coordinates of the global markers with respect to the origin ( 0 , 0 , 0 ) of the camera system . likewise , let m denote the number of local markers and q n , n = 1 , . . . , m , denote the coordinates of the local markers with respect to the origin ( 0 , 0 , 0 ) of the camera system . clearly , as the person &# 39 ; s face is moved , the coordinates , of all the markers are changed . it is therefore more appropriate to use a local coordinate system for the face to represent the coordinates of the markers . let the unit vectors ĩ , { tilde over ( j )}, and { tilde over ( k )} denote the coordinate axes for an arbitrary local coordinate system for the face . the origin c 0 of the local coordinate system is defined to be the centroid of the markers and is given by c 0 = 1 n + m ⁢ ( ∑ n = 1 n ⁢ p n + ∑ n = 1 m ⁢ q n ) . furthermore , let a n , n = 1 , . . . , n , denote the coordinates of the global markers and let b n , n = 1 , . . . , m , denote the coordinates of the local markers with respect to the origin of the local coordinate system . thus , as the person &# 39 ; s face is moved , the origin of the local coordinate system is changed but the local coordinates of the markers always remain fixed . in order to relate the global coordinates p n , n = 1 , . . . , n , and q n , n = 1 , . . . , m , to the local coordinates a n , n = 1 , . . . , n , and b n , n = 1 , . . . , m , define the unit vectors î = i =( ĩ x ,{ tilde over ( j )} x ,{ tilde over ( k )} x ), ĵ =( ĩ y ,{ tilde over ( j )} y ,{ tilde over ( k )} y ), and { circumflex over ( k )}=( ĩ z ,{ tilde over ( j )} z ,{ tilde over ( k )} z ), where the subscripts x , y , and z , denote the coordinates of the respective vectors along the axes î , ĵ , and { circumflex over ( k )} of the global coordinate system . then , the relationship between the global coordinates and the local coordinates of the feature points is given by p n , y = c 0 , y + a n · ĵ , q n , y = c 0 , y + b n · ĵ and p n , z = c 0 , z + a n ·{ circumflex over ( k )}, q n , z = c 0 , z + b n ·{ circumflex over ( k )} where · denotes the inner product of two vectors . finally , the 2 - d coordinates of the feature points projected on the image plane are expressed as p n , x = 1 e ⁢ c 0 , x + a n · i ^ c 0 , z + a n · k ^ , ⁢ q n , x = 1 e ⁢ c 0 , x + b n · i ^ c 0 , z + b n · k ^ ⁢ ⁢ and p n , y = 1 e ⁢ c 0 , y + a n · j ^ c 0 , z + a n · k ^ , ⁢ q n , y = 1 e ⁢ c 0 , y + b n · j ^ c 0 , z + b n · k ^ , where the quantities on the left hand side are in units of pixels while the quantities of the right hand side , except the e parameter and the unit vectors , are in units of meters . the above equations can be rewritten with all quantities in units of pixels as follows : p n , x = c 0 , x + s n · i ^ λ + es n · k ^ , ⁢ q n , x = c 0 , x + l n · i ^ λ + el n · k ^ ⁢ ⁢ and p n , y = c 0 , y + s n · j ^ λ + es n · k ^ , ⁢ q n , y = c 0 , y + l n · j ^ λ + el n · k ^ c 0 , x = c 0 , x ew , c 0 , y = c 0 , y ew , λ = c 0 , z w , s n = a n ew , ⁢ and ⁢ ⁢ l n = b n ew , where w is some constant in units of meters that will be defined shortly . it is now time to write the above equations for all neutral images . suppose the number of neutral images is f , then the general equations for 2 - d projections of markers are p n , x f = c 0 , x f + s n · i ^ f λ f + es n · k ^ f , ⁢ q n , x f = c 0 , x f + l n · i ^ f λ f + el n · k ^ f ⁢ ⁢ and p n , y f = c 0 , y f + s n · j ^ f λ f + es n · k ^ f , ⁢ q n , y f = c 0 , y f + l n · j ^ f λ f + el n · k ^ f , where f = 1 , . . . , f , denotes the image number . note that all quantities in the above equations vary with the image number , except for the local coordinates of the markers and of course the e parameter . the parameter w has the same value for all f = 1 , . . . , f , otherwise its value is arbitrary . the method of “ shape and motion from image streams under orthography ” assumes a special form of 2 - d projection , namely , the orthographic projection . in orthographic projection , it is assumed that c 0 , z is the same for all images , w = c 0 , z , and w & gt ;& gt ; 1 . thus , the above general equations reduce to the following form in the case of orthographic projections : p f n , x = c f 0 , x + s n · î f , q f n , x = c f 0 , x + b n · î f and p f n , y = c f 0 , y + s n · î f , q f n , y = c f 0 , y + b n · ĵ f . the quantities on the left hand side are measured quantities while the quantities on the right hand side are unknown quantities . the method of “ factorization of shape and motion ” solves the above equations for the 3 - d local coordinates s n and l n of the global and local markers , respectively , the orientation vectors î f and ĵ f , and the 2 - d position ( c f 0 , x , c f 0 , y ) of the centroid of the markers in all images in terms of the 2 - d projected positions ( p f n , x , p f n , y ) and ( q f n , x , q f n , y ) of the global and local markers , respectively , in all images . in the following , a modification to the method of “ shape and motion from image streams under orthography ” is presented in order to solve the general 2 - d projection equations given above for the 3 - d local coordinates s n and l n of the markers , the orientation vectors î f and ĵ f , the 2 - d position ( c f 0 , x , c f 0 , y ) of the centroid of the markers , and the distance ratio λ f in all images in terms of the 2 - d projected positions ( p f n , x , p f n , y ) and ( q f n , x , q f n , y ) of the markers in all images . note that the third orientation vector { circumflex over ( k )} f is uniquely defined by the first two orientation vectors î f and ĵ f simply as where × denotes the vector outer product . the proposed modification method is an iterative procedure whose steps are as given below : 1 . use the method of “ shape and motion from image streams under orthography ” that employs the orthographic projection equations to calculate s n for n = 1 , . . . , n , l n for n == 1 , . . . , m , î f , ĵ f and ( c f 0 , x , c f 0 , y ) for f = 1 , . . . , f , given the 2 - d measurements ( p f n , x , p f n , y ), ( q f n , x , q f n , y ) and the visibility information of the markers . let { circumflex over ( k )} f = î f × ĵ f . 2 . calculate λ f for f = 1 , . . . , f , using the general projection equations as 3 . modify the 2 - d measurements ( p f n , x , p f n , y ), n = 1 , . . . , n , and ( q f n , x , q f n , y ), n = 1 , . . . , m , for f = 1 , . . . , f , using the calculated values in steps 1 and 2 as p f n , x ← p f n , x ( λ f + es n ·{ circumflex over ( k )} f ), q f n , x ← q f n , x ( λ f + el n ·{ circumflex over ( k )} f ) and p f n , y ← p f n , y ( λ f + es n ·{ circumflex over ( k )} f ), q f n , y ← q f n , y ( λ f + el n ·{ circumflex over ( k )} f ). 4 . repeat steps 1 , 2 , and 3 until a predetermined number of iterations has been reached , or the following average measurement of matching error goes below a predetermined threshold , where the summation is only over the visible markers in each image , the quantity v denotes the total number of visible markers in all images , and ( p f n , x , p f n , y ) an ( q f n , x , q f n , y ) are the original 2 - d measurements . in a preferred embodiment of the invention , the number of iterations is selected to be 50 and the threshold is selected to be 1 pixel . the 3 - d positions s n , n = 1 , . . . , n , and l n , n = 1 , . . . , m , of the global and local markers are globally translated and rotated so that they correspond to a frontal - looking face . in a preferred embodiment of the invention , the 3 - d positions of the global markers right - ear - base 251 , left - ear - base 252 , nose - base 259 , and nose - tip 260 are used to globally translate and rotate the the 3 - d positions of the global and local markers so that they correspond to a frontal - looking face . let r 1 and r 2 denote the 3 - d positions of the right - ear - base 251 and left - ear - base 252 , respectively ; f denote the 3 - d position of the nose - base 259 ; and b denote the 3 - d position of the nose - tip 260 . then , the following procedure is used to globally translate the positions of the markers : 2 . subtract c from each s n and l n , i . e ., so that the center of the feature points is shifted to the mid - point of the right - ear - base 251 and the left - ear - base 252 . following the global translation of the markers , in a preferred embodiment of the invention , the following procedure is used to globally rotate the marker positions so that they correspond to a frontal - looking face : 2 . use the gram - schmidt orthonormalization procedure to convert the vectors u , v , and w into an orthonormal set of vectors . as a result , u simply will be normalized ; only the component of v that is perpendicular to u will be retained and subsequently normalized ; and only the component of w that is perpendicular to both u and the modified v will be retained and subsequently normalized . 3 . form the 3 × 3 rotation matrix t so that the columns of t consist of the orthonormalized vectors u , v , w , i . e ., 4 . finally , left - multiply each s n and l n with t , i . e ., d3 . calculating the 3 - d positions of the local salient features for the action faces ( step 133 ) given the 3 - d positions of the salient features obtained in step 132 , the 2 - d measurements of the salient features obtained in step 131 , and the value of the e parameter of the camera obtained in step 110 , the method of calculating the 3 - d positions of the local salient features for the action faces is disclosed in the following . in a preferred embodiment of the present invention , global and local markers placed on the person &# 39 ; s face as described in step 100 are used as the salient features . first , the position and orientation of the person &# 39 ; s face in the action images are calculated using the 3 - d positions s n of the global markers and the 2 - d measurements ( p f n , x , p f n , y ) of the global markers in the action images . then , the 3 - d positions l n ( i ) of the local markers in the action states are calculated using the position and orientation of the person &# 39 ; s face in the action images and the 2 - d measurements ( q f n , x , q f n , y ) of the local markers in the action images . it facilitates understanding to note that the 3 - d position of the face in an image f is described by the centroid ( c f 0 , x , c f 0 , y ) of the markers and the camera - distance - ratio λ f of the face in that image . likewise , the 3 - d orientation of the face in an image f is described by the vectors î f and ĵ f in that image . the 3 - d position and orientation parameters ( c f 0 , x , c f 0 , y ), λ f , î f and ĵ f in the action images are calculated using the following steps : 1 . use the motion - only - estimation method of “ factorization of shape and motion ” that employs the orthographic projection equations to calculate î f , ĵ f and ( c f 0 , x , c f 0 , y ) in the action images given the 2 - d measurements ( p f n , x , p f n , y ) and the visibility information of the global markers in the action images , and the 3 - d positions s n of the markers calculated in step 132 . let { circumflex over ( k )} f = î f × î f . 2 . calculate λ f using the general projection equations as 3 . modify the 2 - d measurements ( p f n , x , p f n , y ) for n = 1 , . . . , n , using the calculated values in step 1 and 2 as p f n , x ← p f n , x ( λ f + es n ·{ circumflex over ( k )} f ), and p f n , y ← p f n , y ( λ f + es n ·{ circumflex over ( k )} f ). 4 . repeat steps 1 , 2 , and 3 until a predetermined number of iterations has been reached , or the following average measurement of matching error for the image goes below a predetermined threshold , where the summation is only over the visible points in the image , the quantity u denotes the total number of visible points in the image , and ( p f n , x , p f n , y ) are the original 2 - d measurements . in a preferred embodiment of the invention , the number of iterations is selected to be 50 and the threshold is selected to be 1 pixel . the 3 - d positions l n of the local markers for the action faces are then calculated using the following steps : 1 . use the shape - only - estimation method of “ factorization of shape and motion ” that employs the orthographic projection equations to calculate the 3 - d positions l n ( i ) of the local markers in action state i given the position ( c f 0 , x , c f 0 , y ) and orientation î f , ĵ f of the face , the measurements ( q f n , x , q f n , y ), and the visibility information of the local markers in the 2 - d 10 images of the action state i . referring to fig8 , in a preferred embodiment of the invention , there are 5 action states where action state i = 1 corresponds to a yawning mouth 241 and 242 , action state i = 2 corresponds to a smiling mouth 243 and 244 , action state i = 3 corresponds to a kissing mouth 245 and 246 , action state i = 4 corresponds to raised eyebrows 247 and 248 , and action state i = 5 corresponds to squeezed eyebrows 249 and 250 . 2 . modify the 2 - d measurements ( q f n , x , q f n , y ) for n = 1 , . . . , m , and for each action state i , using the calculated values in step 1 as q f n , x ← q f n , x ( λ f + el n ( i ) ·{ circumflex over ( k )} f ), and q f n , y ← q f n , y ( λ f + el n ( i ) ·{ circumflex over ( k )} f ). 3 . repeat steps 1 and 2 until a predetermined number of iterations has been reached , or the following average measurement of matching error for the image goes below a predetermined threshold , where the summation is only over the visible points in the image , the quantity u denotes the total number of visible points in the image , and ( q f n , x , q f n , y ) are the original 2 - d measurements . in a preferred embodiment of the invention , the number of iterations is selected to be 50 and the threshold is selected to be 1 pixel . e . determining the surface normals and motion planes for the salient features ( step 140 ) referring to fig2 , in the fifth step , a surface normal is defined for each marker . the surface normals are used during the tracking process to determine if a marker is visible in a 2 - d image . the surface normal for a marker is defined to be the vector perpendicular to the surface of the face at the location of the marker . in a preferred embodiment of the invention , the vectors given in the table in fig1 are defined as the surface normals for the global markers . the surface normals for local markers are given in fig1 . it should be noted that the surface normals given in the tables in fig1 and 12 are not necessarily normalized . they can be normalized to so that they all have unit length . the normalized surface normals for the global and local markers are denoted by ω n for n = 1 , . . . , n , and ψ n for n = 1 , . . . , m , respectively . the surface normals for the markers are used later in step 170 to determine the visibilities of the markers in a 2 - d image . f . receiving a chronologically ordered sequence of 2 - d images of the person &# 39 ; s face in action ( step 150 ) referring to fig3 , in the sixth step 150 , a video of the face of the person in action is received . the 2 - d images of the video are processed to track the salient features on the face and to calculate the global and local motion of the face in the order they are received . g . locking onto the selected features on the person &# 39 ; s face ( step 160 ) referring to fig3 , in the seventh step 160 , a locking method is used to start tracking the salient features of the face . the locking method is used at the very beginning of the tracking process or whenever the tracking is lost , as described in step 190 . initial images of the video are used to lock the tracking process onto the salient features on the face . in a preferred embodiment of the invention , cross - like signs are displayed on top of the 2 - d image to be associated with the markers on the face . the locations of the signs are determined by projecting the 3 - d positions of the markers obtained in step 132 assuming a frontal orientation of the face . to achieve locking , the person looks directly at the camera so as to produce a frontal view positioned at the center of the image . the person moves his / her face back and forth and also rotates his / her face if necessary until all the markers on his / her face are positioned at approximately the same location as the associated signs on the display . the method of the present invention considers the locations of the cross - like signs as the predicted locations for the features and uses the method of step 173 to calculate the current motion in the 2 - d image . if the calculated motion corresponds to a frontal orientation at the center of the display , then the method of the present invention considers a lock onto the features has been achieved . h . tracking the 3 - d global and local motion of the face in each 2 - d image ( step 170 ) referring to fig4 , the method finding the 3 - d global and local motion of the face in each 2 - d image comprises the steps of ( 1 ) predicting the global motion ( step 171 ); ( 2 ) detecting the global salient features ( step 172 ); ( 3 ) estimating the global motion ( step 173 ); ( 4 ) predicting the local motion ( step 174 ); ( 5 ) detecting the local salient features ( step 175 ); and ( 6 ) estimating the local motion ( step 176 ). in the following , a detailed description of these steps is given . h1 . predicting the locations of global salient features ( step 171 ) the global motion of the face in a 2 - d image is defined to be the 3 - d orientation and position of the face in the 2 - d image . referring to fig4 , in the eighth step , the global motion of the face in a 2 - d image that is currently processed is predicted from the motion of the face in the previously processed 2 - d images . in a preferred embodiment of the invention , the calculated position and orientation of the face in the immediate previous 2 - d image is used as the prediction for the global motion in the current 2 - d image . thus , the predicted locations ({ tilde over ( p )} n , x ,{ tilde over ( p )} n , y ) for n = 1 , . . . , n , of the global markers in the current 2 - d image are calculated using p ~ n , x = c ~ 0 , x + s n · i ^ ~ λ ~ + es n · k ^ ~ , p ~ n , y = c ~ 0 , y + s n · j ^ ~ λ ~ + es n · k ^ ~ , ( c ~ 0 , x , c ~ 0 , y ) , λ ~ , ⁢ i ^ ~ ⁢ ⁢ and ⁢ ⁢ j ^ ~ denote the global motion parameters found in the previous 2 - d image , and the method of detecting the global markers in the current 2 - d image is comprised of the following steps : 1 . determine the visibility indices of the global markers : calculate the visibility index ω n for each global marker : it is important to note that the closer the value of the index ω n to 1 , the more visible is the global marker . 2 . design correlation filters for detecting the markers : it is important to note that the two concentric circles that form a global marker will appear like two concentric ellipses in the current 2 - d image . the minor axis of the ellipse will be in the direction of the vector ( i ^ ~ · ω n , j ^ ~ · ω n ) ,  k ^ ~ · ω n  ⁢ r ⁢ ⁢ σ n while the length of the major axis will be rσ n , where r is the diameter of the outer circle in units of pixel and σ n is given by thus , in order to detect global marker n in the current 2 - d image , a 2 - d correlation filter is designed that has the support given by the outer ellipse and having the value of 1 inside the inner ellipse and the value of 0 elsewhere . let the coefficients of the 2 - d correlation filter for the global marker n be given by c n ( x , y ). 3 . detect the global markers : if the visibility index ω n of global marker n is larger than a visibility threshold , then apply the correlation filter c n ( x , y ) designed in step 2 for the global marker n in a w × w square region centered at the predicted location ({ tilde over ( p )} n , x ,{ tilde over ( p )} n , y ) of the global marker n to obtain a correlation surface f n ( i , j ) for the global marker n : where the summation is over the support of the correlation filter c n ( x , y ) and i ( x , y ) denotes the intensity distribution of the 2 - d image with the center of the image being at ( 0 , 0 ). in a preferred embodiment of the invention , the visibility threshold is selected as 0 . 25 and the size w of the square region is selected as 20 pixels . find the location ( i n * , j n * ) where the correlation surface f n ( i , j ) achieves its peak value . then , the image location ( x n , y n ) = ( i n * + p ~ n , x , j n * + p ~ n , y ) is assigned as the detected location of the global marker n in the current 2 - d image . let q n denote this peak value . 4 . eliminate superfluous and multiple detected locations : if the distance between any two detected locations is less than a distance threshold , but larger than zero , then discard the detected location that has a smaller peak value . on the other hand , if the exact same location is detected for more than one global marker , then assign the detected location only to the global marker that has the largest visibility index . in a preferred embodiment of the invention , the distance threshold is selected to be 1 pixel . all global markers that are not assigned a valid detected location are assumed invisible for the purpose of estimating the global motion that is done in the following step 173 . suppose , at the end of step 172 , there are l valid detected locations assigned to l global markers . the 3 - d orientation î and ĵ , and the 3 - d position ( c 0 , x , c 0 , y ), λ , of the face in the current 2 - d image are then calculated from these l detected locations using the following steps : 1 . use the motion - only - estimation method of “ factorization of shape and motion ” that employs the orthographic projection equations to calculate î , ĵ and ( c 0 , x , c 0 , y ) given the 2 - d locations ( x n , y n ) and the visibility information of the global markers in the action images , and the 3 - d positions s n of the markers calculated in step 132 . let { circumflex over ( k )}= î × ĵ . 2 . calculate λ using the general projection equations as 3 . modify the 2 - d locations ( x n , y n ) using the calculated values in step 1 and 2 as 4 . repeat steps 1 , 2 , and 3 until a predetermined number of iterations has been reached , or the following average measurement of matching error goes below a predetermined threshold , where the summation is only over the visible global markers . in a preferred embodiment of the invention , the number of iterations is selected to be 50 and the threshold is selected to be 1 pixel . h4 . predicting the locations of local salient features ( step 174 ) the local motion of the face in a 2 - d image is defined through an action vector that represents the actions of the face in the 2 - d image . in a preferred embodiment of the invention there are a total of 5 actions , hence the action vector has 5 components : a my being the amount of yawning - mouth action , a ms being the amount of smiling - mouth action , a mk being the amount of kissing - mouth action , a er being the amount of raised - eyebrows action , and a es being the amount of squeezed - eyebrows action . for example , an action vector a =( 0 . 5 , 0 . 0 , 0 . 0 , 1 . 0 , 0 . 0 ) represents a half - yawning mouth and fully raised eyebrows . as mentioned in step 133 , there are 5 action states . it facilitates understanding to give examples of action vectors for the action states . action state i = 1 that corresponds to a yawning mouth has action vector a =( 1 . 0 , 0 . 0 , 0 . 0 , 0 . 0 , 0 . 0 ) while action state i = 5 that corresponds to squeezed eyebrows has action vector a =( 0 . 0 , 0 . 0 , 0 . 0 , 0 . 0 , 1 . 0 ). the neutral state of the face is represented by the action vector a =( 0 . 0 , 0 . 0 , 0 . 0 , 0 . 0 , 0 . 0 ). during the locking process explained in step 160 , the face is in the neutral state , hence the action vector is given by a =( 0 . 0 , 0 . 0 , 0 . 0 , 0 . 0 , 0 . 0 ). in any subsequent 2 - d image of the face , the action vector found for the previous image is used as the predicted action vector for the current image . let ã denote the predicted action vector for the current image . let { overscore ( l )} n =( l n ( 1 ) − l n , l n ( 2 ) − l n , l n ( 3 ) − l n , l n ( 4 ) − l n , l n ( 5 ) − l n ) denote the action displacement vector for local marker n . then , the predicted 3 - d positions { tilde over ( l )} n of the local markers in the current image are calculated as follows : finally , the predicted 2 - d locations ({ tilde over ( q )} n , x ,{ tilde over ( q )} n , y ) of the local markers in the current image are calculated using q ~ n , x = c ~ 0 , x + l ~ n · i ^ ~ λ ~ + e ⁢ l ~ n · k ^ ~ , ⁢ q ~ n , x = c ~ 0 , y + l ~ n · j ^ ~ λ ~ + e ⁢ l ~ n · k ^ ~ , where , ({ tilde over ( c )} 0 , x ,{ tilde over ( c )} 0 , y ), { tilde over ( λ )}, { tilde over ( î )} and { tilde over ( ĵ )} denote the global motion parameters found in the previous 2 - d image , and { tilde over ({ circumflex over ( k )}={ tilde over ( î )}×{ tilde over ( ĵ )}. the method of detecting the global markers in the current 2 - d image is comprised of the following steps : 1 . determine the visibility indices of the local markers : calculate the visibility index ψ n for each local marker : it is important to note that the closer the value of the index ψ n to 1 , the more visible is the local marker . 2 . design correlation filters for detecting the markers : it is important to note that the two concentric circles that form a local marker will appear like two concentric ellipses in the current 2 - d image . the minor axis of the ellipse will be in the direction of the vector ( i ^ ~ · ψ n , j ^ ~ · ψ n ) ,  k ^ ~ · ψ n  ⁢ r ⁢ ⁢ μ n while the length of the major axis will be rμ n , where r is the diameter of the outer circle in units of pixel and μ n is given by thus , in order to detect local marker n in the current 2 - d image , a 2 - d correlation filter is designed that has the support given by the outer ellipse and having the value of 0 inside the inner ellipse , the value of 1 in the outer ellipse , and the value of 0 elsewhere . let the coefficients of the 2 - d correlation filter for the local marker n be given by d n ( x , y ). 3 . detect the local markers : if the visibility index ψ n of local marker n is larger than a visibility threshold , then apply the correlation filter d n ( x , y ) designed in step 2 for local marker n in a w × w square region centered at the predicted location ({ tilde over ( q )} n , x ,{ tilde over ( q )} n , y ) of local marker n to obtain a correlation surface h n ( i , j ) for local marker n : where the summation is over the support of the correlation filter d n ( x , y ) and i ( x , y ) denotes the intensity distribution of the 2 - d image with the center of the image being at ( 0 , 0 ). in a preferred embodiment of the invention , the visibility threshold is selected as 0 . 25 and the size w of the square region is selected as 20 pixels . find the location ( i n * , j n * ) where the correlation surface h n ( i , j ) achieves its peak value . then , the image location ( u n , v n )=( i n * +{ tilde over ( q )} n , x , j n * +{ tilde over ( q )} n , y ) is assigned as the detected location of the global marker n in the current 2 - d image . let q n denote this peak value . 4 . eliminate superfluous and multiple detected locations : if the distance between any two detected locations is less than a distance threshold , but larger than zero , then discard the detected location that has a smaller peak value . on the other hand , if the exact same location is detected for more than one local marker , then assign the detected location only to the local marker that has the largest visibility index . in a preferred embodiment of the invention , the distance threshold is selected to be 1 pixel . all local markers that are not assigned a valid detected location are assumed invisible for the purpose of estimating the local motion that is done in the following step 176 . the local motion of the face is represented by an action vector as described in step 174 . in a first preferred embodiment of the invention , the action vector for the current image is calculated using the following steps : 1 . calculate the 2 - d displacements of the local markers : the 2 - d locations ( q n , x , q n , y ) of the local markers corresponding to the neutral face are calculated using the global motion found for the current image as : the 2 - d displacements ( d n , x , d n , y ) are then calculated as 2 . modify the 2 - d displacements so that they correspond to orthographic projection : 3 . calculate the 3 - d displacements of the local markers : the 3 - d displacements of the local markers are calculated from the 2 - d displacements of the local markers , the 2 - d motion planes of the local markers , and the global motion of the face in the current image . the 2 - d motion plane of a local marker passes from the neutral 3 - d position of the local marker and approximates the motion space of local marker with a plane . two basis vectors are used to define each motion plane . let b 1 , n and b 2 , n denote the basis vectors 1 and 2 for the local marker n . the basis vectors for the motion planes of the local markers are given in fig1 . the 3 - d displacements of the local markers are then calculated as follows . form the matrix m n for each local marker once the 3 - d moved positions of the markers are calculated they can be modified so as to satisfy the motion symmetries of the face . examples of motion symmetries of the face are as follows : the right and the left eyebrows move simultaneously and by the same amount , and the right and the left corners of the mouth move simultaneously and by the same amount . the calculated 3 - d displacements of the markers can be further modified to enforce motion dependencies of the face . an example of a motion dependency of the face is as follows : as the corners of the mouth move towards the center of the mouth , the centers of the top and bottom lips move forward . the calculated 3 - d displacements of the markers can be still further modified by filtering . the filtering of the calculated 3 - d displacements of the face smooth out the jitter in the calculated 3 - d positions that can be caused by errors in the detected 2 - d positions of the markers . 4 . finally , the action vector ( a 1 , . . . , a m ) for the current image is calculated by solving the following equation for ( a 1 , . . . , a m ) in the least - squares sense : [ u 1 ⋮ u m ] = [ l _ 1 ⋮ l _ m ] · [ a 1 ⋮ a m ] . in a second preferred embodiment of the invention , the action vector for the current image is calculated using the following steps : 1 . calculate the 2 - d locations ( q n , x , q n , y ) of the local markers corresponding to the neutral face using the global motion found for the current image as : still referring to fig5 and 9 , local marker n = 1 corresponds to right - lip - corner 261 , n = 2 corresponds to left - lip - corner 262 , n = 3 corresponds to upper - lip - center 263 , n = 4 corresponds to lower - lip - center 264 , n = 5 corresponds to right - central - eyebrow 265 , and n = 6 corresponds to left - central - eyebrow 266 . also calculate the 2 - d location ( p 9 , x , p 9 , y ) of the global marker n = 9 nose - base 259 using the global motion found for the current image as : where n is set to 9 for the global marker nose - base 259 . 2 . calculate the 2 - d locations ( q ( i ) n , x , q ( i ) n , y ) of the local markers corresponding to the action states of the face using the global motion found for the current image as : where i is the index of the facial action . still referring to fig8 , in a preferred embodiment of the invention , there are 5 action states where action state i = 1 corresponds to a yawning mouth 241 and 242 , action state i = 2 corresponds to a smiling mouth 243 and 244 , action state i = 3 corresponds to a kissing mouth 245 and 246 , action state i = 4 corresponds to raised eyebrows 247 and 248 , and action state i = 5 corresponds to squeezed eyebrows 249 and 250 . 3 . determine the fractional displacements f ( 1 ) , f ( 2 ) , and f ( 3 ) for yawning - mouth , smiling - mouth , and kissing mouth actions , respectively , as follows . the fractional displacement f ( 1 ) is determined based on the distance between the upper - lip - center 263 and lower - lip - center 264 in the yawning - mouth action state i = 1 of the face , and in the neutral state of the face , and the distance between the detected positions of those markers : the fractional displacement f ( 2 ) is determined based on the distance between the right - lip - corner 261 and left - lip - corner 262 in the smiling - mouth action state i = 2 of the face , and in the neutral state of the face , and the distance between the detected positions of those markers : finally , the fractional displacement f ( 3 ) is determined based on the distance between the right - lip - corner 261 and left - lip - corner 262 in the kissing - mouth action state i = 3 of the face , and in the neutral state of the face , and the distance between the detected positions of those markers : then , clip the values of the fractional displacements f ( 1 ) , f ( 2 ) , and f ( 3 ) to the range [ 0 , 1 ] and use the following method to determine the first three components of the action vector ( a 1 , . . . , a 5 ): if f ( 3 ) & gt ; f ( 2 ) and f ( 3 ) & gt ; f ( 1 ) then a 1 = 0 , a 2 = 0 , and a 3 = f ( 3 ) otherwise , if f ( 2 ) & gt ; f ( 3 ) and f ( 2 ) & gt ; f ( 1 ) then a 1 = 0 , a 2 = f ( 2 ) , and a 3 = 0 . otherwise , a 1 = f ( 1 ) , a 2 = 0 , and a 3 = 0 . 4 . determine the fractional displacements f ( 4 ) and f ( 5 ) for raised - eyebrows and squeezed - eyebrows , respectively , as follows . the fractional displacement f ( 4 ) is determined based on the distance between the local markers right - central - eyebrow 265 , left - central - eyebrow 266 , and the global marker nose - base 259 in the raised - eyebrows action state i = 4 of the face , and in the neutral state of the face , and the distance between the detected positions of those markers : the fractional displacement f ( 5 ) is determined based on the distance between the right - central - eyebrow 265 and left - central - eyebrow 266 in the squeezed - eyebrows action state i = 5 of the face , and in the neutral state of the face , and the distance between the detected positions of those markers : then , clip the values of the fractional displacements f ( 4 ) and f ( 5 ) to the range [ 0 , 1 ] and use the following method to determine the last two components of the action vector ( a 1 , . . . , a 5 ): if f ( 5 ) & gt ; f ( 4 ) then a 4 = 0 and a 5 = f ( 5 ) otherwise , a 4 = f ( 4 ) and a 5 = 0 . i . determining if there is a tracking failure ( step 180 ) if there is a large change in the global motion of the face in the current image as compared to the global motion of the face in the previous image , then it is concluded that there is a tracking failure . in a preferred embodiment of the invention , the following equation is used to calculate the change δ in the global motion in the current image with respect to the previous image : δ = ( ( c 0 , x f - c 0 , x f - 1 ) 2 + ( c 0 , y f - c 0 , y f - 1 ) 2 + ( λ f - λ f - 1 ) 2 / e 2 ) 1 2 + 100 · ( 1 -  i ^ f · i ^ f - 1  + 1 -  j ^ f · j ^ f - 1  + 1 -  k ^ f · k ^ f - 1  ) . in a preferred embodiment of the invention , if δ is greater than 50 then it is concluded that there is a motion failure . j . storing or transmitting global and local facial motion values ( step 190 ) the calculated global motion of the face is in terms of the 3 - d orientation vectors î f and ĵ f , the 2 - d centroid ( c f 0 , x , c f 0 , y ) of the face , and the camera - distance ratio λ f . the superscript f denotes the chronological order number for the motion values . the following equations are used to convert the calculated global motion parameters into a more direct representation that uses a 3 - d rotation matrix r f and a 3 - d position vector t f : r f = [ i ^ x f i ^ y f i ^ z f j ^ x f j ^ y f j ^ z f k ^ x f k ^ y f k ^ z f ] , ⁢ t f = [ c 0 , x f c 0 , y f ( λ f - 1 ) / e ] , where { circumflex over ( k )} f = î f × ĵ f , and the subscripts x , y , and z , denote the x -, y -, and z - components of a vector . thus , only the global motion parameters r f and t f are stored or transmitted to describe the global motion of the face . likewise , only the action vectors a f are stored or transmitted to describe the motion of the face .