Patent ID: 11908236
Assignee: BIGO TECHNOLOGY PTE. LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method for detecting illumination of a face image, comprising:
acquiring a face image to be detected and a three-dimensional face mesh template;
acquiring a reconstructed face mesh model by deforming the three-dimensional face mesh template based on the face image;
determining, based on deformation positions, in the reconstructed face mesh model, of key feature points in the three-dimensional face mesh template, brightness of feature points, corresponding to the key feature points, in the face image; and
determining illumination information of the face image based on a corresponding relationship between predetermined brightness of the key feature points and illumination thereof, and the brightness of the feature points, corresponding to the key feature points, in the face image, wherein the corresponding relationship between predetermined brightness of the key feature points and illumination is acquired by training with history face images of which illumination information has been determined, and brightness of feature points, corresponding to the key feature points in the three-dimensional face mesh template, in the history face images,
wherein prior to acquiring the face image to be detected and the three-dimensional face mesh template, the method further comprises:
acquiring history face images and the three-dimensional face mesh template, and determining history illumination information of the history face images;
acquiring reconstructed history face mesh models by deforming the three-dimensional face mesh template based on the history face images;
determining, based on deformation positions, in the reconstructed history face mesh models, of the key feature points in the three-dimensional face mesh template, brightness of feature points, corresponding to the key feature points, in the history face images; and
determining the corresponding relationship between the predetermined brightness of the key feature points and the illumination thereof based on the history illumination information of the history face images and the brightness of the feature points, corresponding to the key feature points, in the history face images,
wherein determining the corresponding relationship between the predetermined brightness of the key feature points and the illumination thereof based on the history illumination information of the history face images and the brightness of the feature points, corresponding to the key feature points, in the history face images comprises:
for each history face image, determining a corresponding relationship between initial brightness of the key feature points and the illumination thereof based on the history illumination information of the history face image and the brightness of the feature points, corresponding to the key feature points, in the history face image; and
acquiring the corresponding relationship between the predetermined brightness of the key feature points and the illumination thereof by processing the corresponding relationships between the initial brightness of the key feature points and the illumination thereof, corresponding to each of the history face images, using a least square method.