Facial expression driving method and apparatus, device, and medium

By generating and using the target left and right expression coefficients, the problem of inconsistency and asynchrony between various parts of the face is solved, the authenticity and consistency of expression driving are improved, and the user experience is improved.

WO2024193438A1PCT designated stage expired Publication Date: 2024-09-26BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/081736
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-21
Filing Date
2024-03-14
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In the existing expression driving technology, the inconsistency and asynchrony between various parts of the face lead to unrealistic driving effects, especially when the eyes are driven, the sizes of the left and right eyes are inconsistent, which affects the user experience and may cause some expressions to fail.

Method used

By obtaining the expression coefficients in the target image, extract the initial left and right expression coefficients, and generate the target left and right expression coefficients based on similarity, ensuring the consistency and synchronization of expressions between various parts of the face and avoiding expression failure.

Benefits of technology

It improves the authenticity and consistency of emoticon drivers, avoids emoticon failure, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024081736_26092024_PF_FP
    Figure CN2024081736_26092024_PF_FP
Patent Text Reader

Abstract

The embodiments of the present disclosure relate to a facial expression driving method and apparatus, a device, and a medium, wherein the method comprises: acquiring a target image, identifying the facial expression of a target object in the target image, and obtaining at least one facial expression coefficient; extracting from the at least one facial expression coefficient a facial expression coefficient to be processed, and determining within the facial expression coefficient to be processed an initial left facial expression coefficient and an initial right facial expression coefficient; based on the degree of similarity between the initial left facial expression coefficient and the initial right facial expression coefficient, generating a target left facial expression coefficient and a target right facial expression coefficient; and based on the target left facial expression coefficient and the target right facial expression coefficient, driving an avatar to make a corresponding facial expression. The embodiments of the present disclosure not only achieve post-processing relationship constraints for an identified facial expression coefficient, allowing for improved consistency and synchronization between each related part of the face when a new facial expression coefficient is subsequently used to drive a facial expression, but also avoid possible facial expression failures, thereby enhancing the authenticity of facial expression driving.
Need to check novelty before this filing date? Find Prior Art

Description

Expression driving method, device, equipment and medium

[0001] This application claims priority to the Chinese invention patent application entitled “A method, device, equipment and medium for driving expression” and application number 202310280964.5, filed on March 21, 2023. The entire contents of that application are incorporated herein by reference. Technical Field

[0002] The present disclosure relates to the field of image processing technology, and in particular to an expression driving method, apparatus, device and medium. Background Art

[0003] With the continuous development of Internet technology and artificial intelligence technology, in some scenarios, better human-computer interaction effects can be achieved by generating and driving virtual images of target objects.

[0004] Expression actuation can be understood as capturing a target subject's facial expression image through an image acquisition device, then using an algorithm to obtain expression actuation data (e.g., expression coefficients). This expression actuation data is then used to actuate a virtual avatar of the target subject (e.g., a 3D virtual facial model of the target subject), enabling the actuated virtual avatar to produce expressions consistent with those of the target subject. However, in some cases, the actuated expressions produced by this approach can exhibit inconsistencies and asynchrony between related facial features, resulting in unrealistic actuation effects.

[0005] Summary of the Invention

[0006] In order to solve the above technical problems, the present disclosure provides an expression driving method, device, equipment and medium.

[0007] The present disclosure provides an expression driving method, the method comprising:

[0008] Acquire a target image, and recognize an expression of a target object in the target image to obtain at least one expression coefficient;

[0009] Extracting an expression coefficient to be processed from the at least one expression coefficient, and determining an initial left expression coefficient and an initial right expression coefficient from the expression coefficient to be processed;

[0010] generating a target left expression coefficient and a target right expression coefficient based on a similarity between the initial left expression coefficient and the initial right expression coefficient;

[0011] Based on the target left expression coefficient and the target right expression coefficient, the virtual image is driven to make a corresponding expression.

[0012] The present disclosure also provides an expression driving device, the device comprising:

[0013] a recognition module, configured to acquire a target image and recognize an expression of a target object in the target image to obtain at least one expression coefficient;

[0014] a determination module, configured to extract an expression coefficient to be processed from the at least one expression coefficient, and determine an initial left expression coefficient and an initial right expression coefficient from the expression coefficient to be processed;

[0015] a processing module, configured to generate a target left expression coefficient and a target right expression coefficient based on a similarity between the initial left expression coefficient and the initial right expression coefficient;

[0016] The driving module is used to drive the virtual image to make corresponding expressions based on the target left expression coefficient and the target right expression coefficient.

[0017] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing instructions executable by the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the expression driving method provided by the embodiment of the present disclosure.

[0018] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the expression driving method provided by the embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0020] FIG1 is a flow chart of an expression driving method provided by an embodiment of the present disclosure;

[0021] FIG2 is a flow chart of another expression driving method provided by an embodiment of the present disclosure;

[0022] FIG3 is a schematic diagram of an expression drive provided by an embodiment of the present disclosure;

[0023] FIG4 is a comparative schematic diagram provided by an embodiment of the present disclosure;

[0024] FIG5 is a schematic structural diagram of an expression driving device provided by an embodiment of the present disclosure;

[0025] FIG6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0027] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0028] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0029] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0030] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0032] The study found that due to the lack of constraints on the relationship between the expression coefficients of various parts, in some cases, when the virtual image is driven by expression, inconsistencies and asynchrony between the related parts of the face will appear, which will lead to unrealistic driving effects. For example, when a real person opens his eyes normally or blinks, the size of the left and right eyes is basically the same. If the sizes of the driven left and right eyes are inconsistent, the effect will greatly affect the user experience. In related technologies, in order to solve the above problems, consistency constraints can be directly imposed according to the relationship between the various parts. For example, for eye drive, the corresponding expression drive coefficients of the left and right eyes are averaged, and then the averaged coefficients are reassigned to the original left and right eye coefficients. This ensures that the sizes of the left and right eyes are completely consistent. However, the above method is relatively simple and may make some expressions invalid, such as the expression of one eye closed, resulting in unrealistic driving effects.

[0033] To address the aforementioned issues, embodiments of the present disclosure provide an expression driving method. Compared to existing technologies, the technical solution provided by the embodiments of the present disclosure has the following advantages: The expression driving solution provided by the embodiments of the present disclosure obtains a target image and identifies the expression of a target object in the target image to obtain at least one expression coefficient; extracts the expression coefficient to be processed from the at least one expression coefficient and determines an initial left expression coefficient and an initial right expression coefficient from the expression coefficient to be processed; generates a target left expression coefficient and a target right expression coefficient based on the similarity between the initial left expression coefficient and the initial right expression coefficient; and drives a virtual character to produce a corresponding expression based on the target left expression coefficient and the target right expression coefficient. Using the above technical solution, by dividing the expression coefficient to be processed into two parts, including left and right parts, and then generating new expression coefficients for the left and right parts based on the similarity between the two parts, and driving the expression of the virtual character based on the new expression coefficients, not only achieves post-processing relationship constraints on the identified expression coefficients, so that when the new expression coefficients are subsequently used to drive expressions, the consistency and synchronization of expressions between related facial parts can be improved, but also avoids possible expression failures, thereby improving the authenticity of expression driving.

[0034] The method is described below with reference to specific embodiments.

[0035] FIG1 is a flow chart of an expression driving method provided by an embodiment of the present disclosure. The method can be executed by an expression driving device, wherein the device can be implemented using software and / or hardware and can generally be integrated into an electronic device. As shown in FIG1 , the method includes:

[0036] Step 101: Acquire a target image, and recognize the expression of a target object in the target image to obtain at least one expression coefficient.

[0037] The target image of the embodiment of the present disclosure may be a two-dimensional image including the facial area of ​​the target object, and may be obtained by photographing the facial area of ​​the target object by an image acquisition device.

[0038] The expression coefficient can be a coefficient obtained by extracting expression features from an image using a computer. The expression coefficient can be understood as descriptive information of an expression that can be understood by a computer. An intelligent human-computer interaction environment can be established through the expression coefficient.

[0039] In an embodiment of the present disclosure, recognizing the expression of a target object in a target image and obtaining at least one expression coefficient may include: inputting the target image into a pre-trained expression recognition network to obtain at least one expression coefficient.

[0040] Among them, the expression recognition network can be a pre-created and trained neural network for extracting expression features. The expression recognition network specifically used in the embodiment of the present disclosure is not limited, for example, a convolutional neural network can be used.

[0041] Specifically, the expression driving device can obtain a target image. The method of obtaining the target image is not limited. For example, it can be collected in real time or uploaded, and the target image can be a single image or a sequence of images extracted from a video, with no specific limit. The target image containing the target object can then be input into the expression recognition network, and the expression coefficient corresponding to the target image is output. The expression coefficient can include expression coefficients corresponding to multiple parts, with no specific limit on the number, for example, it can include the expression coefficient of the nose and the expression coefficient of the mouth, etc.

[0042] Step 102: extracting an expression coefficient to be processed from at least one expression coefficient, and determining an initial left expression coefficient and an initial right expression coefficient from the expression coefficient to be processed.

[0043] The pending expression coefficients can be understood as expression coefficients that require certain relationship constraints. This means that in some cases, there may be inconsistencies and asynchrony when using these pending expression coefficients to drive expressions. The initial left expression coefficient and the initial right expression coefficient can be the initial coefficients obtained by grouping the pending expression coefficients by left and right based on their semantic information. The initial left expression coefficient corresponds to the initial expression coefficient of the left half, and the initial right expression coefficient corresponds to the initial expression coefficient of the right half.

[0044] In an embodiment of the present disclosure, extracting the expression coefficient to be processed from at least one expression coefficient may include: extracting the expression coefficient for a preset part from at least one expression coefficient to obtain the expression coefficient to be processed, wherein the preset part has two symmetrical sub-parts on the left and right.

[0045] The preset part can be understood as a facial part that, after being divided, includes two left and right sub-parts. These two sub-parts can be bilaterally symmetrical, and each sub-part can move independently while being relatively less affected by the other sub-part. For example, the preset part may include the eyes, eyebrows, mouth, nose, etc. After obtaining at least one expression coefficient, the expression coefficient for the preset part can be extracted from the at least one expression coefficient, namely the expression coefficient to be processed. Subsequently, the initial left expression coefficient and the initial right expression coefficient in the expression coefficient to be processed can be determined based on the semantic information of the expression coefficient to be processed.

[0046] Step 103: Generate a target left expression coefficient and a target right expression coefficient based on the similarity between the initial left expression coefficient and the initial right expression coefficient.

[0047] The target left expression coefficient may be a new expression coefficient obtained by dynamically adjusting the initial left expression coefficient, and the target right expression coefficient may be a new expression coefficient obtained by dynamically adjusting the initial right expression coefficient.

[0048] Specifically, after the expression driving device divides the expression coefficient to be processed into the initial left expression coefficient and the initial right expression coefficient, it can first determine the similarity between the initial left expression coefficient and the initial right expression coefficient, and perform corresponding processing on the initial left expression coefficient and the initial right expression coefficient based on the similarity to obtain the target left expression coefficient and the target right expression coefficient.

[0049] In some embodiments, the initial left expression coefficient includes multiple left dimensional data, the initial right expression coefficient includes multiple right dimensional data, the number of the multiple left dimensional data is the same as the number of the multiple right dimensional data, and each left dimensional data corresponds to one right dimensional data; the similarity between the initial left expression coefficient and the initial right expression coefficient is determined in units of dimensional data pairs, the number of dimensional data pairs is multiple, and each dimensional data pair includes a corresponding left dimensional data and a right dimensional data.

[0050] The initial left expression coefficient and the initial right expression coefficient can both include data of multiple dimensions, with the same number of dimensions, and there is a one-to-one correspondence between the multiple left-dimensional data and the multiple right-dimensional data, that is, each left-dimensional data has a corresponding right-dimensional data. For example, assuming that the corresponding part of the expression coefficient to be processed is the eye, the initial left expression coefficient corresponds to the left eye, and the initial right expression coefficient corresponds to the right eye. The multiple left-dimensional coefficients included in the initial left expression coefficient can be a left blinking coefficient, a left eye looking up coefficient, a left squinting coefficient, etc. The multiple right-dimensional coefficients included in the initial right expression coefficient can be a right blinking coefficient, a right eye looking up coefficient, a right squinting coefficient, etc. The left blinking coefficient corresponds to the right blinking coefficient, the left eye looking up coefficient corresponds to the right eye looking up coefficient, and the left squinting coefficient corresponds to the right squinting coefficient.

[0051] When determining the similarity between the initial left expression coefficient and the initial right expression coefficient, the expression driving device can first extract each left dimension data in the initial left expression coefficient and its corresponding right dimension data in the initial right expression coefficient as a dimension data pair to obtain multiple dimension data pairs; then, the single similarity of each dimension data pair can be determined in sequence as a unit of the dimension data pair to obtain multiple single similarities, which are the similarities between the initial left expression coefficient and the initial right expression coefficient. Then, when adjusting the initial left expression coefficient and the initial right expression coefficient based on the similarity, the adjustment can also be made as a unit of the dimension data pair, that is, based on each single similarity, the left dimension data and the right dimension data included in the corresponding dimension data pair are adjusted to obtain the adjusted left dimension data and right dimension data, and then the adjusted target left expression coefficient is obtained based on the multiple adjusted left dimension data, and the adjusted target right expression coefficient is obtained based on the multiple adjusted right dimension data.

[0052] When the similarity value is larger, the target left expression coefficient and the target right expression coefficient are closer to the average of the initial left expression coefficient and the initial right expression coefficient; conversely, when the similarity value is smaller, the target left expression coefficient is closer to the initial left expression coefficient and the target right expression coefficient is closer to the initial right expression coefficient. That is, when the difference between the initial left expression coefficient and the initial right expression coefficient is large, the output similarity is close to 0. At this time, the target left expression coefficient and the target right expression coefficient will basically not adjust the initial left expression coefficient and the initial right expression coefficient, that is, the initial expression coefficient will basically not be changed, avoiding the failure of specific expressions, such as expressions made only by the left sub-part or the right sub-part of the preset part corresponding to the expression coefficient to be processed. In some specific examples, the above-mentioned specific expressions include the expression of one eye closed, the expression of a crooked smile, etc.

[0053] For example, FIG2 is a flow chart of another expression driving method provided by an embodiment of the present disclosure. As shown in FIG2 , in a feasible implementation, the above step 103 may include the following steps:

[0054] Step 201: Use a similarity function to determine the similarity between the initial left expression coefficient and the initial right expression coefficient.

[0055] Among them, the similarity function can be understood as a function that determines the similarity between two data. In the embodiment of the present disclosure, it is used to determine the similarity between the initial left expression coefficient and the initial right expression coefficient. The specific function used is not limited. In the embodiment of the present disclosure, the similarity function can be a linear function or a nonlinear function with a decreasing change. For example, the linear function can be a linear function, and the nonlinear function can be an exponential function, a logarithmic function, or the like.

[0056] In some embodiments, using a similarity function to determine the similarity between the initial left expression coefficient and the initial right expression coefficient can include: determining the difference between the initial left expression coefficient and the initial right expression coefficient; modulating the difference using a modulation parameter, and calculating the modulated difference as a variable of the similarity function to obtain the similarity between the initial left expression coefficient and the initial right expression coefficient.

[0057] Among them, the modulation parameter can be a parameter for setting the smoothing strength of the similarity function. The larger the modulation parameter, the smaller the smoothing strength. In the embodiment of the present disclosure, the modulation parameter can correspond to the specific expression coefficient to be processed, that is, when the expression coefficient to be processed is different, the corresponding modulation parameter can also be different. Specifically, it can be related to the preset part corresponding to the expression coefficient to be processed, so as to achieve different degrees of dynamic adjustment of the initial expression coefficient of different parts in the subsequent process. For example, when the left and right sub-parts of a preset part usually have a high consistency in movement, the modulation parameter corresponding to the expression coefficient to be processed of the part can be set to a smaller value. For example, if the part is an eye or an eyebrow, the modulation parameter can be set to 4; and when the left and right sub-parts of a part usually have a low consistency in movement, that is, the movement difference is large, the modulation parameter corresponding to the expression coefficient to be processed of the part can be set to a larger value. For example, if the part is a mouth, the modulation parameter can be set to 8.

[0058] Optionally, the modulation parameters can be pre-set based on experience, or can be user-adjustable, for example, determined by the user through interaction. For example, in scenarios such as virtual anchors and virtual conferences, the modulation parameters can be determined in response to user operations, and the specific values ​​of the modulation parameters can be determined based on user needs.

[0059] Specifically, when the expression driving device uses a similarity function to determine the similarity between the initial left expression coefficient and the initial right expression coefficient, it can first calculate the difference between the initial left expression coefficient and the initial right expression coefficient, and use the difference as a variable of the similarity function. Further, the difference can be modulated using a modulation parameter to obtain a modulated difference. The modulation method here can be, for example, calculating the product of the difference and the modulation parameter, and determining the product as the modulated difference. This is only an example. The modulated difference can then be input into the similarity function as a variable to calculate the similarity between the initial left expression coefficient and the initial right expression coefficient. Since the specific data of the initial left expression coefficient and the initial right expression coefficient can be multidimensional, the corresponding similarity can be calculated for each dimension separately.

[0060] For example, taking the initial left expression coefficient and the initial right expression coefficient of the i-th dimension as an example, the initial left expression coefficient of the i-th dimension is represented as Left i , the initial right expression coefficient of the i-th dimension is expressed as Righti , taking the similarity function as an exponential function with a decreasing constant e as the base, the similarity between the initial left expression coefficient and the initial right expression coefficient of the i-th dimension is expressed as S(Left i , Right i )-exp(-k|Left i -Right i |), where S represents the similarity and k represents the modulation parameter corresponding to the current expression coefficient to be processed. For another example, the similarity function can also be a linear function with decreasing variation, and the similarity between the initial left expression coefficient and the initial right expression coefficient of the i-th dimension is expressed as S(Left i , Right i )-(-k|Left i -Right i )+1, k can be 1; for example, the similarity function can also be a decreasing exponential function, and the similarity between the initial left expression coefficient and the initial right expression coefficient of the i-th dimension is expressed as The value of k may be 1. It is understood that the above similarity function is only an example and not a limitation.

[0061] Step 202: Adjust the initial left expression coefficient and the initial right expression coefficient based on the similarity to obtain the target left expression coefficient and the target right expression coefficient.

[0062] Specifically, after determining the similarity between the initial left expression coefficient and the initial right expression coefficient, the expression driving device can adjust and calculate the initial left expression coefficient and the initial right expression coefficient respectively according to the similarity to obtain the corresponding target left expression coefficient and target right expression coefficient.

[0063] In some embodiments, adjusting the initial left expression coefficient and the initial right expression coefficient based on the similarity to obtain the target left expression coefficient and the target right expression coefficient may include: determining a difference based on the similarity; and weighting the initial left expression coefficient and the initial right expression coefficient based on the similarity and the difference to obtain the target left expression coefficient and the target right expression coefficient, wherein the difference is the difference between 1 and the similarity.

[0064] Specifically, the expression driving device can first determine the first product and second product of the similarity with the initial left expression coefficient and the initial right expression coefficient, and determine the third product and fourth product of the difference with the initial left expression coefficient and the initial right expression coefficient; determine the sum of the second product and the third product as the target left expression coefficient, and determine the sum of the first product and the fourth product as the target right expression coefficient.

[0065] For example, taking the target left expression coefficient and target right expression coefficient of the i-th dimension as an example, the target left expression coefficient can be expressed as: LeftP i -S(left i , Right i )×Right i +(1-S(Left i , Right i ))×Left i

[0066] The target right expression coefficient can be expressed as: RightP i -S(Left i , Right i )×Left i +(1-S(Left i , Right i ))×Right i

[0067] Where LeftP i Represents the target left expression coefficient of the i-th dimension, RightP i Represents the target right expression coefficient of the i-th dimension, S(Left i , Right i ) represents the similarity between the initial left expression coefficient and the initial right expression coefficient of the i-th dimension, 1-S(Left i , Right i ) represents the difference, S(Left i , Right i )×Left i Represents the first product, S(Left i , Right i )×Right i Represents the second product, (1-S(Left i , Right i ))×Left i Represents the third product, (1-S(Left i , Right i ))×Left i Represents the fourth product.

[0068] Step 104: Based on the target left expression coefficient and the target right expression coefficient, drive the virtual image to make a corresponding expression.

[0069] The expression driving device can drive the parts of the virtual image corresponding to the coefficients to be processed to make corresponding expressions through the target left expression coefficient and the target right expression coefficient. At this time, it can not only avoid possible expression failure, that is, ensure the driving effect of specific expressions, but also achieve expressions with higher consistency and synchronization.

[0070] The expression driving scheme provided by the embodiment of the present disclosure obtains a target image and recognizes the expression of a target object in the target image to obtain at least one expression coefficient; extracts the expression coefficient to be processed from the at least one expression coefficient and determines the initial left expression coefficient and the initial right expression coefficient from the expression coefficient to be processed; generates a target left expression coefficient and a target right expression coefficient based on the similarity between the initial left expression coefficient and the initial right expression coefficient; and drives the virtual image to make a corresponding expression based on the target left expression coefficient and the target right expression coefficient. By adopting the above technical scheme, the expression coefficient to be processed in the expression coefficient is divided into two parts, namely, left and right parts, and then new expression coefficients for the left and right parts are generated based on the similarity between the left and right parts, and the expression driving of the virtual image is performed based on the new expression coefficient. This not only realizes the post-processing relationship constraint of the recognized expression coefficient, so that when the expression is subsequently driven by the new expression coefficient, the consistency and synchronization of the expressions between the related parts of the face can be improved, but also avoids possible expression failure and improves the authenticity of the expression driving.

[0071] Next, the expression drive method of the embodiment of the present disclosure will be further explained through a specific example. For example, FIG3 is a schematic diagram of an expression drive provided by the embodiment of the present disclosure. As shown in FIG3 , the figure takes the target object as an example of a user to illustrate the specific process of expression recognition, which may include: the target image is processed by the expression recognition network to obtain the expression coefficient. The expression coefficients to be processed are extracted from the expression coefficients, and the expression coefficients to be processed are grouped so that the expression coefficients to be processed include the initial left expression coefficient and the initial right expression coefficient, that is, Left and Right in the figure, and each dimension in the data dimension of Left corresponds to each dimension in the data dimension of Right. For Left and Right, a similarity function is used to obtain the similarity, that is, S1, S2, ..., SN. The similarity S1, S2, ..., SN is used to dynamically adjust Left and Right to obtain new expression coefficients LeftP and RightP, that is, the above-mentioned target left expression coefficient and target right expression coefficient.

[0072] This solution groups the expression coefficients that need to be processed in the expression coefficients to include Left and Right. Left corresponds to the expression coefficient of the left half of the face, and Right corresponds to the expression coefficient of the right half of the face. Left and Right correspond one to one. For example, if the first expression coefficient of Left drives a left-twisted mouth, then the first expression coefficient of Right drives a right-twisted mouth. Then, the similarity between each Left and the corresponding Right is calculated, and the similarity is used to dynamically adjust Left and Right to obtain new LeftP and RightP. When the similarity is greater, the new LeftP and RightP are closer to the average value of the initial Left and Right. When the similarity is smaller, the new LeftP and RightP are closer to the original values ​​of the initial Left and Right. In other words, the initial expression coefficient will basically not be changed at this time, avoiding the failure of specific expressions.

[0073] For example, FIG4 is a comparative schematic diagram provided by an embodiment of the present disclosure. As shown in FIG4 , the figure shows the trend of the expression driving method of the embodiment of the present disclosure and the fusion parameter in the related technology as the gap between the initial left expression coefficient and the initial right expression coefficient changes. The fusion parameter in the embodiment of the present disclosure is the similarity between the above-mentioned initial left expression coefficient and the initial right expression coefficient. The embodiment of the present disclosure corresponds to the change curve 401 in the figure. The fusion parameter changes dynamically as the gap between the initial left expression coefficient and the initial right expression coefficient changes. The larger the gap, the smaller the fusion parameter, and finally it is close to 0. The smaller the gap, the larger the fusion parameter, and finally it is close to 1. The corresponding straight line 402 when the direct average function is used in the related technology to increase the constraint is shown in the figure. At this time, the fusion parameter is the specific parameter during the average function processing. The fusion parameter is fixed at 0.5 and will not change, making specific expressions such as single eye closing invalid. Here, the specific expression can be an expression with a large gap between the initial left expression coefficient and the initial right expression coefficient.

[0074] This solution provides an expression-driven method that can perform post-processing relational constraints on the expression coefficients of image recognition, avoiding the cost of redesigning the training algorithm. With almost no additional time and space overhead, it effectively improves the consistency and synchronization of driven expressions; and through the similarity function, it avoids possible expression failures and improves the authenticity of expression driving.

[0075] FIG5 is a schematic diagram of the structure of an expression-driven device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated into an electronic device. As shown in FIG5 , the device includes:

[0076] The recognition module 501 is configured to acquire a target image and recognize an expression of a target object in the target image to obtain at least one expression coefficient;

[0077] A determination module 502 is configured to extract an expression coefficient to be processed from the at least one expression coefficient, and determine an initial left expression coefficient and an initial right expression coefficient from the expression coefficient to be processed;

[0078] A processing module 503 is configured to generate a target left expression coefficient and a target right expression coefficient based on the similarity between the initial left expression coefficient and the initial right expression coefficient;

[0079] The driving module 504 is configured to drive the virtual character to make a corresponding expression based on the target left expression coefficient and the target right expression coefficient.

[0080] Optionally, the identification module 501 is used to:

[0081] The target image is input into a pre-trained expression recognition network to obtain the at least one expression coefficient.

[0082] Optionally, the determining module 502 is configured to:

[0083] The expression coefficient for a preset part in the at least one expression coefficient is extracted to obtain the expression coefficient to be processed, wherein the preset part has two symmetrical sub-parts on the left and right.

[0084] Optionally, the processing module 503 includes:

[0085] a similarity unit, configured to determine the similarity between the initial left expression coefficient and the initial right expression coefficient using a similarity function;

[0086] An adjustment unit is used to adjust the initial left expression coefficient and the initial right expression coefficient based on the similarity to obtain a target left expression coefficient and a target right expression coefficient.

[0087] Optionally, the initial left expression coefficient includes a plurality of left dimensional data, and the initial right expression coefficient includes a plurality of right dimensional data, the number of the plurality of left dimensional data is the same as the number of the plurality of right dimensional data, and each left dimensional data corresponds to one right dimensional data;

[0088] The similarity between the initial left expression coefficient and the initial right expression coefficient is determined in units of dimension data pairs. There are multiple dimension data pairs, and each dimension data pair includes a corresponding left dimension data and a corresponding right dimension data.

[0089] Optionally, similar units are used for:

[0090] determining a difference between the initial left expression coefficient and the initial right expression coefficient;

[0091] The difference is modulated using a modulation parameter, and the modulated difference is used as a variable of a similarity function to calculate the similarity between the initial left expression coefficient and the initial right expression coefficient.

[0092] Optionally, the modulation parameter corresponds to the expression coefficient to be processed, and the similarity function is a linear function or a nonlinear function with decreasing variation.

[0093] Optionally, the adjustment unit is used to:

[0094] determining a degree of difference based on the degree of similarity;

[0095] The initial left expression coefficient and the initial right expression coefficient are weighted based on the similarity and the difference to obtain the target left expression coefficient and the target right expression coefficient.

[0096] The expression driving device provided in the embodiments of the present disclosure can execute the expression driving method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0097] The embodiments of the present disclosure further provide a computer program product, including a computer program / instruction, which implements the expression driving method provided by any embodiment of the present disclosure when executed by a processor.

[0098] FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. Specific reference will be made below to FIG6 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing an embodiment of the present disclosure. The electronic device 600 in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and the like, as well as fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG6 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0099] As shown in Figure 6, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0100] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 6 illustrates the electronic device 600 with various devices, it should be understood that not all of the illustrated devices are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0101] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the expression-driven method of the embodiment of the present disclosure are performed.

[0102] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0103] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0104] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0105] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device is enabled to: obtain a target image, and identify the expression of the target object in the target image to obtain at least one expression coefficient; extract the expression coefficient to be processed from the at least one expression coefficient, and determine the initial left expression coefficient and the initial right expression coefficient from the expression coefficient to be processed; generate a target left expression coefficient and a target right expression coefficient based on the similarity between the initial left expression coefficient and the initial right expression coefficient; and drive the virtual image to make a corresponding expression based on the target left expression coefficient and the target right expression coefficient.

[0106] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0107] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0108] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.

[0109] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0110] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0111] It is understandable that before using the technical solutions disclosed in the embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0112] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.

[0113] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0114] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0115] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. An expression driving method, comprising: Acquire a target image, and recognize an expression of a target object in the target image to obtain at least one expression coefficient; Extracting an expression coefficient to be processed from the at least one expression coefficient, and determining an initial left expression coefficient and an initial right expression coefficient from the expression coefficient to be processed; generating a target left expression coefficient and a target right expression coefficient based on the similarity between the initial left expression coefficient and the initial right expression coefficient; Based on the target left expression coefficient and the target right expression coefficient, the virtual image is driven to make a corresponding expression.

2. The method according to claim 1, identifying the expression of the target object in the target image to obtain at least one expression coefficient, comprising: The target image is input into a pre-trained expression recognition network to obtain the at least one expression coefficient.

3. The method according to claim 1, extracting the expression coefficient to be processed from the at least one expression coefficient, comprising: The expression coefficient for a preset part in the at least one expression coefficient is extracted to obtain the expression coefficient to be processed, wherein the preset part has two symmetrical sub-parts on the left and the right.

4. The method according to claim 1, generating a target left expression coefficient and a target right expression coefficient based on the similarity between the initial left expression coefficient and the initial right expression coefficient, comprising: Determining the similarity between the initial left expression coefficient and the initial right expression coefficient using a similarity function; The initial left expression coefficient and the initial right expression coefficient are adjusted based on the similarity to obtain a target left expression coefficient and a target right expression coefficient.

5. The method according to claim 1 or 4, wherein the initial left expression coefficient comprises a plurality of left dimensional data, and the initial right expression coefficient comprises a plurality of right dimensional data, the number of the plurality of left dimensional data is the same as the number of the plurality of right dimensional data, and each of the left dimensional data corresponds to one of the right dimensional data; The similarity between the initial left expression coefficient and the initial right expression coefficient is determined in units of dimension data pairs, the number of the dimension data pairs is multiple, and each of the dimension data pairs includes a corresponding left dimension data and a corresponding right dimension data.

6. The method according to claim 4, wherein the similarity between the initial left expression coefficient and the initial right expression coefficient is determined by using a similarity function, comprising: Determining a difference between the initial left expression coefficient and the initial right expression coefficient; The difference is modulated by using a modulation parameter, and the modulated difference is used as a variable of a similarity function to calculate the similarity between the initial left expression coefficient and the initial right expression coefficient.

7. The method according to claim 6, wherein the modulation parameter corresponds to the expression coefficient to be processed, and the similarity function is a linear function or a nonlinear function with decreasing variation.

8. The method according to claim 4, adjusting the initial left expression coefficient and the initial right expression coefficient based on the similarity to obtain a target left expression coefficient and a target right expression coefficient, comprising: Based on the similarity, determining a difference; The initial left expression coefficient and the initial right expression coefficient are weighted based on the similarity and the difference, respectively, to obtain the target left expression coefficient and the target right expression coefficient.

9. An expression driving device, comprising: A recognition module, used to acquire a target image, and recognize the expression of a target object in the target image to obtain at least one expression coefficient; A determination module, used for extracting the expression coefficient to be processed from the at least one expression coefficient, and determining an initial left expression coefficient and an initial right expression coefficient from the expression coefficient to be processed; A processing module, configured to generate a target left expression coefficient and a target right expression coefficient based on a similarity between the initial left expression coefficient and the initial right expression coefficient; A driving module is used for determining the target left expression coefficient and the target right expression coefficient based on the target left expression coefficient. Drive the virtual image to make corresponding expressions.

10. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the expression driving method described in any one of claims 1-8.

11. A computer-readable storage medium storing a computer program for executing the expression driving method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Generation method and device for facial expression of virtual character, storage medium and electronic equipment

    CN111583372A

  • Network training and video frame processing method and device, equipment and storage medium

    CN114120389A

  • Method and device for driving expression of virtual character

    CN114821734A

  • Virtual expression generation method and device, electronic equipment and storage medium

    CN115272570A

  • Facial expression generation method and device

    CN115512193A