US 12,456,241 B2
Image processing method and apparatus, computer device, computer-readable storage medium, and computer program product
Keke He, Shenzhen (CN); Junwei Zhu, Shenzhen (CN); Xinyi Zhang, Shenzhen (CN); Ying Tai, Shenzhen (CN); and Chengjie Wang, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by Tencent Technology (Shenzhen) Company Limited, Shenzhen (CN)
Filed on Nov. 9, 2022, as Appl. No. 17/984,110.
Application 17/984,110 is a continuation of application No. PCT/CN2022/111774, filed on Aug. 11, 2022.
Claims priority of application No. 202210334052.7 (CN), filed on Mar. 30, 2022.
Prior Publication US 2023/0316607 A1, Oct. 5, 2023
Int. Cl. G06T 11/60 (2006.01); G06V 40/16 (2022.01)
CPC G06T 11/60 (2013.01) [G06V 40/161 (2022.01); G06V 40/168 (2022.01)] 12 Claims
OG exemplary drawing
 
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.