Facial expression recognition method and device based on CNN-Transform
A technology of facial expressions and recognition methods, applied in neural learning methods, character and pattern recognition, computer components, etc., to achieve the effect of improving recognition accuracy and enhancing complementarity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] This embodiment introduces a CNN-Transformer-based facial expression recognition method and device, including:
[0049] Preprocess the input image to obtain the corrected face image;
[0050] Calculate the LBP feature of the face image, and send it as input to the pre-built CNN network to obtain the local features of the face;
[0051] Evenly divide the face image and send it to Transformer to obtain the global features of the face;
[0052] Information fusion is performed on global features and local features to obtain fusion features;
[0053] Emotion recognition by fusing features.
[0054] The CNN-Transformer-based facial expression recognition method and device provided in this embodiment, its application process specifically involves the following steps:
[0055] S1, preprocess the input image, and obtain the corrected face image; the image comes from the RAF-DB dataset, the size of the image in the RAF-DB dataset is not fixed, and there are many interferences ot...
Embodiment 2
[0074] The present embodiment provides a kind of facial expression recognition device based on CNN-Transformer, comprising:
[0075] A preprocessing unit is used to preprocess the input image to obtain a corrected face image;
[0076] The local feature acquisition unit is used to calculate the LBP feature of the face image, and send it into the pre-built CNN network as input to obtain the local feature of the face;
[0077] The global feature acquisition unit is used to evenly divide the face image and send it to the Transformer to obtain the global feature of the face;
[0078] A fusion feature acquisition unit is used for information fusion of global features and local features to obtain fusion features;
[0079] The recognition result acquisition unit is used for performing emotion recognition by fusing features.
Embodiment 3
[0081] The present embodiment provides a CNN-Transformer-based facial expression recognition device, including a processor and a storage medium;
[0082] The storage medium is used to store instructions;
[0083] The processor is configured to operate according to the instructions to perform the steps of any one of the following methods:
[0084] Preprocess the input image to obtain the corrected face image;
[0085] Calculate the LBP feature of the face image, and send it as input to the pre-built CNN network to obtain the local features of the face;
[0086] Evenly divide the face image and send it to Transformer to obtain the global features of the face;
[0087] Information fusion is performed on global features and local features to obtain fusion features;
[0088] Emotion recognition by fusing features.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


