Digital human face driving method based on deep learning
Through deep learning methods, the facial directional gradient and wrinkle intensity index are calculated, combined with changes in the expression base, to improve the sparse point cloud network, solving the problem of insufficient realism of facial expressions in the existing technology, and realizing efficient and realistic digital human faces. driving effect.
Patent Information
- Application Number
- CN202410831374.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing digital human facial expression driving methods improve the calculation speed while sacrificing the realism of facial expressions, especially based on sparse point cloud driven migration algorithms, resulting in poor digital human expression quality and unrealistic responses.
The digital human face driving method based on deep learning is used to obtain the normal vector direction variation and distance between the target data point and its neighbor data points, calculate the facial direction gradient and wrinkle intensity index, and combine the changes in the expression base to obtain the muscle Expression intensity index and sparse point cloud weights are used for facial driving, and the sparse point cloud network is improved to improve expression realism.
While ensuring the calculation speed, the realism and quality of facial expressions of digital people are significantly improved, allowing digital people to express expressions more realistically.
Smart Images

Figure CN118379779B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of digital human face driving, and in particular to a digital human face driving method based on deep learning. Background Art
[0002] In the process of digital human generation, the most important thing that users pay attention to is the facial expression drive. The most commonly used method in facial expression drive is to divide the face into multiple facial movement basic units that do not interfere with each other, and realize the expression generation of the face by controlling each movement basic unit.
[0003] This method usually matches the point cloud data of the generated digital human face model with the point cloud data on the standard face model one by one, and then drives the digital human face point cloud data according to the expression of the standard face model to complete the expression drive of the digital human face and make the digital human make facial expressions. The point cloud driven method is divided into a sparse point cloud driven migration algorithm and a dense model driven migration algorithm. The latter can make delicate expressions, but the calculation amount is large and the delay is high. The former can make the digital human respond quickly to expressions, but the quality of the digital human's expression is poor and it is easy to appear unreal.
[0004] In the sparse point cloud driven migration algorithm, since it uses a uniform point cloud grid instead of dense point cloud data, the realism of facial expressions is sacrificed while improving the calculation speed. Therefore, this embodiment improves the distribution of the point cloud grid, which can ensure the realism of facial expressions while improving the calculation speed. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a digital human face driving method based on deep learning to solve the existing problems.
[0006] The digital human face driving method based on deep learning in this application adopts the following technical solutions:
[0007] An embodiment of the present application provides a digital human face driving method based on deep learning, the method comprising the following steps:
[0008] Collecting target data points in the facial point cloud data set of the target digital human and model data points in the facial point cloud data set of the standard digital human, and dividing the model data points in each facial muscle area of the standard digital human based on each facial muscle area in the facial muscle model;
[0009] The target data points and the model data points are collectively referred to as data points, and the neighborhood data points of each data point are obtained; based on the relationship between the target data points and the model data points, the normal vector direction variation of each target data point is obtained; based on the normal vector direction variation and the distance between each target data point and its neighborhood data points, the digital human face direction gradient between the target data point and its neighborhood data points is obtained;
[0010] Based on the digital human face directional gradient, the facial wrinkle intensity index of each target data point is obtained;
[0011] Based on the facial wrinkle intensity index and the changes of the model data points on the expression base, the facial muscle expression intensity index of each muscle area on each expression base is obtained; based on the changes of the model data points from the facial muscle model to the expression base, the sparse point cloud weight of each model data point in the facial muscle area is obtained;
[0012] The digital human face is driven based on the facial muscle expression intensity index and the sparse point cloud weights in the facial muscle area.
[0013] Furthermore, the method for obtaining each neighborhood data point is:
[0014] For each data point, taking the data point as the center, obtain a plane perpendicular to the unit normal vector of the data point and where the data point is located as the neighborhood plane of each data point, and on the neighborhood plane, make a preset number of rays outward from the data point as the center, and use the preset number of rays as the direction rays of each sub-region of the data point at the center, and divide the neighborhood plane into a preset number of regions as sub-regions of the neighborhood plane according to the preset number of rays;
[0015] For each sub-region in the neighborhood plane centered on each data point, the data point with the smallest distance to the central data point in the vertical space of the sub-region is taken as the neighborhood data point of the central data point in the sub-region.
[0016] Furthermore, the method for obtaining the normal vector direction variability of the target data point is:
[0017] The facial point cloud datasets of the target digital person and the standard digital person are used as input, and the matching relationship between the data points in the facial point cloud dataset of the target digital person and the data points in the facial point cloud dataset of the standard digital person is obtained by using a registration framework, and the data points in the facial point cloud dataset of the target digital person and the data points in the facial point cloud dataset of the standard digital person that are successfully matched are taken as a pair of matching data points;
[0018] Use a vector estimation algorithm to obtain a target point cloud direction vector of a target data point and a model point cloud direction vector of a model data point;
[0019] For each target data point in the facial point cloud data set of the target digital person, a matching data point of the target data point in the facial point cloud data set of the standard digital person is obtained as a first matching data point of the target data point, and a modulus length of a difference between a target point cloud direction vector of the target data point and a model point cloud direction vector of the first matching data point of the target data point is calculated as a first difference vector modulus length;
[0020] The modulus of the difference between the target point cloud direction vector of the target data point and the target point cloud direction vectors of each neighborhood data point of the target data point is calculated as the modulus of the second difference vector, and the normal vector direction variability is positively correlated with the modulus of the first difference vector and the modulus of the second difference vector.
[0021] Furthermore, the method for obtaining the directional gradient of the digital human face is:
[0022] In the facial point cloud data set of the target digital human, the difference between the directional variability of the normal vector of each target data point and the variability of the normal vector of each of its neighboring data points is calculated as the first difference, and the distance between each target data point and each of its neighboring data points is calculated as the first distance. The digital human facial directional gradient is positively correlated with the first difference and negatively correlated with the first distance.
[0023] Furthermore, the method for obtaining the facial wrinkle intensity index is:
[0024] Based on the directional gradient of the digital human face, all directional neighboring data points and opposite directional neighboring data points of each target data point are obtained. For each directional neighboring data point and each opposite directional neighboring data point, a set consisting of each directional neighboring data point and each opposite directional neighboring data point of each target data point is used as a set of each directional neighboring points of each target data point.
[0025] For each directional neighborhood point set of each target data point, the digital human facial directional gradient of each data point in the directional neighborhood point set is obtained; for each target data point, the number of times the digital human facial directional gradient of the target data point is the maximum value in all its directional neighborhood point sets is obtained as the facial wrinkle intensity index of each target data point.
[0026] Furthermore, the method for obtaining the directional neighborhood data points is:
[0027] For each sub-region of the neighborhood plane of each target data point, obtain the neighborhood data points of the target data point and each sub-region of its neighborhood plane as the first-direction neighborhood data points in the direction of the corresponding sub-region of the target data point; in the neighborhood plane of the first-direction neighborhood data point, obtain the neighborhood data points in the sub-region with the same direction as the sub-region as the first-direction neighborhood data points, until all the first-direction neighborhood data points are obtained;
[0028] The method for obtaining the neighborhood data points in the second direction, the neighborhood data points in the third direction, and the neighborhood data points in the fourth direction is the same as the method for obtaining the neighborhood data points in the first direction.
[0029] Furthermore, the method for obtaining the neighborhood data points in the opposite direction is:
[0030] For the neighborhood plane of each target data point, a sub-region in the opposite direction to the sub-region is obtained as an opposite sub-region, and the neighborhood data points in the opposite sub-region are used as first opposite direction neighborhood data points of the target data point; in the neighborhood plane of the first opposite direction neighborhood data point, neighborhood data points in the sub-region in the same direction as the opposite sub-region are obtained as first opposite direction neighborhood data points, until all first opposite direction neighborhood data points are obtained;
[0031] The method for obtaining the second opposite direction neighborhood data point, the third opposite direction neighborhood data point, and the fourth opposite direction neighborhood data point is the same as the method for obtaining the first opposite direction neighborhood data point.
[0032] Further, the method for obtaining the facial muscle expression intensity index is:
[0033] Acquire expression bases, and use the point cloud structure composed of the model data points after the movement on each expression base as the sparse point cloud structure of each expression base; the expression base is a face model with various expressions;
[0034] For each model data point in the sparse point cloud structure of each expression base, a unit normal vector estimation algorithm is used to obtain the expression model point cloud direction vector of each model data point;
[0035] For each facial muscle region in the human facial muscle model, normalizing the facial wrinkle intensity index of the target data point matched by each model data point in the facial muscle region to serve as the facial wrinkle intensity weight of each model data point;
[0036] For each model data point, the modulus of the difference between the model point cloud direction vector of the model data point on the facial muscle model and the expression model point cloud direction vector on each expression base is calculated as the first difference modulus, and the distance between the position of the model data point on the facial muscle model and the position on each expression base is calculated as the second distance; the facial muscle expression intensity index is positively correlated with the first difference modulus, negatively correlated with the second distance, and positively correlated with the facial wrinkle intensity weight.
[0037] Furthermore, the method for obtaining the weight of the sparse point cloud in the facial muscle area is:
[0038] All model data points on the facial muscle model and all model data points on each expression base are used as inputs of the curvature estimation algorithm, and the outputs are the surface curvatures of each model data point on the facial muscle model and each model data point on each expression base;
[0039] For each model data point, a vector from the position of the model data point on the facial muscle model to the position on each expression base is obtained as the expression base vector of each model data point, the degree of the angle between the expression base vector and the model point cloud direction vector of the model data point on the facial muscle model is calculated as the first angle degree, the distance from the position of the model data point on the facial muscle model to the position on each expression base is calculated as the third distance, and the difference relationship and positive fusion relationship between the surface curvature of the model data point on the facial muscle model and the surface curvature on each expression base are obtained as the first difference relationship and the first fusion relationship respectively; the sparse point cloud weight in the facial muscle area is positively correlated with the first angle degree, the first difference relationship and the first fusion relationship, and is negatively correlated with the third distance.
[0040] Furthermore, the driving of the digital human face includes:
[0041] A sparse point cloud selection grid is obtained based on a sparse point cloud driven migration algorithm to obtain the sparse point cloud selection grid of the face surface of each expression base;
[0042] For each expression base, the facial muscle expression strength indexes of all facial muscle areas in the expression base are sorted from large to small, a preset number of facial muscle areas whose facial muscle expression strength indexes are ranked in the front are selected, and the sparse point cloud selection grids of the preset number of facial muscle areas are divided, and the division method is: in the selected facial muscle area, all the sparse point cloud selection grids are obtained, and each sparse point cloud selection grid is evenly divided into four grids to obtain a detailed sparse point cloud selection grid;
[0043] For the detailed sparse point cloud selection grids of each facial muscle area, the mean of the sparse point cloud weights of all model data points in each detailed sparse point cloud selection grid is calculated as the first weight mean, all the first weight means are sorted from large to small, and the preset number of grids ranked at the front are selected as the second type of grids, and the second type of grids are divided in the same way as the detailed sparse point cloud selection grid, so as to obtain the feature weight point cloud grids of each expression base time;
[0044] When the digital human uses various expression bases to express facial expressions, the feature weighted point cloud grids of each expression base are used to replace the sparse point cloud grids in the sparse point cloud driven migration algorithm to drive the facial point cloud dataset of the target digital human.
[0045] This application has at least the following beneficial effects:
[0046] The embodiment of the present application arranges the point cloud data in a preliminary regular manner by stipulating eight fields of the point cloud data, calculates the digital human face directional gradient according to the position characteristics and surface normal vectors of the point cloud data, and obtains the facial wrinkle intensity index by adopting the method of local maximum suppression as a characteristic value characterizing the amount of facial wrinkles; obtains the facial wrinkle intensity weight through the facial wrinkle intensity index, and obtains the facial muscle expression intensity index in combination with the position of the facial point cloud data in the expression base and the change of the surface normal vector, characterizing the importance of different facial regions under different expression bases, and assigns a more dense sparse point cloud network to the facial muscle region with a large facial muscle expression intensity index during facial driving, so as to achieve a better facial expression driving effect; obtains the sparse point cloud weight in the facial muscle region in combination with the position of the facial point cloud data in the expression base and the change of the surface normal vector, as well as the curvature change in the point cloud data, distinguishes whether the point cloud data is directly driven by the muscle, and allocates a more dense sparse point cloud network to the region directly driven by the muscle, so as to achieve a better facial expression driving effect.
[0047] Finally, the improved sparse point cloud network is used to replace the sparse point cloud network in the traditional sparse point cloud driven migration algorithm, which can improve the realism of expression driving while ensuring the calculation speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 A flowchart of a deep learning-based digital human face driving method provided for this application;
[0050] Figure 2 Schematic diagram of the eight areas of point cloud data;
[0051] Figure 3 It is a schematic diagram of facial curvature;
[0052] Figure 4 Obtain a flow chart for the feature weight cloud grid. DETAILED DESCRIPTION
[0053] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of the deep learning-based digital human face driving method proposed in the present application in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0054] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
[0055] The specific scheme of the digital human face driving method based on deep learning provided by the present application is described in detail below with reference to the accompanying drawings.
[0056] An embodiment of the present application provides a digital human face driving method based on deep learning. Specifically, the following digital human face driving method based on deep learning is provided. Figure 1 , the method comprises the following steps:
[0057] Step S1, collecting facial data.
[0058] The target digital human face is obtained, and its face corresponds to the standard digital human model one by one. The facial expression drive of the target digital human is driven by the expression drive of the digital human model. Therefore, the facial point cloud data set of the target digital human is obtained, and the facial point cloud data set of the standard digital human is obtained at the same time. The data points in the facial point cloud data set of the target digital human are used as the target data points, and the data points in the facial point cloud data set of the model digital human are used as the model data points.
[0059] Furthermore, the two point cloud data sets are used as input, and the end-to-end learning-based 3D point cloud registration framework DeepVCP is used, and the output is the matching relationship between the data points in the face point cloud data set of the target digital person and the data points in the face point cloud data set of the standard digital person, and the data points in the face point cloud data set of the target digital person and the data points in the face point cloud data set of the standard digital person that are successfully matched are used as a pair of matching data points. The end-to-end learning-based 3D point cloud registration framework DeepVCP is a well-known technology in the field of deep learning and will not be described in detail.
[0060] Furthermore, the data points in the facial point cloud data set of the standard digital human are divided, and the division steps are as follows: obtaining a facial muscle model of the standard digital human. In medicine, the facial muscle model is divided into multiple muscle categories, and the number of categories of facial muscle areas in the facial muscle model is recorded as H. In this embodiment, the value of H is 54; the data points in the facial point cloud data set of the standard digital human are divided according to the facial muscle model of the standard digital human, and all data points in the facial point cloud data set corresponding to each muscle area are regarded as the same type of data points, thereby completing the division of the data points in the facial point cloud data set of the standard digital human.
[0061] Step S2, processing the facial data of the human face and driving the facial model of the human face.
[0062] The target digital person's facial point cloud data set is used as the input of the point cloud data unit normal vector estimation algorithm, and the unit normal vector of each target data point in the target digital person's facial point cloud data set is output as the target point cloud direction vector. Similarly, the unit normal vector of each model data point in the model digital person's facial point cloud data set is obtained as the model point cloud direction vector; the unit normal vector represents the orientation of the facial surface at the location of the data point. The point cloud data unit normal vector estimation algorithm is a well-known technology in the art and will not be described in detail.
[0063] The part where the normal vector direction changes dramatically can be identified by the transformation of the normal vector direction. The area of the facial muscle model where the data points where the normal vector direction changes dramatically are located is usually the area where wrinkles appear on the face. Facial wrinkles are usually caused by the face exerting intense force in this area when making expressions. Therefore, wrinkled areas are usually the details of facial expressions and should have higher weights in the sparse point cloud driven migration algorithm.
[0064] For each data point, take the data point as the center, obtain a plane perpendicular to the unit normal vector of the data point and where the data point is located as the neighborhood plane of each data point, and make eight rays outward from the data point as the center on the neighborhood plane, and use the eight rays as the direction rays of each sub-region of the central data point, the angles between two adjacent rays are the same, and divide the neighborhood plane into eight regions as sub-regions of the neighborhood plane according to the eight rays, such as Figure 2 It should be noted that Figure 2 The boundary lines of the parallelogram in are only for better display of the frequency domain plane and are not the boundaries of the neighborhood plane.
[0065] For each sub-region in the neighborhood plane centered on each data point, the data point with the smallest Euclidean distance to the central data point in the vertical space of the sub-region is taken as the neighborhood data point of the central data point in the sub-region.
[0066] Furthermore, the normal vector direction variation of each target data point in the face point cloud data set of the target digital person is obtained, and the obtaining method is as follows:
[0067] For each target data point in the facial point cloud data set of the target digital person, the matching data point of the target data point in the facial point cloud data set of the standard digital person is obtained as the first matching data point of the target data point, and the modulus of the difference between the target point cloud direction vector of the target data point and the model point cloud direction vector of the first matching data point of the target data point is calculated as the first difference vector modulus; the modulus of the difference between the target point cloud direction vector of the target data point and the target point cloud direction vectors of each neighborhood data point of the target data point is calculated as the second difference vector modulus, and the normal vector direction variability is positively correlated with the first difference vector modulus and the second difference vector modulus.
[0068] Specifically, the present application proposes an embodiment, which calculates the product of the mean of all second difference vector moduli of each data point in the facial point cloud data set of the target digital person and the first difference vector modulus as the normal vector direction variability of each target data point in the facial point cloud data set of the target digital person.
[0069] Furthermore, the digital human face directional gradient is obtained according to the normal vector directional variation, and the acquisition method is:
[0070] In the facial point cloud data set of the target digital human, the difference between the directional variability of the normal vector of each target data point and the variability of the normal vector of each of its neighboring data points is calculated as the first difference, and the Euclidean distance between each target data point and each of its neighboring data points is calculated as the first distance. The digital human facial directional gradient is positively correlated with the first difference and negatively correlated with the first distance.
[0071] Specifically, the present application proposes an embodiment in which the ratio of the first difference to the first distance is used as the digital human facial direction gradient between each target data point and each of its neighboring data points in the facial point cloud data set of the target digital human.
[0072] It should be noted that the positive correlation relationship can be a multiplication, addition, or idempotent relationship of an exponential function, which can be determined based on actual conditions and will not be elaborated in this application; the negative correlation relationship can be a subtraction relationship, a division relationship, etc., which can be determined based on actual conditions and will not be elaborated in this application.
[0073] The greater the difference between the target point cloud direction vector and the model point cloud direction vector or the greater the difference between the target point cloud direction vector and the target point cloud direction vector of the domain data point, the greater the degree of variation in the normal vector direction, and the more drastic the surface orientation change of the face model at each target data point, and the closer it is to the facial wrinkle area; conversely, the less it is to the facial wrinkle area.
[0074] Furthermore, the gradient change values of the normal vector direction variation in different directions are calculated based on the target data points and the domain data points. The larger the gradient value of each target data point in each direction, the more likely it is that there is a wrinkle in the vertical direction of each direction.
[0075] Furthermore, for each sub-region of the neighborhood plane of each target data point, neighborhood data points of the target data point and each sub-region of its neighborhood plane are obtained as first-direction neighborhood data points in the direction of the corresponding sub-region of the target data point; in the neighborhood plane of the first-direction neighborhood data point, neighborhood data points in the sub-region with the same direction as the sub-region are obtained as first-direction neighborhood data points, until all first-direction neighborhood data points are obtained.
[0076] The method for obtaining the neighborhood data points in the second direction, the neighborhood data points in the third direction, and the neighborhood data points in the fourth direction is the same as the method for obtaining the neighborhood data points in the first direction.
[0077] Furthermore, for the neighborhood plane of each target data point, a sub-region in the opposite direction to the sub-region is obtained as an opposite sub-region, and the neighborhood data points in the opposite sub-region are used as the first opposite direction neighborhood data points of the target data point; in the neighborhood plane of the first opposite direction neighborhood data points, neighborhood data points in the sub-region in the same direction as the opposite sub-region are obtained as the first opposite direction neighborhood data points, until all first opposite direction neighborhood data points are obtained.
[0078] The method for obtaining the second opposite direction neighborhood data point, the third opposite direction neighborhood data point, and the fourth opposite direction neighborhood data point is the same as the method for obtaining the first opposite direction neighborhood data point.
[0079] According to the above method, all directional neighborhood data points and opposite direction neighborhood data points of each target data point are obtained. For each directional neighborhood data point and each opposite direction neighborhood data point, the set consisting of each directional neighborhood data point and each opposite direction neighborhood data point of each target data point is used as the directional neighborhood point set of each target data point.
[0080] For example, the set consisting of each target data point, all first-direction neighboring data points of the target data point, and all first-opposite-direction neighboring data points of the target data point is taken as the first-direction neighboring point set of the target data point; the set consisting of each target data point, all second-direction neighboring data points of the target data point, and all second-opposite-direction neighboring data points of the target data point is taken as the second-direction neighboring point set of the target data point, and so on, to obtain all-directional neighboring point sets of the target data point.
[0081] For each directional neighborhood point set of each target data point, the digital human facial directional gradient of each data point in the directional neighborhood point set is obtained. If the digital human facial directional gradient of the target data point is the maximum value in the directional neighborhood point set, then the target data point has the maximum gradient value in the local direction, and wrinkles are very likely to exist at the target data point.
[0082] For each target data point, the number of times the digital human face directional gradient of the target data point is the maximum value in all its directional neighborhood point sets is obtained as the facial wrinkle intensity index of each target data point. The larger the facial wrinkle intensity index, the greater the possibility that wrinkles exist at the target data point.
[0083] Furthermore, this embodiment uses ARKit expression base as the expression base, the expression base is a face model with various expressions, the above-mentioned face muscle model is a face model without expression, and each model data point on the face muscle model will move on the face model as the expression changes, and the point cloud structure composed of the model data points after the movement on each expression base is used as the sparse point cloud structure of each expression base. The number of expression bases in the ARKit expression base is 52. ARKit expression base and the sparse point cloud structure of the expression base are well-known technologies in the art and will not be described in detail.
[0084] Similarly, for each model data point in the sparse point cloud structure of each expression base, the point cloud data unit normal vector estimation algorithm is used to obtain the expression model point cloud direction vector of each model data point.
[0085] For each facial muscle region in the human facial muscle model, the facial wrinkle intensity index of the target data point matched with each model data point in the facial muscle region is normalized to serve as the facial wrinkle intensity weight of each model data point.
[0086] It should be noted that when the facial wrinkle intensity weight of a model data point is larger, the model data point is more likely to be a data point in the wrinkle area.
[0087] Furthermore, the facial muscle expression strength index is obtained as follows:
[0088] For each model data point, the modulus of the difference between the model point cloud direction vector of the model data point on the facial muscle model and the expression model point cloud direction vector on each expression base is calculated as the first difference modulus, and the Euclidean distance between the position of the model data point on the facial muscle model and the position on each expression base is calculated as the second distance; the facial muscle expression intensity index is positively correlated with the first difference modulus, negatively correlated with the second distance, and positively correlated with the facial wrinkle intensity weight.
[0089] Specifically, the present application proposes an embodiment, which, for each facial muscle area on a human facial muscle model, calculates the sum of all the first difference modulus lengths in the facial muscle area as a first sum, calculates the sum of all the second distances in the facial muscle area as a second sum, calculates the facial wrinkle intensity weights of all model data points in the facial muscle area as a third sum, calculates the ratio of the first sum to the second sum as a first ratio, and takes the product of the first ratio and the third sum as the facial muscle expression intensity index of each muscle area on each expression base.
[0090] In the formula, the greater the facial wrinkle intensity weight of the model data point, the more likely it is that the model data point is near the detailed location of the facial expression of the face, and the greater the impact of the change of the model data point on the final result when judging the expression intensity of the facial muscle area. The more serious the change of the model point cloud direction vector is at a shorter moving distance of the model data point, the more subtle the facial features of the model data point when making an expression, and the greater the facial muscle expression intensity index of the facial muscle area, the more dense the sparse point cloud network is given to it when driving the face, which can achieve a better facial expression driving effect.
[0091] Furthermore, all the model data points on the facial muscle model and all the model data points on each expression base are used as the input of the point cloud data surface curvature estimation algorithm, and the output is the surface curvature of each model data point on the facial muscle model and each model data point on each expression base. The point cloud data surface area estimation algorithm is a well-known technology and will not be described in detail here. Figure 3 As shown, the curvature at different positions is different. The darker parts in the figure are parts with low surface curvature, and the lighter parts are parts with high surface curvature.
[0092] Furthermore, the weight of the sparse point cloud in the facial muscle area is obtained by:
[0093] For each model data point, a vector from the position of the model data point on the facial muscle model to the position on each expression base is obtained as the expression base vector of each model data point, the degree of the angle between the expression base vector and the model point cloud direction vector of the model data point on the facial muscle model is calculated as the first angle degree, the Euclidean distance from the position of the model data point on the facial muscle model to the position on each expression base is calculated as the third distance, and the difference relationship and positive fusion relationship between the surface curvature of the model data point on the facial muscle model and the surface curvature on each expression base are obtained as the first difference relationship and the first fusion relationship respectively; the sparse point cloud weight in the facial muscle area is positively correlated with the first angle degree, the first difference relationship and the first fusion relationship, and is negatively correlated with the third distance.
[0094] Specifically, the present application proposes an embodiment, in which the absolute value of the difference between the first angle degree and the preset degree is calculated as the first difference absolute value, and the preset degree in this embodiment is 90 degrees. The ratio of the first difference absolute value to the third distance is calculated as the second ratio, the absolute value of the difference between the surface curvature of the model data point on the facial muscle model and the surface curvature on each expression base is calculated as the second difference absolute value, the sum of the surface curvature of the model data point on the facial muscle model and the surface curvature on each expression base is calculated as the fourth sum, and the product of the second ratio, the second difference absolute value and the fourth sum is calculated as the sparse point cloud weight in the facial muscle area of each model data point.
[0095] The closer the angle between the expression basis vector of each model data point and the direction vector of the model point cloud is to 90°, the more its movement is a translational movement pulled by other data points. The difference between the angle and 90° is divided by the moving distance. The larger the value, the more the facial changes of the model data point on each expression basis are not caused by the pulling of other facial skin, but are directly caused by muscle movement. The more subtle the facial expression is, the more densely sparse data points can be used to drive the corresponding position to ensure a good facial expression effect.
[0096] The greater the sum of the surface curvatures of the model data points before and after the expression is made, or the greater the difference in curvature before and after the expression is made, the more the corresponding data points are directly driven by muscle movement, and the corresponding positions can be driven by more densely sparse data points to ensure a good facial expression effect.
[0097] Finally, the sparse point cloud weights in the facial muscle area are obtained. The larger the value, the more densely sparse data points should be used to drive the corresponding position to ensure a good facial expression effect.
[0098] Furthermore, a sparse point cloud driven migration algorithm is used to obtain a sparse point cloud selection grid of a face surface of a standard digital human face point cloud data set, wherein the sparse point cloud selection grid is a grid distributed on the face.
[0099] For each expression base, the facial muscle expression strength indexes of all facial muscle areas in the expression base are sorted from large to small, and the top 10 facial muscle areas with the facial muscle expression strength index are selected. The sparse point cloud selection grids of the selected facial muscle areas are further divided. The division method is: in the selected facial muscle areas, all the sparse point cloud selection grids are obtained, and each sparse point cloud selection grid is divided into four grids to obtain a detailed sparse point cloud selection grid.
[0100] Furthermore, for each facial muscle area, a detailed sparse point cloud selection grid is selected. Each grid has multiple model data points. The mean of the sparse point cloud weights of all data points in each grid is calculated. Then all such means are sorted from large to small, and the top 10% of grids are selected. These grids are then further divided. The division method is: each detailed sparse point cloud selection grid is divided into four grids to obtain the feature weight key cloud grid for each expression base. The feature weight key cloud grid acquisition flow chart is as follows: Figure 4 shown.
[0101] Finally, when the digital human uses the mth expression base to express an expression, the feature weighted point cloud grid of the mth expression base is used to replace the sparse point cloud grid in the sparse point cloud driven migration algorithm to drive the target point cloud data set, thereby making the target digital human express an expression. Since this embodiment divides the grid more finely in the traditional sparse point cloud grid according to the movement characteristics of the facial muscles, the facial drive of the digital human can achieve better expression effects while ensuring low latency and low computational complexity.
[0102] It should be noted that the above sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0103] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0104] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Modifications to the technical solutions recorded in the aforementioned embodiments, or equivalent replacement of some of the technical features therein, do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. Digital human face driving method based on deep learning, It is characterized in that The method comprises the following steps: Collecting target data points in the facial point cloud data set of the target digital human and model data points in the facial point cloud data set of the standard digital human, and dividing the model data points in each facial muscle area of the standard digital human based on each facial muscle area in the facial muscle model; The target data points and the model data points are collectively referred to as data points, and the neighborhood data points of each data point are obtained; based on the relationship between the target data points and the model data points, the normal vector direction variation of each target data point is obtained; based on the normal vector direction variation and the distance between each target data point and its neighborhood data points, the digital human face direction gradient between the target data point and its neighborhood data points is obtained; Based on the digital human face directional gradient, the facial wrinkle intensity index of each target data point is obtained; Based on the facial wrinkle intensity index and the changes of the model data points on the expression base, the facial muscle expression intensity index of each muscle area on each expression base is obtained; based on the changes of the model data points from the facial muscle model to the expression base, the sparse point cloud weight of each model data point in the facial muscle area is obtained; The digital human face is driven based on the facial muscle expression intensity index and the sparse point cloud weights in the facial muscle area; The method for obtaining the facial wrinkle intensity index is: Based on the directional gradient of the digital human face, all directional neighboring data points and opposite directional neighboring data points of each target data point are obtained. For each directional neighboring data point and each opposite directional neighboring data point, a set consisting of each directional neighboring data point and each opposite directional neighboring data point of each target data point is used as a set of each directional neighboring points of each target data point. For each directional neighborhood point set of each target data point, obtain the digital human face directional gradient of each data point in the directional neighborhood point set; for each target data point, obtain the number of times the digital human face directional gradient of the target data point is the maximum value in all its directional neighborhood point sets as the facial wrinkle intensity index of each target data point; The method for obtaining the facial muscle expression intensity index is: Acquire expression bases, and use the point cloud structure composed of the model data points after the movement on each expression base as the sparse point cloud structure of each expression base; the expression base is a face model with various expressions; For each model data point in the sparse point cloud structure of each expression base, a unit normal vector estimation algorithm is used to obtain the expression model point cloud direction vector of each model data point; For each facial muscle region in the human facial muscle model, normalizing the facial wrinkle intensity index of the target data point matched by each model data point in the facial muscle region to serve as the facial wrinkle intensity weight of each model data point; For each model data point, the modulus of the difference between the model point cloud direction vector of the model data point on the facial muscle model and the expression model point cloud direction vector on each expression base is calculated as the first difference modulus, and the distance between the position of the model data point on the facial muscle model and the position on each expression base is calculated as the second distance; the facial muscle expression intensity index is positively correlated with the first difference modulus, negatively correlated with the second distance, and positively correlated with the facial wrinkle intensity weight; The driving of the digital human face includes: A sparse point cloud selection grid is obtained based on a sparse point cloud driven migration algorithm to obtain the sparse point cloud selection grid of the face surface of each expression base; For each expression base, the facial muscle expression strength indexes of all facial muscle areas in the expression base are sorted from large to small, a preset number of facial muscle areas whose facial muscle expression strength indexes are ranked in the front are selected, and the sparse point cloud selection grids of the preset number of facial muscle areas are divided, and the division method is: in the selected facial muscle area, all the sparse point cloud selection grids are obtained, and each sparse point cloud selection grid is evenly divided into four grids to obtain a detailed sparse point cloud selection grid; For the detailed sparse point cloud selection grids of each facial muscle area, the mean of the sparse point cloud weights of all model data points in each detailed sparse point cloud selection grid is calculated as the first weight mean, all the first weight means are sorted from large to small, and the preset number of grids ranked at the front are selected as the second type of grids, and the second type of grids are divided in the same way as the detailed sparse point cloud selection grid, so as to obtain the feature weight point cloud grids of each expression base time; When the digital human uses various expression bases to express facial expressions, the feature weighted point cloud grids of each expression base are used to replace the sparse point cloud grids in the sparse point cloud driven migration algorithm to drive the facial point cloud dataset of the target digital human.
2. The digital human face driving method based on deep learning as claimed in claim 1, It is characterized in that The method for obtaining each neighborhood data point is: For each data point, taking the data point as the center, obtain a plane perpendicular to the unit normal vector of the data point and where the data point is located as the neighborhood plane of each data point, and on the neighborhood plane, make a preset number of rays outward from the data point as the center, and use the preset number of rays as the direction rays of each sub-region of the data point at the center, and divide the neighborhood plane into a preset number of regions as sub-regions of the neighborhood plane according to the preset number of rays; For each sub-region in the neighborhood plane centered on each data point, the data point with the smallest distance to the central data point in the vertical space of the sub-region is taken as the neighborhood data point of the central data point in the sub-region.
3. The digital human face driving method based on deep learning as claimed in claim 1, It is characterized in that The method for obtaining the normal vector direction variability of the target data point is: The facial point cloud datasets of the target digital person and the standard digital person are used as input, and the matching relationship between the data points in the facial point cloud dataset of the target digital person and the data points in the facial point cloud dataset of the standard digital person is obtained by using a registration framework, and the data points in the facial point cloud dataset of the target digital person and the data points in the facial point cloud dataset of the standard digital person that are successfully matched are taken as a pair of matching data points; Use a vector estimation algorithm to obtain a target point cloud direction vector of a target data point and a model point cloud direction vector of a model data point; For each target data point in the facial point cloud data set of the target digital person, a matching data point of the target data point in the facial point cloud data set of the standard digital person is obtained as a first matching data point of the target data point, and a modulus length of a difference between a target point cloud direction vector of the target data point and a model point cloud direction vector of the first matching data point of the target data point is calculated as a first difference vector modulus length; The modulus of the difference between the target point cloud direction vector of the target data point and the target point cloud direction vectors of each neighborhood data point of the target data point is calculated as the modulus of the second difference vector, and the normal vector direction variability is positively correlated with the modulus of the first difference vector and the modulus of the second difference vector.
4. The digital human face driving method based on deep learning as claimed in claim 1, It is characterized in that The method for obtaining the digital human face directional gradient is: In the facial point cloud data set of the target digital human, the difference between the directional variability of the normal vector of each target data point and the variability of the normal vector of each of its neighboring data points is calculated as the first difference, and the distance between each target data point and each of its neighboring data points is calculated as the first distance. The digital human facial directional gradient is positively correlated with the first difference and negatively correlated with the first distance.
5. The digital human face driving method based on deep learning as claimed in claim 1, It is characterized in that The method for obtaining the directional neighborhood data points is: For each sub-region of the neighborhood plane of each target data point, obtain the neighborhood data points of the target data point and each sub-region of its neighborhood plane as the first direction neighborhood data points in the direction of the corresponding sub-region of the target data point; In the neighborhood plane of the first-direction neighborhood data points, neighborhood data points in the sub-region having the same direction as the sub-region are obtained as the first-direction neighborhood data points, until all the first-direction neighborhood data points are obtained; The method for obtaining the neighborhood data points in the second direction, the neighborhood data points in the third direction, and the neighborhood data points in the fourth direction is the same as the method for obtaining the neighborhood data points in the first direction.
6. The digital human face driving method based on deep learning as claimed in claim 5, It is characterized in that The method for obtaining the neighborhood data points in the opposite direction is: For the neighborhood plane of each target data point, a sub-region in the opposite direction to the sub-region is obtained as an opposite sub-region, and a neighborhood data point in the opposite sub-region is used as a first opposite direction neighborhood data point of the target data point; In the neighborhood plane of the first opposite direction neighborhood data point, obtain the neighborhood data points in the sub-region with the same direction as the opposite sub-region as the first opposite direction neighborhood data points, until all the first opposite direction neighborhood data points are obtained; The method for obtaining the second opposite direction neighborhood data point, the third opposite direction neighborhood data point, and the fourth opposite direction neighborhood data point is the same as the method for obtaining the first opposite direction neighborhood data point.
7. The digital human face driving method based on deep learning as claimed in claim 1, It is characterized in that The method for obtaining the sparse point cloud weight in the facial muscle area is: All model data points on the facial muscle model and all model data points on each expression base are used as inputs of the curvature estimation algorithm, and the outputs are the surface curvatures of each model data point on the facial muscle model and each model data point on each expression base; For each model data point, a vector from the position of the model data point on the facial muscle model to the position on each expression base is obtained as the expression base vector of each model data point, the degree of the angle between the expression base vector and the model point cloud direction vector of the model data point on the facial muscle model is calculated as the first angle degree, the distance from the position of the model data point on the facial muscle model to the position on each expression base is calculated as the third distance, and the difference relationship and positive fusion relationship between the surface curvature of the model data point on the facial muscle model and the surface curvature on each expression base are obtained as the first difference relationship and the first fusion relationship respectively; the sparse point cloud weight in the facial muscle area is positively correlated with the first angle degree, the first difference relationship and the first fusion relationship, and is negatively correlated with the third distance.
Citation Information
Patent Citations
Face expression automatic identification method
CN109711378A
High-precision modeling method for three-dimensional face of digital teacher
CN116958420A
Face recognition method and apparatus, and terminal device
WO2021051539A1
