CPC G06V 40/176 (2022.01) [G06F 18/214 (2023.01); G06N 3/08 (2013.01); G06V 10/454 (2022.01); G06V 10/751 (2022.01); G06V 10/764 (2022.01); G06V 10/82 (2022.01); G06V 40/171 (2022.01); G06V 40/172 (2022.01)] | 20 Claims |
1. An expression recognition method performed by an electronic device having one or more processors and memory, the method comprising:
obtaining an image that includes a face, wherein the face includes a plurality of facial action units, a displacement of each facial action unit from its default position indicating an extent of a facial expression associated with the facial action unit;
performing feature extraction on the image, to obtain global facial expression information corresponding to the face and local facial feature information corresponding to the face, wherein the local facial feature information indicates an extent of the displacement by a corresponding facial action unit in the face;
determining a global facial emotion probability value according to the global facial expression information;
determining a local facial feature expression probability value according to the local facial feature information of the corresponding facial action unit in the face; and
selecting, among a plurality of candidate facial emotions and a plurality of candidate facial expressions, a target facial emotion and a target facial expression corresponding to the target facial emotion for the face in the image according to the global facial emotion probability value and the local facial feature expression probability value.
|