Program, device and method for generating face images and labeling images of a person wearing an accessory on his or her face

JP7555685B2Active Publication Date: 2024-09-25KDDI CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2022020927
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-02-15
Publication Date
2024-09-25
Estimated Expiration
2042-02-15

AI Technical Summary

Benefits of technology

【0028】 本発明のプログラム、装置及び方法によれば、機械学習エンジン用の教師データとして、人の顔に装着物を着用した顔画像及びラベリング画像を人工的に生成することができるプログラム、装置及び方法を提供することを目的とする。これによって、顔露出領域と着用物領域との相関関係を考慮してそれぞれの特徴量を融合させて、マスクを着用した顔画像であっても、表情認識の精度を高めることができる。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007555685000001
    Figure 0007555685000001
  • Figure 0007555685000002
    Figure 0007555685000002
  • Figure 0007555685000003
    Figure 0007555685000003
Patent Text Reader

Abstract

To provide a program and the like that can artificially generate a face image of a person wearing an article to be worn and a labeling image, as teacher data for a machine learning engine.SOLUTION: A program that causes a computer to function such that an original image reflecting a face of a person is input and a teacher face image of a person wearing an article to be worn and a teacher labeling image that can identify an article to be worn region from the teacher face image are generated functions as face region detection means that detects a face image of the person from the original image, teacher face image generation means that generates a teacher face image in which the detected face region image is superimposed with the article to be worn image according to an orientation and a tile of the face, a labeling image generation engine that generates a labeling image from the detected face region image, and an article to be worn label assignment unit that assigns an article to be worn label to a region of the article to be worn image superimposed on the teacher face image for the labeling image.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a technology for generating a labeled image from an image in which a human face is captured. For example, the technology is suitable for recognizing facial expressions from a face image in which the face is wearing an accessory such as a mask. [Background technology]

[0002] Machine learning engine technology that recognizes people and objects from captured images has been developing. In particular, the accuracy of face recognition, which recognizes a person from a face image, has improved dramatically with the development of deep learning technology. For example, Facebook announced that the accuracy of DeepFace (registered trademark), a face recognition technology that uses deep learning, has reached 97.35% (see, for example, Non-Patent Document 1).

[0003] In addition, a large number of training face images must be used to train the learning model of a machine learning engine. For example, there is technology that recognizes emotions using approximately 7 billion emotion features collected from over 87 countries around the world (see, for example, Non-Patent Document 2).

[0004] Conventionally, there is a technology that recognizes emotions from facial images by learning the features of a large number of facial images for each emotion in advance (for example, see Patent Document 1). Specifically, there are the Ekman 7-classification facial expression model (neutral, joy, disgust, anger, surprise, sadness, fear) and the 3-classification emotion model of positive, negative, and neutral.

[0005] There is also a technology in which a recognizer is provided in advance for each of a plurality of recognition modes based on the state of the target person, and one of the recognizers corresponding to the recognition mode is applied during face recognition (see, for example, Patent Document 2). The state of the target person's face can be whether or not the target person is wearing a mask, glasses, sunglasses, a hat, etc. According to this technology, a recognition mode is selected based on the occlusion area of ​​the target person's face, and the recognizer based on that recognition mode determines whether authentication is successful. In other words, each recognizer is trained from teacher face images with different occlusion areas.

[0006] Furthermore, there is a face recognition engine technology "specialized for wearing a mask" that extracts and collates feature points around the eyes that are not covered by the mask (see, for example, Non-Patent Document 3). This involves training a machine learning engine for face recognition with a large number of training face images of faces and expressions wearing masks or goggles. In particular, to determine facial expressions, it is necessary to extract and learn feature amounts such as the eyes, nose, mouth, cheeks, and facial muscles. This technology is said to have achieved an authentication rate of over 99.9% in 1:1 authentication when wearing a mask.

[0007] Furthermore, there is a technology that trains a two-classification model from two types of face images, one with a mask and one without a mask (see, for example, Non-Patent Document 4). According to this technology, attention is used to obtain a heat map that can separate the face exposure region and the mask region. Then, from each heat map, it is possible to simultaneously learn the feature amount of the association between the face exposure region and the mask region, thereby realizing versatile and highly accurate facial expression recognition (compatible with three types of facial expressions).

[0008] Furthermore, there is a technology that realizes facial expression recognition (compatible with seven types of facial expressions) by cutting out only the area around the eyes from a facial image and learning only the features of the area around the eyes through deep learning (see, for example, non-patent document 5). [Prior art documents] [Patent documents]

[0009] [Patent Document 1] JP 2011-150381 A [Patent Document 2] JP 2018-165983 A [Non-patent literature]

[0010] [Non-Patent Document 1] Taigman, Yaniv, et al. "Deepface: Closing the gap to human-level performance in face verification." Proceedings of the IEEE conference on computer vision and pattern recognition. 2014. [online]. [Retrieved February 10, 2022]. Internet <URL:https: / / ieeexplore.ieee.org / document / <6909616> [Non-Patent Document 2] affectiva. [online]. [Retrieved February 10, 2022]. Internet <URL:https: / / affectiva.jp / reason.html> [Non-Patent Document 3] "NEC Develops Face Recognition Engine Specialized for Wearing Masks - Recognition Rate is over 99.9%". [online]. [Retrieved February 10, 2022]. Internet <URL: https: / / japan.cnet.com / article / 35160036 / > [Non-Patent Document 4] Bo Yang, Jianming Wu, Gen Hattori, “Face mask aware robust facial expression recognition during the covid-19 pandemic” IEEE ICIP conference(2021). [online]. [Retrieved February 10, 2022]. Internet <URL:https: / / ieeexplore.ieee.org / document / <9506047> [Non-Patent Document 5] Giovanna Castellano, Berardina De Carolis, Nicola Macchiarulo, “Automatic Emotion Recognition from Facial Expression when Wearing a Mask” ACM CHItaly(2021), [online], [Retrieved February 10, 2022], Internet <URL:https: / / www.researchgate.net / publication / 353229755_Automatic_Emotion_Recognition_from_Facial_Expressions_when_Wearing_a_Mask> [Non-Patent Document 6] B.Yang, J.Wu, and G.Hattori, “Facial Expression Recognition with the advent of face masks”, ACM MUM 2020, pp335 - 337, November 2020., [online], [Retrieved February 10, 2022], Internet <URL:https: / / dl.acm.org / doi / abs / 10.1145 / 3428361.<3432075> [Non-Patent Document 7] "You can create makeup and hair color apps on iOS. Separate facial parts with machine learning", [online], [Retrieved February 10, 2022], Internet <URL:https: / / qiita.com / john-rocky / items / 6b846c1cdb152bded40b> [Non-Patent Document 8] A survey of Visual Transformers, Yang Liu etc., [online], [Retrieved February 10, 2022], Internet <URL:https: / / arxiv.org / abs / 2111.06091> [Non-Patent Document 9] It should be noted that the date "令和4年2月10日" in the original text is translated as "February 10, 2022" here. Since "令和" started in 2019, "令和4年" is 2022. Also, the Japanese text "メイクアプリやヘアカラーアプリがiOSでつくれる 機械学習で顔の部品を分離" is translated as a more understandable English sentence while keeping the overall meaning.CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification, Chun-Fu (Richard) Chen etc., [online], [Retrieved February 10, 2022], Internet<URL:https: / / arxiv.org / abs / 2103.14899> Summary of the Invention [Problem to be solved by the invention]

[0011] In recent years, since the COVID-19 pandemic, it has become common to wear face masks and goggles, which can cover up to 70% of the face.

[0012] For example, the technology of Non-Patent Document 1 has a problem of being unable to fully recognize faces and facial expressions. A general face recognition algorithm requires capturing as many feature values ​​as possible from a face image, such as the eyes, nose, mouth, cheeks, and facial muscles. In the case of facial expression recognition applications, for example, wearing a mask on the face makes it impossible to extract feature values ​​from most of the nose and mouth, and most of the cheeks and facial muscles.

[0013] Also, for example, according to the technology of Non-Patent Document 3, even if the recognition accuracy of face authentication is high, the recognition accuracy of facial expression is significantly reduced. Unlike face recognition that authenticates the person 1:1, it is difficult to build a general-purpose learning model that can be applied to everyone using only feature points around the eyes for facial expression recognition. This is because when wearing a mask, it is not possible to extract feature values ​​for most of the nose and mouth and most of the cheeks and facial muscles.

[0014] Furthermore, for example, according to the technology of Non-Patent Document 4, the accuracy is improved by separating the face exposure area and the mask area, but the weights of the recognition accuracy of the face exposure area and the mask area cannot be automatically learned. According to this technology, the face exposure area:mask area ratio is merely set to 0.9:0.1 based on experience.

[0015] Furthermore, for example, according to the technology of Non-Patent Document 5, only the area around the eyes is cut out from the face image, and only the feature amount of the exposed face area is considered. In the end, the feature amount around the mask area is not considered.

[0016] In response to this, the inventors of the present application have considered whether it would be possible to learn and fuse the features of the exposed face area and the attached object area from a human face image, taking into account the correlation between the exposed face area and the attached object area. This would improve the learning accuracy of facial expression recognition. To achieve this, we wondered if it would be possible to artificially generate face images and labeling images of people wearing accessories as training data for the machine learning engine. By using the labeling images, it would be possible to separate the exposed face area and the accessory area from the face image.

[0017] Therefore, the present invention aims to provide a program, device, and method capable of artificially generating face images and labeling images of a person wearing an accessory as training data for a machine learning engine. This makes it possible to improve the accuracy of facial expression recognition even for face images wearing a mask by fusing the respective feature amounts in consideration of the correlation between the exposed face area and the accessory area. [Means for solving the problem]

[0018] According to the present invention, a program for causing a computer to function to input an original image in which a human face is reflected, generate a teacher face image in which an accessory is worn on the human face, and generate a teacher labeling image in which an accessory area can be identified from the teacher face image, comprising: A face area detection means for detecting a human face area image from an original image; A teacher face image generating means for generating a teacher face image by superimposing an attachment image according to the direction and inclination of the face on the detected face area image; a labeling image generation engine that generates a labeling image from the detected face region image; an accessory labeling unit that assigns an accessory label to an area of ​​an accessory image superimposed on a teacher face image in a labeling image; The present invention is characterized in that it causes a computer to function.

[0019] According to another embodiment of the program of the present invention, The article of clothing is a mask, glasses, goggles, or sunglasses. It is also preferable to function the computer in such a manner.

[0020] According to another embodiment of the program of the present invention, The labeling image is an image in which a region label based on semantic segmentation is added to each pixel of the input face region image. It is also preferable to function the computer in such a manner.

[0021] According to another embodiment of the program of the present invention, The teacher face image generating means includes: A number of images of the garment in different orientations are stored in advance, Detecting feature points from the detected face region, and detecting the direction and inclination of the face from the feature points; Select the appropriate image of the garment according to the orientation of the face, The selected attachment image is rotated according to the inclination of the face, and a teacher face image is generated by superimposing the image on the face area of ​​the teacher face image. It is also preferable to function the computer in such a manner.

[0022] According to another embodiment of the program of the present invention, The labeling image generation engine is In the training phase, the model is retrained to input a teacher face image and output a teacher labeling image. In the estimation stage, a target face image of a person wearing an accessory is input, and a target labeling image with accessory labels is output. It is also preferable to function the computer in such a manner.

[0023] According to another embodiment of the program of the present invention, The labeling image generation engine is a Face Parsing model. It is also preferable to function the computer in such a manner.

[0024] According to the present invention, A labeling image generation engine retrained as described above; and A facial expression recognition engine that estimates facial expression labels from target facial images and A program for causing a computer to function, As a training stage, Using training data that associates training face images with training expression labels, A labeling image generation engine inputs a teacher face image and outputs a face region image and an attachment region image; The face region image is multiplied by an image obtained by inversely calculating the wearing object region image to derive a face exposure region; A facial expression recognition engine is trained to receive a teacher face image, a face exposure region image, and an attachment region image, and to output a teacher facial expression label; As an estimation stage, A labeling image generation engine inputs a target face image and outputs a face region image and an attachment region image; The face region image is multiplied by an image obtained by inversely calculating the wearing object region image to derive a face exposure region; A facial expression recognition engine receives the target face image, the face exposure area image, and the attachment area image, and outputs a facial expression label. The present invention is characterized in that the computer is made to function in such a manner.

[0025] According to another embodiment of the program of the present invention, The facial expression recognition engine is a first encoder for outputting a first feature amount from an image obtained by multiplying the face image and the face exposure area image; a second encoder for outputting a second feature amount from an image obtained by multiplying the face image and the attachment area image; a cross attention that receives the first feature amount and the second feature amount and outputs a first cross feature amount and a second cross feature amount taking into consideration a correlation between the face exposure region image and the attachment region image; A multi-layer perceptron that fuses the first cross feature and the second cross feature and outputs an expression label. It is also preferable to make the computer function as follows.

[0026] According to the present invention, an image generating device receives an original image in which a human face is captured, generates a teacher face image in which an accessory is worn on the human face, and generates a teacher labeling image in which an accessory area can be identified from the teacher face image, A face area detection means for detecting a human face area image from an original image; A teacher face image generating means for generating a teacher face image by superimposing an attachment image according to the direction and inclination of the face on the detected face area image; a labeling image generation engine that generates a labeling image from the detected face region image; an accessory labeling unit that assigns an accessory label to an area of ​​an accessory image superimposed on a teacher face image in a labeling image; The present invention is characterized by having the following.

[0027] According to the present invention, in an image generation method for an apparatus that receives an original image in which a human face is captured, generates a teacher face image in which an accessory is worn on the human face, and a teacher labeling image in which an accessory area can be identified from the teacher face image, A first step of detecting a human face region image from an original image; A second step of generating a teacher face image by superimposing an attachment image according to the direction and inclination of the face on the detected face region image; a third step of generating a labeling image from the detected face region image using a labeling image generation engine; A fourth step of labeling the labeling image by attaching an accessory label to the area of ​​the accessory image superimposed on the teacher face image. The present invention is characterized by carrying out the following steps. Effect of the Invention

[0028] The present invention provides a program, device, and method that can artificially generate face images and labeling images of a person wearing an accessory on their face as training data for a machine learning engine. This allows the correlation between the exposed face area and the clothing area to be taken into account, and the respective feature amounts to be fused, thereby improving the accuracy of facial expression recognition even for face images wearing a mask. [Brief description of the drawings]

[0029] [Figure 1] FIG. 2 is a functional configuration diagram of an image generating device according to the present invention. [Diagram 2] 5A to 5C are explanatory diagrams illustrating the processing of a face area detection unit. [Diagram 3] FIG. 11 is an explanatory diagram illustrating the process of a teacher face image generating unit. [Figure 4] FIG. 1 is an explanatory diagram showing the direction and inclination of a face. [Diagram 5] FIG. 1 is an explanatory diagram illustrating a process of an existing labeling image generation engine. [Figure 6] 11 is an explanatory diagram illustrating a process performed by an attachment label attachment unit. FIG. [Figure 7] FIG. 13 is an explanatory diagram showing the process of the retraining labeling image generation engine. [Figure 8] 1 is a functional configuration diagram of a facial expression recognition device according to the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0030] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

[0031] A feature of the present invention is that face images and labeling images of a person wearing an accessory are artificially generated as training data for a machine learning engine. For this purpose, referring to Figs. 1 to 6, an image generating device will be described in which an original image in which a human face is reflected is input and a "teacher face image" and a "teacher labeling image" are generated. Also, according to FIG. 7, a machine learning engine (a labeling image generation engine described later) is described as an image generation device trained by a teacher face image and a teacher labeling image. According to FIG. 8, the facial expression recognition device will be described as including a machine learning engine (a facial expression recognition engine, which will be described later) that recognizes facial expressions from a facial image of a person wearing an accessory on his or her face.

[0032] FIG. 1 is a functional block diagram of an image generating device according to the present invention.

[0033] 1, the image generating device 1 includes an original image storage unit 10, a face area detection unit 11, a teacher face image generating unit 12, labeling image generating engines 131 and 132, and an accessory labeling unit 14. These functional components are realized by executing a program that causes a computer installed in the image generating device to function. The process flow of these functional components can also be understood as an image generating method of the device.

[0034] That is, according to the image generating device 1 in FIG. 1, a "teacher face image" and a "teacher labeling image" are output for each set from an original image in which a human face is reflected. An "original image" is an image that captures the face of a person not wearing any clothing. The "teacher face image" is an image in which the face of a person wearing an accessory is reflected. The accessory is typically a mask, but is not limited to this and may be glasses, goggles, sunglasses, or the like. The "teacher labeling image" is a teacher labeling image that can identify the accessory region from the teacher face image. Here, the labeling image is an image in which a region label based on semantic segmentation is assigned to each pixel of the teacher region image. The region label is such that at least the face region and the accessory region are distinguished.

[0035] [Original Image Storage Unit 10] The original image storage unit 10 stores a large amount of original images. It is assumed that the original images are of a person without any accessories on the face. The original image storage unit 10 outputs the original images to the face area detection unit 11 one by one.

[0036] [Face area detection unit 11] The face area detection unit 11 detects a human face area image (for example, a bounding box) from an original image. The detected face area image is output to the teacher face image generation unit 12 and the labeling image generation engine 131.

[0037] FIG. 2 is an explanatory diagram of the face area detection unit. According to Figure 2(a), the original image contains the faces of two women. According to FIG. 2(b), the face area detection unit 11 detects the face area images of each of the two people.

[0038] Specifically, the face area detection unit 11 uses R-CNN (Regions with Convolutional Neural Networks) or SSD (Single Shot Multibox Detector). R-CNN combines rectangular face regions with convolutional neural network features to find a subset of face regions (region proposals), then extracts CNN features from the region proposals, and refines the bounding boxes of the region proposals using a support vector machine pre-trained with the CNN features. SSD is a general object detection algorithm that uses machine learning to determine rectangular bounding boxes called default boxes. Multiple default boxes of different sizes are superimposed on an image, and a predicted value is calculated for each box. For each default box, the position can be predicted based on how far it is from the object and how different its size is.

[0039] [Teacher face image generation unit 12] The teacher face image generating unit 12 generates a teacher face image by superimposing an attachment image according to the direction and inclination of the face on the detected face area image.

[0040] FIG. 3 is an explanatory diagram showing the process of the teacher face image generating unit.

[0041] 3, the teacher face image generating unit 12 executes S121 to S123 as follows. For this technique, an existing technique based on "Program, device, and method for artificially generating a new teacher face image in which an accessory is worn on a human face" is used (for example, see Non-Patent Document 6).

[0042] (S121: Feature point detection) First, feature points (e.g., 68 key points) are detected from the face region image. Then, each part (eyes, nose, mouth, eyebrows, and chin) is detected from the expansion of the feature points. For example, the official Dlib website discloses a trained model of facial feature points (see, for example, Non-Patent Document 4). This trained model was trained on a dataset with 3837 annotations (train: 3148 / test: 689) (see, for example, Non-Patent Document 5).

[0043] Next, the "face direction and inclination" is detected from the feature points.

[0044] FIG. 4 is an explanatory diagram showing the direction and inclination of a face.

[0045] The angle between the front perpendicular line and the nose centerline represents the face tilt. According to FIG. 4(a), the face is facing forward and inclined toward a line perpendicular to the front. According to FIG. 4(b), the face direction is "to the right" when viewed from the front, and the face inclination is "30 degrees clockwise" when viewed from the line perpendicular to the front.

[0046] The distances to the "end point of the left cheek" and the "end point of the right cheek" are calculated from the coordinates of the nose center point. When the distance between the end point of the right jaw and the center of the nose is longer than the distance between the end point of the left jaw and the center of the nose by a first predetermined threshold or more, the face orientation is determined to be "facing left." Left facing: Distance between left jaw end and nose center < distance between right jaw end and nose center Similarly, if the distance between the left end point of the jaw and the center of the nose is longer than the distance between the right end point of the jaw and the center of the nose by a first predetermined threshold or more, the face orientation is determined to be "rightward." Right facing: Distance between left jaw end and nose center>Distance between right jaw end and nose center If the difference between the distance between the endpoint of the left jaw and the center of the nose and the distance between the endpoint of the right jaw and the center of the nose is less than or equal to a second predetermined threshold (if the two distances are approximately the same), the face orientation is determined to be "facing forward."

[0047] (S122:Selection of wearable image) A plurality of attachment images with different orientations are stored in advance, and an attachment image according to the orientation of the face is selected. Images of the wearable item "mask" are stored in advance. Here, a mask image facing forward and a mask image facing right are stored. Of course, it is also preferable to store a plurality of mask images with different colors and shapes even if they are facing the same direction. In the case of masks, there are various shapes, such as cloth, nonwoven, flat, pleated, and three-dimensional. Of course, in other embodiments, the same type of mask image may be stored in stages, such as "slightly right-facing," "45 degrees right-facing," and "completely right-facing."

[0048] Then, an accessory image according to the face direction is selected. At this time, multiple accessory (mask) images with the same face direction but different accessories may be selected. In that case, multiple face images wearing different accessories are generated. 4(a) and (b), a right-facing mask image is selected from the wearing image storage unit 130. Then, for the right-facing mask image, the size of the mask image is rescaled (enlarged / reduced) according to the left distance (distance between the feature point of the left cheek and the center of the nose) and the right distance (distance between the feature point of the right cheek and the center of the nose) of the face. This adjusts the width and height of the wearing image to match the width and height of the wearing area of ​​the face (area surrounded by the center of the nose and the end points of the lower, left, and right jaws). In the case of FIG. 4(b), the mask image is further tilted 30 degrees clockwise with respect to the nose center line (the straight line between the center of the nose and the chin).

[0049] As another embodiment, a plurality of accessory images may be selected for one teacher face image, and the accessory images may be superimposed to further generate a plurality of teacher face images artificially. For example, a large number of padded teacher face images can be generated by superimposing mask images of different types, colors, and shapes on human face regions.

[0050] Furthermore, in another embodiment, if the accessory image is a three-dimensional model, the three-dimensional model may be rotated according to the direction and inclination of the face, and a two-dimensional accessory image captured at that position may be output.

[0051] (S123: Generation of images with superimposed wearable items) The selected attachment image is rotated according to the inclination of the face, and a teacher face image is generated by superimposing the image on the person's face area of ​​the teacher face image. The finally generated face image with the attachment superimposed thereon is output as a teacher face image and is also output to the attachment label assignment unit 14.

[0052] [Labeling Image Generation Engine 131] The labeling image generation engine 131 generates a labeling image from the detected face region image.

[0053] FIG. 5 is an explanatory diagram showing the process of an existing labeling image generation engine.

[0054] The labeling image is based on, for example, Facing Parsing (see, for example, Non-Patent Document 7). This engine is a machine learning engine pre-trained with a large amount of existing datasets, such as the CelebAMask-HQ dataset. For a face image, it generates a labeling image with labels added to areas such as the eyes, nose, and mouth. The generated labeling image is output to the accessory labeling unit 14.

[0055] [Attachment Labeling Section 14] The accessory label assignment unit 14 assigns an accessory label to the area of ​​the accessory image superimposed on the teacher face image in the labeling image. At this time, the attachment image is superimposed on the face region of the teacher face image so that the direction and inclination of the facial feature points of the person in the teacher face image match the direction and inclination of the attachment image (e.g., mask image).

[0056] FIG. 6 is an explanatory diagram showing the process of the attachment label attachment unit.

[0057] The attachment labeling unit 14 is capable of distinguishing at least the following two areas. Face region image Wearing area image (mask area image) Then, the teacher face image output from the teacher face image generating unit 12 and the teacher labeling image output from the accessory labeling unit 14 are output as a set.

[0058] [Labeling image generation engine 132] The labeling image generation engine 132 is the same as the labeling image generation engine 131 described above. The labeling image generation engine 131 is trained to assign labels to face images in which no accessories are worn, whereas the labeling image generation engine 132 is trained for face images in which accessories are worn. That is, a face image in which an accessory (mask) is worn is automatically generated, and semantic segmentation annotation (re-labeling) is performed on the face image. The labeling image generation engine 132 is a retrained version of the labeling image generation engine 131, which is augmented with artificially generated training data.

[0059] FIG. 7 is an explanatory diagram showing the process of the retraining labeling image generation engine.

[0060] <Training Stage> A teacher face image that includes the face of a person wearing the garment is input, and the system is retrained to output a teacher labeling image that corresponds to the teacher face image. <Estimation stage> A target face image that includes the face of a person wearing the accessory is input, and a target labeling image with accessory labels added is output. This makes it possible to separate the face area and the attachment area from the target face image.

[0061] According to the present invention, it is possible to artificially generate a teacher face image wearing an article of clothing and a teacher labeling image capable of dividing the article of clothing area from a face image of a person not wearing an article of clothing. This eliminates the need for manual labeling work, and as a result, it is possible to create a large amount of teacher data based on face images wearing an article of clothing in a short time. By retraining an existing facial parsing model using such teacher data, it is possible to build a machine learning engine that can respond with high accuracy to face images of people wearing an article of clothing.

[0062] FIG. 8 is a functional configuration diagram of a facial expression recognition device according to the present invention.

[0063] The facial expression recognition device 2 can estimate the facial expression (label) of a person's face by inputting the face image (target image) of the person. According to FIG. 8, the facial expression recognition device 2 is realized by functioning as the above-mentioned retrained labeling image generation engine 132 and the facial expression recognition engine 15 that estimates a facial expression label from a target face image.

[0064] <Training stage> We use teacher data that associates teacher face images with teacher expression labels. Teacher face image <-> Teacher facial expression label The teacher facial expression labels may be three-category (positive, negative, neutral) or Ekman's seven-category. Then, the labeling image generation engine 132 inputs the teaching face image and outputs a "face region image" and an "attachment region image." Next, the face area image is multiplied by an image obtained by inversely calculating the attachment area image (subtracting it from 1) to derive the face exposure area. The facial expression recognition engine 25 receives the teacher face image, the face exposed area image, and the attachment area image, and is trained to output a teacher facial expression label.

[0065] Here, the facial expression recognition engine 25 is composed of the following elements: First encoder: outputs a first feature amount from an image obtained by multiplying a face image and a face exposure area image. Specifically, this is also called a Visual-Transformer model (see, for example, Non-Patent Document 8).

[0066] Second Encoder: This is the same as the first encoder and outputs a second feature amount from an image obtained by multiplying the face image and the attachment area image.

[0067] Cross-attention: A first feature amount and a second feature amount are input, and a first cross feature amount and a second cross feature amount that take into consideration the relevance between the face exposure area image and the wearing object area image are output (see, for example, Non-Patent Document 9). This self-adaptively adjusts the attention weights given to the face exposure area and the wearing object area. By utilizing the half attention described in Non-Patent Document 9 and learning the features of the wearing object area that are highly related to the features of the face exposure area, the importance of each part of both areas can be learned in stages. For example, when recognizing facial expressions, the weight is assumed to be β>(1-β). For facial expression recognition, for example, if a weight of β=0.9 is assigned to facial expression recognition from the face exposure region, a weight of 1-β=0.1 is assigned to facial expression estimation from the wearable region. According to cross-attention, the weight β is self-adaptively adjusted. For example, if the weight β of the face exposure region is heavier than the weight 1-β of the wearable region, it strongly reflects the result of expression recognition from the face exposure region.

[0068] Multi-layer perceptron: Fuse the first cross feature and the second cross feature to output an expression label.

[0069] <Estimation stage> In the estimation step, the facial expression recognition device 2 can estimate a facial expression from a target image that a human face is reflected in. Here, the target image is assumed to be an image of a face wearing an attachment (mask).

[0070] The labeling image generation engine 132 inputs a target face image and outputs a face region image and an attachment region image. Next, the face area image is multiplied by an image obtained by inversely calculating the attachment area image (subtracting it from 1) to derive the face exposure area. Then, the facial expression recognition engine 25 receives the target face image, the face exposure area image, and the attachment area image, and outputs a facial expression label.

[0071] As described above, the facial expression recognition engine 25 can recognize facial expressions using not only the feature amount of the face exposure area but also the feature amount of the attachment (mask) area. At that time, the correlation between the facial expression recognized from the face exposure area and the facial expression recognized from the attachment area is also taken into consideration. In the face exposed area, facial expressions are likely to be expressed in the area around the eyes that is not covered by the mask. In particular, facial expressions are likely to be expressed in wrinkles between the eyebrows. On the other hand, in the masked area, wrinkles and deformation occur in the mask itself due to changes in the muscles of the entire face, especially the nose, mouth, and cheeks. The inventors of the present application applied cross attention and multi-layer perceptron to recognize facial expressions by considering the correlation between the features of the face exposed area and the features of the masked area.

[0072] As described above in detail, the program, device, and method of the present invention aim to provide a program, device, and method that can artificially generate face images and labeling images of a person wearing an accessory on their face as training data for a machine learning engine. This makes it possible to improve the accuracy of facial expression recognition even for face images wearing a mask by fusing the respective feature amounts in consideration of the correlation between the exposed face area and the accessory area.

[0073] Furthermore, this means that even amid the COVID-19 pandemic, "a user wearing a mask can estimate their facial expression without having to remove the mask," making it possible to contribute to Goal 3 of the United Nations-led Sustainable Development Goals (SDGs), which is to "Ensure healthy lives and promote well-being for all at all ages."

[0074] Regarding the various embodiments of the present invention described above, various changes, modifications, and omissions within the scope of the technical idea and perspective of the present invention can be easily made by those skilled in the art. The above description is merely an example and is not intended to be restrictive in any way. The present invention is limited only by the scope of the claims and their equivalents. [Explanation of symbols]

[0075] 1 Image generation device 10 Original image storage unit 11 Face area detection unit 12 Teacher face image generation unit 131 Labeling image generation engine (existing) 132 Labeling Image Generation Engine (Retraining) 14. Wear Labeling Section 2 Facial expression recognition device 25 Facial Expression Recognition Engine

Claims

1. A program for causing a computer to function to input an original image in which a human face is reflected, generate a teacher face image in which an accessory is worn on the human face, and generate a teacher labeling image in which an accessory area can be identified from the teacher face image, A face area detection means for detecting a human face area image from an original image; A teacher face image generating means for generating a teacher face image by superimposing an attachment image according to the direction and inclination of the face on the detected face area image; a labeling image generation engine that generates a labeling image from the detected face region image; an accessory labeling unit that assigns an accessory label to an area of ​​an accessory image superimposed on a teacher face image in a labeling image; A program for causing a computer to function.

2. The article of wear is a mask, glasses, goggles, or sunglasses.

2. The program according to claim 1, which causes a computer to function as described above.

3. The labeling image is an image in which a region label based on semantic segmentation is added to each pixel of the input face region image.

3. The program according to claim 1, further comprising: a program for causing a computer to function as described above.

4. The teacher face image generating means includes: A plurality of images of the attached object in different orientations are stored in advance, Detecting feature points from the detected face region, and detecting the direction and inclination of the face from the feature points; Select the appropriate image of the garment according to the orientation of the face, The selected attachment image is rotated according to the inclination of the face, and a teacher face image is generated by superimposing the image on the face area of ​​the teacher face image.

4. The program according to claim 1, further comprising: a program for causing a computer to function in such a manner as to:

5. The labeling image generation engine is In the training phase, the model is retrained to input a teacher face image and output a teacher labeling image. In the estimation stage, a target face image of a person wearing an accessory is input, and a target labeling image with accessory labels is output.

5. The program according to claim 1, further comprising: a program for causing a computer to function in such a manner as to:

6. The labeling image generation engine is a Face Parsing model.

6. The program according to claim 5, which causes a computer to function as described above.

7. A labeling image generation engine retrained according to claim 5 or 6; A facial expression recognition engine that estimates facial expression labels from target facial images and A program for causing a computer to function, As a training stage, Using training data that associates training face images with training expression labels, A labeling image generation engine inputs a teacher face image and outputs a face region image and an attachment region image; The face region image is multiplied by an image obtained by inversely calculating the wearing object region image to derive a face exposure region; A facial expression recognition engine is trained to receive a teacher face image, a face exposure region image, and an attachment region image, and to output a teacher facial expression label; As an estimation stage, A labeling image generation engine inputs a target face image and outputs a face region image and an attachment region image; The face region image is multiplied by an image obtained by inversely calculating the wearing object region image to derive a face exposure region; A facial expression recognition engine receives the target face image, the face exposure area image, and the attachment area image, and outputs a facial expression label. A program that causes a computer to function in such a manner.

8. The facial expression recognition engine a first encoder for outputting a first feature amount from an image obtained by multiplying the face image and the face exposure area image; a second encoder for outputting a second feature amount from an image obtained by multiplying the face image and the attachment area image; a cross attention that receives the first feature amount and the second feature amount and outputs a first cross feature amount and a second cross feature amount taking into consideration a correlation between the face exposure region image and the attachment region image; a multi-layer perceptron that fuses the first cross feature and the second cross feature and outputs an expression label; 8. The program according to claim 7, further comprising:

9. An image generating device receives an original image in which a human face is captured, and generates a teacher face image in which an accessory is worn on the human face, and a teacher labeling image in which an accessory area can be identified from the teacher face image, A face area detection means for detecting a human face area image from an original image; A teacher face image generating means for generating a teacher face image by superimposing an attachment image according to the direction and inclination of the face on the detected face area image; a labeling image generation engine that generates a labeling image from the detected face region image; an accessory labeling unit that assigns an accessory label to an area of ​​an accessory image superimposed on a teacher face image in a labeling image; An image generating device comprising:

10. In an image generation method for a device that receives an original image in which a human face is captured, generates a teacher face image in which an accessory is worn on the human face, and a teacher labeling image in which an accessory area can be identified from the teacher face image, A first step of detecting a human face region image from an original image; a second step of generating a teacher face image by superimposing an attachment image according to the direction and inclination of the face on the detected face region image; a third step of generating a labeling image from the detected face region image using a labeling image generation engine; A fourth step of assigning an accessory label to an area of ​​the accessory image superimposed on the teacher face image in the labeling image; 2. An image generating method comprising:

Citation Information

Patent Citations

  • Information display methods, devices and storage media

    CN112001872B

  • Expression discriminator creation device, expression discriminator creation method, expression recognition device, expression recognition method, and program therefor

    JP2011150381A

  • Face authentication method and device

    JP2018165983A

  • Data processing apparatus and data processing method

    JP2019102081A

  • Data generation method, data generation device, model generation method, model generation device, and program

    JP2021086462A