CPC G06V 40/45 (2022.01) [G06V 10/14 (2022.01); G06V 40/166 (2022.01); G06V 40/168 (2022.01); G06V 40/63 (2022.01)] | 20 Claims |
1. A face liveness detection method performed by an electronic device, the method comprising:
obtaining an initial face image of an object captured in natural light or under illumination of a plurality of light sources;
obtaining a face image set of the object, the face image set comprising N face images of the object captured according to N illumination directions, the N illumination directions corresponding to N light source positions, the N light source positions being not on a same straight line, and N being an integer greater than or equal to 3;
obtaining N difference images according to the initial face image and the N face images in the face image set, wherein each of the N difference images includes pixel value differences of the initial face image and a respective image in the face image set;
generating a normal map and an albedo map according to the N difference images and the N illumination directions, the normal map being an image formed based on normals corresponding to pixels, and the albedo map being an image formed based on albedos corresponding to the pixels; and
determining a face liveness detection result according to the N difference images, the normal map, and the albedo map, wherein the face liveness detection result indicates whether the object has a live face or not.
|