Patent Document ID: 7787664
Application ID: 11392455
Patent Status: 1

Claim One:
1. A method for producing a composite photo by replacing a face in a first digital image with a face from a second digital image comprising: a. automatically detecting one or more faces in the first digital image; b. identifying at least one target face from the detected faces that needs to be replaced; c. automatically detecting one or more faces in the second digital image; d. identifying at least one source face from the second image detected faces for replacing the target face; e. automatically locating facial features in both the first and second digital images; f. using the located facial features from the target and source faces to perform facial geometry correction using facial features located on the target face and the source face to produce a geometrically corrected source face, and perform appearance correction on the geometrically corrected source face under a plurality of automatically determined parameters to produce a corrected source face; g. replacing the target face with the corrected source face and blending the corrected source face into the first digital image by: i. producing a source face mask for the corrected source face; ii. producing an eroded source face mask; iii. replacing pixels in the target face with pixels in the corrected source face based on the eroded source face mask; and iv. blending the corrected source face into the first image around the boundary pixels indicated by the eroded source face mask; and h. producing the composite photo from the corrected source face image.