A method, device, storage medium and equipment for improving accuracy of expression recognition

By obtaining target face images containing faces, necks and shoulders, and combining posture information for expression recognition, the problem of relying on face images and ignoring posture information in the prior art is solved, and the accurate recognition and emotions of different subtle expressions are achieved. reflect.

CN114093010BActive Publication Date: 2024-10-01CHONGQING UNIV OF EDUCATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111508460.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2024-10-01
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

Existing expression recognition technology only relies on face images and ignores posture information, making it difficult to identify subtle expressions with different differences and low accuracy.

Method used

By obtaining the target face image containing the face, neck and shoulders, determining the upper body posture of the character, and combining the posture information to identify the facial area, using vector parameters of the face, neck and shoulder area to determine the head of the character. Neck and shoulder orientation, thereby assisting expression recognition.

Benefits of technology

It improves the accuracy of expression recognition, and can more accurately identify facial expressions with subtle differences, reflecting the characters' emotions and postures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114093010B_ABST
    Figure CN114093010B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, storage medium and equipment for improving the accuracy of facial recognition, the method comprising: obtaining a target facial image, wherein the target facial image contains images of the face, neck and shoulders of the same person; determining the upper body posture of the person according to the target facial image; and performing facial expression recognition on the facial area in combination with the upper body posture to determine the facial expression in the target facial image. In this way, the upper body posture of the person in the target facial image can be used to assist the facial area in performing facial expression recognition, so that facial expressions with subtle differences can be accurately recognized, effectively improving the accuracy of facial expression recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of face recognition technology, and more specifically, to an expression recognition method, device, storage medium and equipment for improving accuracy. Background Art

[0002] Facial expression recognition can help computers identify expressions that reflect human emotions and even thoughts, thereby accurately identifying human emotions and achieving high-quality human-computer interaction.

[0003] Current expression recognition methods usually only recognize images of the human face, but existing methods ignore posture information that can also reflect some human emotions, which is not conducive to recognizing expressions with subtle differences. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, apparatus, storage medium and device for improving the accuracy of expression recognition, so as to assist the expression recognition of the face through posture information, thereby improving the accuracy of expression recognition.

[0005] In order to achieve the above purpose, the embodiments of the present application are implemented in the following manner:

[0006] In a first aspect, an embodiment of the present application provides a method for improving the accuracy of facial expression recognition, comprising: obtaining a target facial image, wherein the target facial image contains images of the face, neck, and shoulders of the same person; determining the upper body posture of the person based on the target facial image; and performing facial expression recognition on the facial area in combination with the upper body posture to determine the facial expression in the target facial image.

[0007] In the embodiment of the present application, by acquiring the target face image (including the face, neck and shoulders of the same person), the upper body posture of the person is further determined, and then the facial expression recognition of the facial area is performed in combination with the upper body posture to determine the facial expression in the target face image. In this way, the upper body posture of the person in the target face image can be used to assist the facial area in the expression recognition, so that the facial expressions with subtle differences can be accurately recognized, effectively improving the accuracy of facial expression recognition.

[0008] In combination with the first aspect, in a first possible implementation method of the first aspect, the upper body posture of the person is determined according to the target facial image, including: determining a facial area, a neck area and a shoulder area from the target facial image; determining a first parameter for characterizing the direction of the person's head according to the facial area, determining a second parameter for characterizing the direction of the person's neck according to the neck area, and determining a third parameter for characterizing the direction of the person's shoulders according to the shoulder area, the first parameter, the second parameter and the third parameter are all vector directions; based on the first parameter, the second parameter and the third parameter, the upper body posture of the person is determined.

[0009] In this implementation, the face area, neck area and shoulder area are determined from the target face image, and a first parameter for characterizing the direction of the person's head is further determined based on the face area, a second parameter for characterizing the direction of the person's neck is determined based on the neck area, and a third parameter for characterizing the direction of the person's shoulders is determined based on the shoulder area, thereby determining the person's upper body posture. In this way, the face area, neck area and shoulder area can be used to identify the person's head direction, the person's neck direction, and the person's shoulder direction, respectively, so as to accurately determine the person's upper body posture, and these features can better reflect the person's emotions, such as sideways head tilt, looking back, looking up, lowering the head and their combinations, etc., combined with their facial expressions (especially the line of sight, eyes, and the shape of the corners of the mouth, etc.), which is more conducive to accurately identifying the person's true expression and emotions.

[0010] In combination with the first possible implementation method of the first aspect, in a second possible implementation method of the first aspect, a first parameter for characterizing the direction of a person's head is determined according to the facial area, including: determining the eyebrow key point, the midline of the nose bridge, the midpoint of the mandible, and the bilateral jaw lines from the facial area; determining the midpoint line based on the eyebrow key point and the midpoint of the mandible; if the directions of the nose bridge midline and the midpoint line are consistent, adjusting the direction of the midpoint line based on the bilateral jaw lines to determine the first parameter; if the directions of the nose bridge midline and the midpoint line are inconsistent, adjusting the direction of the midpoint line based on the nose bridge midline and the bilateral jaw lines to obtain the first parameter.

[0011] In this implementation, the key point of the center of the eyebrows, the midline of the bridge of the nose, the midpoint of the mandible, and the bilateral jaw lines are determined from the facial area; the midpoint line between the key point of the center of the eyebrows and the midpoint of the mandible is determined, and it is determined whether the direction of the midline of the bridge of the nose (i.e., the line along the center of the bridge of the nose) and the midpoint line are consistent. If they are consistent, it means that the character's head does not tilt or turn, so the direction of the midpoint line can be adjusted based on the bilateral jaw lines (the bilateral jaw lines can reflect whether the character raises or lowers his head), thereby determining the first parameter. If they are inconsistent, it means that the character's head tilts and / or turns, and the midline of the bridge of the nose and the bilateral jaw lines can be used to determine the character's head tilt angle and head turning angle, thereby adjusting the direction of the midpoint line. Based on this method, the first parameter (vector direction) can be accurately determined.

[0012] In combination with the first possible implementation method of the first aspect, in a third possible implementation method of the first aspect, a second parameter for characterizing the direction of a person's neck is determined based on the neck area, including: determining an edge contour of the neck area; based on a first line and a second line in the edge contour of the neck area, determining a midline of the neck as the second parameter, wherein the first line and the second line are both side edges of the neck.

[0013] In this implementation, the edge contour of the neck region is determined; the first line and the second line (the first line and the second line are both side lines of the neck) are used to determine the center line of the neck as the second parameter. The neck direction of a person mainly exists in the form of left and right deviations in the posture reflecting the person's emotions. Therefore, the neck direction can be simply determined quickly and accurately by the side line of the neck.

[0014] In combination with the first possible implementation method of the first aspect, in a fourth possible implementation method of the first aspect, a third parameter for characterizing the direction of the shoulders of a person is determined based on the shoulder area, including: determining a left shoulder point and a right shoulder point from the shoulder area; connecting the left shoulder point and the right shoulder point to determine a shoulder line as the third parameter.

[0015] In this implementation, the left shoulder point and the right shoulder point are determined from the shoulder area; the shoulder line is determined by connecting the left shoulder point and the right shoulder point as the third parameter. Since the shoulder posture has a limited role in reflecting the emotional posture of the person, it is mainly used to determine the body direction of the person (coordinated with the neck direction), and the basis of the person's body posture can be determined, thereby calibrating the head posture of the person, which is conducive to more accurately determining the upper body posture of the person.

[0016] In combination with the first possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the first parameter is a midpoint line, the second parameter is a neck midline, and the third parameter is a shoulder line, and based on the first parameter, the second parameter and the third parameter, the upper body posture of the character is determined, including: determining the body posture of the character based on the shoulder line and the neck midline; determining the head posture of the character based on the midpoint line; and determining an upper body posture used to characterize the upper body posture and head posture of the character according to the body posture and the head posture.

[0017] In this implementation, the body posture of the person can be determined based on the line connecting the two shoulders and the midline of the neck; the head posture of the person can be determined based on the line connecting the midpoints; and the upper body posture used to characterize the upper body posture and head posture of the person can be determined based on the body posture and the head posture. In this way, the body posture can be used to correct the head posture, and it can also assist the head posture to more perfectly express the upper body posture of the person, thereby playing a more significant role in the recognition of facial expressions.

[0018] In combination with the first aspect, or in combination with any possible implementation manner of the first to fifth aspects, in a sixth possible implementation manner of the first aspect, expression recognition is performed on the facial area in combination with the upper body posture to determine the facial expression in the target facial image, including: performing expression recognition on the target facial image to obtain an expression component; determining a posture component based on the upper body posture; and determining a facial expression reflecting the character's posture and facial demeanor based on the expression component and the posture component.

[0019] In this implementation, expression components can be obtained by performing expression recognition on the target face image; combined with the posture components determined based on the upper body posture, the facial expression reflecting the person's posture and facial expression can be further determined, so that expression recognition can take into account the emotional characteristics contained in the person's upper body posture, and combined with the recognition of facial expressions, it can distinguish different expressions with subtle differences, making expression recognition more accurate.

[0020] In a second aspect, an embodiment of the present application provides an expression recognition device with improved accuracy, comprising: an image acquisition unit, used to acquire a target facial image, wherein the target facial image contains images of the face, neck and shoulders of the same person; a posture recognition unit, used to determine the upper body posture of the person based on the target facial image; an expression recognition unit, used to perform expression recognition on the facial area in combination with the upper body posture, and determine the facial expression in the target facial image.

[0021] In a third aspect, an embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the expression recognition method for improving accuracy described in any one of the first aspect or possible implementation methods of the first aspect.

[0022] In a fourth aspect, an embodiment of the present application provides an electronic device comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, and when the program instructions are loaded and executed by the processor, the method for improving accuracy of expression recognition described in any one of the first aspect or the possible implementation methods of the first aspect is implemented.

[0023] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other unrelated drawings can be obtained based on these drawings without paying creative labor.

[0025] Figure 1 A flowchart of a method for improving accuracy of facial expression recognition provided in an embodiment of the present application.

[0026] Figure 2 A sub-flowchart of step S20 provided in an embodiment of the present application.

[0027] Figure 3 A schematic diagram of an expression recognition device with improved accuracy provided in an embodiment of the present application.

[0028] Figure 4 A structural block diagram of an electronic device provided in an embodiment of the present application.

[0029] Icons: 10 - expression recognition device; 11 - image acquisition unit; 12 - gesture recognition unit; 13 - expression recognition unit; 20 - electronic device; 21 - memory; 22 - communication module; 23 - bus; 24 - processor. DETAILED DESCRIPTION

[0030] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0031] See also Figure 1 , Figure 1A flowchart of a method for improving accuracy of facial expression recognition provided in an embodiment of the present application.

[0032] In this embodiment, the expression recognition method for improving accuracy can be executed by an electronic device, and the method includes step S10, step S20 and step S30.

[0033] In order to accurately recognize facial expressions, the embodiment of the present application combines the upper body posture of the person (the upper body posture can reflect part of the person's emotions and has a good effect on distinguishing different expressions with subtle differences) with the facial expression of the face area to accurately recognize the facial expression. Based on this, the electronic device can execute step S10.

[0034] Step S10: Acquire a target face image, wherein the target face image includes images of the face, neck and shoulders of the same person.

[0035] In this embodiment, the electronic device can obtain a target face image, which includes images of the face, neck, and shoulders of the same person. The target face image can be a target face image sent by the electronic device through another device, or an image taken by a camera connected to the electronic device as the target face image, which is not limited here.

[0036] After acquiring the target facial image, the electronic device may execute step S20.

[0037] Step S20: determining the upper body posture of the person according to the target face image.

[0038] In this embodiment, the electronic device can determine the upper body posture of the person based on the target face image.

[0039] See also Figure 2 , exemplarily, step S20 may include step S21, step S22 and step S23.

[0040] In this embodiment, in order to determine the upper body posture of the person, the electronic device may execute step S21.

[0041] Step S21: determining the face area, neck area and shoulder area from the target face image.

[0042] In this embodiment, the electronic device can determine the face area, neck area and shoulder area from the target face image. Here, the electronic device can use edge detection to detect the face area, neck area and shoulder area from the target face image. Since this technology (edge ​​detection technology has many applications in face detection, and the detection of neck area and shoulder area is very simple, it will not be described here) is very mature and is not the key method part improved in this solution, it will not be described here. Of course, in some other possible implementations, other methods can also be used to determine the face area, neck area and shoulder area, which is not limited here.

[0043] After determining the face area, the neck area, and the shoulder area, the electronic device may execute step S22.

[0044] Step S22: Determine a first parameter for characterizing the direction of the person's head based on the facial area, determine a second parameter for characterizing the direction of the person's neck based on the neck area, and determine a third parameter for characterizing the direction of the person's shoulders based on the shoulder area. The first parameter, the second parameter and the third parameter are all vector directions.

[0045] First, the electronic device can determine a first parameter for characterizing the direction of the person's head based on the facial area.

[0046] For example, the electronic device can determine the eyebrow key point, the nose bridge midline, the jaw midpoint, and the bilateral jaw lines from the face area. Then, the electronic device can determine the midpoint connection line based on the eyebrow key point and the jaw midpoint.

[0047] Since a person's head can be deflected up, down, left, right, and circumferentially (raising the head, lowering the head, tilting the head to the left or right towards the shoulder, turning the head to the left or right), as well as a combination of multiple actions, in order to accurately determine the first parameter that characterizes the direction of the person's head, the electronic device can first determine whether the directions of the midline of the nose bridge and the line connecting the midpoints are consistent, so as to distinguish different situations and handle them accordingly.

[0048] If the directions of the midline of the nose bridge and the line connecting the midpoints are consistent, it means that the person's head is not tilted or turned (the person may be looking up or down). Therefore, the bilateral jaw lines can be used to determine whether the person is looking up or down, and the direction of the line connecting the midpoints can be adjusted based on the bilateral jaw lines to determine the first parameter.

[0049] If the directions of the midline of the nose bridge and the line connecting the midpoints are inconsistent, it means that the person's head is tilted and / or turned. Then, the electronic device can determine the person's head tilt angle and head turning angle based on the midline of the nose bridge and the bilateral jaw lines, and use the head tilt angle and head turning angle to adjust the direction of the midpoint line to obtain the first parameter.

[0050] It should be noted that the first parameter in this embodiment can be defined as a vector direction to better describe the head direction.

[0051] By determining the key point of the center of the eyebrows, the midline of the bridge of the nose, the midpoint of the mandible, and the bilateral jaw lines from the facial area; determining the midpoint line between the key point of the center of the eyebrows and the midpoint of the mandible, and judging whether the directions of the midline of the bridge of the nose (i.e., the line along the center of the bridge of the nose) and the midpoint line are consistent. If consistent, it means that the person's head does not tilt or turn, so the direction of the midpoint line can be adjusted based on the bilateral jaw lines (the bilateral jaw lines can reflect whether the person raises or lowers his head), thereby determining the first parameter. If inconsistent, it means that the person's head tilts and / or turns, and the midline of the bridge of the nose and the bilateral jaw lines can be used to determine the person's head tilt angle and head turning angle, thereby adjusting the direction of the midpoint line. Based on this method, the first parameter can be accurately determined.

[0052] Secondly, the electronic device can determine a second parameter for characterizing the direction of the person's neck based on the neck area.

[0053] Exemplarily, the electronic device can determine the edge contour of the neck area (the neck area in the target facial image is not obstructed, for example, there is no obstruction by a turtleneck sweater, a scarf, etc., and the edge contour of the neck area has two side lines, namely a first line and a second line), and based on the first line and the second line in the edge contour of the neck area, determine the center line of the neck as the second parameter, wherein the first line and the second line are both side edges of the neck.

[0054] The neck direction of a person mainly exists in the form of left and right deviations in the postures reflecting the emotions of the person, so the neck direction can be simply determined quickly and accurately by the side line of the neck. Of course, the second parameter in this embodiment is also defined as a vector direction to better describe the neck direction. Since the neck direction is mainly expressed in the form of left and right deviations, the coordinates of the two axes of the second parameter in the coordinate system can be set to fixed values.

[0055] Then, the electronic device can determine a third parameter for characterizing the direction of the person's shoulders based on the shoulder area.

[0056] Exemplarily, the electronic device may determine a left shoulder point and a right shoulder point from the double-shoulder region, and then connect the left shoulder point and the right shoulder point to determine a double-shoulder line as the third parameter.

[0057] Since the role of shoulder posture is limited in reflecting the emotional posture of a person, it is mainly used to determine the body direction of a person (coordinated with the neck direction), which can determine the basis of the body posture of the person, thereby calibrating the head posture of the person, which is conducive to more accurately determining the upper body posture of the person. Of course, the third parameter in this embodiment is also defined as a vector direction, so as to better describe the shoulder direction. Since the shoulder direction is mainly expressed by the height of the left and right shoulders, the coordinates of the two axes of the third parameter in the coordinate system can be set to fixed values ​​(the two axes relatively fixed by the third parameter are the same as the two axes relatively fixed by the second parameter, and one axis is different).

[0058] After determining the first parameter, the second parameter and the third parameter, the electronic device may execute step S23.

[0059] Step S23: Determine the upper body posture of the character based on the first parameter, the second parameter and the third parameter.

[0060] In this embodiment, the electronic device can determine the upper body posture of the person using the first parameter, the second parameter and the third parameter.

[0061] By determining the face area, neck area and shoulder area from the target face image, further determining a first parameter for characterizing the direction of the person's head based on the face area, determining a second parameter for characterizing the direction of the person's neck based on the neck area, and determining a third parameter for characterizing the direction of the person's shoulders based on the shoulder area, the person's upper body posture is determined. In this way, the face area, neck area and shoulder area can be used to identify the person's head direction, neck direction and shoulder direction respectively, so as to accurately determine the person's upper body posture, and these features can better reflect the person's emotions, such as sideways head tilt, turning back, looking up, lowering the head and their combinations, etc., combined with their facial expressions (especially the line of sight, eyes, and the shape of the corners of the mouth, etc.), which is more conducive to accurately identifying the person's true expression and emotions.

[0062] Exemplarily, taking the first parameter as the midpoint line, the second parameter as the neck midline, and the third parameter as the shoulder line as an example, the electronic device can determine the body posture of the person based on the shoulder line and the neck midline. Then the electronic device can determine the head posture of the person based on the midpoint line. Since the shoulders and neck can be regarded as the base of the head, the body posture and the head posture are related to each other to a certain extent. Based on this, the electronic device can further determine the upper body posture used to characterize the upper body posture and head posture of the person according to the body posture and the head posture.

[0063] In this way, body posture can be used to correct head posture, and it can also assist head posture to more perfectly express the upper body posture of the character, thereby playing a more significant role in the recognition of facial expressions.

[0064] It should be noted that the method for determining the upper body posture of a person provided in the present embodiment is only an exemplary one. In some other possible implementations, other methods may be used for determination. For example, a model may be used to identify the upper body posture in the target face image. In the prior art, there are already models for recognizing the head posture of a person in a face image. On this basis, a new sub-model may be added to train a system for recognizing the body posture (mainly body posture based on the shoulder and neck directions) in a face image (including images of the face, neck, and shoulders). I will not go into details here.

[0065] After determining the upper body posture of the person, the electronic device may execute step S30.

[0066] Step S30: performing expression recognition on the facial area in combination with the upper body posture to determine the facial expression in the target facial image.

[0067] In this embodiment, the electronic device can perform expression recognition on the facial area in combination with the upper body posture to determine the facial expression in the target facial image.

[0068] Exemplarily, the electronic device can perform expression recognition on the target face image to obtain expression components. Since there are many ways of expression recognition, the method of performing expression recognition on the target face image here (mainly used to realize facial expression recognition) can adopt existing expression recognition methods, such as recognizing facial expressions through traditional image recognition methods to obtain expression components, or can realize expression recognition through deep learning to obtain corresponding expression components, which is not limited here. For example, this expression component can be a parameter that reveals the probability of facial expressions in the target face image in multiple expression categories.

[0069] Furthermore, the electronic device may also determine a posture component based on the upper body posture. The posture component may be a parameter that reveals the probability of the upper body posture in the target face image corresponding to multiple expression categories.

[0070] Then, the electronic device can determine the facial expression reflecting the posture and facial demeanor of the person based on the expression component and the posture component. Here, the electronic device can integrate the probability corresponding to the expression component and the posture component (and even consider the probability of the expression category corresponding to the combination of the two), so as to accurately determine the expression of the person.

[0071] By performing facial expression recognition on the target face image, the expression component can be obtained; combined with the posture component determined based on the upper body posture, the facial expression reflecting the person's posture and facial expression can be further determined, so that expression recognition can take into account the emotional characteristics contained in the person's upper body posture, and combined with the recognition of facial expressions, different expressions with subtle differences can be distinguished, making expression recognition more accurate.

[0072] See also Figure 3 , the embodiment of the present application provides an expression recognition device 10 with improved accuracy, comprising:

[0073] The image acquisition unit 11 is used to acquire a target face image, wherein the target face image includes images of the face, neck and shoulders of the same person.

[0074] The posture recognition unit 12 is used to determine the upper body posture of the person according to the target face image.

[0075] The expression recognition unit 13 is used to perform expression recognition on the facial area in combination with the upper body posture, and determine the facial expression in the target facial image.

[0076] In this embodiment, the posture recognition unit 12 is also used to determine the face area, neck area and shoulder area from the target face image; determine a first parameter for characterizing the direction of the person's head based on the face area, determine a second parameter for characterizing the direction of the person's neck based on the neck area, and determine a third parameter for characterizing the direction of the person's shoulders based on the shoulder area, and the first parameter, the second parameter and the third parameter are all vector directions; based on the first parameter, the second parameter and the third parameter, determine the person's upper body posture.

[0077] In this embodiment, the posture recognition unit 12 is also used to determine the eyebrow key point, the midline of the bridge of the nose, the midpoint of the mandible, and the bilateral jaw lines from the facial area; based on the eyebrow key point and the midpoint of the mandible, determine the midpoint line; if the directions of the midline of the bridge of the nose and the midpoint line are consistent, adjust the midpoint line based on the bilateral jaw lines to determine the first parameter; if the directions of the midline of the bridge of the nose and the midpoint line are inconsistent, adjust the direction of the midpoint line based on the midline of the bridge of the nose and the bilateral jaw lines to obtain the first parameter.

[0078] In this embodiment, the posture recognition unit 12 is also used to determine a second parameter for characterizing the direction of the neck of the person based on the neck area, including: determining the edge contour of the neck area; based on the first line and the second line in the edge contour of the neck area, determining the center line of the neck as the second parameter, wherein the first line and the second line are both side edges of the neck.

[0079] In this embodiment, the posture recognition unit 12 is further used to determine a left shoulder point and a right shoulder point from the double shoulder area; and connect the left shoulder point and the right shoulder point to determine a double shoulder line as the third parameter.

[0080] In this embodiment, the first parameter is the midpoint line, the second parameter is the neck midline, and the third parameter is the shoulder line. The posture recognition unit 12 is also used to determine the body posture of the character based on the shoulder line and the neck midline; determine the head posture of the character based on the midpoint line; and determine the upper body posture used to characterize the upper body posture and head posture of the character based on the body posture and the head posture.

[0081] In this embodiment, the expression recognition unit 13 is also used to perform expression recognition on the target facial image to obtain an expression component; determine a posture component based on the upper body posture; and determine a facial expression reflecting the character's posture and facial demeanor based on the expression component and the posture component.

[0082] See also Figure 4 , Figure 4 This is a structural block diagram of an electronic device 20 provided in an embodiment of the present application.

[0083] In this embodiment, the electronic device 20 may be a server, such as a cloud server, a server cluster, etc.; or may be a terminal, such as a personal computer, a smart phone, etc., which is not limited here.

[0084] Exemplarily, the electronic device 20 may include: a communication module 22 connected to the outside world through a network, one or more processors 24 for executing program instructions, a bus 23, and different forms of memory 21, such as a disk, ROM, or RAM, or any combination thereof. The memory 21, the communication module 22, and the processor 24 may be connected through the bus 23.

[0085] Exemplarily, programs are stored in the memory 21. The processor 24 can call and run these programs from the memory 21, so that the expression recognition method with improved accuracy can be implemented by running the programs.

[0086] An embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the expression recognition method for improving accuracy in the present embodiment.

[0087] In summary, the embodiments of the present application provide a method, device, storage medium and equipment for improving the accuracy of facial expression recognition, by obtaining a target facial image (including images of the face, neck and shoulders of the same person), further determining the upper body posture of the person, and then performing facial expression recognition on the facial area in combination with the upper body posture, and determining the facial expression in the target facial image. In this way, the upper body posture of the person in the target facial image can be used to assist the facial area in performing facial expression recognition, so that facial expressions with subtle differences can be accurately recognized, effectively improving the accuracy of facial expression recognition.

[0088] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only exemplary. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0089] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0090] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for improving accuracy of facial expression recognition, characterized in that: include: Acquire a target face image, wherein the target face image includes images of the face, neck, and shoulders of the same person; Determining the upper body posture of the person according to the target face image; In combination with the upper body posture, performing expression recognition on the facial area to determine the facial expression in the target facial image; Determining the upper body posture of the person according to the target face image includes: Determining a face region, a neck region and a shoulder region from the target face image; Determine a first parameter for characterizing the direction of a person's head according to the face area, determine a second parameter for characterizing the direction of a person's neck according to the neck area, and determine a third parameter for characterizing the direction of a person's shoulders according to the shoulder area, wherein the first parameter, the second parameter and the third parameter are all vector directions; Determining the upper body posture of the character based on the first parameter, the second parameter and the third parameter; Determining a first parameter for characterizing a head direction of a person according to the facial region includes: Determine the eyebrow key point, the nose bridge midline, the mandibular midpoint, and the bilateral jaw lines from the facial area; determine the midpoint connection line based on the eyebrow key point and the mandibular midpoint; if the directions of the nose bridge midline and the midpoint connection line are consistent, adjust the midpoint connection line based on the bilateral jaw lines to determine the first parameter; if the directions of the nose bridge midline and the midpoint connection line are inconsistent, adjust the direction of the midpoint connection line based on the nose bridge midline and the bilateral jaw lines to obtain the first parameter; Determining a second parameter for characterizing the direction of the neck of the person according to the neck area includes: Determine the edge contour of the neck area; determine the neck midline as the second parameter based on a first line and a second line in the edge contour of the neck area, wherein the first line and the second line are both side edges of the neck; Determining a third parameter for characterizing the direction of the shoulders of the person according to the shoulder area includes: A left shoulder point and a right shoulder point are determined from the double-shoulder region; and a double-shoulder line is determined by connecting the left shoulder point and the right shoulder point as the third parameter.

2. The method for improving accuracy of facial expression recognition according to claim 1, characterized in that: The first parameter is a midpoint line, the second parameter is a neck midline, and the third parameter is a shoulder line. Based on the first parameter, the second parameter, and the third parameter, determining the upper body posture of the character includes: Determining the body posture of the person based on the shoulder line and the neck midline; Based on the midpoint line, determining the head posture of the character; An upper body posture for representing an upper body posture and a head posture of a person is determined according to the body posture and the head posture.

3. The method for improving accuracy of facial expression recognition according to any one of claims 1 to 2, characterized in that: Combining the upper body posture, performing expression recognition on the facial area to determine the facial expression in the target facial image includes: Performing expression recognition on the target face image to obtain expression components; determining a posture component based on the upper body posture; Based on the expression component and the posture component, a facial expression reflecting the posture and facial demeanor of the person is determined.

4. An expression recognition device with improved accuracy, characterized in that: include: An image acquisition unit, used to acquire a target face image, wherein the target face image includes images of the face, neck and shoulders of the same person; A posture recognition unit, used to determine the upper body posture of the person according to the target face image; An expression recognition unit, configured to perform expression recognition on the facial region in combination with the upper body posture, and determine the facial expression in the target facial image; The posture recognition unit is further used to determine the face area, neck area and shoulder area from the target face image; determine a first parameter for characterizing the direction of the head of the person according to the face area, determine a second parameter for characterizing the direction of the neck of the person according to the neck area, and determine a third parameter for characterizing the direction of the shoulders of the person according to the shoulder area, wherein the first parameter, the second parameter and the third parameter are all vector directions; determine the upper body posture of the person based on the first parameter, the second parameter and the third parameter; The gesture recognition unit is further used to determine the eyebrow key point, the nose bridge midline, the mandibular midpoint, and the bilateral jaw lines from the facial area; based on the eyebrow key point and the mandibular midpoint, determine the midpoint connection line; if the directions of the nose bridge midline and the midpoint connection line are consistent, adjust the midpoint connection line based on the bilateral jaw lines to determine the first parameter; if the directions of the nose bridge midline and the midpoint connection line are inconsistent, adjust the direction of the midpoint connection line based on the nose bridge midline and the bilateral jaw lines to obtain the first parameter; The gesture recognition unit is further used to determine the edge contour of the neck area; based on the first line and the second line in the edge contour of the neck area, determine the neck midline as the second parameter, wherein the first line and the second line are both side edges of the neck; The posture recognition unit is further used to determine a left shoulder point and a right shoulder point from the double-shoulder area; and connect the left shoulder point and the right shoulder point to determine a double-shoulder line as the third parameter.

5. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the expression recognition method for improving accuracy described in any one of claims 1 to 3.

6. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, and when the program instructions are loaded and executed by the processor, the expression recognition method for improving accuracy described in any one of claims 1 to 3 is implemented.