CPC G06T 5/005 (2013.01) [G06T 5/002 (2013.01); G06T 5/20 (2013.01); G06T 7/90 (2017.01); G06V 10/56 (2022.01); G06V 40/162 (2022.01); G06V 40/165 (2022.01); G06V 40/171 (2022.01); G06T 2207/30201 (2013.01)] | 19 Claims |
1. A face image processing method, comprising:
obtaining face key points and a face deflection angle in a face image;
determining a submalar triangle center in the face image according to the face key points and the face deflection angle;
determining a submalar triangle region in the face image according to the face key points and the submalar triangle center; and
performing color filling on the submalar triangle region,
wherein the performing color filling on the submalar triangle region comprises:
determining a first reference point in the face image;
determining a vector that points from the submalar triangle center to the first reference point as a first reference vector;
determining a second target pixel corresponding to each pixel in the submalar triangle region according to the first reference vector, wherein direction of a vector that points from the second target pixel to its corresponding pixel is the same as that of the first reference vector; and
updating a pixel value of each pixel to a pixel value of the second target pixel corresponding to the pixel.
|