Patent ID: 11922724
Assignee: HONG FU JIN PRECISION INDUSTRY (WUHAN) CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 16:
17. A non-transitory storage medium having stored thereon instructions that, when executed by a processor of an electronic device, cause the electronic device to perform a face recognition method, the face recognition method comprising:
extracting images of sample faces from a predetermined face sample library;
performing feature point detection on each of the images of sample faces to obtain multiple face feature points;
obtaining multiple mask images, wherein each of the multiple mask images corresponds to one type of mask;
selecting a first face feature point, a second face feature point, a third face feature point, and a fourth face feature point from the multiple face feature points, defining a distance between the first face feature point and the second face feature point as a mask image height, and defining a distance between the third face feature point and the fourth face feature point as a mask image width;
adjusting a size of each of the multiple mask images according to the mask image height and the mask image width;
fusing each of multiple adjusted mask images with the face sample image to obtain a plurality of face mask images;
saving the plurality of face mask images to the predetermined face sample library; and
training a face recognition model based on the predetermined face sample library for face recognition.