Face smiling scoring method and face emotion classification method
A smile and face technology, applied in the field of face smile processing, can solve problems such as inaccurate scoring, differences in eye curvature, and unsatisfactory scoring results, and achieve universal applicability, high accuracy, and improved precision.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment approach 1
[0051] The existing technology only uses the width of the mouth corners or the ratio of the height of the lips to the width of the mouth corners as the smile score. Due to individual differences, there will be a large gap, and the calculation method is unreasonable. The calculation formula of the smile score, the method includes the following steps:
[0052] Extract a rectangular frame of the face from the face image, extract the key points of the face including the key points of the mouth from the rectangular frame of the face, and calculate the smile score according to the key points of the mouth;
[0053] The smile score is smileScore,
[0054] In the formula, Dis1=(disL1+...+disLi+...+disLn) / n,
[0055] Dis2=(D1+...+Di+...+Dn) / n;
[0056] Li is the line between the marked point on the upper edge of the upper lip and the corresponding marked point on the lower edge of the lower lip; disLi is the distance from Li, and Di is the distance from the marked point on the lower...
Embodiment approach 2
[0072] In the prior art, the accuracy of emotion label classification needs to be improved. This embodiment provides a face emotion classification method, which redefines the emotion label based on the smile score in Embodiment 1 to improve the accuracy.
[0073] The method includes the following steps:
[0074] Perform emotion recognition and classification on face images, and define emotional labels, including 'happy', 'neutral', 'angry', 'disgust', 'fear', 'sad', 'surprise';
[0075] Redefine the emotion label according to the smile score smileScore, change the smileScore>TH2, and not 'happy' and 'neutral' to 'happy'; TH2 is the default smile score value.
[0076] It should be noted that emotion recognition and classification can be performed based on the hdf5 model trained by Keras. In addition, when performing emotion recognition and classification on face images, the emotion recognition and classification is performed on corrected face images, and the corrected face ima...
Embodiment approach 3
[0079] On the basis of the above redefinition of the emotion label, in order to make the design of the smile score more suitable for practical application, this embodiment provides a face smile scoring method, which integrates the emotion label and whether the mouth is open or not to update the smile score in segments.
[0080] The method specifically includes the following steps:
[0081] Judging whether to open the mouth according to the key points of the mouth;
[0082] If Dis3 / Dis1>TH1, it is judged to open the mouth, otherwise it is closed; TH1 is the default judgment value;
[0083] According to whether the mouth is open or not, the smile score is re-determined in combination with the emotional label;
[0084] Wherein Dis3=(d1+...+dj+...+dm) / m;
[0085] In the formula, dj is the distance between the marked point on the lower edge of the upper lip and the corresponding marked point on the upper edge of the lower lip, and m is an integer greater than or equal to 1.
[0...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com