Face model construction method, apparatus and device, storage medium, and product
The face shape and expression coefficients are obtained through the face analysis model, and deformation processing is performed based on these coefficients, which solves the problems of complex and poor virtual face model generation operations, achieving simplified operations and improved generation effects.
Patent Information
- Application Number
- PCT/CN2024/075430
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-23
- Filing Date
- 2024-02-02
- Publication Date
- 2024-08-29
AI Technical Summary
The traditional virtual face model generation operation is complex and cumbersome, and the effect is poor. It is difficult for ordinary users to generate satisfactory virtual face models.
By obtaining the face image to be processed, using the trained face analysis model to obtain the face shape coefficient and expression coefficient, and performing deformation transfer processing based on these coefficients and the set face model to generate a virtual face model.
It simplifies the generation operation of virtual face models, improves the generation effect, allows users to quickly generate virtual face models that reflect the shape and expression of faces, and lowers the application threshold.
Smart Images

Figure CN2024075430_29082024_PF_FP_ABST
Abstract
Description
A method, device, equipment, storage medium and product for constructing a face model
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 23, 2023, with application number 202310189278.7, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to a face model construction method, apparatus, device, storage medium, and product. Background Art
[0003] With the development of image processing technology, users often use virtual characters with facial features similar to their own to interact with other users. Users generally generate virtual characters with facial features similar to their own by pinching a standard face model.
[0004] The traditional face-shaping method currently involves setting sliders on a control panel to adjust the facial features of a standard face model. Users use these sliders to adjust the facial features of the standard face model, thereby generating the desired virtual face model. However, this method of generating virtual face models is complex and tedious, generally requiring professional technicians to achieve satisfactory results. This makes it difficult for ordinary users to generate the desired virtual face model, resulting in poor virtual face model generation results.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a facial model construction method, apparatus, device, storage medium, and product to address the technical problems in related technologies such as the complexity and tediousness of virtual facial model generation operations and the poor quality of virtual facial model generation, thereby simplifying the virtual facial model generation operations and improving the quality of virtual facial model generation.
[0007] In a first aspect, an embodiment of the present application provides a method for constructing a face model, comprising:
[0008] Obtain the face image to be processed;
[0009] Inputting the face image to be processed into a trained face analysis model, analyzing and processing the face image to be processed by the face analysis model to obtain a face shape coefficient and a face expression coefficient;
[0010] A virtual face model is generated based on the face shape coefficient, the face expression coefficient and a set first face model, where the first face model is obtained by performing deformation migration processing on the set face shape model and face expression model.
[0011] In a second aspect, an embodiment of the present application provides a face model construction device, including an image acquisition module, a coefficient acquisition module, and a model generation module, wherein:
[0012] The image acquisition module is configured to acquire a face image to be processed;
[0013] The coefficient acquisition module is configured to input the face image to be processed into a trained face analysis model, analyze and process the face image to be processed through the face analysis model, and obtain a face shape coefficient and a face expression coefficient;
[0014] The model generation module is configured to generate a virtual face model based on the face shape coefficient, the face expression coefficient and a set first face model, where the first face model is obtained by performing deformation migration processing on the set face shape model and face expression model.
[0015] In a third aspect, an embodiment of the present application provides a face model construction device, comprising: a memory and one or more processors;
[0016] The memory is used to store one or more programs;
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the face model construction method as described in the first aspect.
[0018] In a fourth aspect, an embodiment of the present application provides a non-volatile storage medium storing computer-executable instructions, which, when executed by a computer processor, are used to execute the face model construction method as described in the first aspect.
[0019] In the fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor of the device reads and executes the computer program from the computer-readable storage medium, so that the device performs the face model construction method described in the first aspect.
[0020] The embodiment of the present application obtains the facial shape coefficient and facial expression coefficient of the facial image to be processed through a facial analysis model, and generates a virtual facial model based on the facial shape coefficient, facial expression coefficient and the first facial model, wherein the first facial model is obtained by performing deformation migration processing on the set facial shape model and facial expression model. The generated virtual facial model can correctly reflect the shape and expression of the face in the facial image to be processed. The user only needs to upload the facial image to be processed to generate a virtual facial model reflecting the facial shape and facial expression, thereby simplifying the virtual facial model generation operation and effectively improving the generation effect of the virtual facial model. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] FIG1 is a flow chart of a method for constructing a face model provided in an embodiment of the present application;
[0022] FIG2 is a schematic diagram of a virtual face model generation process provided by an embodiment of the present application;
[0023] FIG3 is a schematic diagram showing a neutral face model provided in an embodiment of the present application;
[0024] FIG4 is a schematic diagram showing a face shape model provided in an embodiment of the present application;
[0025] FIG5 is a schematic diagram showing a facial expression model provided in an embodiment of the present application;
[0026] FIG6 is a schematic diagram showing a first face model provided in an embodiment of the present application;
[0027] FIG7 is a schematic structural diagram of a face model construction device provided in an embodiment of the present application;
[0028] FIG8 is a schematic structural diagram of a face model construction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. It should also be noted that, for ease of description, only some, but not all, of the contents related to the present application are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The above process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The above process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0030] The facial model construction method provided in this application can be applied to scenarios such as face pinching and expression tracking of virtual characters in live broadcasts, games, etc. For example, in a live broadcast scenario, when the host wants to create a virtual character with their own characteristics to interact with the audience, the host can automatically generate a virtual facial model by providing a face image to be processed. The purpose is to obtain the face shape coefficient and face expression coefficient of the face image to be processed through a face analysis model, and generate a virtual facial model based on the face shape coefficient, face expression coefficient and a first face model, thereby simplifying the face processing operation and improving the face processing effect of the virtual character. The virtual facial model can also be updated in real time according to the video stream provided by the host during the live broadcast to achieve expression tracking of the virtual facial model. For traditional facial model construction schemes, the user generally adjusts the facial features of a standard face model through the facial feature drag bar on the face pinching control panel to generate the user's expected virtual character, or a professional (such as a professional face pinching artist) generates a virtual character through a long face pinching operation. There are technical problems that the face processing operation is relatively complicated and cumbersome, and the face processing effect of the virtual character is poor. Based on this, a face model construction method according to an embodiment of the present application is provided to solve the technical problems that the generation operation of existing virtual face models is relatively complex and tedious, and the virtual face model generation effect is poor.
[0031] Figure 1 shows a flowchart of a face model construction method provided in an embodiment of the present application. The face model construction method provided in an embodiment of the present application can be executed by a face model construction device, which can be implemented by hardware and / or software and integrated into a face model construction device.
[0032] The following description is based on an example of a face model construction method executed by a face model construction device. Referring to FIG1 , the face model construction method includes:
[0033] S110: Obtaining a face image to be processed.
[0034] The facial image to be processed provided by this solution is a two-dimensional facial image provided by a user who needs to pinch the face of a virtual character, or a video frame in a video stream provided by a user who needs to track facial expressions. The facial image to be processed can be obtained by shooting with a camera, or downloaded from a download address specified by the user, or obtained from a local storage location (such as an album). Optionally, the facial model construction method provided by this solution can be used for pinching the face of a virtual character and for tracking facial expressions on a virtual character. When the facial model construction method is used for pinching the face of a virtual character, the user can provide a two-dimensional facial image as the facial image to be processed. When the facial model construction method is used for tracking facial expressions on a virtual character, a video frame can be extracted from the video stream provided by the user as the facial image to be processed.
[0035] Exemplary, a facial image to be processed provided by a user is obtained. For example, when a host needs to create a virtual facial model, they can use a facial model construction device (such as a mobile phone, computer, etc.) to shoot their own facial image (such as a frontal expressionless facial image) as the facial image to be processed, or when the host needs to track their own expression on the created virtual facial model, they can provide the facial image to be processed based on the video stream shot by the facial model construction device. For example, for some hosts who do not want to show their faces and want to interact with the audience through voice, they can broadcast live through customized virtual characters. At this time, the facial model construction can generate a customized virtual image (i.e., a virtual facial model) for the host based on the selfie provided by the host. Subsequently, a virtual facial model reflecting the facial shape and / or facial expression in the facial image to be processed will be generated based on the facial image to be processed provided by the host, thereby realizing fast face pinching and expression tracking of the virtual facial model.
[0036] S120: Inputting the face image to be processed into the trained face analysis model, analyzing and processing the face image to be processed by the face analysis model to obtain a face shape coefficient and a face expression coefficient.
[0037] The face shape coefficient provided by this scheme can be used to indicate the degree of change in the shape of a face model relative to a standard face model (a face model with a set standard shape and no expression) to a set extreme face shape model, where the face shape coefficient and the face expression coefficient can be set in multiples respectively.
[0038] Optionally, different facial part shapes may correspond to different facial shape coefficients, for example, eye size, eyebrow position, lip thickness, nose bridge width, face size, etc. different facial part shapes may correspond to different facial shape coefficients. Different facial shape coefficients of a facial part shape may reflect the degree to which the facial part shape is relative to the set standard facial part. For example, the facial shape coefficient corresponding to the eye size may indicate the degree of change in the eye size of the virtual face model between the standard face model and the extreme face shape model when the eyes of the face recognized by the face analysis model are mapped to the virtual face model. For example, when the facial shape coefficient corresponding to the eye size is 0, 0.5, and 1, the eye size of the virtual face model is the same as the eye size of the standard face model, is between the eye sizes of the standard face model and the extreme face shape model, and is the same as the eye size of the extreme face shape model.
[0039] Different facial expressions may correspond to different facial expression coefficients. For example, different facial expressions such as closing eyes, opening mouth, wrinkling nose, and puffing face may correspond to different facial expression coefficients. Different facial expression coefficients of a facial expression may reflect the degree of the facial expression relative to the set standard facial expression (such as no expression). For example, the facial expression coefficient corresponding to opening the mouth may indicate the degree of change in the mouth opening degree of the virtual facial model between the standard facial model and the extreme facial expression model when the mouth of the face recognized by the facial analysis model is mapped to the virtual facial model. For example, when the facial expression coefficient corresponding to opening the mouth is 0, 0.5, and 1, the mouth opening degree of the virtual facial model is consistent with the mouth opening degree of the standard facial model, is between the mouth opening degrees of the standard facial model and the extreme facial expression model, and is consistent with the mouth opening degree of the extreme facial expression model.
[0040] The facial model construction device provided in this solution is configured with a trained facial analysis model. This facial analysis model can be used to analyze and process a provided facial image and output a facial shape coefficient reflecting the shape of the face in the facial image and a facial expression coefficient reflecting the facial expression in the facial image. Optionally, the facial analysis model can be constructed based on a neural learning network. The facial analysis model can be trained using pre-collected sample facial images as input and outputting the facial shape coefficient and facial expression coefficient corresponding to each sample facial image.
[0041] Exemplarily, after obtaining the facial image to be processed, the facial image to be processed is input into the facial analysis model. After receiving the facial image to be processed, the facial analysis model analyzes and processes the facial image to be processed and outputs the corresponding facial shape coefficient and facial expression coefficient.
[0042] S130: Generate a virtual face model based on the face shape coefficient, the face expression coefficient and a set first face model, where the first face model is obtained by performing deformation migration processing on the set face shape model and the face expression model.
[0043] This solution provides multiple facial shape models (ID BS (BlendShape)) and facial expression models (Express BS). These facial shape models and facial expression models can be constructed based on a neutral facial model. For example, different facial shape models and facial expression models can be constructed from the neutral facial model in 3D software (e.g., Maya). The neutral facial model is a standard facial model with no expression. Facial shape models can be set for different facial parts, and the facial shape models can reflect the extreme facial shapes set for the corresponding facial parts. Facial expression models can be set for different facial expressions, and the facial expression models can reflect the extreme facial expressions set for the corresponding facial expressions.
[0044] The first face model provided by this solution can be understood as a facial expression model based on a face shape model. The first face model is obtained by performing deformation transfer processing on a set face shape model and a set facial expression model. Each face shape model is subjected to deformation transfer processing based on each facial expression model. For example, if N face shape models and M facial expression models are pre-set, N*M first face models can be obtained after the deformation transfer processing.
[0045] Exemplarily, after obtaining the facial shape coefficient and facial expression coefficient output by the facial analysis model, a virtual facial model is generated based on the facial shape coefficient, facial expression coefficient, and a set first facial model. The first facial model is obtained by performing deformation migration processing on the set facial shape model and facial expression model. After the facial shape coefficient and / or facial expression coefficient are applied to the first facial model, the generated virtual facial model can reflect the facial shape and / or facial expression of the user (e.g., the host) in the facial image to be processed.
[0046] In one possible embodiment, as shown in a schematic diagram of a virtual face model generation process provided in FIG2 , the present solution provides a method for generating a virtual face model based on a face shape coefficient, a face expression coefficient, and a set first face model, including:
[0047] S131: Generate second face models corresponding to multiple face shape models based on facial expression coefficients and first face models corresponding to multiple set face shape models.
[0048] S132: Generate a virtual face model based on the face shape coefficient and the second face model.
[0049] Exemplarily, after determining the facial expression coefficient and facial shape coefficient corresponding to the facial image to be processed, a second facial model corresponding to each facial shape model is generated based on the facial expression coefficient and multiple first facial models, thereby calculating the facial data of each facial shape model as a function of the facial expression coefficient. In one embodiment, based on the facial shape coefficient and second facial model determined above, the facial shape coefficient is applied to the second facial model to generate a virtual facial model. This solution calculates the facial expression coefficient as a function of the second facial model for each facial shape model, and applies the facial shape coefficient to the second facial model to obtain an accurate virtual facial model. This solution can generate a virtual facial model that correctly reflects the facial shape and expression in the facial image to be processed, thereby improving the effectiveness of virtual facial model generation.
[0050] The second face model provided in this solution can be understood as a face shape model with facial expressions. Specifically, the second face model is a face shape model with the real-life facial expression in the face image to be processed (in which case the degree of facial expression change corresponds to the real-life facial expression), while the second face model is a face expression model with pure expression in the face shape model (in which case the degree of facial expression change reaches a set maximum deformation degree). The generated second face model can reflect the facial expression corresponding to the face image to be processed.
[0051] In one embodiment, for each face shape model, a second face model can be determined based on the first face model corresponding to the neutral face shape model (i.e., the neutral face model is used as a face shape model) (the first face model corresponding to the neutral face shape model under the expressionless face expression model), and the first product of the cumulative difference between the first face model corresponding to each face expression model of the face shape model and the first face model corresponding to the neutral face shape model, and the face expression coefficient. That is, the second face model corresponding to the face shape model is determined by the sum of the first face model corresponding to the neutral face shape model and the first product. Based on this, the second face model corresponding to each face shape model is obtained.
[0052] In a possible embodiment, the second face model provided by this solution can be determined based on the following second face model calculation formula:
[0053] Among them, V i (β) is the second face model corresponding to the i-th face shape model, E i0 is the first face model corresponding to the neutral face shape model, E ij is the jth first face model corresponding to the i-th face shape model, β j is the jth facial expression coefficient corresponding to the i-th facial shape model, M is the number of first facial models, i ranges from 0 to N, and N+1 is the number of facial shape models (including the neutral facial shape model). This solution accurately determines the second facial model corresponding to each facial shape model through the second facial model calculation formula. The second facial model is closer to the facial expression in the face image to be processed, improving the facial model construction effect.
[0054] In one possible embodiment, the second face model can be determined based on the second face model corresponding to the neutral face shape model, and the cumulative difference between the second face models of each face shape model and the second face model of the neutral face shape model and the second product of the face shape coefficient, that is, the second face model corresponding to the face shape model is determined by the sum of the second face model corresponding to the neutral face shape model and the second product.
[0055] In one possible embodiment, the virtual face model provided by this solution can be determined based on the following virtual face calculation formula:
[0056] Among them, V(α,β) is the virtual face model, V0(β) is the second face model corresponding to the neutral face shape model, V i (β) is the second face model corresponding to the i-th face shape model, α i is the facial shape coefficient corresponding to the i-th facial shape model, and N+1 is the number of facial shape models. This solution accurately determines the virtual facial model through the virtual face calculation formula. The second facial model is closer to the facial expression and facial shape in the facial image to be processed, effectively improving the facial model construction effect. At the same time, this solution constructs a linear system of the virtual facial model based on the second facial model calculation formula and the virtual face calculation formula. In the facial expression tracking application, the facial expression coefficient and the facial shape coefficient are applied to the linear system of the virtual facial model to obtain a virtual facial model similar to a real person. Alternatively, in the face pinching application, the facial shape coefficient is applied to the linear system of the virtual facial model (the facial expression coefficient of the linear system applied to the virtual facial model can be set to 0 in the face pinching application), so that a virtual facial model similar to a real person can be quickly pinched out, thereby improving the efficiency of face model construction.
[0057] In a possible embodiment, the present solution provides for generating a virtual face model based on a face shape coefficient, a face expression coefficient, and a set first face model. The virtual face model may be generated based on a face shape coefficient, a set expression coefficient, and a set first face model.
[0058] Optionally, the set facial expression coefficient provided by this solution can be a set expression coefficient. Then, after obtaining the facial shape coefficient and facial expression coefficient output by the facial analysis model, it is not necessary to use the output facial expression coefficient (or the facial analysis model only outputs the facial shape coefficient). Instead, a virtual facial model is generated based on the set expression coefficient, the facial shape coefficient output by the facial analysis model, and the set first facial model. In this case, the facial shape of the generated virtual facial model can correctly reflect the facial shape in the facial image to be processed, and the facial expression of the virtual facial model can reflect the facial expression corresponding to the set expression coefficient. When generating a virtual facial model based on the facial shape coefficient, the set expression coefficient, and the set first facial model, the processing steps for generating a virtual facial model based on the facial shape coefficient and facial expression coefficient output by the facial analysis model and the set first facial model are consistent, and this solution will not be repeated. This solution can make the facial shape of the generated virtual facial model consistent with the facial image to be processed by setting the expression coefficient, and can configure the facial expression of the virtual facial model by setting the expression coefficient, thereby improving the flexibility of facial model construction.
[0059] In one embodiment, the set expression coefficient can be a pre-set facial expression coefficient. For example, in a face pinching scenario, the set expression coefficient can be set to 0, that is, the facial expression in the face image to be processed is not added to the generation of the virtual face model. In this way, a virtual face model with a consistent face shape but no expression is generated, thereby realizing fast face pinching based on the face image to be processed. Alternatively, after quickly pinching the face to obtain the virtual face model, the user manually sets the expression coefficient to obtain the set expression coefficient. For example, the user configures the set expression parameters of different facial expressions by dragging the different facial expression bars, and applies the set expression parameters of different facial expressions to the linear system of the virtual face model, so that the face shape remains consistent and the facial expression set by the user is obtained. The user can observe the different expressions of the virtual face model and the display effect of the virtual face model under different expression variation degrees in real time by adjusting the set expression parameters, thereby improving the efficiency and effect of face model construction. After completing the face pinching operation, the face shape coefficient and face expression coefficient of the video frame in the video stream provided by the user can be extracted through the face analysis model, and the face shape coefficient and face expression coefficient can be applied to the linear system of the virtual face model to realize the expression tracking of the face in the video stream by the virtual face model.
[0060] In one possible embodiment, the face shape model and the face expression model can be deformed and transferred based on a set DT (Deformation Transfer) algorithm, so that each face shape model inherits a different face expression model. Optionally, the face shape model and the face expression model provided by this solution can be constructed based on the same set neutral face model. For example, according to the positions of different facial parts when the shapes change, the corresponding parts in the same neutral face model are adjusted to obtain face shape models corresponding to the shapes of the various facial parts, and according to the positions of different facial expressions when the shapes change, the corresponding parts in the same neutral face model are adjusted to obtain face expression models corresponding to the shapes of the various facial expressions. This solution obtains face shape models and face expression models by adjusting the same neutral face model. The topological structures of the face shape model and the face expression model are consistent, thereby improving the deformation transfer effect of the face shape model and the face expression model and ensuring the face model construction effect.
[0061] As shown in the schematic diagram of a neutral face model provided in FIG3 , it can be seen that all facial features in the neutral face model (such as the eyes, eyebrows, lips, nose bridge, and face shape) are in their initial or relaxed states. As shown in the schematic diagram of a face shape model provided in FIG4 , if a face shape model with drooping eyebrows is desired, the position of the eyebrows is adjusted based on the neutral face model to create the effect of a drooping face, resulting in the face shape model shown in FIG4 . It can be seen that the face shape model in FIG4 remains consistent with the neutral face model except for the eyebrows and the shape of the drooping eyebrows. As shown in the schematic diagram of a facial expression model provided in FIG5 , if a face expression model with an open mouth is desired, the shape of the mouth is adjusted based on the neutral face model to create the effect of an open mouth, resulting in the face expression model shown in FIG5 . It can be seen that the face expression model in FIG5 remains consistent with the neutral face model except for the mouth and the shape of the open mouth.
[0062] For example, after obtaining the facial shape model and facial expression model, deformation migration processing can be performed on the facial shape model and facial expression model. As shown in the schematic diagram of a first facial model provided in FIG6 , assuming that the facial shape model with drooping eyebrows obtained above is integrated with the facial expression model with an open mouth, the first facial model shown in FIG6 can be obtained. It can be seen that FIG6 shows the deformations of both drooping eyebrows and an open mouth compared to the neutral facial model.
[0063] In one possible embodiment, the first face model provided by the present solution is obtained by performing a deformation migration process on a set face shape model and a face expression model based on set restriction points. During the deformation migration process, it is necessary to determine corresponding points and restriction points for the face shape model and the face expression model. Corresponding points can be understood as points between the face shape model and the face expression model that point to the same position on the face, and restriction points can be understood as points whose positions remain unchanged when the face expression changes under a face shape model (points that do not need to be deformed, and whose coordinates remain unchanged after deformation migration). Different face shape models and / or face expression models may correspond to different restriction points. The face shape model and the face expression model can be constructed based on the same set neutral face model. The topological structures of the face shape model and the face expression model are consistent, and no corresponding point relationship needs to be configured separately. It should be noted that too many restriction points will result in uneven model deformation, and too few will result in a size inconsistency between the deformed model and the original model. The setting of restriction points can be repeated multiple times to determine more optimal restriction points. This solution performs deformation migration by setting restriction points. While ensuring that the first face model obtained by deformation migration of the face shape model and the face expression model remains consistent with the original model, it improves the smoothness of the face deformation, improves the deformation migration effect of the face shape model and the face expression model, and ensures the face model construction effect.
[0064] In the above, the facial analysis model obtains the facial shape coefficients and facial expression coefficients of the facial image to be processed, and generates a virtual facial model based on the facial shape coefficients, facial expression coefficients, and a first facial model. The first facial model is obtained by performing deformation transfer processing on the set facial shape model and facial expression model. The generated virtual facial model accurately reflects the shape and expression of the face in the facial image to be processed. The user only needs to upload the facial image to be processed to generate a virtual facial model that reflects the facial shape and expression. This simplifies the virtual facial model generation process and effectively improves the generation effect of the virtual facial model. It does not require user facial data collection and the construction of a 3DMM facial model (3D Morphable Model), reduces the number of 3DMM facial models without semantics, and reduces the inability to directly apply linear combination coefficients to the 3DMM facial model, resulting in the inability to generate a 3DMM facial model that resembles a real person. Users only need to upload a two-dimensional facial image to generate a virtual facial model, effectively lowering the application threshold of virtual facial models. At the same time, by calculating the facial expression coefficient and applying it to the second facial model of each facial shape model, and applying the facial shape coefficient to the second facial model to obtain an accurate virtual facial model, a virtual facial model that correctly reflects the facial shape and expression in the facial image to be processed can be generated, thereby improving the generation effect of the virtual facial model.
[0065] FIG7 is a schematic diagram of the structure of a face model construction device provided by an embodiment of the present application. Referring to FIG7 , the face model construction device includes an image acquisition module 71 , a coefficient acquisition module 72 , and a model generation module 73 .
[0066] Among them, the image acquisition module 71 is configured to acquire the face image to be processed; the coefficient acquisition module 72 is configured to input the face image to be processed into the trained face analysis model, and analyze and process the face image to be processed through the face analysis model to obtain the face shape coefficient and the face expression coefficient; the model generation module 73 is configured to generate a virtual face model based on the face shape coefficient, the face expression coefficient and the set first face model, and the first face model is obtained by performing deformation migration processing on the set face shape model and face expression model.
[0067] As described above, the face shape coefficient and face expression coefficient of the face image to be processed are obtained through the face analysis model, and a virtual face model is generated based on the face shape coefficient, the face expression coefficient and the first face model, wherein the first face model is obtained by performing deformation migration processing on the set face shape model and face expression model. The generated virtual face model can correctly reflect the shape and expression of the face in the face image to be processed. The user only needs to upload the face image to be processed to generate a virtual face model reflecting the face shape and face expression, which simplifies the virtual face model generation operation while effectively improving the generation effect of the virtual face model.
[0068] In one possible embodiment, when the model generation module 73 generates the virtual face model based on the face shape coefficient, the face expression coefficient, and the set first face model, it is configured as follows:
[0069] generating second face models corresponding to the plurality of face shape models based on the facial expression coefficient and the first face models corresponding to the plurality of set face shape models;
[0070] A virtual face model is generated based on the face shape coefficient and the second face model.
[0071] In one possible embodiment, the second face model is determined based on the following formula:
[0072] Among them, V i (β) is the second face model corresponding to the i-th face shape model, E i0 is the first face model corresponding to the neutral face shape model, E ij is the jth first face model corresponding to the i-th face shape model, β j is the jth facial expression coefficient corresponding to the i-th face shape model, and M is the number of first face models.
[0073] In one possible embodiment, the virtual face model is determined based on the following formula:
[0074] Among them, V(α,β) is the virtual face model, V0(β) is the second face model corresponding to the neutral face shape model, V i (β) is the second face model corresponding to the i-th face shape model, α i is the face shape coefficient corresponding to the i-th face shape model, and N+1 is the number of face shape models.
[0075] In one possible embodiment, when the model generation module 73 generates the virtual face model based on the face shape coefficient, the face expression coefficient, and the set first face model, it is configured as follows:
[0076] A virtual face model is generated based on the face shape coefficient, the set expression coefficient and the set first face model.
[0077] In a possible embodiment, the face shape model and the facial expression model are constructed based on the same set neutral face model.
[0078] In a possible embodiment, the first face model is obtained by performing deformation migration processing on a set face shape model and a set face expression model based on set restriction points.
[0079] It is worth noting that in the embodiment of the above-mentioned face model construction device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the embodiments of this application.
[0080] The embodiment of the present application also provides a face model construction device, which can integrate the face model construction apparatus provided in the embodiment of the present application. Figure 8 is a structural diagram of a face model construction device provided in the embodiment of the present application. Referring to Figure 8, the face model construction device includes: an input device 83, an output device 84, a memory 82 and one or more processors 81; the memory 82 is used to store one or more programs; when the one or more programs are executed by one or more processors 81, the one or more processors 81 implement the face model construction method provided in the above embodiment. The above-mentioned face model construction device, equipment and computer can be used to execute the face model construction method provided in any of the above embodiments, and have corresponding functions and beneficial effects.
[0081] The embodiments of the present application also provide a non-volatile storage medium storing computer-executable instructions, which, when executed by a computer processor, are used to execute the face model construction method provided in the above embodiments. Of course, the non-volatile storage medium storing computer-executable instructions provided in the embodiments of the present application, whose computer-executable instructions are not limited to the face model construction method provided above, can also execute the relevant operations in the face model construction method provided in any embodiment of the present application. The face model construction device, equipment and storage medium provided in the above embodiments can execute the face model construction method provided in any embodiment of the present application. For technical details not fully described in the above embodiments, please refer to the face model construction method provided in any embodiment of the present application.
[0082] Based on the above embodiments, the embodiments of the present application also provide a computer program product. The technical solution of the present application, or the part that contributes to the relevant technology, or all or part of the technical solution can be embodied in the form of a software product. The computer program product is stored in a storage medium and includes a number of instructions for enabling a computer device, a mobile terminal or a processor therein to execute all or part of the steps of the face model construction method provided in each embodiment of the present application.
Claims
1. A method for constructing a face model, wherein: include: Obtain the face image to be processed; Inputting the face image to be processed into a trained face analysis model, analyzing and processing the face image to be processed by the face analysis model to obtain a face shape coefficient and a face expression coefficient; A virtual face model is generated based on the face shape coefficient, the face expression coefficient and a set first face model, wherein the first face model is obtained by performing deformation migration processing on the set face shape model and face expression model.
2. The method for constructing a face model according to claim 1, wherein: The generating a virtual face model based on the face shape coefficient, the face expression coefficient and the set first face model comprises: Based on the facial expression coefficient and the first facial models corresponding to the plurality of set facial shape models, generating a plurality of second facial models corresponding to the facial shape models; A virtual face model is generated based on the face shape coefficient and the second face model.
3. The method for constructing a face model according to claim 2, wherein: The second face model is determined based on the following formula: Among them, V i (β) is the second face model corresponding to the i-th face shape model, E i0 is the first face model corresponding to the neutral face shape model, E ij is the jth first face model corresponding to the i-th face shape model, β j is the jth facial expression coefficient corresponding to the ith face shape model, and M is the number of first face models.
4. The method for constructing a face model according to claim 2, wherein: The virtual face model is determined based on the following formula: Among them, V(α,β) is the virtual face model, V0(β) is the second face model corresponding to the neutral face shape model, and V i (β) is the second face model corresponding to the i-th face shape model, α i is the face shape coefficient corresponding to the i-th face shape model, and N+1 is the number of face shape models.
5. The method for constructing a face model according to claim 1, wherein: The generating a virtual face model based on the face shape coefficient, the face expression coefficient and the set first face model comprises: A virtual face model is generated based on the face shape coefficient, the set expression coefficient and the set first face model.
6. The method for constructing a face model according to any one of claims 1 to 5, wherein: The face shape model and the face expression model are constructed based on the same set neutral face model.
7. The method for constructing a face model according to any one of claims 1 to 5, wherein: The first face model is obtained by performing deformation migration processing on a set face shape model and a face expression model based on set restriction points.
8. A face model construction device, wherein: It includes an image acquisition module, a coefficient acquisition module and a model generation module, wherein: The image acquisition module is configured to acquire a face image to be processed; The coefficient acquisition module is configured to input the face image to be processed into the trained face analysis model, analyze and process the face image to be processed through the face analysis model, and obtain the face shape coefficient and the face expression coefficient; The model generation module is configured to generate a virtual face model based on the face shape coefficient, the face expression coefficient and a set first face model, wherein the first face model is obtained by performing deformation migration processing on the set face shape model and face expression model.
9. A human face model construction device, wherein: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the face model construction method as described in any one of claims 1-7.
10. A non-volatile storage medium storing computer executable instructions, wherein: The computer executable instructions are used to execute the face model construction method as described in any one of claims 1 to 7 when executed by a computer processor.
11. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the face model construction method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Facial expression capturing method and device, computer equipment and storage medium
CN114677739A
Virtual image generation method and device, equipment and storage medium
CN115393486A
Driving method and device of virtual character expression, electronic equipment and storage medium
CN115393488A
Face model construction method and device, equipment, storage medium and product
CN116071503A
Methods and systems for three-dimensional rendering of a virtual augmented replica of a product image merged with a model image of a human-body feature
US20110234581A1
Cited By
Method and system for migrating from zero sample video to video expression
CN119741189A
