US 12,327,299 B2
Facial expression image processing method and apparatus, and electronic device
Shaohui Lyu, Beijing (CN); Hui Yang, Beijing (CN); and Guangyao Ni, Beijing (CN)
Assigned to BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD., Beijing (CN)
Appl. No. 17/426,840
Filed by BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD., Beijing (CN)
PCT Filed Dec. 27, 2019, PCT No. PCT/CN2019/129140
§ 371(c)(1), (2) Date Jul. 29, 2021,
PCT Pub. No. WO2020/155984, PCT Pub. Date Aug. 6, 2020.
Claims priority of application No. 201910101335.5 (CN), filed on Jan. 31, 2019.
Prior Publication US 2022/0207917 A1, Jun. 30, 2022
Int. Cl. G06T 11/00 (2006.01); G06T 3/40 (2006.01); G06V 10/70 (2022.01); G06V 40/16 (2022.01)
CPC G06T 11/00 (2013.01) [G06T 3/40 (2013.01); G06V 10/70 (2022.01); G06V 40/161 (2022.01); G06V 40/168 (2022.01); G06V 40/174 (2022.01)] 20 Claims
OG exemplary drawing
 
1. A computer-implemented method for generating image effects, comprising:
acquiring a first image, the first image comprising a facial image;
recognizing a facial expression of the facial image;
performing, in response to recognizing the facial expression as a first facial expression, a first processing on the facial image to acquire a first facial image, wherein the performing the first processing on the facial image to acquire a first facial image comprises:
computing a position of a pixel in the facial image based on segmenting the facial image from the first image and enlarging the segmented facial image,
assigning a color value to the pixel in the segmented and enlarged facial image based at least in part on a color value of the pixel in the facial image, and
generating a new facial image as the first facial image based on the segmented and enlarged facial image with assigned color values; and
superposing the first facial image on the facial image to generate a first image effect.