A method, device and computer equipment for automatic face modeling

Extracting features and constructing constraints through face detection and key point detection networks solves the problem that existing technology cannot capture dynamic details of faces, achieves high-quality dynamic face 3D model reconstruction, and demonstrates the high accuracy of facial expressions and postures. verisimilitude.

CN117409148BActive Publication Date: 2024-10-18北京汇畅数宇科技发展有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311525725.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-15
Publication Date
2024-10-18
Estimated Expiration
2043-11-15

AI Technical Summary

Technical Problem

Existing technology cannot effectively capture and reconstruct the dynamic details related to expressions in facial images, resulting in the inability of the three-dimensional face model to accurately display facial expressions and posture changes.

Method used

The face area and key points in the face image are obtained through the face detection network and key point detection network, geometric features and texture features are extracted, and constraints are constructed for three-dimensional reconstruction to ensure consistent changes in geometric features and texture features. To generate high-quality dynamic 3D face models.

Benefits of technology

It achieves high-fidelity reconstruction of facial expressions and postures, improves the dynamic display effect of the three-dimensional face model, and can reconstruct both static and dynamic reconstructions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117409148B_ABST
    Figure CN117409148B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and in particular to a method, device and computer equipment for automatic face modeling, comprising the following steps: obtaining at least one face image containing face features; performing face recognition on the face image through a face detection network to obtain a face area in the face image; aligning the face area to a standard face frame to obtain a standard face image; calibrating key face sites in the standard face image, and extracting geometric features and texture features at the key face sites; performing three-dimensional reconstruction of the geometric features and texture features based on a constraint condition that provides reconstruction supervision information through a three-dimensional face reconstruction model to obtain a high-quality three-dimensional face model. The present invention realizes supervision of the three-dimensional reconstruction of face images in a 3DMM model or an improved version of a 3DMM model by constructing a constraint condition that can provide reconstruction supervision information, thereby improving the effect of reconstruction of face details.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of human face modeling, and in particular to a human face automatic modeling method, device and computer equipment. Background Art

[0002] In many fields such as games, animations, and movies, 3D models of human faces play a vital role. There are many methods for modeling human faces, such as mixed shapes, multilinear models, etc. These models can achieve good results for real human faces.

[0003] The existing 3D facial modeling technology can only obtain static facial details corresponding to the input image, but cannot grasp dynamic details related to facial expressions based on different images, such as wrinkles caused by changes in facial expressions. Therefore, it is impossible to obtain a high-precision 3D facial model that can be dynamically driven. Summary of the invention

[0004] The purpose of the present invention is to provide a method for automatic face modeling to solve the technical problem in the prior art that dynamic details related to facial expressions cannot be grasped based on different pictures.

[0005] In order to solve the above technical problems, the present invention specifically provides the following technical solutions:

[0006] A method for automatic face modeling comprises the following steps:

[0007] Obtain at least one face image containing facial features;

[0008] Perform face recognition on the face image through the face detection network to obtain the face area in the face image;

[0009] Aligning the face region to a standard face frame to obtain a standard face image;

[0010] The key points of the face are calibrated in the standard face image, and the geometric features and texture features of the key points of the face are extracted;

[0011] The three-dimensional face reconstruction model is used to reconstruct the geometric features and texture features in three dimensions based on the constraint conditions that provide reconstruction supervision information to obtain a high-quality three-dimensional face model.

[0012] As a preferred solution of the present invention, the determination of the face region includes:

[0013] Using the first CNN neural network or an improved version of the first CNN neural network, based on the WIDER FACE data set, to perform learning and training to establish the face detection network;

[0014] Inputting a face image into the face detection network, and obtaining the face region from the face detection network;

[0015] The expression of the face detection network is:

[0016] g = CNN(Gp);

[0017] Wherein, g is the face region, Gp is ​​the face image, and CNN is the first CNN neural network or an improved version of the first CNN neural network.

[0018] As a preferred solution of the present invention, the calibration of key points of the face includes:

[0019] Using the second CNN neural network or an improved version of the second CNN neural network, training is performed based on the WFLW data set to establish a key point detection network;

[0020] Input the standard face image into the key point detection network, and the key point detection network outputs the key points of the face in the standard face image;

[0021] The expression of the key point detection network is:

[0022] g_key = CNN(g_standard);

[0023] Wherein, g is the face region, g_standard is the standard face image, and CNN is the second CNN neural network or an improved version of the second CNN neural network.

[0024] As a preferred solution of the present invention, the extraction of the geometric features includes:

[0025] Obtaining the position coordinates of the key facial points in the standard facial image;

[0026] The key points of the face are used as position coordinates to form a topological vector representing a continuous topological structure as a geometric feature at the key points of the face.

[0027] As a preferred solution of the present invention, the extraction of texture features includes:

[0028] Obtain a partial image of a standard face image at key facial locations;

[0029] The feature extraction of the local image is performed using a Gaussian pyramid to obtain texture features at key locations of the face.

[0030] As a preferred solution of the present invention, the construction of the constraint conditions includes:

[0031] The modeling change rates of the geometric features and texture features on a single standard face image are constrained to be consistent as a first constraint condition, and the expression of the first constraint condition is:

[0032] st1=min(|R 3d -R 2d |+|L 3d -L 2d |);

[0033] In the formula, st1 is the first constraint, min is the minimization operator, and R 3d is the geometric features of the 3D face model constructed based on the standard face image, R 2d is the geometric features in the standard face image, L 3d is the texture feature of the 3D face model constructed based on the standard face image, L 2d It is the texture feature in the standard face image;

[0034] The modeling change rates of the geometric features and texture features between multiple standard face images are constrained to be consistent as the second constraint condition, and the expression of the second constraint condition is:

[0035]

[0036] In the formula, st2 is the second constraint, min is the minimization operator, and R 3d,i is the geometric features of the 3D face model constructed based on the i-th standard face image, R 2d,i is the geometric features in the i-th standard face image, L 3d,i is the texture feature of the 3D face model constructed based on the i-th standard face image, L 2d,i is the texture feature in the i-th standard face image, m is the total number of standard face images, and i is a counting variable.

[0037] As a preferred solution of the present invention, the geometric features and texture features are normalized before being introduced into the constraint conditions.

[0038] As a preferred solution of the present invention, the determination of the high-quality three-dimensional face model includes:

[0039] When the number of standard face images is 1, reconstruction supervision is performed based on the first constraint condition, and the geometric features and texture features in the standard face image are three-dimensionally reconstructed using the 3DMM model or an improved version of the 3DMM model to obtain a high-quality three-dimensional face model based on a single standard face image;

[0040] When the number of standard face images is greater than 1, reconstruction supervision is performed jointly based on the first constraint and the second constraint, and the geometric features and texture features in the standard face images are three-dimensionally reconstructed using the 3DMM model or an improved version of the 3DMM model to obtain a high-quality three-dimensional face model based on multiple standard face images.

[0041] As a preferred embodiment of the present invention, the present invention provides a human face automatic modeling device, comprising:

[0042] A data acquisition module, used to acquire at least one face image containing face features;

[0043] A data processing module is used to perform face recognition on a face image through a face detection network to obtain a face area in the face image;

[0044] Used to align the face area to a standard face frame to obtain a standard face image;

[0045] It is used to identify key facial locations in standard facial images and extract geometric features and texture features at key facial locations.

[0046] Used to perform three-dimensional reconstruction of the geometric features and texture features based on the constraint conditions that provide reconstruction supervision information through a three-dimensional face reconstruction model to obtain a high-quality three-dimensional face model;

[0047] The data storage module is used to store the face detection network, the face standard framework, the key point detection network, the constraint conditions and the 3DMM model or the improved version of the 3DMM model.

[0048] As a preferred solution of the present invention, the present invention provides a computer device, characterized in that:

[0049] at least one processor; and

[0050] a memory communicatively coupled to the at least one processor;

[0051] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the computer device to perform the automatic face modeling method.

[0052] Compared with the prior art, the present invention has the following beneficial effects:

[0053] The present invention realizes supervision of the three-dimensional reconstruction of facial images in a 3DMM model or an improved version of the 3DMM model by constructing constraints that can provide reconstruction supervision information, thereby ensuring that the modeled three-dimensional facial model has improved effects in reconstructing facial details. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0055] Figure 1 A flow chart of the automatic face modeling method provided by an embodiment of the present invention;

[0056] Figure 2 A block diagram of an automatic face modeling device provided by an embodiment of the present invention;

[0057] Figure 3 An internal structure diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] like Figure 1 As shown, the present invention provides a method for automatic face modeling, comprising the following steps:

[0060] Obtain at least one face image containing facial features;

[0061] Perform face recognition on the face image through the face detection network to obtain the face area in the face image;

[0062] Align the face area to the standard face frame to obtain a standard face image;

[0063] The key points of the face are calibrated in the standard face image, and the geometric features and texture features of the key points of the face are extracted;

[0064] Based on the constraints that provide reconstruction supervision information, the three-dimensional face reconstruction model performs three-dimensional reconstruction of geometric features and texture features to obtain a high-quality three-dimensional face model.

[0065] In order to enable facial details (such as facial expressions and postures) to be displayed in a three-dimensional face model, the present invention constructs constraints for supervising the three-dimensional face reconstruction model, and supervises and constrains the reconstruction process of the three-dimensional face reconstruction model, thereby improving the display of facial details.

[0066] Specifically, the basis of three-dimensional face reconstruction is the key points of the face, and the basis of the display of facial expressions and postures is also the key points of the face. The reconstruction of facial expressions and postures in three-dimensional reconstruction uses the combination of geometric features and texture features. Therefore, the present invention constructs constraints based on the geometric features and texture features of the key points of the face, thereby realizing supervised reconstruction of the geometric features and texture features at the key points of the face, so that the key points of the face can display facial expressions and postures.

[0067] Geometric features and texture features jointly determine the display effect of facial expressions and postures in two-dimensional images in the three-dimensional face model. Therefore, the higher the consistency of the changes in the geometric features of facial key points reconstructed from two-dimensional images to three-dimensional models and the texture features of facial key points reconstructed from two-dimensional images to three-dimensional models, the better the reconstruction effect of the reconstructed three-dimensional face model will be, and the higher the realism of the facial expressions and postures in the three-dimensional model and the two-dimensional image will be. On the contrary, the lower the consistency of the changes in the geometric features of facial key points reconstructed from two-dimensional images to three-dimensional models and the texture features of facial key points reconstructed from two-dimensional images to three-dimensional models, the worse the reconstruction effect of the reconstructed three-dimensional face model will be, and the lower the realism of the facial expressions and postures in the three-dimensional model and the two-dimensional image will be.

[0068] In summary, the present invention uses the modeling change rate of geometric features and texture features on a single standard face image to perform consistency constraints as the first constraint condition, which can enable the three-dimensional model to restore the facial expression and posture details on the two-dimensional image with high fidelity during the reconstruction process.

[0069] Furthermore, in order to enable the three-dimensional face model to obtain richer facial expressions and postures, or even to form a three-dimensional face model with dynamic expressions and postures during three-dimensional reconstruction, more two-dimensional images are usually used for three-dimensional reconstruction. At this time, in addition to the need to make the three-dimensional model restore the expression and posture details on the two-dimensional image with high fidelity during the reconstruction process, it is also necessary to dynamically coordinate the expressions and postures on each two-dimensional image in the three-dimensional model, and when the expression and posture are dynamically converted in the three-dimensional face model, the geometric features and texture features show consistent changes, so that the expression and posture conversion is smooth and realistic, and there will be no weird expressions and postures due to inconsistent changes between the geometric features and the texture features, which greatly reduces the expression and posture display effect of the three-dimensional face model. Therefore, the modeling change rate of the geometric features and texture features of the present invention between multiple standard face images is constrained for consistency as the second constraint condition, which can improve the display effect of dynamic expressions and postures in the three-dimensional face model.

[0070] The combination of the two constraints can realize both static reconstruction and dynamic reconstruction of the 3D face model.

[0071] The present invention automatically recognizes the face area in the face image through a face detection network, as follows:

[0072] Determination of the face area, including:

[0073] Using the first CNN neural network or an improved version of the first CNN neural network (such as Cascade CNN, MTCNN), based on the WIDER FACE data set, to perform learning and training to establish a face detection network;

[0074] The WIDER FACE dataset is an existing dataset with a total of 32,203 images and 393,703 face annotations, divided into training set (train) / validation set (val) / test set (test), accounting for 40% / 10% / 50% respectively. The dataset includes face images of various scales, postures, occlusions, expressions, makeup, lighting, etc., which is quite difficult. The image resolution is generally high, the width of all images is scaled to 1024, the minimum annotated face size is 10*10, and all are color images; an average of 12.2 faces / image, with many dense small faces.

[0075] Input the face image into the face detection network, and obtain the face area from the face detection network;

[0076] The expression of the face detection network is:

[0077] g = CNN(Gp);

[0078] Wherein, g is the face region, Gp is ​​the face image, and CNN is the first CNN neural network or an improved version of the first CNN neural network.

[0079] The present invention uses a key point detection network to calibrate the key points of the face, as follows:

[0080] The calibration of key facial features includes:

[0081] Using the second CNN neural network or an improved version of the second CNN neural network (such as DCNN, TCDCN, MTCNN), based on the WFLW data set, to conduct learning and training to establish a key point detection network;

[0082] The WFLW dataset was released in 2018, annotating eyebrows, eyes, nose, lips, and 98 key points in total. The database includes 10,000 images, of which 7,500 are used as training sets and 2,500 are used as test sets. In addition to the 98 key points, it also annotates information such as occlusion, posture, makeup, lighting, blur, and expression.

[0083] Input the standard face image into the key point detection network, and the key point detection network outputs the key points of the face in the standard face image;

[0084] The expression of the key point detection network is:

[0085] g_key = CNN(g_standard);

[0086] Wherein, g is the face region, g_standard is the standard face image, and CNN is the second CNN neural network or an improved version of the second CNN neural network.

[0087] Extraction of geometric features, including:

[0088] Obtain the position coordinates of the key points of the face in the standard face image;

[0089] The key points of the face are used as geometric features at the key points of the face, forming a topological vector representing a continuous topological structure with position coordinates.

[0090] Extraction of texture features, including:

[0091] Obtain a partial image of a standard face image at key facial locations;

[0092] The Gaussian pyramid is used to extract features of local images and obtain texture features at key locations of the face.

[0093] In order to enable facial details (such as facial expressions and postures) to be displayed in the 3D face model, the present invention constructs the constraint conditions for supervising the 3D face reconstruction model, which are as follows:

[0094] The construction of constraints includes:

[0095] The modeling change rate of geometric features and texture features on a single standard face image is constrained to be consistent as the first constraint condition. The expression of the first constraint condition is:

[0096] st1=min(|R 3d -R 2d |+|L 3d -L 2d |);

[0097] In the formula, st1 is the first constraint, min is the minimization operator, and R 3d is the geometric features of the 3D face model constructed based on the standard face image, R 2d is the geometric features in the standard face image, L 3d is the texture feature of the 3D face model constructed based on the standard face image, L 2dIt is the texture feature in the standard face image;

[0098] The modeling change rate of geometric features and texture features between multiple standard face images is constrained to be consistent as the second constraint condition. The expression of the second constraint condition is:

[0099]

[0100] In the formula, st2 is the second constraint, min is the minimization operator, and R 3d,i is the geometric features of the 3D face model constructed based on the i-th standard face image, R 2d,i is the geometric features in the i-th standard face image, L 3d,i is the texture feature of the 3D face model constructed based on the i-th standard face image, L 2d,i is the texture feature in the i-th standard face image, m is the total number of standard face images, and i is a counting variable.

[0101] The geometric features and texture features are normalized before being introduced into the constraints.

[0102] Determination of high-quality 3D facial model, including:

[0103] When the number of standard face images is 1, reconstruction supervision is performed based on the first constraint condition, and the geometric features and texture features in the standard face image are 3D reconstructed using the 3DMM model or an improved version of the 3DMM model (such as 3DCMM CNN) to obtain a high-quality 3D face model based on a single standard face image;

[0104] When the number of standard face images is greater than 1, reconstruction supervision is performed based on the first constraint condition and the second constraint condition, and the geometric features and texture features in the standard face images are three-dimensionally reconstructed using the 3DMM model or an improved version of the 3DMM model to obtain a high-quality three-dimensional face model based on multiple standard face images;

[0105] Specifically, when the number of standard face images is greater than 1, a standard face image is selected in turn to construct the first constraint condition, and the result is

[0106] st1=min(|R 3d,j -R 2d,j |+|L 3d,j -L 2d,j |);

[0107] In the formula, st1 is the first constraint, min is the minimization operator, and R 3d,j is the geometric features of the 3D face model constructed based on the jth standard face image, R 2d,jis the geometric features in the jth standard face image, L 3d,j is the texture feature of the 3D face model constructed based on the jth standard face image, L 2d,j is the texture feature in the jth standard face image, m is the total number of standard face images, and j is the counting identifier of a randomly selected standard face image;

[0108] The expression of the second constraint is:

[0109]

[0110] In the formula, st2 is the second constraint, min is the minimization operator, and R 3d,i is the geometric features of the 3D face model constructed based on the i-th standard face image, R 2d,i is the geometric features in the i-th standard face image, L 3d,i is the texture feature of the 3D face model constructed based on the i-th standard face image, L 2d,i is the texture feature in the i-th standard face image, m is the total number of standard face images, and i is a counting variable.

[0111] Geometric features and texture features jointly determine the display effect of facial expressions and postures in two-dimensional images in the three-dimensional face model. Therefore, the higher the consistency of the changes in the geometric features of facial key points reconstructed from two-dimensional images to three-dimensional models and the texture features of facial key points reconstructed from two-dimensional images to three-dimensional models, the better the reconstruction effect of the reconstructed three-dimensional face model will be, and the higher the realism of the facial expressions and postures in the three-dimensional model and the two-dimensional image will be. On the contrary, the lower the consistency of the changes in the geometric features of facial key points reconstructed from two-dimensional images to three-dimensional models and the texture features of facial key points reconstructed from two-dimensional images to three-dimensional models, the worse the reconstruction effect of the reconstructed three-dimensional face model will be, and the lower the realism of the facial expressions and postures in the three-dimensional model and the two-dimensional image will be.

[0112] In summary, the present invention uses the modeling change rate of geometric features and texture features on a single standard face image to perform consistency constraints as the first constraint condition, which can enable the three-dimensional model to restore the facial expression and posture details on the two-dimensional image with high fidelity during the reconstruction process.

[0113] Furthermore, in order to enable the three-dimensional face model to obtain richer facial expressions and postures, or even to form a three-dimensional face model with dynamic expressions and postures during three-dimensional reconstruction, more two-dimensional images are usually used for three-dimensional reconstruction. At this time, in addition to the need to make the three-dimensional model restore the expression and posture details on the two-dimensional image with high fidelity during the reconstruction process, it is also necessary to dynamically coordinate the expressions and postures on each two-dimensional image in the three-dimensional model, and when the expression and posture are dynamically converted in the three-dimensional face model, the geometric features and texture features show consistent changes, so that the expression and posture conversion is smooth and realistic, and there will be no weird expressions and postures due to inconsistent changes between the geometric features and the texture features, which greatly reduces the expression and posture display effect of the three-dimensional face model. Therefore, the modeling change rate of the geometric features and texture features of the present invention between multiple standard face images is constrained for consistency as the second constraint condition, which can improve the display effect of dynamic expressions and postures in the three-dimensional face model.

[0114] The combination of the two constraints can realize both static reconstruction and dynamic reconstruction of the 3D face model.

[0115] like Figure 2 As shown, the present invention provides a human face automatic modeling device, comprising:

[0116] A data acquisition module, used to acquire at least one face image containing face features;

[0117] A data processing module is used to perform face recognition on a face image through a face detection network to obtain a face area in the face image;

[0118] Used to align the face area to the standard face frame to obtain a standard face image;

[0119] It is used to identify key facial locations in standard facial images and extract geometric features and texture features at key facial locations.

[0120] It is used to perform three-dimensional reconstruction of geometric features and texture features based on the constraints that provide reconstruction supervision information through the three-dimensional face reconstruction model to obtain a high-quality three-dimensional face model;

[0121] The data storage module is used to store the face detection network, the face standard framework, the key point detection network, the constraint conditions and the 3DMM model or the improved version of the 3DMM model.

[0122] like Figure 3 As shown, the present invention provides a computer device, characterized in that:

[0123] at least one processor; and

[0124] a memory communicatively coupled to the at least one processor;

[0125] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the computer device to perform the automatic face modeling method.

[0126] The present invention realizes supervision of the three-dimensional reconstruction of facial images in a 3DMM model or an improved version of the 3DMM model by constructing constraints that can provide reconstruction supervision information, thereby ensuring that the modeled three-dimensional facial model has improved effects in reconstructing facial details.

[0127] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. A method for automatic face modeling, characterized in that: The following steps are involved: Obtain at least one face image containing facial features; Perform face recognition on the face image through the face detection network to obtain the face area in the face image; Aligning the face region to a standard face frame to obtain a standard face image; The key points of the face are calibrated in the standard face image, and the geometric features and texture features of the key points of the face are extracted; The geometric features and texture features are three-dimensionally reconstructed based on the constraint conditions that provide reconstruction supervision information through the three-dimensional face reconstruction model to obtain a high-quality three-dimensional face model; Extraction of texture features, including: Obtain a partial image of a standard face image at key facial locations; Use Gaussian pyramid to extract local image features and obtain texture features at key points of the face. The construction of constraints includes: The modeling change rate of geometric features and texture features on a single standard face image is constrained to be consistent as the first constraint condition. The expression of the first constraint condition is: s.t.1=min(|R 3d -R 2d |+|L 3d -L 2d |); In the formula, st1 is the first constraint, min is the minimization operator, and R 3d is the geometric features of the 3D face model constructed based on the standard face image, R 2d is the geometric features in the standard face image, L 3d is the texture feature of the 3D face model constructed based on the standard face image, L 2d It is the texture feature in the standard face image; The modeling change rate of geometric features and texture features between multiple standard face images is constrained to be consistent as the second constraint condition. The expression of the second constraint condition is: In the formula, st2 is the second constraint, min is the minimization operator, and R 3d,i is the geometric features of the 3D face model constructed based on the i-th standard face image, R 2d,i is the geometric features in the i-th standard face image, L 3d,i is the texture feature of the 3D face model constructed based on the i-th standard face image, L 2d,i is the texture feature in the i-th standard face image, m is the total number of standard face images, and i is a counting variable.

2. The method for automatic face modeling according to claim 1, characterized in that: The determination of the face region includes: Using the first CNN neural network or an improved version of the first CNN neural network, based on the WIDER FACE data set, to perform learning and training to establish the face detection network; Inputting a face image into the face detection network, and obtaining the face region from the face detection network; The expression of the face detection network is: g = CNN(Gp); Wherein, g is the face region, Gp is ​​the face image, and CNN is the first CNN neural network or an improved version of the first CNN neural network.

3. The automatic face modeling method according to claim 2, characterized in that: The calibration of the key points of the face includes: Using the second CNN neural network or an improved version of the second CNN neural network, training is performed based on the WFLW data set to establish a key point detection network; Input the standard face image into the key point detection network, and the key point detection network outputs the key points of the face in the standard face image; The expression of the key point detection network is: g_key = CNN(g_standard); Wherein, g is the face region, g_standard is the standard face image, and CNN is the second CNN neural network or an improved version of the second CNN neural network.

4. The method for automatic face modeling according to claim 3, characterized in that: The extraction of the geometric features includes: Obtaining the position coordinates of the key facial points in the standard facial image; The key points of the face are used as position coordinates to form a topological vector representing a continuous topological structure as a geometric feature at the key points of the face.

5. The method for automatic face modeling according to claim 1, characterized in that: The geometric features and texture features are normalized before being introduced into the constraint conditions.

6. The method for automatic face modeling according to claim 1, characterized in that: The determination of the high-quality human face three-dimensional model includes: When the number of standard face images is 1, reconstruction supervision is performed based on the first constraint condition, and the geometric features and texture features in the standard face image are three-dimensionally reconstructed using the 3DMM model or an improved version of the 3DMM model to obtain a high-quality three-dimensional face model based on a single standard face image; When the number of standard face images is greater than 1, reconstruction supervision is performed jointly based on the first constraint and the second constraint, and the geometric features and texture features in the standard face images are three-dimensionally reconstructed using the 3DMM model or an improved version of the 3DMM model to obtain a high-quality three-dimensional face model based on multiple standard face images.

7. A human face automatic modeling device, characterized in that: include: A data acquisition module, used to acquire at least one face image containing face features; A data processing module is used to perform face recognition on a face image through a face detection network to obtain a face area in the face image; Used to align the face area to a standard face frame to obtain a standard face image; It is used to identify key facial locations in standard facial images and extract geometric features and texture features at key facial locations. Used to perform three-dimensional reconstruction of the geometric features and texture features based on the constraint conditions that provide reconstruction supervision information through a three-dimensional face reconstruction model to obtain a high-quality three-dimensional face model; A data storage module, used for storing a face detection network, a face standard framework, a key point detection network, constraint conditions, and a 3DMM model or an improved version of the 3DMM model; The extraction of the texture features comprises: Obtain a partial image of a standard face image at key facial locations; Using a Gaussian pyramid to extract features of the local image, and obtaining texture features at key locations of the face; The construction of the constraint conditions includes: The modeling change rates of the geometric features and texture features on a single standard face image are constrained to be consistent as a first constraint condition, and the expression of the first constraint condition is: s.t.1=min(|R 3d -R 2d |+|L 3d -L 2d |); In the formula, st1 is the first constraint, min is the minimization operator, and R 3d is the geometric features of the 3D face model constructed based on the standard face image, R 2d is the geometric features in the standard face image, L 3d is the texture feature of the 3D face model constructed based on the standard face image, L 2d It is the texture feature in the standard face image; The modeling change rates of the geometric features and texture features between multiple standard face images are constrained to be consistent as the second constraint condition, and the expression of the second constraint condition is: In the formula, st2 is the second constraint, min is the minimization operator, and R 3d,i is the geometric features of the 3D face model constructed based on the i-th standard face image, R 2d,i is the geometric features in the i-th standard face image, L 3d,i is the texture feature of the 3D face model constructed based on the i-th standard face image, L 2d,i is the texture feature in the i-th standard face image, m is the total number of standard face images, and i is a counting variable.

8. A computer device, characterized in that: at least one processor; as well as a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the computer device to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Multi-branch deep learning-based 3D face reconstruction model training method and system, and medium

    CN114926591A