| 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 |

|
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.
|