Image processing device, image processing method, and recording medium

JP7552698B2Active Publication Date: 2024-09-18NEC CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2022539881
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-07-29
Publication Date
2024-09-18
Estimated Expiration
2040-07-29

Smart Images

  • Figure 0007552698000018
    Figure 0007552698000018
  • Figure 0007552698000013
    Figure 0007552698000013
  • Figure 0007552698000002
    Figure 0007552698000002
Patent Text Reader

Abstract

An image processing device 1 is provided with: a detection means 121 which detects a feature point of the face of a person 100 on the basis of a face image 101 in which the face is shown; a generation means 122 which, on the basis of the face image, generates face angle information θ indicating an angle representing the orientation of the face; a correction means 123 which generates positional information about the position of the feature point detected by the detection means, and corrects the positional information on the basis of the face angle information; and a determination means 124 which determines whether or not an action unit relating to the movement of a facial part constituting the face has occurred, on the basis of the positional information corrected by the correction means.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to at least one of the technical fields of an image processing device, an image processing method, and a recording medium that are capable of performing image processing using a face image in which a person's face is captured, for example. [Background technology]

[0002] As an example of image processing using a facial image, Patent Document 1 describes image processing that determines whether or not an action unit corresponding to the movement of at least one of the multiple facial parts that make up a person's face has occurred.

[0003] Other prior art documents related to this disclosure include Patent Documents 2 to 3 and Non-Patent Documents 1 to 3. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2013-178816 A [Patent Document 2] JP 2011-138388 A [Patent Document 3] JP 2010-055395 A [Non-patent literature]

[0005] [Non-Patent Document 1] Timothy R. Brick, Michael D. Hunter, Jeffrey F. Cohn, “Get the FACS fast:Automated FACS face analysis benefits from the additio of velocity,” 2009 3rd International Conference on Affective Computing and Intelligent Interaction and Workshops, September 10, 2009. [Non-Patent Document 2] Hiroki Nomiya and Teruhisa Hochin, "Facial Expression Recognition Using Correlation of Facial Feature Points for Retrieving Impressive Video Scenes," Proceedings of the 2nd Forum on Data Optics and Information Management (DEIM2010), 2010. [Non-Patent Document 3] Michel F.Vastar, Enrique Sanchez-Lozano, Jeffrey F.Cohn, Laszlo A.Jeni, Jeffrey M.Girard, Zheng Zhang, Lijun Yin, Maja Pantic, “FERA2017-Addressing Head Pose in the Third Facial Expression Recognition and Analysis Challenge”, arXiv:1702.04174, February 14, 2017 Summary of the Invention [Problem to be solved by the invention]

[0006] The present disclosure aims to provide an image processing device, an image processing method, and a recording medium capable of solving the above-mentioned technical problems. As an example, the present disclosure aims to provide an image processing device, an image processing method, and a recording medium capable of accurately determining whether or not an action unit has occurred. [Means for solving the problem]

[0007] One aspect of the image processing device disclosed herein comprises a detection means for detecting facial feature points based on a facial image in which a person's face is captured, a generation means for generating facial angle information indicating the orientation of the face in terms of angles based on the facial image, a correction means for generating positional information related to the positions of the feature points detected by the detection means and correcting the positional information based on the facial angle information, and a determination means for determining whether an action unit related to the movement of facial parts that make up the face has occurred based on the positional information corrected by the correction means.

[0008] One aspect of the image processing method disclosed herein includes detecting facial feature points based on a facial image in which a person's face is captured, generating facial angle information indicating the orientation of the face in terms of angles based on the facial image, generating position information related to positions of the detected feature points, correcting the position information based on the facial angle information, and determining whether an action unit related to movement of facial features that make up the face has occurred based on the corrected position information.

[0009] One aspect of a recording medium of this disclosure is a recording medium having recorded thereon a computer program for causing a computer to execute an image processing method, the image processing method including: detecting facial feature points based on a facial image in which a person's face is captured; generating facial angle information indicating the orientation of the face in terms of angles based on the facial image; generating position information relating to the positions of the detected feature points; correcting the position information based on the facial angle information; and determining whether an action unit relating to the movement of facial parts that make up the face has occurred based on the corrected position information. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a block diagram showing the configuration of an information processing system according to the first embodiment. [Diagram 2] FIG. 2 is a block diagram showing the configuration of the data storage device of the first embodiment. [Diagram 3]FIG. 3 is a block diagram showing the configuration of the data generating device according to the first embodiment. [Figure 4] FIG. 4 is a block diagram showing the configuration of the image processing apparatus according to the first embodiment. [Diagram 5] FIG. 5 is a flowchart showing the flow of the data storage operation performed by the data storage device of the first embodiment. [Figure 6] FIG. 6 is a plan view showing an example of a face image. [Figure 7] FIG. 7 is a plan view showing an example of a plurality of feature points detected on a face image. [Figure 8] FIG. 8 is a plan view showing a face image in which a person facing forward is captured in the face image. [Figure 9] FIG. 9 is a plan view showing a face image in which a person looking to the left or right is captured. [Figure 10] FIG. 10 is a plan view showing the orientation of a person's face in a horizontal plane. [Figure 11] FIG. 11 is a plan view showing a face image in which a person looking up or down is captured. [Figure 12] FIG. 12 is a plan view showing the orientation of a person's face in a vertical plane. [Figure 13] FIG. 13 shows an example of the data structure of the feature point database. [Figure 14] FIG. 14 is a flowchart showing the flow of the data generating operation performed by the data generating device of the first embodiment. [Figure 15] FIG. 15 is a plan view showing a schematic diagram of face data. [Figure 16] FIG. 16 is a flowchart showing the flow of the action detection operation performed by the image processing device of the first embodiment. [Figure 17] FIG. 17 is a flowchart showing the flow of the action detection operation performed by the image processing device of the second embodiment. [Figure 18] FIG. 18 is a graph showing the relationship between the feature point distance and the face direction angle before correction. [Figure 19]FIG. 19 is a graph showing the relationship between the feature point distance and the face direction angle after correction. [Figure 20] FIG. 20 shows a first modified example of the feature point database generated by the data storage device. [Figure 21] FIG. 21 shows a second modified example of the feature point database generated by the data storage device. [Figure 22] FIG. 22 shows a third modified example of the feature point database generated by the data storage device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, with reference to the drawings, an information processing system, a data storage device, a data generation device, an image processing device, an information processing method, a data storage method, a data generation method, an image processing method, a recording medium, and a database will be described in detail. Hereinafter, an information processing system SYS to which the embodiments of the information processing system, the data storage device, the data generation device, the image processing device, the information processing method, the data storage method, the data generation method, the image processing method, the recording medium, and the database are applied will be described.

[0012] (1) Configuration of Information Processing System SYS of First Embodiment (1-1) Overall configuration of information processing system SYS First, the overall configuration of the information processing system SYS of the first embodiment will be described with reference to Fig. 1. Fig. 1 is a block diagram showing the overall configuration of the information processing system SYS of the first embodiment.

[0013] 1, the information processing system SYS includes an image processing device 1, a data generating device 2, and a data storage device 3. The image processing device 1, the data generating device 2, and the data storage device 3 may be capable of communicating with each other via at least one of a wired communication network and a wireless communication network.

[0014] The image processing device 1 performs image processing using a face image 101 generated by capturing an image of a person 100. Specifically, the image processing device 1 performs an action detection operation for detecting (in other words, identifying) an action unit occurring on the face of the person 100 captured in the face image 101 based on the face image 101. That is, the image processing device 1 performs an action detection operation for determining whether or not an action unit has occurred on the face of the person 100 captured in the face image 101 based on the face image 101. In the first embodiment, an action unit means a predetermined movement of at least one of a plurality of face parts constituting a face. An example of a face part is at least one of eyebrows, eyelids, eyes, cheeks, nose, lips, mouth, and chin.

[0015] The action units may be classified into a plurality of types according to the type of the associated face part and the type of the movement of the face part. In this case, the image processing device 1 may determine whether or not at least one of the plurality of types of action units has occurred. For example, the image processing device 1 may detect at least one of the following: an action unit corresponding to the movement of the inner eyebrows being lifted, an action unit corresponding to the movement of the outer eyebrows being lifted, an action unit corresponding to the movement of the eyebrows being lowered inward, an action unit corresponding to the movement of the upper eyelids being lifted, an action unit corresponding to the movement of the cheeks being lifted, an action unit corresponding to the movement of the eyelids being tense, an action unit corresponding to the movement of the nose being wrinkled, an action unit corresponding to the movement of the upper lip being lifted, an action unit corresponding to the movement of the eyes being slightly opened, an action unit corresponding to the action unit of the eyelids being closed, and an action unit of the action unit of the eyes being narrowed. Note that the image processing device 1 may use, for example, a plurality of types of action units defined by FACS (Facial Action Coding System) as such a plurality of types of action units. However, the action units of the first embodiment are not limited to the action units defined by FACS.

[0016] The image processing device 1 performs an action detection operation using a computation model capable of learning (hereinafter, referred to as a "learning model"). The learning model may be, for example, a computation model that, when a face image 101 is input, outputs information about an action unit occurring on the face of a person 100 appearing in the face image 101. However, the image processing device 1 may perform an action detection operation using a method different from the method using the learning model.

[0017] The data generating device 2 performs a data generating operation for generating a learning data set 220 that can be used to train a learning model used by the image processing device 1. The learning of the learning model is performed, for example, to improve the detection accuracy of the action unit by the learning model (that is, the detection accuracy of the action unit by the image processing device 1). However, the learning model may be trained without using the learning data set 220 generated by the data generating device 2. In other words, the learning method of the learning model is not limited to the learning method using the learning data set 220. In the first embodiment, the data generating device 2 generates a plurality of face data 221 to generate a learning data set 220 including at least a part of the plurality of face data 221. Each face data 221 is data representing the facial features of a virtual (in other words, pseudo) person 200 (see FIG. 15 to be described later, etc.) corresponding to each face data 221. For example, each face data 221 may be data representing the facial features of the virtual person 200 corresponding to each face data 221 using the feature points of the face. Furthermore, each face data 221 is data to which a correct answer label indicating the type of action unit occurring on the face of the virtual person 200 corresponding to each face data 221 is added.

[0018] The learning model of the image processing device 1 is trained using the training data set 220. Specifically, in order to train the learning model, feature points included in the face data 221 are input to the learning model. After that, parameters defining the learning model (for example, at least one of the weight and bias of a neural network) are trained based on the output of the learning model and the correct label assigned to the face data 221. The image processing device 1 performs an action detection operation using the learning model trained using the training data set 220.

[0019] The data storage device 3 performs a data storage operation for generating a feature point database 320 that the data generating device 2 refers to in order to generate the learning dataset 220 (i.e., generate a plurality of face data 221). Specifically, the data storage device 3 collects feature points of the face of the person 300 appearing in the face image 301 based on the face image 301 generated by capturing an image of the person 300 (see FIG. 6, etc., described later). The face image 301 may be generated by capturing an image of the person 300 in which at least one desired type of action unit occurs. Alternatively, the face image 301 may be generated by capturing an image of the person 300 in which no type of action unit occurs. In any case, the presence or absence and type of action units occurring on the face of the person 300 appearing in the face image 301 are known information to the data storage device 3. Furthermore, the data storage device 3 generates a feature point database 320 that stores (i.e., accumulates or includes) the collected feature points in a state in which the type of action unit occurring on the face of the person 300 is associated with the type of action unit occurring on the face of the person 300 and classified by face part. The data structure of the feature point database 320 will be described in detail later.

[0020] (1-2) Configuration of image processing device 1 Next, the configuration of the image processing device 1 of the first embodiment will be described with reference to Fig. 2. Fig. 2 is a block diagram showing the configuration of the image processing device 1 of the first embodiment.

[0021] 2, the image processing device 1 includes a camera 11, a calculation device 12, and a storage device 13. Furthermore, the image processing device 1 may include an input device 14 and an output device 15. However, the image processing device 1 does not have to include at least one of the input device 14 and the output device 15. The camera 11, the calculation device 12, the storage device 13, the input device 14, and the output device 15 may be connected via a data bus 16.

[0022] The camera 11 generates a facial image 101 by capturing an image of the person 100. The facial image 101 generated by the camera 11 is input from the camera 11 to the arithmetic device 12. Note that the image processing device 1 does not need to include the camera 11. In this case, a camera disposed outside the image processing device 1 may capture an image of the person 100 to generate the facial image 101. The facial image 101 generated by a camera disposed outside the image processing device 1 may be input to the arithmetic device 12 via the input device 14.

[0023] The arithmetic device 12 includes a processor including at least one of a central processing unit (CPU), a graphic processing unit (GPU), a field programmable gate array (FPGA), a tensor processing unit (TPU), an application specific integrated circuit (ASIC), and a quantum processor. The arithmetic device 12 may include a single processor or multiple processors. The arithmetic device 12 reads a computer program. For example, the arithmetic device 12 may read a computer program stored in a storage device 13. For example, the arithmetic device 12 may read a computer program stored in a computer-readable and non-transitory storage medium using a storage medium reading device (not shown). The arithmetic device 12 may obtain (i.e., download or read) a computer program from a device (not shown) located outside the image processing device 1 via an input device 14 capable of functioning as a receiving device. The arithmetic device 12 executes the read computer program. As a result, a logical functional block for executing an operation (for example, an action detection operation) that the image processing device 1 should perform is realized within the arithmetic device 12. In other words, the arithmetic device 12 can function as a controller for realizing a logical functional block for executing an operation that the image processing device 1 should perform.

[0024] 2 shows an example of a logical functional block realized in the arithmetic device 12 for executing the action detection operation. As shown in FIG. 2, in the arithmetic device 12, a feature point detection unit 121, a face direction calculation unit 122, a position correction unit 123, and an action detection unit 124 are realized as logical functional blocks for executing the action detection operation. Note that the details of the operations of the feature point detection unit 121, the face direction calculation unit 122, the position correction unit 123, and the action detection unit 124 will be described later, but the outline thereof will be briefly described below. The feature point detection unit 121 detects the feature points of the face of the person 100 reflected in the face image 101 based on the face image 101. The face direction calculation unit 122 generates face angle information indicating the face direction of the person 100 reflected in the face image 101 by an angle based on the face image 101. The position correction unit 123 generates position information on the positions of the feature points detected by the feature point detection unit 121, and corrects the generated position information based on the face angle information generated by the face direction calculation unit 122. The action detection unit 124 determines whether or not an action unit has occurred on the face of the person 100 appearing in the face image 101, based on the position information corrected by the position correction unit 123.

[0025] The storage device 13 can store desired data. For example, the storage device 13 may temporarily store a computer program executed by the arithmetic device 12. The storage device 13 may temporarily store data that is temporarily used by the arithmetic device 12 when the arithmetic device 12 is executing a computer program. The storage device 13 may store data that the image processing device 1 stores for a long period of time. The storage device 13 may include at least one of a RAM (Random Access Memory), a ROM (Read Only Memory), a hard disk device, a magneto-optical disk device, an SSD (Solid State Drive), and a disk array device. In other words, the storage device 13 may include a non-temporary recording medium.

[0026] The input device 14 is a device that accepts input of information to the image processing device 1 from outside the image processing device 1. For example, the input device 14 may include an operation device (for example, at least one of a keyboard, a mouse, and a touch panel) that can be operated by a user of the image processing device 1. For example, the input device 14 may include a reading device that can read information recorded as data on a recording medium that can be attached externally to the image processing device 1. For example, the input device 14 may include a receiving device that can receive information transmitted as data to the image processing device 1 from outside the image processing device 1 via a communication network.

[0027] The output device 15 is a device that outputs information to the outside of the image processing device 1. For example, the output device 15 may output information related to the action detection operation performed by the image processing device 1 (for example, information related to a list of detected actions). An example of such an output device 15 is a display that can output (i.e., display) information as an image. An example of the output device 15 is a speaker that can output information as sound. An example of the output device 15 is a printer that can output a document on which information is printed. An example of the output device 15 is a transmission device that can transmit information as data via a communication network or a data bus.

[0028] (1-3) Configuration of Data Generator 2 Next, the configuration of the data generating device 2 of the first embodiment will be described with reference to Fig. 3. Fig. 3 is a block diagram showing the configuration of the data generating device 2 of the first embodiment.

[0029] 3, the data generating device 2 includes a calculation device 21 and a storage device 22. The data generating device 2 may further include an input device 23 and an output device 24. However, the data generating device 2 does not have to include at least one of the input device 23 and the output device 24. The calculation device 21, the storage device 22, the input device 23, and the output device 24 may be connected via a data bus 25.

[0030] The arithmetic device 21 includes at least one of a CPU, a GPU, and an FPGA, for example. The arithmetic device 21 reads a computer program. For example, the arithmetic device 21 may read a computer program stored in the storage device 22. For example, the arithmetic device 21 may read a computer program stored in a computer-readable and non-transient recording medium using a recording medium reading device (not shown). The arithmetic device 21 may acquire (i.e., download or read) a computer program from a device (not shown) disposed outside the data generating device 2 via an input device 23 capable of functioning as a receiving device. The arithmetic device 21 executes the read computer program. As a result, a logical function block for executing an operation (e.g., a data generating operation) that the data generating device 2 should perform is realized in the arithmetic device 21. In other words, the arithmetic device 21 can function as a controller for realizing a logical function block for executing an operation that the data generating device 2 should perform.

[0031] 3 shows an example of a logical functional block realized in the arithmetic device 21 for executing the data generating operation. As shown in FIG. 3, a feature point selection unit 211 and a face data generation unit 212 are realized in the arithmetic device 21 as logical functional blocks for executing the data generating operation. The details of the operations of the feature point selection unit 211 and the face data generation unit 212 will be described later, but the outline thereof will be briefly described below. The feature point selection unit 211 selects at least one feature point for each of a plurality of face parts from the feature point database 320. The face data generation unit 211 generates face data 211 that represents the facial features of a virtual person by combining a plurality of feature points corresponding to each of a plurality of face parts selected by the feature point selection unit 211.

[0032] The storage device 22 can store desired data. For example, the storage device 22 may temporarily store a computer program executed by the arithmetic device 21. The storage device 22 may temporarily store data that is temporarily used by the arithmetic device 21 when the arithmetic device 21 is executing a computer program. The storage device 22 may store data that is to be stored by the data generating device 2 for a long period of time. The storage device 22 may include at least one of a RAM, a ROM, a hard disk device, a magneto-optical disk device, an SSD, and a disk array device. In other words, the storage device 22 may include a non-temporary recording medium.

[0033] The input device 23 is a device that accepts input of information to the data generating device 2 from outside the data generating device 2. For example, the input device 23 may include an operation device (for example, at least one of a keyboard, a mouse, and a touch panel) that can be operated by a user of the data generating device 2. For example, the input device 23 may include a reading device that can read information recorded as data on a recording medium that can be attached externally to the data generating device 2. For example, the input device 23 may include a receiving device that can receive information transmitted as data from outside the data generating device 2 via a communication network to the data generating device 2.

[0034] The output device 24 is a device that outputs information to the outside of the data generating device 2. For example, the output device 24 may output information related to the data generating operation performed by the data generating device 2. For example, the output device 24 may output a learning data set 220 including at least a part of the multiple face data 221 generated by the data generating operation to the image processing device 1. An example of such an output device 24 is a transmission device that can transmit information as data via a communication network or a data bus. An example of the output device 24 is a display that can output (i.e., display) information as an image. An example of the output device 24 is a speaker that can output information as sound. An example of the output device 24 is a printer that can output a document on which information is printed.

[0035] (1-4) Configuration of Data Storage Device 3 Next, the configuration of the data storage device 3 of the first embodiment will be described with reference to Fig. 4. Fig. 4 is a block diagram showing the configuration of the data storage device 3 of the first embodiment.

[0036] 4, the data storage device 3 includes a calculation device 31 and a storage device 32. The data storage device 3 may further include an input device 33 and an output device 34. However, the data storage device 3 does not have to include at least one of the input device 33 and the output device 34. The calculation device 31, the storage device 32, the input device 33, and the output device 34 may be connected via a data bus 35.

[0037] The arithmetic device 31 includes at least one of a CPU, a GPU, and an FPGA, for example. The arithmetic device 31 reads a computer program. For example, the arithmetic device 31 may read a computer program stored in the storage device 32. For example, the arithmetic device 31 may read a computer program stored in a computer-readable and non-transient recording medium using a recording medium reading device (not shown). The arithmetic device 31 may obtain (i.e., download or read) a computer program from a device (not shown) disposed outside the data storage device 3 via an input device 33 capable of functioning as a receiving device. The arithmetic device 31 executes the read computer program. As a result, a logical function block for executing an operation (e.g., a data storage operation) that the data storage device 3 should perform is realized in the arithmetic device 31. In other words, the arithmetic device 31 can function as a controller for realizing a logical function block for executing an operation that the data storage device 3 should perform.

[0038] FIG. 4 shows an example of a logical functional block realized in the arithmetic device 31 for executing the data accumulation operation. As shown in FIG. 4, in the arithmetic device 31, a feature point detection unit 311, a state / attribute specification unit 312, and a database generation unit 313 are realized as logical functional blocks for executing the data accumulation operation. Note that the details of the operations of the feature point detection unit 311, the state / attribute specification unit 312, and the database generation unit 313 will be described later, but the outline thereof will be briefly described below. The feature point detection unit 311 detects the facial feature points of a person 300 appearing in the face image 301 based on the face image 301. Note that the face image 101 used by the image processing device 1 described above may be used as the face image 301. An image different from the face image 101 used by the image processing device 1 described above may be used as the face image 301. For this reason, the person 300 appearing in the face image 301 may be the same as the person 100 appearing in the face image 101, or may be different. The state / attribute identification unit 312 identifies the type of action unit occurring on the face of the person 300 appearing in the face image 301. The database generation unit 313 generates a feature point database 320 that stores (i.e., accumulates or includes) the feature points detected by the feature point detection unit 311 in a state where the feature points are associated with information indicating the type of action unit identified by the state / attribute identification unit 312 and are classified by facial part. In other words, the database generation unit 313 generates the feature point database 320 that includes a plurality of feature points that are associated with information indicating the type of action unit occurring on the face of the person 300 and are classified by each of a plurality of facial parts.

[0039] The storage device 32 can store desired data. For example, the storage device 32 may temporarily store a computer program executed by the arithmetic device 31. The storage device 32 may temporarily store data that is temporarily used by the arithmetic device 31 when the arithmetic device 31 is executing a computer program. The storage device 32 may store data that the data accumulation device 3 stores for a long period of time. The storage device 32 may include at least one of a RAM, a ROM, a hard disk device, a magneto-optical disk device, an SSD, and a disk array device. In other words, the storage device 32 may include a non-temporary recording medium.

[0040] The input device 33 is a device that accepts information input to the data storage device 3 from outside the data generation device 3. For example, the input device 33 may include an operation device (for example, at least one of a keyboard, a mouse, and a touch panel) that can be operated by a user of the data storage device 3. For example, the input device 33 may include a reading device that can read information recorded as data on a recording medium that can be attached externally to the data storage device 3. For example, the input device 33 may include a receiving device that can receive information transmitted as data from outside the data storage device 3 to the data storage device 3 via a communication network.

[0041] The output device 34 is a device that outputs information to the outside of the data storage device 3. For example, the output device 34 may output information related to the data storage operation performed by the data storage device 3. For example, the output device 34 may output the feature point database 320 (or at least a part thereof) generated by the data storage operation to the data generating device 2. An example of such an output device 34 is a transmission device capable of transmitting information as data via a communication network or a data bus. An example of the output device 34 is a display capable of outputting (i.e., displaying) information as an image. An example of the output device 34 is a speaker capable of outputting information as sound. An example of the output device 34 is a printer capable of outputting a document on which information is printed.

[0042] (2) Operational flow of the information processing system SYS Next, the operation of the information processing system SYS will be described. As described above, the image processing device 1, the data generating device 2, and the data storing device 3 each perform an action detection operation, a data generation operation, and a data storage operation. Therefore, the action detection operation, the data generation operation, and the data storage operation will be described in this order below. However, for convenience of explanation, the data storage operation will be described first, then the data generation operation will be described, and finally the action detection operation will be described.

[0043] (2-1) Data accumulation operation flow First, the flow of the data storage operation performed by the data storage device 3 will be described with reference to Fig. 5. Fig. 5 is a flowchart showing the flow of the data storage operation performed by the data storage device 3.

[0044] 5, the arithmetic device 31 acquires a face image 301 using the input device 33 (step S31). The arithmetic device 31 may acquire a single face image 301. The arithmetic device 31 may acquire a plurality of face images 301. When the arithmetic device 31 acquires a plurality of face images 301, the arithmetic device 31 may perform the operations of steps S32 to S36 described below for each of the plurality of face images 301.

[0045] Thereafter, the feature point detection unit 311 detects the face of the person 300 reflected in the face image 301 acquired in step S31 (step S32). The feature point detection unit 311 may detect the face of the person 300 reflected in the face image 301 by using an existing method for detecting the face of a person reflected in an image. An example of a method for detecting the face of the person 300 reflected in the face image 301 will be briefly described below. As shown in FIG. 6, which is a plan view showing an example of the face image 301, not only the face of the person 300 but also parts other than the face of the person 300 and the background of the person 300 may be reflected in the face image 301. Therefore, the feature point detection unit 311 specifies a face region 302 in which the face of the person 300 is reflected from the face image 301. The face region 302 is, for example, a rectangular region, but may be a region of another shape. The feature point detection unit 311 may extract an image portion included in the identified face region 302 of the face image 301 as a new face image 303 .

[0046] Thereafter, the feature point detection unit 311 detects a plurality of feature points of the face of the person 300 based on the face image 303 (or the face image 301 in which the face region 302 is specified) (step S33). For example, as shown in FIG. 7, which is a plan view showing an example of a plurality of feature points detected on the face image 303, the feature point detection unit 311 detects characteristic parts of the face of the person 300 included in the face image 303 as feature points. In the example shown in FIG. 7, the feature point detection unit 311 detects at least a part of the facial outline, eyes, eyebrows, between the eyebrows, ears, nose, mouth, and chin of the person 300 as a plurality of feature points. The feature point detection unit 311 may detect a single feature point for each face part, or may detect a plurality of feature points for each face part. For example, the feature point detection unit 311 may detect a single feature point related to the eyes, or may detect a plurality of feature points related to the eyes. In FIG. 7 (and further in the drawings described below), the hair of the person 300 is omitted for the sake of simplicity.

[0047] Before or after or in parallel with the operations from step S32 to step S33, the state / attribute specification unit 312 specifies the type of action unit occurring on the face of the person 300 appearing in the face image 301 acquired in step S31 (step S34). Specifically, as described above, the face image 301 is an image in which the presence or absence and type of action unit occurring on the face of the person 300 appearing in the face image 301 is known to the data storage device 3. In this case, the face image 301 may be associated with action information indicating the presence or absence and type of action unit occurring on the face of the person 300 appearing in the face image 301. That is, in step S31, the calculation device 31 may acquire action information indicating the presence or absence and type of action unit occurring on the face of the person 300 appearing in the face image 301 together with the face image 301. As a result, the state / attribute specification unit 312 can specify the presence or absence and type of action unit occurring on the face of the person 300 appearing in the face image 301 based on the action information. In other words, the state / attribute identification unit 312 can identify the presence or absence and type of action units occurring on the face of the person 300 appearing in the facial image 301 without performing image processing on the facial image 301 to detect action units.

[0048] It should be noted that the action unit can be said to be information that indicates the state of the face of the person 300 using the movement of the facial parts. In this case, the action information acquired by the arithmetic device 31 together with the facial image 301 may be called state information because it is information that indicates the state of the face of the person 300 using the movement of the facial parts.

[0049] Before or after or in parallel with the operations from step S32 to step S34, the state / attribute identification unit 312 identifies attributes of the person 300 appearing in the face image 301 based on the face image 301 (or face image 303) (step S35). The attributes identified in step S35 may include an attribute having a first property that a change in the attribute leads to a change in the position (i.e., the position in the face image 301) of at least one of the multiple face parts constituting the face appearing in the face image 301. The attributes identified in step S35 may include an attribute having a second property that a change in the attribute leads to a change in the shape (i.e., the shape in the face image 301) of at least one of the multiple face parts constituting the face appearing in the face image 301. The attributes identified in step S35 may include an attribute having a third property that a change in the attribute leads to a change in the contour (i.e., the contour in the face image 301) of at least one of the multiple face parts constituting the face appearing in the face image 301. In this case, taking into consideration that at least one of the position, shape, and contour of facial features has a relatively large influence on the incongruity of the face, the data generating device 2 (FIG. 1) or the computing device 21 (FIG. 3) can appropriately generate face data 221 indicating the facial feature points of a virtual person 200 that has little or no incongruity as a human face.

[0050] For example, the positions of the facial features reflected in the face image 301 obtained by capturing the face of the person 300 facing in a first direction may differ from the positions of the facial features reflected in the face image 301 obtained by capturing the face of the person 300 facing in a second direction different from the first direction. Specifically, the positions of the eyes of the person 300 facing forward in the face image 301 may differ from the positions of the eyes of the person 300 facing left and right in the face image 301. Similarly, the shapes of the facial features reflected in the face image 301 obtained by capturing the face of the person 300 facing in a first direction may differ from the shapes of the facial features reflected in the face image 301 obtained by capturing the face of the person 300 facing in a second direction. Specifically, the shape of the nose of the person 300 facing forward in the face image 301 may differ from the shape of the nose of the person 300 facing left and right in the face image 301. Similarly, the contour of the facial part reflected in the face image 301 obtained by capturing the face of the person 300 facing in the first direction may be different from the contour of the facial part reflected in the face image 301 obtained by capturing the face of the person 300 facing in the second direction. Specifically, the contour of the mouth of the person 300 facing forward in the face image 301 may be different from the contour of the mouth of the person 300 facing left or right in the face image 301. For this reason, the face direction is an example of an attribute having at least one of the first to third properties. In this case, the state / attribute specifying unit 312 may specify the face direction of the person 300 reflected in the face image 301 based on the face image 301. In other words, the state / attribute specifying unit 312 may specify the face direction of the person 300 reflected in the face image 301 by analyzing the face image 301.

[0051] The state / attribute identification unit 312 may identify (i.e., calculate) a parameter (hereinafter referred to as "face direction angle θ") expressing the face direction by an angle. The face direction angle θ may mean an angle between a reference axis extending in a predetermined direction from the face and a comparison axis along the direction in which the face is actually facing. Hereinafter, such a face direction angle θ will be described with reference to Figs. 8 to 12. Note that in Figs. 8 to 12, the face direction angle θ will be described using a coordinate system in which the lateral direction (i.e., horizontal direction) of the face direction image 301 is the X-axis direction and the vertical direction (i.e., vertical direction) of the face direction image 301 is the Y-axis direction.

[0052] FIG. 8 is a plan view showing a face image 301 in which a person 300 facing forward is captured in the face image 301. The face direction angle θ may be a parameter that is zero when the person 300 faces forward in the face image 301. Therefore, the reference axis may be an axis along the direction in which the person 300 faces when the person 300 faces forward in the face image 301. Typically, the face image 301 is generated by a camera capturing an image of the person 300, so a state in which the person 300 faces forward in the face image 301 may mean a state in which the person 300 faces directly to the camera capturing the image of the person 300. In this case, the optical axis (or an axis parallel to the optical axis) of an optical system (for example, a lens) included in the camera capturing the image of the person 300 may be used as the reference axis.

[0053] Fig. 9 is a plan view showing a face image 301 in which a person 300 facing rightward is captured. That is, Fig. 9 is a plan view showing a face image 301 in which a person 300 whose face has been rotated around an axis along the vertical direction (the Y-axis direction in Fig. 9) (that is, whose face has been moved in the pan direction) is captured. In this case, as shown in Fig. 10, which is a plan view showing the direction of the face of the person 300 in a horizontal plane (that is, a plane perpendicular to the Y-axis), the reference axis and the comparison axis intersect at an angle different from 0 degrees in the horizontal plane. That is, the face direction angle θ in the pan direction (more specifically, the rotation angle of the face around an axis along the vertical direction) is an angle different from 0 degrees.

[0054] Fig. 11 is a plan view showing a face image 301 in which a person 300 looking downward is reflected. That is, Fig. 11 is a plan view showing a face image 301 in which a person 300 is reflected with his / her face rotated around an axis along the horizontal direction (the X-axis direction in Fig. 11) (that is, the face is moved in the tilt direction). In this case, as shown in Fig. 12, which is a plan view showing the face direction of the person 300 in a vertical plane (that is, a plane perpendicular to the X-axis), the reference axis and the comparison axis intersect at an angle different from 0 degrees in the vertical plane. That is, the face direction angle θ in the tilt direction (more specifically, the rotation angle of the face around an axis along the horizontal direction) is an angle different from 0 degrees.

[0055] Since the face may be turned up, down, left, or right in this manner, the state / attribute identification unit 312 may separately identify the face direction angle θ in the pan direction (hereinafter referred to as "face direction angle θ_pan") and the face direction angle θ in the tilt direction (hereinafter referred to as "face direction angle θ_tilt"). However, the state / attribute identification unit 312 may identify one of the face direction angles θ_pan and θ_tilt while not identifying the other of the face direction angles θ_pan and θ_tilt. The state / attribute identification unit 312 may identify the angle between the reference axis and the comparison axis as the face direction angle θ without distinguishing between the face direction angles θ_pan and θ_tilt. In the following description, unless otherwise specified, the face direction angle θ may mean both or either of the face direction angles θ_pan and θ_tilt.

[0056] Alternatively, the state / attribute specification unit 312 may specify other attributes of the person 300 in addition to or instead of the face orientation of the person 300 appearing in the face image 301. For example, at least one of the position, shape, and contour of a facial part appearing in the face image 301 obtained by imaging the face of the person 300 having a first aspect ratio (for example, a vertical to horizontal ratio) may be different from at least one of the position, shape, and contour of a facial part appearing in the face image 301 obtained by imaging the face of the person 300 having a second aspect ratio different from the first ratio. For example, at least one of the position, shape, and contour of a facial part appearing in the face image 301 obtained by imaging the face of the person 300 who is a man may be different from at least one of the position, shape, and contour of a facial part appearing in the face image 301 obtained by imaging the face of the person 300 who is a woman. For example, at least one of the position, shape, and contour of a facial feature reflected in a face image 301 obtained by capturing the face of a person 300 of a first type of race may be different from at least one of the position, shape, and contour of a facial feature reflected in a face image 301 obtained by capturing the face of a person 300 of a second type of race different from the first type of race. This is because the skeleton (and therefore the facial expression) may differ greatly depending on the race. For this reason, at least one of the aspect ratio of the face, gender, and race may be given as another example of an attribute having at least one of the first to third properties. In this case, the state / attribute specification unit 312 may specify at least one of the aspect ratio of the face of the person 300 reflected in the face image 301, the gender of the person 300 reflected in the face image 301, and the race of the person 300 reflected in the face image 301 based on the face image 301. In this case, considering that at least one of the face direction angle θ, face aspect ratio, gender, and race has a relatively large influence on the position, shape, or contour of each part of the face that causes discomfort, the data generation device 2 or the calculation device 21 can appropriately generate face data 221 indicating the facial feature points of a virtual person 200 that has little or no discomfort as a human face by using at least one of the face direction angle θ, face aspect ratio, gender, and race as an attribute.In the following description, for simplicity, an example will be described in which the state / attribute specifying unit 312 specifies the face direction angle θ as the attribute.

[0057] 5 again, thereafter, the database generation unit 313 generates a feature point database 320 based on the feature points detected in step S33, the type of action unit identified in step S34, and the facial direction angle θ (i.e., the attribute of the person 300) identified in step S35 (step S36). Specifically, the database generation unit 313 generates the feature point database 320 including a data record 321 in which the feature points detected in step S33, the type of action unit identified in step S34, and the facial direction angle θ (i.e., the attribute of the person 300) identified in step S35 are associated with each other.

[0058] To generate the feature point database 320, the database generation unit 313 generates data records 321 for the number of types of facial parts corresponding to the feature points detected in step S33. For example, when feature points related to the eyes, feature points related to the eyebrows, and feature points related to the nose are detected in step S33, the database generation unit 313 generates a data record 321 including feature points related to the eyes, a data record 321 including feature points related to the eyebrows, and a data record 321 including feature points related to the nose. As a result, the database generation unit 313 generates the feature point database 320 including a plurality of data records 321 including feature points associated with the face direction angle θ and classified by each unit of a plurality of facial parts.

[0059] When there are multiple facial parts of the same type, the database generating unit 313 may generate a data record 321 including feature points of the multiple facial parts of the same type together. Alternatively, the database generating unit 313 may generate multiple data records 321 each including feature points of the multiple facial parts of the same type. For example, a face includes facial parts of the same type, that is, a right eye and a left eye, which are "eyes". In this case, the database generating unit 313 may separately generate a data record 321 including feature points related to the right eye and a data record 321 including feature points related to the left eye. Alternatively, the database generating unit 313 may generate a data record 321 including feature points related to the right eye and a data record 321 including feature points related to the left eye together.

[0060] An example of the data structure of the feature point database 320 is shown in FIG. 13. As shown in FIG. 13, the feature point database 320 includes a plurality of data records 321. Each data record 321 includes a data field 3210 indicating an identification number (ID) of each data record 321, a feature point data field 3211, an attribute data field 3212, and an action unit data field 3213. The feature point data field 3211 is a data field for storing information on the feature points detected in step S33 of FIG. 5 as data. In the example shown in FIG. 13, the feature point data field 3211 stores, as data, for example, position information indicating the position of a feature point related to one face part and part information indicating the type of one face part. The attribute data field 3212 is a data field for storing information on an attribute (in this case, the face direction angle θ) as data. In the example shown in Fig. 13, for example, information indicating a face direction angle θ_pan in the pan direction and information indicating a face direction angle θ_tilt in the tilt direction are recorded as data in the attribute data field 3212. The action unit data field 3213 is a data field for storing information related to action units. In the example shown in Fig. 13, for example, information indicating whether a first type of action unit AU#1 has occurred, information indicating whether a second type of action unit AU#2 has occurred, ..., information indicating whether a kth type of action unit AU#k (where k is an integer equal to or greater than 1) has occurred are recorded as data in the action unit data field 3213.

[0061] Each data record 321 includes information (e.g., position information) on feature points related to the face parts of the type indicated by the part information, detected from a face facing in the direction indicated by the attribute data field 3212 and in which an action unit of the type indicated by the action unit data field 3213 occurs. For example, the data record 321 with the identification number #1 includes information (e.g., position information) on feature points related to eyebrows, detected from a face in which the face direction angle θ_pan is 5 degrees, the face direction angle θ_tilt is 15 degrees, and a first type of action unit AU#1 occurs.

[0062] The positions of the feature points stored in the feature point data field 3211 may be normalized by the size of the face of the person 300. For example, the database generation unit 320 may normalize the positions of the feature points detected in step S33 of Fig. 5 by the size of the face of the person 300 (e.g., area, length, or width) and generate a data record 321 including the normalized positions. In this case, the possibility that the positions of the feature points stored in the feature point database 320 will vary due to variations in the size of the face of the person 300 is reduced. As a result, the feature point database 320 can store feature points in which the variation (i.e., individual differences) due to the size of the face of the person 300 is reduced or eliminated.

[0063] The generated feature point database 320 may be stored in, for example, the storage device 32. If the storage device 32 already stores the feature point database 320, the database generation unit 313 may add the new data record 321 to the feature point database 320 stored in the storage device 32. The operation of adding the data record 321 to the feature point database 320 is substantially equivalent to the operation of regenerating the feature point database 320.

[0064] The data storage device 3 may repeat the above-mentioned data storage operation shown in Fig. 5 for a plurality of different face images 301. The plurality of different face images 301 may include a plurality of face images 301 each including a plurality of different persons 300. The plurality of different face images 301 may include a plurality of face images 301 including the same person 300. As a result, the data storage device 3 can generate a feature point database 320 including a plurality of data records 321 collected from the plurality of different face images 301.

[0065] (2-2) Data generation operation flow Next, a flow of the data generating operation performed by the data generating device 2 will be described. As described above, the data generating device 2 performs a data generating operation to generate face data 221 indicating the facial feature points of the virtual person 200. Specifically, as described above, the data generating device 2 selects at least one feature point for each of a plurality of facial parts from the feature point database 320. That is, the data generating device 2 selects a plurality of feature points corresponding to the plurality of facial parts from the feature point database 320. Thereafter, the data generating device 2 generates the face data 221 by combining the selected plurality of feature points.

[0066] In the first embodiment, when selecting a plurality of feature points respectively corresponding to a plurality of facial parts, the data generating device 2 may extract a data record 321 that satisfies a desired condition from the feature point database 320, and select the feature points included in the identified data record 321 as the feature points for generating the face data 221.

[0067] For example, the data generating device 2 may adopt a condition related to an action unit as an example of a desired condition. For example, the data generating device 2 may extract a data record 321 in which the action unit data field 3213 indicates that a desired type of action unit has occurred. In this case, the data generating device 2 selects feature points collected from a face image 301 in which a face in which a desired type of action unit has occurred is captured. In other words, the data generating device 2 selects feature points associated with information indicating that a desired type of action unit has occurred.

[0068] For example, the data generating device 2 may employ a condition related to an attribute (in this case, the face direction angle θ) as another example of the desired condition. For example, the data generating device 2 may extract a data record 321 in which the attribute data field 3213 indicates that the attribute is a desired attribute (for example, the face direction angle θ is a desired angle). In this case, the data generating device 2 selects feature points collected from a face image 301 in which a face with a desired attribute is captured. In other words, the data generating device 2 selects feature points associated with information indicating that the attribute is a desired attribute (for example, the face direction angle θ is a desired angle).

[0069] The flow of such a data generating operation will be described below with reference to Fig. 14. Fig. 14 is a flowchart showing the flow of the data generating operation performed by the data generating device 2.

[0070] As shown in FIG. 14, the feature point selection unit 211 may set a condition related to the action unit as a condition for selecting the feature point (step S21). That is, the feature point selection unit 211 may set the type of action unit corresponding to the feature point to be selected as the condition related to the action unit. In this case, the feature point selection unit 211 may set only one condition related to the action unit, or may set multiple conditions related to the action unit. That is, the feature point selection unit 211 may set only one type of action unit corresponding to the feature point to be selected, or may set multiple types of action units corresponding to the feature point to be selected. However, the feature point selection unit 211 may not set a condition related to the action unit. That is, the data generation device 2 may not perform the operation of step S21.

[0071] Before, after, or in parallel with the operation of step S21, the feature point selection unit 211 may set a condition related to an attribute (in this case, face direction angle θ) as a condition for selecting a feature point, in addition to or instead of a condition related to an action unit (step S22). That is, the feature point selection unit 211 may set a face direction angle θ corresponding to a feature point to be selected as a condition related to the face direction angle θ. For example, the feature point selection unit 211 may set a value of the face direction angle θ corresponding to the feature point to be selected. For example, the feature point selection unit 211 may set a range of the face direction angle θ corresponding to the feature point to be selected. In this case, the feature point selection unit 211 may set only one condition related to the face direction angle θ, or may set multiple conditions related to the face direction angle θ. That is, the feature point selection unit 211 may set only one face direction angle θ corresponding to a feature point to be selected, or may set multiple face direction angles θ corresponding to the feature point to be selected. However, the feature point selection unit 211 may not set a condition related to an attribute. In other words, the data generating device 2 does not need to perform the operation of step S22.

[0072] The feature point selection unit 211 may set conditions for the action units based on an instruction from the user of the data generating device 2. For example, the feature point selection unit 211 may acquire a user's instruction for setting conditions for the action units via the input device 23, and set conditions for the action units based on the acquired user's instruction. Alternatively, the feature point selection unit 211 may randomly set conditions for the action units. When the image processing device 1 detects at least one of a plurality of types of action units as described above, the feature point selection unit 211 may set conditions for the action units so that the plurality of types of action units detected by the image processing device 1 are sequentially set as action units corresponding to the feature points to be selected by the data generating device 2. The same applies to conditions for attributes.

[0073] Thereafter, the feature point selection unit 211 randomly selects at least one feature point for each of the multiple facial parts from the feature point database 320 (step S23). That is, the feature point selection unit 211 randomly selects a data record 321 including a feature point of one facial part, and repeats the operation of selecting a feature point included in the selected data record 321 until multiple feature points respectively corresponding to the multiple facial parts have been selected. For example, the feature point selection unit 211 may perform the following operations: randomly selecting a data record 321 including an eyebrow feature point and selecting the feature points included in the selected data record 321; randomly selecting a data record 321 including an eye feature point and selecting the feature points included in the selected data record 321; randomly selecting a data record 321 including a nose feature point and selecting the feature points included in the selected data record 321; randomly selecting a data record 321 including an upper lip feature point and selecting the feature points included in the selected data record 321; randomly selecting a data record 321 including a lower lip feature point and selecting the feature points included in the selected data record 321; and randomly selecting a data record 321 including a cheek feature point and selecting the feature points included in the selected data record 321.

[0074] When randomly selecting a feature point of one facial part, the feature point selection unit 211 refers to at least one of the conditions related to the action unit set in step S21 and the conditions related to the attributes set in step S22. In other words, the feature point selection unit 211 randomly selects a feature point of one facial part that satisfies at least one of the conditions related to the action unit set in step S21 and the conditions related to the attributes set in step S22.

[0075] Specifically, the feature point selection unit 211 may randomly extract one data record 321 in which the action unit data field 3213 indicates that the type of action unit set in step S21 has occurred, and select feature points included in the extracted data record 321. That is, the feature point selection unit 211 may select feature points collected from a face image 301 in which a face in which the type of action unit set in step S21 has occurred appears. In other words, the feature point selection unit 211 may select feature points associated with information indicating that the type of action unit set in step S21 has occurred.

[0076] The feature point selection unit 211 may randomly extract one data record 321 in which the attribute data field 3212 indicates that the person 300 faces in a direction corresponding to the face direction angle θ set in step S22, and select feature points included in the extracted data record 321. That is, the feature point selection unit 211 may select feature points collected from a face image 301 in which a face facing in a direction corresponding to the face direction angle θ set in step S22 is captured. In other words, the feature point selection unit 211 may select feature points associated with information indicating that the person 300 faces in a direction corresponding to the face direction angle θ set in step S21. In this case, the data generation device 2 or the calculation device 21 does not need to combine feature points related to one face part of a face having one attribute with feature points related to other face parts of a face having another attribute different from the one attribute. For example, the data generation device 2 or the calculation device 21 does not need to combine feature points related to the eyes of a face facing forward with feature points related to the nose of a face facing left or right. Therefore, the data generating device 2 or the computing device 21 can generate the face data 221 by arranging a plurality of feature points respectively corresponding to a plurality of facial parts at positions that are less or not unnatural in an arrangement manner that is less or not unnatural. In other words, the data generating device 2 or the computing device 21 can appropriately generate the face data 221 indicating the feature points of the face of the virtual person 200 that are less or not unnatural as a human face.

[0077] In the case where a plurality of types of action units corresponding to the feature points to be selected are set in step S21, the feature point selection unit 211 may select feature points corresponding to at least one of the plurality of types of action units set. That is, the feature point selection unit 211 may select feature points collected from a face image 301 in which a face in which at least one of the plurality of types of action units set occurs is captured. In other words, the feature point selection unit 211 may select feature points associated with information indicating that at least one of the plurality of types of action units set occurs. Alternatively, the feature point selection unit 211 may select feature points corresponding to all of the plurality of types of action units set. That is, the feature point selection unit 211 may select feature points collected from a face image 301 in which a face in which all of the plurality of types of action units set occurs is captured. In other words, the feature point selection unit 211 may select feature points associated with information indicating that all of the plurality of types of action units set occur.

[0078] When a plurality of face direction angles θ corresponding to the feature point to be selected are set in step S22, the feature point selection unit 211 may select a feature point corresponding to at least one of the plurality of set face direction angles θ. That is, the feature point selection unit 211 may select a feature point collected from a face image 301 in which a face facing in a direction corresponding to at least one of the plurality of set face direction angles θ is captured. In other words, the feature point selection unit 211 may select a feature point associated with information indicating that the face is facing in a direction corresponding to at least one of the plurality of set face direction angles θ.

[0079] Thereafter, the face data generating unit 212 generates face data 221 by combining a plurality of feature points corresponding to the plurality of face parts selected in step S23 (step S24). Specifically, the face data generating unit 212 generates face data 221 by combining a plurality of feature points selected in step S23 such that the feature point of one face part selected in step S23 is located at the position of the feature point (i.e., the position indicated by the position information included in the data record 321). In other words, the face data generating unit 212 generates face data 221 by combining a plurality of feature points selected in step S23 such that the feature point of one face part selected in step S23 constitutes a part of the face of the virtual person. As a result, face data 221 expressing the facial features of the virtual person 200 by feature points is generated as shown in FIG. 15, which is a plan view showing the face data 221 in a schematic manner.

[0080] The generated face data 221 may be stored in the storage device 22 with the condition related to the action unit set in step S21 (i.e., the type of the action unit) assigned as a correct label. The face data 221 stored in the storage device 22 may be used as the learning data set 220 to learn the learning model of the image processing device 1, as described above.

[0081] The data generating device 2 may repeat the above-described data generating operation shown in Fig. 14 multiple times. As a result, the data generating device 2 can generate multiple pieces of face data 221. Here, the face data 221 is generated by combining feature points collected from multiple face images 301. For this reason, typically, the data generating device 2 can generate a larger number of pieces of face data 221 than the number of face images 301.

[0082] (2-3) Action detection operation flow Next, the flow of the action detection operation performed by the image processing device 1 will be described with reference to Fig. 16. Fig. 16 is a flowchart showing the flow of the action detection performed by the image processing device 1.

[0083] 16, the arithmetic device 12 acquires a face image 101 from the camera 11 using the input device 14 (step S11). The arithmetic device 12 may acquire a single face image 101. The arithmetic device 12 may acquire a plurality of face images 101. When the arithmetic device 12 acquires a plurality of face images 101, the arithmetic device 12 may perform the operations of steps S12 to S16 described below for each of the plurality of face images 101.

[0084] Thereafter, the feature point detection unit 121 detects the face of the person 100 reflected in the face image 101 acquired in step S11 (step S12). Note that the operation of the feature point detection unit 121 detecting the face of the person 100 in the action detection operation may be the same as the operation of the feature point detection unit 311 detecting the face of the person 300 in the above-mentioned data accumulation operation (step S32 in FIG. 5). For this reason, a detailed description of the operation of the feature point detection unit 121 detecting the face of the person 100 will be omitted.

[0085] Thereafter, the feature point detection unit 121 detects a plurality of facial feature points of the person 100 based on the face image 101 (or an image portion of the face image 101 that is included in the face area identified in step S12) (step S13). Note that the operation of the feature point detection unit 121 detecting the facial feature points of the person 100 in the action detection operation may be the same as the operation of the feature point detection unit 311 detecting the facial feature points of the person 300 in the above-mentioned data accumulation operation (step S33 in FIG. 5). For this reason, a detailed description of the operation of the feature point detection unit 121 detecting the facial feature points of the person 100 will be omitted.

[0086] Thereafter, the position correction unit 123 generates position information related to the positions of the feature points detected in step S13 (step S14). For example, the position correction unit 123 may calculate a relative positional relationship between the multiple feature points detected in step S13, thereby generating position information indicating the relative positional relationship. For example, the position correction unit 123 may calculate a relative positional relationship between any two feature points among the multiple feature points detected in step S13, thereby generating position information indicating the relative positional relationship.

[0087] In the following description, an example will be given in which the position correction unit 123 generates a distance (hereinafter referred to as "feature point distance L") between any two of the multiple feature points detected in step S13. In this case, when N feature points are detected in step S13, the position correction unit 123 calculates the feature point distance L between the k-th (where k is a variable indicating an integer greater than or equal to 1 and less than or equal to N) feature point and the m-th (where m is a variable indicating an integer greater than or equal to 1 and less than or equal to N and different from the variable k) feature point while changing the combination of the variables k and m. In other words, the position correction unit 123 calculates multiple feature point distances L.

[0088] The feature point distance L may include a distance between two different feature points detected from the same face image 101 (i.e., a distance in a coordinate system indicating a position within the face image 101). Alternatively, when a plurality of face images 101 are input to the image processing device 1 as time-series data, the feature point distance L may include a distance between two corresponding feature points detected from two different face images 101. Specifically, the feature point distance L may include a distance between one feature point detected from a face image 101 containing the face of the person 100 at a first time and the same one feature point detected from a face image 101 containing the face of the person 100 at a second time different from the first time (i.e., a distance in a coordinate system indicating a position within the face image 101).

[0089] Before or after or in parallel with the operations from step S12 to step S14, the face direction calculation unit 122 calculates the face direction angle θ of the person 100 appearing in the face image 101 based on the face image 101 (or an image portion of the face image 101 included in the face area identified in step S12) (step S15). Note that the operation in which the face direction calculation unit 122 detects the face direction angle θ of the person 100 in the action detection operation may be the same as the operation in which the state / attribute identification unit 312 identifies the face direction angle θ of the person 300 in the above-mentioned data accumulation operation (step S35 in FIG. 5). For this reason, a detailed description of the operation in which the face direction calculation unit 122 calculates the face direction angle θ of the person 100 will be omitted.

[0090] Thereafter, position correction unit 123 corrects the position information generated in step S14 (in this case, a plurality of feature point distances L) based on the face direction angle θ calculated in step S15 (step S16). As a result, position correction unit 123 generates corrected position information (in this case, calculates a plurality of corrected feature point distances L). In the following description, the feature point distance L calculated in step S14 (i.e., not corrected in step S16) is referred to as "feature point distance L" and the feature point distance L corrected in step S16 is referred to as "feature point distance L'" to distinguish between the two.

[0091] Here, the reason for correcting the feature point distance L based on the face direction angle θ will be described. The feature point distance L is generated to detect an action unit, as described above. This is because when an action unit occurs, usually, at least one of the multiple face parts constituting the face moves, and therefore the feature point distance L (i.e., position information regarding the position of the feature point) also changes. For this reason, the image processing device 1 can detect an action unit based on the change in the feature point distance L. On the other hand, the feature point distance L may change due to a factor other than the occurrence of an action unit. Specifically, the feature point distance L may change due to a change in the face direction of the person 100 captured in the face image 101. In this case, the image processing device 1 may erroneously determine that a certain type of action unit has occurred, even though the action unit has not occurred, because the feature point distance L has changed due to a change in the face direction of the person 100. As a result, the image processing device 1 has a technical problem in that it is no longer possible to accurately determine whether or not an action unit has occurred.

[0092] Therefore, in the first embodiment, in order to solve the above-mentioned technical problem, the image processing device 1 detects an action unit based on the feature point distance L' corrected based on the face direction angle θ instead of detecting an action unit based on the feature point distance L. Considering the reason for correcting the feature point distance L based on the face direction angle θ, it is preferable that the position correction unit 123 corrects the feature point distance L based on the face direction angle θ so as to reduce the influence of the change in the feature point distance L caused by the change in the face direction of the person 100 on the operation of determining whether or not an action unit has occurred. In other words, it is preferable that the position correction unit 123 corrects the feature point distance L based on the face direction angle θ so as to reduce the influence of the change in the feature point distance L caused by the change in the face direction of the person 100 on the detection accuracy of the action unit. Specifically, the position correction unit 123 may correct the feature point distance L based on the facial direction angle θ so as to calculate a feature point distance L' in which the amount of change caused by the change in the facial direction of the person 100 is smaller or offset (i.e., closer to the original value) compared to the feature point distance L which may have changed from the original value due to the change in the facial direction of the person 100.

[0093] As an example, the position correction unit 123 may correct the feature point distance L using a first formula of L'=L / cosθ. Note that the face direction angle θ in the first formula may mean the angle between the reference axis and the comparison axis under a situation in which the face direction angles θ_pan and θ_tilt are not distinguished. The operation of correcting the feature point distance L using the first formula of L'=L / cosθ corresponds to a specific example of an operation of correcting the feature point distance L so as to reduce the influence of a change in the feature point distance L caused by a change in the face direction of the person 100 on an operation of determining whether or not an action unit has occurred.

[0094] As described above, the face direction calculation unit 122 may calculate the face direction angle θ_pan in the pan direction and the face direction angle θ_tilt in the tilt direction as the face direction angle θ. In this case, the position correction unit 123 may decompose the feature point distance L into distance components, a distance component Lx in the X-axis direction and a distance component Ly in the Y-axis direction, and correct each of the distance components Lx and Ly. As a result, the position correction unit 123 can calculate the distance component Lx' in the X-axis direction of the feature point distance L' and the distance component Ly' in the Y-axis direction of the feature point distance L'. Specifically, the position correction unit 123 may separately correct the distance components Lx and Ly using a second formula of Lx'=Lx / cosθ_pan and a third formula of Ly'=Ly / cosθ_tilt. As a result, the position correction unit 123 may calculate L'=(Lx' 2 +Ly' 2 ) 1 / 2 Alternatively, the second formula, Lx'=Lx / cosθ_pan, and the third formula, Ly'=Ly / cosθ_tilt, can be expressed as L'=((Lx / cosθ_pan) 2 +(Ly / cosθ_tilt) 2 ) 1 / 2 That is, the position correction unit 123 may calculate the feature point distance L' by correcting the feature point distance L (distance components Lx and Ly) using the fourth formula. Note that the fourth formula is a formula for performing calculations based on the second formula and the third formula together, and therefore, like the second and third formulas, it is still a formula based on the first formula of L'=L / cosθ (that is, it is substantially equivalent to the first formula).

[0095] Here, in the first embodiment, the position correction unit 123 can correct the feature point distance L based on the face direction angle θ corresponding to a numerical parameter indicating how far the face of the person 100 is facing away from the front. As a result, as can be seen from the above-mentioned first to fourth formulas, the position correction unit 123 corrects the feature point distance L so that the correction amount of the feature point distance L when the face direction angle θ is a first angle (i.e., the difference between the feature point distance L before correction and the feature point distance L' after correction) is different from the correction amount of the feature point distance L when the face direction angle θ is a second angle different from the first angle.

[0096] Thereafter, the action detection unit 124 determines whether or not an action unit has occurred on the face of the person 100 appearing in the face image 101 based on the multiple feature point distances L' (i.e., position information) corrected by the position correction unit 123 (step S17). Specifically, the action detection unit 124 may determine whether or not an action unit has occurred on the face of the person 100 appearing in the face image 101 by inputting the multiple feature point distances L' corrected in step S16 to the learning model described above. In this case, the learning model may generate a feature vector based on the multiple feature point distances L', and output a determination result of whether or not an action unit has occurred on the face of the person 100 appearing in the face image 101 based on the generated feature vector. The feature vector may be a vector in which multiple feature point distances L' are arranged. The feature vector may be a vector indicating the features of the multiple feature point distances L'.

[0097] (3) Technical Effects of Information Processing System SYS As described above, in the first embodiment, the image processing device 1 can determine whether or not an action unit occurs on the face of the person 100 appearing in the facial image 101. In other words, the image processing device 1 can detect an action unit that occurs on the face of the person 100 appearing in the facial image 101.

[0098] In particular, in the first embodiment, the image processing device 1 corrects the feature point distance L (i.e., position information related to the positions of the feature points of the face of the person 100) based on the face direction angle θ of the person 100, and can determine whether or not an action unit has occurred based on the corrected feature point distance L. Therefore, compared to a case where the feature point distance L is not corrected based on the face direction angle θ, the image processing device 1 is less likely to erroneously determine that a certain type of action unit has occurred even when no action unit has occurred because the feature point distance L has changed due to a change in the face direction of the person 100. Therefore, the image processing device 1 can accurately determine whether or not an action unit has occurred.

[0099] At this time, the image processing device 1 corrects the feature point distance L using the face direction angle θ, and therefore can correct the feature point distance L by taking into consideration the extent to which the face of the person 100 is facing away from the front. As a result, compared to an image processing device of a comparative example that only takes into consideration whether the face of the person 100 is facing forward, to the right, or to the left (i.e., does not take into consideration the face direction angle θ), the image processing device 1 can accurately determine whether an action unit has occurred.

[0100] Furthermore, the image processing device 1 can correct the feature point distance L based on the face direction angle θ so as to reduce the influence of a change in the feature point distance L caused by a change in the face direction of the person 100 on the operation of determining whether or not an action unit has occurred. This reduces the possibility that the image processing device 1 will erroneously determine that a certain type of action unit has occurred because the feature point distance L has changed due to a change in the face direction of the person 100, even though no action unit has occurred. This allows the image processing device 1 to accurately determine whether or not an action unit has occurred.

[0101] Furthermore, the image processing device 1 can correct the feature point distance L by using the above-mentioned first formula, L'=L / cosθ (and further at least one of the second to fourth formulas based on the first formula). As a result, the image processing device 1 can appropriately correct the feature point distance L so as to reduce the influence of a change in the feature point distance L caused by a change in the face direction of the person 100 on the operation of determining whether or not an action unit has occurred.

[0102] In the first embodiment, the data generating device 2 can generate face data 221 by selecting feature points collected from a face image 301 in which a face in which a desired type of action unit occurs for each of a plurality of face parts and combining a plurality of feature points corresponding to the plurality of face parts. Therefore, the data generating device 2 can appropriately generate face data 221 indicating feature points of the face of a virtual person 200 in which a desired type of action unit occurs. As a result, the data generating device 2 can appropriately generate a learning dataset 220 including a plurality of face data 221 that is more in number than the face image 301 and to which a correct answer label indicating that a desired type of action unit occurs is assigned. In other words, the data generating device 2 can appropriately generate a learning dataset 220 including a larger number of face data 221 to which a correct answer label is assigned, compared to a case in which the face image 301 is used as the learning dataset 220 as it is. That is, even under circumstances where it is difficult to prepare a large amount of face images 301 corresponding to face images to which correct labels have been added, the data generating device 2 can prepare a large amount of face data 221 corresponding to face images to which correct labels have been added. Therefore, the amount of learning data for the learning model is greater than when the learning model of the image processing device 1 is trained using the face images 301 themselves. As a result, the learning model of the image processing device 1 can be trained more appropriately (e.g., so that the detection accuracy is improved) using the face data 221. As a result, the detection accuracy of the image processing device 1 is improved.

[0103] In the first embodiment, the data generating device 2 can generate face data 221 by selecting feature points collected from a face image 301 including a face with a desired attribute for each of a plurality of face parts and combining a plurality of feature points corresponding to the plurality of face parts. In this case, the data generating device 2 does not need to combine feature points related to one face part of a face with one attribute with feature points related to another face part of a face with another attribute different from the one attribute. For example, the data generating device 2 does not need to combine feature points related to the eyes of a face facing forward with feature points related to the nose of a face facing left or right. Therefore, the data generating device 2 can generate face data 221 by arranging a plurality of feature points corresponding to each of a plurality of face parts at positions that are less or not unnatural in an arrangement manner that is less or not unnatural. In other words, the data generating device 2 can appropriately generate face data 221 indicating feature points of the face of a virtual person 200 that are less or not unnatural as a person's face. As a result, the learning model of the image processing device 1 is trained using the face data 221 showing the facial features of the virtual person 200 that are relatively similar to the face of a real person. Therefore, the learning model of the image processing device 1 can be trained more appropriately (e.g., so as to improve the detection accuracy) compared to a case where the learning model is trained using the face data 221 showing the facial features of the virtual person 200 that is far from the face of a real person. As a result, the detection accuracy of the image processing device 1 is improved.

[0104] Furthermore, when the positions of the feature points stored in the feature point database 320 in the above-described data accumulation operation are normalized by the face size of the person 300, the data generating device 2 can generate the face data 221 by combining feature points in which the variation caused by the face size of the person 300 is reduced or eliminated. As a result, compared to when the positions of the feature points stored in the feature point database 320 are not normalized by the face size of the person 300, the data generating device 2 can appropriately generate face data 221 indicating the feature points of the face of the virtual person 200 composed of a plurality of face parts arranged to have a positional relationship that is less or not unnatural. In this case as well, the learning model of the image processing device 1 can learn using the face data 221 indicating the facial features of the virtual person 200 that is relatively close to the face of a real person.

[0105] In the first embodiment, an attribute can be used that has a property that a change in the attribute leads to a change in at least one of the position and shape of at least one of a plurality of facial parts constituting a face captured in the facial image 301. In this case, taking into consideration that at least one of the position and shape of a facial part has a relatively large effect on the sense of incongruity of a face, the data generating device 2 can appropriately generate face data 221 that indicates the facial feature points of a virtual person 200 that has little or no sense of incongruity as a human face.

[0106] In the first embodiment, at least one of the face direction angle θ, face aspect ratio, gender, and race can be used as the attribute. In this case, considering that at least one of the face direction angle θ, face aspect ratio, gender, and race has a relatively large effect on at least one of the position, shape, and contour of each part of the face, the data generating device 2 can appropriately generate face data 221 indicating the facial feature points of the virtual person 200 that is less or not unnatural as a human face by using at least one of the face direction angle θ, face aspect ratio, gender, and race as the attribute.

[0107] Furthermore, in the first embodiment, the data storage device 3 generates a feature point database 320 that the data generating device 2 can refer to in order to generate the face data 221. For this reason, the data storage device 3 provides the feature point database 320 to the data generating device 2, thereby enabling the data generating device 2 to appropriately generate the face data 221.

[0108] (4) Configuration of the information processing system SYS of the second embodiment Next, the information processing system SYS of the second embodiment will be described. In the following description, the information processing system SYS of the second embodiment will be referred to as "information processing system SYSb" to distinguish it from the information processing system SYS of the first embodiment. The configuration of the information processing system SYSb of the second embodiment is the same as the configuration of the information processing system SYS of the first embodiment described above. The information processing system SYSb of the second embodiment is different from the information processing system SYS of the first embodiment described above in that the flow of the action detection operation is different. Other features of the information processing system SYSb of the second embodiment may be the same as other features of the information processing system SYS of the first embodiment described above. For this reason, hereinafter, a flowchart will be shown with reference to FIG. 17 to explain the flow of the action detection operation performed by the information processing system SYSb of the second embodiment.

[0109] As shown in FIG. 17, in the second embodiment, similarly to the first embodiment, the arithmetic device 12 acquires a face image 101 from the camera 11 using the input device 14 (step S11). Thereafter, the feature point detection unit 121 detects the face of the person 100 reflected in the face image 101 acquired in step S11 (step S12). Thereafter, the feature point detection unit 121 detects a plurality of feature points of the face of the person 100 based on the face image 101 (or an image portion of the face image 101 included in the face area identified in step S12) (step S13). Thereafter, the position correction unit 123 generates position information on the positions of the feature points detected in step S13 (step S14). Note that, in the second embodiment, the explanation will be given using an example in which the position correction unit 123 generates the feature point distance L in step S14. Furthermore, the face direction calculation unit 122 calculates the face direction angle θ of the person 100 appearing in the face image 101 based on the face image 101 (or an image portion of the face image 101 that is included in the face area identified in step S12) (step S15).

[0110] Thereafter, the position correction unit 123 calculates a regression equation that defines the relationship between the feature point distance L and the face direction angle θ based on the position information (in this case, a plurality of feature point distances L) generated in step S14 and the face direction angle θ calculated in step S15 (step S21). That is, the position correction unit 123 performs a regression analysis to estimate a regression equation that defines the relationship between the feature point distance L and the face direction angle θ based on the plurality of feature point distances L generated in step S14 and the face direction angle θ calculated in step S15. Note that in step S21, the position correction unit 123 may calculate the regression equation using a plurality of feature point distances L calculated from a plurality of face images 101 in which various persons 101 face in directions corresponding to various face angles θ. Similarly, in step S21, the position correction unit 123 may calculate the regression equation using a plurality of face angles θ calculated from a plurality of face images 101 in which various persons 101 face in directions corresponding to various face angles θ.

[0111] FIG. 18 shows an example of a graph plotting the feature point distance L generated in step S14 and the facial direction angle θ calculated in step S15. FIG. 18 shows the relationship between the feature point distance L and the facial direction angle θ on a graph in which the feature point distance L is shown on the vertical axis and the facial direction angle θ is shown on the horizontal axis. As shown in FIG. 18, it can be seen that the feature point distance L that is not corrected by the facial direction angle θ may vary depending on the facial direction angle θ. The position correction unit 123 may calculate a regression equation that expresses the relationship between the feature point distance L and the facial direction angle θ as an n-th order equation (n is a variable indicating an integer equal to or greater than 1). In the example shown in FIG. 18, the position correction unit 123 calculates a regression equation (L=a×θ) that expresses the relationship between the feature point distance L and the facial direction angle θ as a quadratic equation. 2 +b×θ+c) is calculated.

[0112] Thereafter, the position correction unit 123 corrects the position information (in this case, the plurality of feature point distances L) generated in step S14 based on the regression equation calculated in step S21 (step S22). For example, as shown in FIG. 19, which is an example of a graph plotting the corrected feature point distance L' and the face direction angle θ, the position correction unit 123 may correct the plurality of feature point distances L based on the regression equation so that the feature point distance L' corrected by the face direction angle θ does not vary depending on the face direction angle θ. In other words, the position correction unit 123 may correct the plurality of feature point distances L based on the regression equation so that the regression equation showing the relationship between the face direction angle θ and the feature point distance L' becomes a mathematical equation showing a straight line along the horizontal axis (i.e., the coordinate axis corresponding to the face direction angle θ). For example, as shown in FIG. 19, the position correction unit 123 may correct the plurality of feature point distances L based on the regression equation so that the amount of variation in the feature point distance L' caused by the variation in the face direction angle θ becomes smaller than the amount of variation in the feature point distance L caused by the variation in the face direction angle θ. In other words, the position correction unit 123 may correct the multiple feature point distances L based on the regression equation so that the regression equation indicating the relationship between the face direction angle θ and the feature point distance L' approaches a straight line more closely than the regression equation indicating the relationship between the face direction angle θ and the feature point distance L. As an example, the regression equation that defines the relationship between the face direction angle θ and the feature point distance L as described above is L=a×θ 2+b×θ+c, the position correction unit 123 calculates L′=La×θ 2 The feature point distance L may be corrected using a fifth formula, −b×θ.

[0113] Thereafter, the action detection unit 124 determines whether or not an action unit has occurred on the face of the person 100 appearing in the face image 101, based on the multiple feature point distances L' (i.e., position information) corrected by the position correction unit 123 (step S17).

[0114] As described above, the information processing system SYSb according to the second embodiment uses the first formula of L'=L / cos θ, the second formula of Lx'=Lx / cos θ_pan, the third formula of Ly'=Ly / cos θ_tilt, and the third formula of L'=((Lx / cos θ_pan) 2 +(Ly / cosθ_tilt) 2 ) 1 / 2 Instead of at least one of the fourth formulas, the feature point distance L (i.e., position information regarding the position of the feature point) is corrected based on a regression equation that defines the relationship between the face direction angle θ and the feature point distance L. Even in this case, compared to the case where the feature point distance L is not corrected based on the face direction angle θ, the possibility that the image processing device 1 erroneously determines that a certain type of action unit has occurred due to a change in the feature point distance L caused by a change in the face direction of the person 100 even though no action unit has occurred is reduced. Therefore, the image processing device 1 can accurately determine whether or not an action unit has occurred. Therefore, the information processing system SYSb of the second embodiment can enjoy the same effects as those that can be enjoyed by the information processing system SYS of the first embodiment described above.

[0115] In particular, the information processing system SYSb can correct the feature point distance L by using a statistical method known as a regression equation. That is, the information processing system SYSb can statistically correct the feature point distance L. Therefore, the information processing system SYSb can correct the feature point distance L more appropriately compared to a case where the feature point distance L is not statistically corrected. In other words, the information processing system SYSb can correct the feature point distance L so as to reduce the frequency with which the image processing device 1 detects an action unit. Therefore, the image processing device 1 can more accurately determine whether or not an action unit has occurred.

[0116] In addition, when correcting the feature point distance L based on the regression equation, the position correction unit 123 may distinguish between a feature point distance L in which the amount of change in the feature point distance L caused by the change in the face direction angle θ is relatively large (for example, larger than a predetermined threshold value) and a feature point distance L in which the amount of change in the feature point distance L caused by the change in the face direction angle θ is relatively small (for example, smaller than a predetermined threshold value). In this case, the position correction unit 123 may correct the feature point distance L in which the amount of change in the feature point distance L caused by the change in the face direction angle θ is relatively large, using the regression equation. On the other hand, the position correction unit 123 may not correct the feature point distance L in which the amount of change in the feature point distance L caused by the change in the face direction angle θ is relatively small. Thereafter, the action detection unit 124 may determine whether or not an action unit has occurred by using the feature point distance L' corrected because the amount of change caused by the change in the face direction angle θ is relatively large and the feature point distance L that has not been corrected because the amount of change caused by the change in the face direction angle θ is relatively small. In this case, the image processing device 1 can appropriately determine whether or not an action unit has occurred while reducing the processing load required for correcting the position information. This is because the feature point distance L with a relatively small amount of variation caused by the variation of the face direction angle θ is assumed to be close to the true value even if it is not corrected based on the regression equation (i.e., even if it is not corrected based on the face direction angle θ). In other words, the feature point distance L with a relatively small amount of variation caused by the variation of the face direction angle θ is assumed to be approximately the same value as the corrected feature point distance L'. As a result, it is assumed that the need to correct the feature point distance L with a relatively small amount of variation caused by the variation of the face direction angle θ is relatively low. On the other hand, the feature point distance L with a relatively large amount of variation caused by the variation of the face direction angle θ is assumed to be a value that is significantly different from the true value unless it is corrected based on the regression equation. In other words, the feature point distance L with a relatively large amount of variation caused by the variation of the face direction angle θ is assumed to be a value that is significantly different from the corrected feature point distance L'. For this reason, it is assumed that the feature point distance L, which has a relatively large amount of variation caused by variation in the face direction angle θ, needs to be corrected relatively highly.In consideration of this situation, the image processing device 1 can appropriately determine whether or not an action unit has occurred even if it selectively corrects only at least one feature point distance L in which the amount of variation caused by the change in the face direction angle θ is relatively large.

[0117] (5) Variations Next, a modified example of the information processing system SYS will be described.

[0118] (5-1) Modifications of the Data Storage Device 3 In the above description, as shown in Fig. 13, the data storage device 3 generates the feature point database 320 including the data record 321 including the feature point data field 3211, the attribute data field 3212, and the action unit data field 3213. However, as shown in Fig. 20 showing a first modified example of the feature point database 320 generated by the data storage device 3 (hereinafter, referred to as "feature point database 320a"), the data storage device 3 may generate the feature point database 320a including the feature point data field 3211 and the action unit data field 3213, but including the data record 321 not including the attribute data field 3212. Even in this case, the data generation device 2 can generate the face data 221 by selecting, for each of a plurality of face parts, feature points collected from the face image 301 including a face in which a desired type of action unit is occurring, and combining a plurality of feature points corresponding to each of the plurality of face parts. 21 showing a second modified example of the feature point database 320 (hereinafter referred to as "feature point database 320b") generated by the data storage device 3, the data storage device 3 may generate a feature point database 320b including a data record 321 that includes a feature point data field 3211 and an attribute data field 3212 but does not include an action unit data field 3213. Even in this case, the data generation device 2 can generate face data 221 by selecting feature points for each of a plurality of face parts, which are collected from a face image 301 containing a face with desired attributes, and combining the plurality of feature points corresponding to the plurality of face parts, respectively.

[0119] In the above description, as shown in FIG. 13, the data storage device 3 generates the feature point database 320 including the data record 321 including the attribute data field 3212 in which information on a single type of attribute, the face direction angle θ, is stored. However, as shown in FIG. 22 showing a third modified example of the feature point database 320 generated by the data storage device 3 (hereinafter, referred to as "feature point database 320c"), the data storage device 3 may generate the feature point database 320c including the data record 321 including the attribute data field 3212 in which information on a plurality of different types of attributes is stored. In the example shown in FIG. 22, information on the face direction angle θ and information on the face aspect ratio are recorded as data in the attribute data field 3212. In this case, the data generating device 2 may set a plurality of conditions related to a plurality of types of attributes in step S22 of FIG. 14. For example, when the data generating device 2 generates face data 221 using the feature point database 320c shown in FIG. 22, the data generating device 2 may set a condition related to the face direction angle θ and a condition related to the face aspect ratio. Furthermore, in step S23 of Fig. 14, the data generating device 2 may randomly select a feature point of one face part that satisfies all of the conditions related to the multiple types of attributes set in step S22. For example, when the data generating device 2 generates face data 221 using the feature point database 320c shown in Fig. 21, the data generating device 2 may randomly select a feature point of one face part that satisfies both the condition related to the face direction angle θ and the condition related to the face aspect ratio. In this way, when the feature point database 320c including feature points associated with information related to different types of attributes is used, the data generating device 2 can appropriately generate face data 221 indicating feature points of the face of the virtual person 200 that are less or not unnatural as a person's face, compared to when the feature point database 320 including feature points associated with information related to a single type of attribute is used.

[0120] (5-2) Modification of Data Generator 2 The data generating device 2 may set a possible arrangement range of the feature points for each face part when generating face data 221 by combining a plurality of feature points respectively corresponding to a plurality of face parts. That is, the data generating device 2 may set a possible arrangement range of the feature points of one face part when arranging the feature points of one face part to configure a virtual face. The possible arrangement range of the feature points of one face part may be set to a range that includes a position that is not unnatural or has little discomfort as the position of the virtual face part that configures the virtual face, while not including a position that is unnatural or has a large discomfort as the position of the virtual face part that configures the virtual face. In this case, the data generating device 2 will not arrange the feature points outside the possible arrangement range. As a result, the data generating device 2 can appropriately generate face data 221 indicating the feature points of the face of the virtual person 200 that are less unnatural or have no discomfort as a person's face.

[0121] After generating the face data 221, the data generating device 2 may calculate an index (hereinafter referred to as a "face index") indicating the facial likeness of the face of the virtual person 200 represented by the feature points indicated by the face data 221. For example, the data generating device 2 may calculate the face index by comparing the feature points indicating the reference facial features with the feature points indicated by the face data 221. In this case, the data generating device 2 may calculate the face index so that the larger the deviation between the positions of the feature points indicating the reference facial features and the positions of the feature points indicated by the face data 221, the smaller the face index becomes (i.e., so that the face of the virtual person 200 is determined to be less facial, i.e., to be more unnatural).

[0122] When the data generating device 2 calculates the face index, the data generating device 2 may discard the face data 221 whose face index is below a predetermined threshold. That is, the data generating device 2 may not store the face data 221 whose face index is below a predetermined threshold in the storage device 22. The data generating device 2 may not include the face data 221 whose face index is below a predetermined threshold in the learning data set 220. As a result, the learning model of the image processing device 1 is trained using the face data 221 showing the facial features of the virtual person 200 that are close to the face of a real person. Therefore, the learning model of the image processing device 1 can be trained more appropriately compared to a case where the learning model is trained using the face data 221 showing the facial features of the virtual person 200 that is far from the face of a real person. As a result, the detection accuracy of the image processing device 1 is improved.

[0123] (5-3) Modifications of the image processing device 1 In the above description, in step S14 in each of Fig. 16 and Fig. 17, the image processing device 1 calculates the relative positional relationship between any two of the multiple feature points detected in step S13 in Fig. 16. However, the image processing device 1 may extract at least one feature point related to an action unit to be detected from the multiple feature points detected in step S13, and generate position information related to the position of the extracted at least one feature point. In other words, the image processing device 1 may extract at least one feature point that contributes to the detection of an action unit to be detected from the multiple feature points detected in step S13, and generate position information related to the position of the extracted at least one feature point. In this case, the processing load required for generating the position information is reduced.

[0124] Similarly, in the above description, in each of step S16 in Fig. 16 and step S22 in Fig. 17, the image processing device 1 corrects the multiple feature point distances L (i.e., position information) calculated in step S14 in Fig. 16. However, the image processing device 1 may extract at least one feature point distance L related to an action unit to be detected from the multiple feature point distances L calculated in step S14, and correct the extracted at least one feature point distance L. In other words, the image processing device 1 may extract at least one feature point distance L contributing to the detection of an action unit to be detected from the multiple feature point distances L calculated in step S14, and correct the extracted at least one feature point distance L. In this case, the processing load required for correcting the position information is reduced.

[0125] Similarly, in the above description, in step S21 of FIG. 17, the image processing device 1 calculates a regression equation using a plurality of feature point distances L (i.e., position information) calculated in step S14 of FIG. 17. However, the image processing device 1 may extract at least one feature point distance L related to an action unit to be detected from the plurality of feature point distances L calculated in step S14, and calculate a regression equation using the extracted at least one feature point distance L. In other words, the image processing device 1 may extract at least one feature point distance L contributing to the detection of an action unit to be detected from the plurality of feature point distances L calculated in step S14, and calculate a regression equation using the extracted at least one feature point distance L. That is, the image processing device 1 may calculate a plurality of regression equations corresponding to a plurality of types of action units, respectively. Considering that the change mode of the feature point distance L differs depending on the type of action unit, it is assumed that the regression equation corresponding to each action unit indicates the relationship between the feature point distance L related to each action unit and the face direction angle θ with higher accuracy than the regression equation common to all of the plurality of types of action units. Therefore, the image processing device 1 can use the regression equation corresponding to each of such action units to highly accurately correct the feature point distance L related to each action unit. As a result, the image processing device 1 can more accurately determine whether or not each action unit has occurred. Similarly, in the above description, in step S17 in each of Fig. 16 and Fig. 17, the image processing device 1 detects an action unit using a plurality of feature point distances L' (i.e., position information) corrected in step S16 in Fig. 16. However, the image processing device 1 may extract at least one feature point distance L' related to an action unit to be detected from among the plurality of feature point distances L' corrected in step S16, and detect an action unit using the at least one extracted feature point distance L'. In other words, the image processing device 1 may extract at least one feature point distance L' contributing to the detection of an action unit to be detected from among the plurality of feature point distances L' corrected in step S16, and detect an action unit using the at least one extracted feature point distance L'. In this case, the processing load required for detecting an action unit is reduced.

[0126] In the above description, the image processing device 1 detects an action unit based on position information (such as the feature point distance L in the above example) relating to the positions of the facial feature points of the person 100 appearing in the face image 101. However, the image processing device 1 (action detection unit 124) may estimate (i.e., identify) the emotion of the person 100 appearing in the face image 101 based on the position information relating to the positions of the feature points. Alternatively, the image processing device 1 (action detection unit 124) may estimate (i.e., identify) the physical condition of the person 100 appearing in the face image 101 based on the position information relating to the positions of the feature points. Each of the emotion and physical condition of the person 100 is an example of the state of the person 100.

[0127] When the image processing device 1 estimates at least one of the emotion and physical condition of the person 100, the data storage device 3 may specify at least one of the emotion and physical condition of the person 300 appearing in the face image 301 acquired in step S31 of FIG. 5 in step S34 of FIG. 5. For this reason, the face image 301 may be associated with information indicating at least one of the emotion and physical condition of the person 300 appearing in the face image 301. In addition, in step S36 of FIG. 5, the data storage device 3 may generate a feature point database 320 including a data record 321 in which a feature point, at least one of the emotion and physical condition of the person 300, and a face direction angle θ are associated with each other. In addition, in step S22 of FIG. 14, the data generation device 2 may set a condition related to at least one of the emotion and physical condition. In addition, in step S23 of FIG. 14, the data generation device 2 may randomly select a feature point of one face part that satisfies the condition related to at least one of the emotion and physical condition set in step S21. As a result, in order to train a computation model capable of outputting an estimation result of at least one of the emotion and physical condition of the person 100 when the facial image 101 is input and capable of learning, even under circumstances in which it is difficult to prepare a large number of facial images 301 corresponding to facial images to which correct labels are attached, it is possible to prepare a large number of face data 221 corresponding to facial images to which correct labels are attached. Therefore, the number of learning data for the learning model is larger than when the learning model of the image processing device 1 is trained using the facial images 301 themselves. As a result, the estimation accuracy of the emotion and physical condition by the image processing device 1 is improved.

[0128] In addition, when the image processing device 1 estimates at least one of the emotions and physical condition of the person 100, the image processing device 1 may detect action units based on positional information regarding the positions of feature points, and estimate the facial expression (i.e., the emotions) of the person 100 based on a combination of the types of the detected action units.

[0129] In this way, the image processing device 1 may identify at least one of the action units occurring on the face of the person 100 captured in the face image 101, the emotion of the person 100 captured in the face image 101, and the physical condition of the person 100 captured in the face image 101. In this case, the information processing system SYS may be used, for example, for the purposes described below. For example, the information processing system SYS may provide the person 100 with advertisements for products and services that match at least one of the identified emotion and physical condition. As an example, when the action detection operation reveals that the person 100 is tired, the information processing system SYS may provide the person 100 with advertisements for products (e.g., energy drinks) that the tired person 100 desires. For example, the information processing system SYS may provide the person 100 with a service for improving the QOL (Quality of Life) of the person 100 based on the identified emotion and physical condition. As an example, if the information processing system SYS determines through an action detection operation that the person 100 shows signs of dementia, the information processing system SYS may provide the person 100 with a service for delaying the onset or progression of dementia (e.g., a service for activating the brain).

[0130] This disclosure may be modified as appropriate within the scope that does not contradict the gist or concept of the invention that can be read from the claims and the entire specification, and information processing systems, data storage devices, data generation devices, image processing devices, information processing methods, data storage methods, data generation methods, image processing methods, recording media, and databases that involve such modifications are also included in the technical concept of this disclosure. [Explanation of symbols]

[0131] SYS Information Processing System 1 Image processing device 11 Camera 12 Arithmetic unit 121 Feature point detection unit 122 Face direction calculation unit 123 Position correction section 124 Action detection section 2. Data Generation Device 21 Arithmetic unit 211 Feature Point Selection Unit 212 Face data generation unit 22 Storage device 220 Training Data Set 221 Face Data 3 Data storage device 31 Arithmetic unit 311 Feature Point Detection Unit 312 Status and Attribute Identification Section 313 Database Generation Department 32 Storage device 320 Feature Point Database 100, 300 people 101, 301 Face images θ, θ_pan, θ_tilt Face direction angle

Claims

1. A detection means for detecting facial feature points based on a facial image in which a person's face is captured; a generating means for generating face angle information indicating a direction of the face by an angle based on the face image; a correction means for generating position information relating to the positions of the feature points detected by the detection means, and correcting the position information based on the face angle information; a determination means for determining whether or not an action unit related to a movement of a facial part constituting the face has occurred based on the position information corrected by the correction means; Equipped with The image processing device wherein the correction means corrects a part of the position information while not correcting another part of the position information.

2. The correction means corrects the position information based on the face angle information so that a correction amount of the position information when the angle is a first angle differs from a correction amount of the position information when the angle is a second angle different from the first angle. The image processing device according to claim 1 .

3. The correction means corrects the position information based on the face angle information so as to reduce an influence of a change in the position of the feature point caused by a change in the face direction on an operation of determining whether or not the action unit has occurred.

3. The image processing device according to claim 1 or 2.

4. The detection means detects a plurality of feature points, the position information includes information indicating a distance between two different feature points among the plurality of feature points, If the angle is θ, the distance indicated by the position information generated by the correction means is L, and the distance indicated by the position information corrected by the correction means is L', the correction means corrects the position information using the formula L'=L / cosθ. The image processing device according to claim 1 .

5. the face image includes a first image in which the face of the person is captured at a first time and a second image in which the face of the person is captured at a second time different from the first time, the detection means detects a same feature point associated with a same position of a same facial feature of the face from each of the first and second images; the position information includes information indicating a distance between the one feature point detected from the first image and the one feature point detected from the second image, If the angle is θ, the distance indicated by the position information generated by the correction means is L, and the distance indicated by the position information corrected by the correction means is L', the correction means corrects the position information using the formula L'=L / cosθ. The image processing device according to claim 1 .

6. The detection means detects a plurality of feature points, The determination means determines whether or not the predetermined action unit has occurred based on the position information regarding a position of at least one feature point that is a part of the plurality of feature points and is associated with a predetermined action unit. The image processing device according to claim 1 .

7. The detection means detects at least one feature point that contributes to detection of an action unit to be detected, The correction means generates position information regarding the position of the at least one detected feature point. The image processing device according to claim 1 .

8. The correction means generates at least one feature point distance contributing to detection of a desired action unit as the position information, and corrects the generated at least one feature point distance. The image processing device according to claim 1 .

9. Detecting facial feature points based on a facial image in which a person's face is captured; generating face angle information indicating a direction of the face by an angle based on the face image; generating position information relating to positions of the detected feature points, and correcting the position information based on the face angle information; determining whether or not an action unit related to a movement of a facial part constituting the face has occurred based on the corrected position information; Including, The image processing method, wherein the correcting includes correcting a part of the position information while not correcting another part of the position information.

10. A computer program for causing a computer to execute an image processing method, The image processing method includes: Detecting facial feature points based on a facial image in which a person's face is captured; generating face angle information indicating a direction of the face by an angle based on the face image; generating position information relating to positions of the detected feature points, and correcting the position information based on the face angle information; determining whether or not an action unit related to a movement of a facial part constituting the face has occurred based on the corrected position information; Including, The correcting step includes correcting a portion of the position information while not correcting another portion of the position information.

Citation Information

Patent Citations

  • Real time expression detector

    JP2000268161A

  • Image processing apparatus, imaging apparatus, image processing method, and image processing program

    JP2009089077A

  • Image processing apparatus and method, program, and storage medium

    JP2010055395A

  • Image processing apparatus, image processing method, image processing program, and printer

    JP2010271955A

  • Facial expression monitoring method and facial expression monitoring apparatus

    JP2011118767A