| CPC G06T 11/60 (2013.01) [G06V 40/161 (2022.01); G06V 40/168 (2022.01)] | 12 Claims |

|
1. An image processing method performed by a computer device, the method comprising:
receiving a face swapping request, the face swapping request being used for requesting replacement of a face in an image with a target face;
acquiring an attribute parameter of the image, an attribute parameter of the target face, and a face feature of the target face, the attribute parameter of the image indicating a three-dimensional attribute of the face in the image and the face feature of the target face indicating a feature of the face in the image in a two-dimensional plane;
determining a target attribute parameter based on the attribute parameter of the image and the attribute parameter of the target face;
determining a target comprehensive feature based on the target attribute parameter and the face feature of the target face;
encoding the image to obtain an image encoding feature vector of the image;
migrating the target comprehensive feature to the image encoding feature vector of the image by (i) normalization of the target comprehensive feature and the image encoding feature vector of the image, respectively, and (ii) alignment of the normalized target comprehensive feature and the normalized image encoding feature vector of the image, to obtain a fusion encoding feature vector; and
decoding the fusion encoding feature vector to obtain the fusion face.
|