Digital human face pinching method and device
By pinching and editing multiple face models with expressions, and using neutral expression counter-solving and fusion technology to generate neutral face models, the problem that the dynamic image of digital people's face editing does not meet user needs is solved, and a more satisfactory dynamic digital people's image is achieved.
Patent Information
- Application Number
- CN202311437930.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2025-05-02
AI Technical Summary
The existing technology is difficult to ensure that the dynamic digital image of digital people after editing is in line with user needs, especially in dynamic performance after driving.
By obtaining multiple face models with expressions, pinching faces to get a new face model, and then using neutral expression counter-solving and fusion technology, a neutral face model without expressions is generated as the basis of the digital human model.
It realizes face-pinching editing starting from static neutral mesh to face-pinching editing on expressions, thereby obtaining a dynamic digital person image that is more in line with user needs.
Smart Images

Figure CN119919545A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to digital human technology, and more particularly to a method and device for pinching the face of a digital human. Background Art
[0002] With the rapid development of AI-generated content and the metaverse, digital human technology will occupy a more important position in games, animation, film and television and other fields. Among them, face-pinching editing of digital humans is an important part of digital human technology. Face-pinching refers to editing the appearance and shape of a digital human's face. Face-pinching can help users obtain a personalized digital human image.
[0003] In the future, digital humans will not only be static models, but will also likely have the ability to be driven. Therefore, in addition to ensuring that the static digital human image after face pinching meets user needs, how to ensure that the dynamic digital human image after driving also meets user needs will be the key problem to be solved in face pinching editing. Summary of the invention
[0004] The present application provides a method and device for pinching the face of a digital human, so as to obtain a dynamic digital human image that satisfies the user more.
[0005] In a first aspect, the present application provides a method for pinching the face of a digital human, comprising: obtaining multiple first face models, the first face models having expressions, the multiple first face models coming from multiple animation frames, the multiple animation frames being selected by a user from a first animation sequence; pinching the multiple first face models respectively to obtain multiple second face models; obtaining a third face model based on the multiple second face models, the third face model having no expressions; and obtaining a digital human model based on the third face model.
[0006] The embodiment of the present application realizes face pinching editing of a face Mesh with expressions, which allows face pinching editing to be performed on an expression-based basis based on the final driving effect instead of being performed on a static neutral Mesh, thereby obtaining a dynamic digital human image that satisfies the user more.
[0007] The face model can be a 3D model representation of the face of a digital human, which is composed of multiple triangles. The face model can also be called a face mesh. Usually, a face mesh can include multiple forms of expression, such as a neutral mesh without expression, an expression base with expression, a shape base representing different appearances, etc. In the embodiment of the present application, the first face model can be a face mesh with expression, that is, the first face model can be an expression base.
[0008] Referring to the above description, after performing facial binding and facial driving on the neutral Mesh, a driving animation (also called an animation sequence) can be obtained, and it can be seen that the animation sequence includes multiple animation frames. When the above animation sequence is played to the user, the user can express satisfaction or dissatisfaction based on the playback effect. When the user is dissatisfied, the dissatisfied animation frame can be selected from the animation sequence (that is, the first animation sequence), and the face pinching editing can be performed again to better meet the user's needs.
[0009] Optionally, the electronic device can display an interactive interface, which includes a control for selecting an animation frame. For example, a progress bar is displayed on the interface for playing the first animation sequence, and the user can drag the slider on the progress bar to select an unsatisfactory segment, and then the electronic device displays the animation frames included in the segment selected by the user (in the form of thumbnails, lists, menus, etc., which are not specifically limited) on the interactive interface, and the user clicks on the control to select the animation frame; for another example, the electronic device plays the animation sequence slowly, and the user clicks on the screen to select the animation frame during the playback process. It should be understood that many other methods can be used to select animation frames, and the embodiments of the present application do not specifically limit this. The user's operation on the aforementioned controls can trigger an instruction, and the electronic device can determine the selected animation frame after obtaining the instruction, for example, by searching and obtaining the corresponding animation frame through the identification information included in the instruction (for example, the serial number and index of the animation frame in the animation sequence, etc.).
[0010] In the embodiment of the present application, based on any animation frame selected by the user, the corresponding face Mesh is obtained. Since the face has been bound, the face Mesh obtained at this time has an expression, that is, the first face expression. The user selects several animation frames, and the electronic device can obtain several first face models.
[0011] Generally, face pinching can be divided into geometric editing and texture editing, among which geometric editing can include shape base mixing, bone control, manual carving, etc., among which shape base mixing is to preset a set of face shape bases (a set of neutral face models representing different appearances and face shapes), and obtain a new face model through linear interpolation mixing of these bases; bone control is to adjust the rotation and translation (Rotation & translation, RT) parameters (rotation and translation parameters) of the bones bound to the surface of the face model, and convert the bone RT parameters into face Mesh shape variables through Linear Blend Skining (LBS) to modify the shape of the face model; manual carving is to directly modify the spatial coordinates of the vertices of the face model (Mesh) to change the appearance of the model.
[0012] The user can perform face-pinching editing on each first face model according to his / her personal wishes. The face-pinching editing is performed on the face mesh with expressions. Based on the face-pinching operation of the user, the electronic device applies the corresponding expression, skeleton, appearance, etc. to the first face model to obtain the second face model. It can be seen that the second face model is also with expressions. In this way, the user can see the effect of face-pinching (i.e., the second face model) with expressions, and can more intuitively find out whether he / she is satisfied with the face-pinching effect.
[0013] The electronic device can perform neutral expression inversion on each second face model to obtain a fourth face model, which has no expression. The aforementioned neutral expression inversion can use a neutral mesh inversion (NMI) algorithm to invert the neutral Mesh (i.e., the fourth face model) from the second face model (i.e., the face Mesh with expression) after face pinching editing. The NMI algorithm calculates the neutral face Mesh based on the face Mesh with expression, first calculates the deformation information (Mesh vertex offset, Mesh patch deformation gradient) of the neutral Mesh before face pinching editing relative to the face Mesh with expression, and applies the deformation information to the face Mesh with expression after face pinching to obtain a new neutral Mesh. Exemplarily, taking the deformation transfer (DT) algorithm as an example, the deformation gradient (expressed by an affine matrix) of the neutral Mesh before face pinching relative to each triangular facet of the Mesh with expression is calculated, and the calculated deformation gradient is applied to the triangular facets of the Mesh with expression after face pinching (the affine matrix is multiplied by the triangular facet data (a matrix composed of two edge vectors and a normal vector of the triangular facet)) to obtain the neutral Mesh. Optionally, the neutral expression inverse solution can also be obtained by decoupling the identity (ID) and expression through a neural network. It should be noted that the method for inverse solution of neutral expression is not specifically limited in the embodiment of the present application.
[0014] Multiple fourth face models can be deconstructed from multiple face models, so the electronic device can fuse the multiple fourth face models to obtain the final output face model (i.e., the third face model, neutral Mesh). The fusion method may include:
[0015] (1) A plurality of fourth face models may be superimposed based on weights to obtain a third face model.
[0016] The electronic device may first obtain the weights of the plurality of fourth face models, and then perform weighted summation of the data of the plurality of fourth face models at the same position (e.g., (Xi, Yi, Zi)) based on the weights, thereby obtaining the third face model. The aforementioned weights may be obtained based on the degree of change of each fourth face model relative to the first face model, or other factors may be considered, and no specific limitation is made to this.
[0017] (2) The third face model can be obtained by fusing the face pinching deformation regions of the plurality of fourth face models.
[0018] The face-pinching deformation area may be an area of any fourth face model that has undergone a shape change compared to the first face model. For example, the second face model corresponding to a fourth face model is obtained by adjusting the curvature of the mouth, and then the face-pinching deformation area of the fourth face model obtained by the inverse solution is in the mouth compared to the first face model; or, the second face model corresponding to a fourth face model is obtained by adjusting the size of the eyes, and then the face-pinching deformation area of the fourth face model obtained by the inverse solution is in the eyes compared to the first face model.
[0019] In a possible implementation, when the pinching deformation areas of the plurality of fourth face models are the same (for example, the pinching deformation areas of the plurality of fourth face models are all mouths, eyes or other parts), the plurality of fourth face models are averaged and superimposed to obtain a third face model. At this time, the data of the plurality of fourth face models at the same position (for example, (Xi, Yi, Zi)) can be averaged to obtain the third face model.
[0020] In one possible implementation, when the pinching deformation areas of multiple fourth facial models are not exactly the same (for example, the pinching deformation areas of some (including one or more) fourth facial models among the multiple fourth facial models are in the mouth, the pinching deformation areas of some other fourth facial models are in the eyes, and the pinching deformation areas of some fourth facial models are in the face shape, etc.), the pinching deformation areas of the multiple fourth facial models with the same pinching deformation areas (for example, one or more fourth facial models with the same pinching deformation areas) are averaged and superimposed to obtain at least two sixth facial models; and the at least two sixth facial models are superimposed based on weights to obtain a third facial model.
[0021] For one or more fourth face models with the same face pinching deformation area, the data of the one or more fourth face models at the same position (for example, (Xi, Yi, Zi)) can be averaged to obtain a face model (i.e., the sixth face model). In this way, one or more fourth face models corresponding to the mouth can obtain a sixth face model, one or more fourth face models corresponding to the eyes can obtain a sixth face model, and one or more fourth face models corresponding to the facial contour can obtain a sixth face model.
[0022] For the multiple sixth face models obtained in the previous step, the electronic device can respectively calculate the weights of the pinching deformation areas of the sixth face models relative to the first face model, and then use the weights to weight the sixth face model and the first face model (weighted sum of data at the same position (e.g., (Xi, Yi, Zi))) to obtain a third face model. The aforementioned weight can be represented by the degree of pinching deformation of the sixth face model relative to the first face model, such as a mask, and there is no specific limitation on this.
[0023] It should be noted that in addition to the above-mentioned fusion method, other methods can also be used to fuse multiple fourth face models. The purpose is to reflect the face pinching editing made by the user to the face Mesh corresponding to multiple unsatisfactory animation frames in the final neutral Mesh. Any method that can achieve this purpose can be used to implement the fusion processing. Therefore, the embodiment of the present application does not specifically limit the fusion method.
[0024] Optionally, after obtaining the third human face model, the electronic device may directly use the third human face model as a digital human model output.
[0025] The third face model that has been pinched, deconstructed, and fused can already express the face edits made by the user to the face Mesh corresponding to multiple unsatisfactory animation frames. Compared with the first face model, the third face model better meets the user's needs. Therefore, the third face model can be directly used as a digital human model for the creation of subsequent 3D models.
[0026] Optionally, the electronic device can perform facial binding based on the third facial model to obtain multiple fifth facial models, the facial binding including at least one of the following: expression-based binding, shape-based binding, bone binding and neural network binding; perform facial driving based on the multiple fifth facial models to obtain a second animation sequence; when the effect of the second animation sequence meets user needs, determine the third facial model as the digital human model.
[0027] The third face model after face pinching, reverse analysis and fusion can express the face pinching edits made by the user to the face mesh corresponding to the multiple unsatisfactory animation frames, but the effect after driving has not yet been presented to the user. In order to facilitate timely adjustments and make it more in line with user needs, the electronic device can generate a second animation sequence based on the third face model, that is, first perform facial binding according to the third face model (different facial bindings can be made for the third face model, for example, expression base binding, shape base binding, bone binding and neural network binding are performed on the third face model respectively) to obtain multiple fifth face models, and then perform facial driving according to the multiple fifth face models to obtain the second animation sequence. Play the second animation sequence to the user, and when the user is satisfied with it, the third face model can be used as a digital human model to create subsequent 3D models. If the user is not satisfied with it, the whole process can be executed in a loop, and the first face model can be replaced with the third face model until the user is satisfied.
[0028] In a second aspect, the present application provides a digital human face pinching device, comprising: an acquisition module, used to acquire multiple first human face models, the first human face models have expressions, the multiple first human face models come from multiple animation frames, and the multiple animation frames are selected by a user from a first animation sequence; a face pinching module, used to pinch the multiple first human face models respectively to obtain multiple second human face models; an inverse solution module, used to obtain a third human face model based on the multiple second human face models, the third human face model has no expression; a digital human module, used to obtain a digital human model based on the third human face model.
[0029] In a possible implementation, the inverse analysis module is specifically used to perform neutral expression inverse analysis on the multiple second face models to obtain multiple fourth face models, where the fourth face models are expressionless; and to fuse the multiple fourth face models to obtain the third face model.
[0030] In a possible implementation, the digital human module is specifically used to perform facial binding according to the third face model to obtain multiple fifth face models, wherein the facial binding includes at least one of the following: expression-based binding, shape-based binding, bone binding, and neural network binding; perform facial driving according to the multiple fifth face models to obtain a second animation sequence; when the effect of the second animation sequence meets user needs, use the third face model as the digital human model.
[0031] In a possible implementation manner, the digital human module is specifically configured to use the third human face model as the digital human model.
[0032] In a possible implementation, the inverse solution module is specifically configured to perform weight-based superposition on the multiple fourth face models to obtain the third face model.
[0033] In a possible implementation, the inverse solution module is specifically configured to fuse the plurality of fourth face models according to the face pinching deformation regions thereof to obtain the third face model.
[0034] In a possible implementation, the inverse solution module is specifically configured to, when the face pinching deformation areas of the multiple fourth face models are the same, average and superimpose the multiple fourth face models to obtain the third face model.
[0035] In one possible implementation, the inverse solution module is specifically used to, when the pinching deformation areas of the multiple fourth facial models are not exactly the same, average and superimpose the multiple fourth facial models with the same pinching deformation areas to obtain at least two sixth facial models; and perform weight-based superposition on the at least two sixth facial models to obtain the third facial model.
[0036] In a possible implementation, it also includes: an interaction module, used to display an interaction interface, the interaction interface includes a control for selecting an animation frame; receiving an instruction triggered by an operation performed by a user on the control, the instruction including identification information of the multiple animation frames; and determining the multiple animation frames based on the identification information.
[0037] In a possible implementation manner, the interaction module is specifically configured to obtain the multiple first face models according to the multiple animation frames.
[0038] In a third aspect, the present application provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement a method as described in any one of the above-mentioned first aspects.
[0039] In a fourth aspect, the present application provides a computer-readable storage medium, comprising a computer program, wherein when the computer program is executed on a computer, the computer executes any one of the methods described in the first aspect.
[0040] In a fifth aspect, the present application provides a computer program product, wherein the computer program product comprises a computer program code, and when the computer program code is executed on a computer, the computer executes any one of the methods in the first aspect.
[0041] In a seventh aspect, the present application provides a chip comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute a method as described in any one of the above-mentioned first aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic diagram of an electronic device provided in an embodiment of the present application;
[0043] Figure 2 is a software structure block diagram of the electronic device 100 provided in an embodiment of the present application;
[0044] Figure 3 A flowchart of process 300 of the method for pinching the face of a digital human provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of the system structure of an embodiment of the present application;
[0046] Figure 5 This is a flow chart of the face pinching method of a digital human according to an embodiment of the present application;
[0047] Figure 6 A schematic diagram of a fusion method according to an embodiment of the present application;
[0048] Figure 7 Schematic diagram of the structure of the digital human face-pinching device 700 of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] The terms "first", "second", etc. in the specification embodiments, claims, and drawings of the present application are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, including a series of steps or units. The method, system, product, or device is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0051] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0052] Key terms of the embodiments of this application:
[0053] 1. Mesh: A 3D model representation, composed of multiple triangles. In three-dimensional (3D) space, the geometry of the points and edges that make up these triangles is a mesh. For example, a face mesh represents a 3D face model (in this article, face mesh, face model, and 3D face model can represent the same thing).
[0054] 2. Face pinching: Modify the appearance of the 3D face model, that is, edit the shape of the face Mesh to obtain a new face Mesh.
[0055] 3. Neutral expression: no expression on the face, no expression information. Neutral expression Mesh (also called neutral Mesh) represents a 3D face model with no expression on the face.
[0056] 4. Expression base: Face Mesh with expressions. For example, the eyeBlink expression base represents a face Mesh with eyes closed, and the jawOpen expression base represents a face Mesh with mouth open.
[0057] 5. Shape base: neutral face meshes with different appearances.
[0058] 6. Digital human face binding (also called face binding): Face binding includes at least one of expression base binding, shape base binding, bone binding and neural network binding. Usually, a corresponding set of expression base, shape base or skinning data can be generated for the face Mesh.
[0059] 7. Digital human face driver (also called face driver): Use a set of serialized animation coefficients (for example, expression base coefficients, bone parameters, etc.) to assign parameters to the face Mesh with facial binding, so as to obtain an animation of the face Mesh.
[0060] 8. Neutral mesh inversion (NMI) algorithm: usually refers to recovering the corresponding neutral mesh from the facial mesh with expression.
[0061] In the related art, a digital human model of a neutral Mesh is input, and the model is edited by pinching the face. After the face editing is completed, the neutral Mesh is bound to the face, and then the digital human model is driven according to the facial binding method to obtain a driving animation or some static reference expressions (for example, smile, frown, etc.). The user watches the effect of the driving animation or reference expression. If the user is not satisfied with the effect, the user re-enters the face editing link. If the user is satisfied with the effect, the process ends and the digital human model of the aforementioned neutral Mesh is output for subsequent processing based on the digital human model. However, this technology always performs face pinching editing on the static neutral Mesh, and cannot guarantee that the subsequent driving effect meets user needs.
[0062] In order to solve the above technical problems, the embodiments of the present application provide a method and device for pinching the face of a digital human. The technical solution of the embodiments of the present application will be described below.
[0063] First, the electronic device according to the embodiment of the present application is described with reference to the accompanying drawings. Figure 1 A schematic diagram of an electronic device provided in an embodiment of the present application, such as Figure 1 As shown, the electronic device 100 may be a computer, a smart phone, a tablet, etc. It should be understood that Figure 1 The electronic device 100 shown is only one example of an electronic device, and the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different configuration of components. Figure 1 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0064] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0065] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0066] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0067] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0068] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0069] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0070] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0071] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0072] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0073] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0074] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0075] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0076] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0077] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0078] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0079] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0080] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0081] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0082] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0083] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0084] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0085] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0086] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0087] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0088] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0089] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0090] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0091] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0092] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0093] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0094] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0095] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0096] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0097] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0098] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0099] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0100] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0101] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0102] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0103] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0104] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0105] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0106] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0107] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0108] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0109] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0110] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0111] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0112] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0113] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0114] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0115] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0116] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0117] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0118] Figure 2 is a software structure diagram of the electronic device 100 provided in the embodiment of the present application, such as Figure 2 As shown, the layered architecture of the electronic device 100 divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
[0119] The application layer can include a series of application packages.
[0120] The application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0121] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0122] The application framework layer may include a window manager, content provider, view system, telephony manager, resource manager, notification manager, and the like.
[0123] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0124] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0125] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0126] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0127] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0128] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0129] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0130] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0131] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0132] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0133] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0134] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0135] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0136] A 2D graphics engine is a drawing engine for 2D drawings.
[0137] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0138] Understandably, Figure 2 The components included in the system framework layer, system library and runtime layer shown do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine some components, or split some components, or arrange the components differently.
[0139] Figure 3 The flowchart of the process 300 of the method for pinching the face of a digital person provided in the embodiment of the present application. The process 300 may be performed by the electronic device 100 described above. The process 300 is described as a series of steps or operations. It should be understood that the process 300 may be performed in various orders and / or occur simultaneously, not limited to Figure 3 The execution order shown. Process 300 may include:
[0140] Step 301: Acquire multiple first face models, where the first face models have expressions.
[0141] The face model can be a 3D model representation of the face of a digital human, which is composed of multiple triangles. The face model can also be called a face mesh. Usually, a face mesh can include multiple forms of expression, such as a neutral mesh without expression, an expression base with expression, a shape base representing different appearances, etc. In the embodiment of the present application, the first face model can be a face mesh with expression, that is, the first face model can be an expression base.
[0142] Referring to the above description, after performing facial binding and facial driving on the neutral Mesh, a driving animation (also called an animation sequence) can be obtained, and it can be seen that the animation sequence includes multiple animation frames. When the above animation sequence is played to the user, the user can express satisfaction or dissatisfaction based on the playback effect. When the user is dissatisfied, the dissatisfied animation frame can be selected from the animation sequence (that is, the first animation sequence), and the face pinching editing can be performed again to better meet the user's needs.
[0143] Optionally, the electronic device can display an interactive interface, which includes a control for selecting an animation frame. For example, a progress bar is displayed on the interface for playing the first animation sequence, and the user can drag the slider on the progress bar to select an unsatisfactory segment, and then the electronic device displays the animation frames included in the segment selected by the user (in the form of thumbnails, lists, menus, etc., which are not specifically limited) on the interactive interface, and the user clicks on the control to select the animation frame; for another example, the electronic device plays the animation sequence slowly, and the user clicks on the screen to select the animation frame during the playback process. It should be understood that many other methods can be used to select animation frames, and the embodiments of the present application do not specifically limit this. The user's operation on the aforementioned controls can trigger an instruction, and the electronic device can determine the selected animation frame after obtaining the instruction, for example, by searching and obtaining the corresponding animation frame through the identification information included in the instruction (for example, the serial number and index of the animation frame in the animation sequence, etc.).
[0144] In the embodiment of the present application, based on any animation frame selected by the user, the corresponding face Mesh is obtained. Since the face has been bound, the face Mesh obtained at this time has an expression, that is, the first face expression. The user selects several animation frames, and the electronic device can obtain several first face models.
[0145] Step 302: pinch the faces of the multiple first face models respectively to obtain multiple second face models.
[0146] Generally, face pinching can be divided into geometric editing and texture editing, among which geometric editing can include shape base mixing, bone control, manual carving, etc., among which shape base mixing is to preset a set of face shape bases (a set of neutral face models representing different appearances and face shapes), and obtain a new face model through linear interpolation mixing of these bases; bone control is to adjust the rotation and translation (Rotation & translation, RT) parameters (rotation and translation parameters) of the bones bound to the surface of the face model, and convert the bone RT parameters into face Mesh shape variables through Linear Blend Skining (LBS) to modify the shape of the face model; manual carving is to directly modify the spatial coordinates of the vertices of the face model (Mesh) to change the appearance of the model.
[0147] The user can perform face-pinching editing on each first face model according to his / her personal wishes. The face-pinching editing is performed on the face mesh with expressions. Based on the face-pinching operation of the user, the electronic device applies the corresponding expression, skeleton, appearance, etc. to the first face model to obtain the second face model. It can be seen that the second face model is also with expressions. In this way, the user can see the effect of face-pinching (i.e., the second face model) with expressions, and can more intuitively find out whether he / she is satisfied with the face-pinching effect.
[0148] Step 303: Obtain a third face model based on the multiple second face models, where the third face model is expressionless.
[0149] The electronic device can perform neutral expression inversion on each second face model to obtain a fourth face model, which has no expression. The aforementioned neutral expression inversion can use a neutral mesh inversion (NMI) algorithm to invert the neutral Mesh (i.e., the fourth face model) from the second face model (i.e., the face Mesh with expression) after face pinching editing. The NMI algorithm calculates the neutral face Mesh based on the face Mesh with expression, first calculates the deformation information (Mesh vertex offset, Mesh patch deformation gradient) of the neutral Mesh before face pinching editing relative to the face Mesh with expression, and applies the deformation information to the face Mesh with expression after face pinching to obtain a new neutral Mesh. Exemplarily, taking the deformation transfer (DT) algorithm as an example, the deformation gradient (expressed by an affine matrix) of the neutral Mesh before face pinching relative to each triangular facet of the Mesh with expression is calculated, and the calculated deformation gradient is applied to the triangular facets of the Mesh with expression after face pinching (the affine matrix is multiplied by the triangular facet data (a matrix composed of two edge vectors and a normal vector of the triangular facet)) to obtain the neutral Mesh. Optionally, the neutral expression inverse solution can also be obtained by decoupling the identity (ID) and expression through a neural network. It should be noted that the method for inverse solution of neutral expression is not specifically limited in the embodiment of the present application.
[0150] Multiple fourth face models can be deconstructed from multiple face models, so the electronic device can fuse the multiple fourth face models to obtain the final output face model (i.e., the third face model, neutral Mesh). The fusion method may include:
[0151] (1) A plurality of fourth face models may be superimposed based on weights to obtain a third face model.
[0152] The electronic device may first obtain the weights of the plurality of fourth face models, and then perform weighted summation of the data of the plurality of fourth face models at the same position (e.g., (Xi, Yi, Zi)) based on the weights, thereby obtaining the third face model. The aforementioned weights may be obtained based on the degree of change of each fourth face model relative to the first face model, or other factors may be considered, and no specific limitation is made to this.
[0153] (2) The third face model can be obtained by fusing the face pinching deformation regions of the plurality of fourth face models.
[0154] The face-pinching deformation area may be an area of any fourth face model that has undergone a shape change compared to the first face model. For example, the second face model corresponding to a fourth face model is obtained by adjusting the curvature of the mouth, and then the face-pinching deformation area of the fourth face model obtained by the inverse solution is in the mouth compared to the first face model; or, the second face model corresponding to a fourth face model is obtained by adjusting the size of the eyes, and then the face-pinching deformation area of the fourth face model obtained by the inverse solution is in the eyes compared to the first face model.
[0155] In a possible implementation, when the pinching deformation areas of the plurality of fourth face models are the same (for example, the pinching deformation areas of the plurality of fourth face models are all mouths, eyes or other parts), the plurality of fourth face models are averaged and superimposed to obtain a third face model. At this time, the data of the plurality of fourth face models at the same position (for example, (Xi, Yi, Zi)) can be averaged to obtain the third face model.
[0156] In one possible implementation, when the pinching deformation areas of multiple fourth facial models are not exactly the same (for example, the pinching deformation areas of some (including one or more) fourth facial models among the multiple fourth facial models are in the mouth, the pinching deformation areas of some other fourth facial models are in the eyes, and the pinching deformation areas of some fourth facial models are in the face shape, etc.), the pinching deformation areas of the multiple fourth facial models with the same pinching deformation areas (for example, one or more fourth facial models with the same pinching deformation areas) are averaged and superimposed to obtain at least two sixth facial models; and the at least two sixth facial models are superimposed based on weights to obtain a third facial model.
[0157] For one or more fourth face models with the same face pinching deformation area, the data of the one or more fourth face models at the same position (for example, (Xi, Yi, Zi)) can be averaged to obtain a face model (i.e., the sixth face model). In this way, one or more fourth face models corresponding to the mouth can obtain a sixth face model, one or more fourth face models corresponding to the eyes can obtain a sixth face model, and one or more fourth face models corresponding to the facial contour can obtain a sixth face model.
[0158] For the multiple sixth face models obtained in the previous step, the electronic device can respectively calculate the weights of the pinching deformation areas of the sixth face models relative to the first face model, and then use the weights to weight the sixth face model and the first face model (weighted sum of data at the same position (e.g., (Xi, Yi, Zi))) to obtain a third face model. The aforementioned weight can be represented by the degree of pinching deformation of the sixth face model relative to the first face model, such as a mask, and there is no specific limitation on this.
[0159] It should be noted that in addition to the above-mentioned fusion method, other methods can also be used to fuse multiple fourth face models. The purpose is to reflect the face pinching editing made by the user to the face Mesh corresponding to multiple unsatisfactory animation frames in the final neutral Mesh. Any method that can achieve this purpose can be used to implement the fusion processing. Therefore, the embodiment of the present application does not specifically limit the fusion method.
[0160] Step 304: Acquire a digital human model according to the third human face model.
[0161] Optionally, after obtaining the third human face model, the electronic device may directly use the third human face model as a digital human model output.
[0162] The third face model that has been pinched, deconstructed, and fused can already express the face edits made by the user to the face Mesh corresponding to multiple unsatisfactory animation frames. Compared with the first face model, the third face model better meets the user's needs. Therefore, the third face model can be directly used as a digital human model for the creation of subsequent 3D models.
[0163] Optionally, the electronic device can perform facial binding based on the third facial model to obtain multiple fifth facial models, the facial binding including at least one of the following: expression-based binding, shape-based binding, bone binding and neural network binding; perform facial driving based on the multiple fifth facial models to obtain a second animation sequence; when the effect of the second animation sequence meets user needs, determine the third facial model as the digital human model.
[0164] The third face model after face pinching, reverse analysis and fusion can express the face pinching edit made by the user to the face mesh corresponding to the multiple unsatisfactory animation frames, but the effect after driving has not yet been presented to the user. In order to facilitate timely adjustment and make it more in line with user needs, the electronic device can generate a second animation sequence based on the third face model, that is, first perform facial binding according to the third face model (different facial bindings can be made for the third face model, for example, expression base binding, shape base binding, bone binding and neural network binding are performed on the third face model respectively) to obtain multiple fifth face models, and then perform facial driving according to the multiple fifth face models to obtain the second animation sequence. Play the second animation sequence to the user, and when the user is satisfied with it, the third face model can be used as a digital human model to create a subsequent 3D model. If the user is not satisfied with it, the process starting from step 301 can be executed again, and the first face model is replaced with the third face model until the user is satisfied.
[0165] The embodiment of the present application realizes face pinching editing of a face Mesh with expressions, which allows face pinching editing to be performed on an expression-based basis based on the final driving effect instead of being performed on a static neutral Mesh, thereby obtaining a dynamic digital human image that satisfies the user more.
[0166] The following specific embodiments are used to Figure 3 The technical solution of the method embodiment shown is described in detail.
[0167] Figure 4 Schematic diagram of the system structure of the embodiment of the present application, such as Figure 4 As shown, a digital human model (neutral Mesh) is input, and facial binding is performed on the neutral Mesh, for example, expression-based binding based on DT; bone binding; network binding based on deep learning, etc. The facial Mesh (corresponding to the first facial model above) after facial binding is driven by the face, for example, driven by the user's voice input (including a recording, conversation, recitation, etc.), driven by the user's facial expression, driven by the prefabricated coefficient, so as to obtain an animation sequence. The user can determine whether the animation effect of the animation sequence meets the requirements. If the user is satisfied with the animation effect, the aforementioned neutral Mesh is directly output and the process ends; if the user is not satisfied with the animation effect, the dynamic face pinching process is entered:
[0168] The user selects the unsatisfactory animation frames from the animation sequence, and edits the face according to personal wishes on the expression base corresponding to each animation frame (corresponding to the first face model mentioned above). The electronic device performs neutral expression inversion on all edited expression bases (corresponding to the second face model mentioned above), obtains the corresponding neutral Mesh (corresponding to the fourth face model mentioned above), and then obtains the final neutral Mesh (corresponding to the third face model mentioned above) through fusion, and uses the neutral Mesh as the digital human model to re-enter the above process. Through cyclic iteration, a digital human model that meets the user's needs is finally output.
[0169] Figure 5 Flow chart of the face pinching method of a digital human according to an embodiment of the present application. Figure 5 As shown, the method comprises the following steps:
[0170] s1. Input the digital human model, that is, the expressionless Mesh data of the digital human's face, which can be called neutral Mesh.
[0171] s2. Input the neutral Mesh and perform facial binding. The specific binding method is not limited. For example, 1) bind the facial expression base to the neutral Mesh, 2) bind the facial bones and corresponding skin to the neutral Mesh; 3) implicitly bind the neutral Mesh through a neural network. After the binding is completed, the binding result is output, which is a facial Mesh with expression.
[0172] s3, input the facial mesh with expression and driving parameters to drive the face. There are corresponding driving methods according to the different facial binding methods in s2. For example, 1) for the expression base binding result, it can be driven by the expression base coefficient, 2) for the bone binding result, it can be driven by the bone RT parameter, 3) for the neural network implicit binding result, the driving result is directly obtained after the driving parameters are input into the network. After the driving is completed, the animation sequence is output.
[0173] s4, play the animation sequence, the user selects the animation frame that the user is not satisfied with, and outputs the face mesh of the animation frame. If the user does not need to modify the animation frame, the current effect has met the user's needs, and the neutral mesh in s1 is directly output, and the process ends.
[0174] s5. The user performs face pinching editing on each face mesh output by s4. The editing methods may include: 1) face pinching based on preset shape base mixing; 2) face pinching by the user through manual carving; 3) inputting specific face pinching prompts and performing face pinching through a neural network. The purpose of s5 is to ensure that the animation-driven effect meets the needs of users through face pinching editing. After the face pinching editing is completed, the edited face mesh is output, which is a face mesh with expression.
[0175] s6. Input the edited face mesh, and use NMI to reverse the neutral mesh from the edited face mesh, without limiting the specific NMI algorithm. For example, 1) calculate the neutral mesh through DT; 2) decouple the ID and expression through the neural network to obtain the neutral mesh; output the neutral mesh after completing NMI.
[0176] s7. Input multiple neutral meshes and perform multiple neutral mesh fusion. The fusion method includes two steps, such as Figure 6 ( Figure 6 As shown in the schematic diagram of the fusion method of the embodiment of the present application: In the first step, for the neutral Mesh with the same face-pinching deformation area, the fusion method is uniform superposition, the average value of the data at the same position is calculated, and at least two neutral Mesh obtained by fusion are output. For example, the neutral Mesh21, neutral Mesh22, ..., neutral Mesh2n have the same face-pinching deformation area, and they are uniformly superimposed to obtain neutral Mesh2; In the second step, for the neutral Mesh obtained in the first step with different face-pinching deformation areas, their weights relative to the neutral Mesh in s1 are calculated respectively, and at least two neutral Mesh are mixed and superimposed with the neutral Mesh in s1 by using the weights, and the weighted sum of the same position is calculated to obtain the final neutral Mesh (fused neutral Mesh). For example, calculate mask1 of neutral Mesh1 relative to the original neutral Mesh, mask2 of neutral Mesh2 relative to the original neutral Mesh, ..., and mask n of neutral Meshn relative to the original neutral Mesh. Input the final neutral Mesh into s1, and execute the process in a loop.
[0177] Figure 7 FIG. 7 is a structural diagram of a digital human face pinching device 700 of the present application. Figure 7 As shown, the digital human face pinching device 700 of this embodiment can be applied to the above electronic device. The digital human face pinching device 700 may include: an acquisition module 701, a face pinching module 702, a reverse analysis module 703, a digital human module 704 and an interaction module 705.
[0178] The acquisition module 701 is used to acquire multiple first face models, wherein the first face models have expressions and are from multiple animation frames, and the multiple animation frames are selected by a user from a first animation sequence; the face pinching module 702 is used to pinch the multiple first face models respectively to obtain multiple second face models; the inverse solution module 703 is used to acquire a third face model based on the multiple second face models, and the third face model has no expression; the digital human module 704 is used to acquire a digital human model based on the third face model.
[0179] In a possible implementation, the inverse analysis module 703 is specifically used to perform neutral expression inverse analysis on the multiple second face models to obtain multiple fourth face models, where the fourth face models are expressionless; and to fuse the multiple fourth face models to obtain the third face model.
[0180] In a possible implementation, the digital human module 704 is specifically used to perform facial binding according to the third face model to obtain multiple fifth face models, wherein the facial binding includes at least one of the following: expression-based binding, shape-based binding, bone binding, and neural network binding; perform facial driving according to the multiple fifth face models to obtain a second animation sequence; when the effect of the second animation sequence meets user needs, use the third face model as the digital human model.
[0181] In a possible implementation, the digital human module 704 is specifically configured to use the third human face model as the digital human model.
[0182] In a possible implementation, the inverse solution module 703 is specifically configured to perform weight-based superposition on the multiple fourth face models to obtain the third face model.
[0183] In a possible implementation, the inverse solution module 703 is specifically configured to fuse the plurality of fourth face models according to their respective face pinching deformation regions to obtain the third face model.
[0184] In a possible implementation, the inverse solution module 703 is specifically configured to, when the face pinching deformation areas of the multiple fourth face models are the same, average and superimpose the multiple fourth face models to obtain the third face model.
[0185] In a possible implementation, the inverse solution module 703 is specifically used to, when the pinching deformation areas of the multiple fourth facial models are not exactly the same, average and superimpose the multiple fourth facial models with the same pinching deformation areas to obtain at least two sixth facial models; and perform weight-based superposition on the at least two sixth facial models to obtain the third facial model.
[0186] In one possible implementation, the interaction module 705 is used to display an interaction interface, which includes a control for selecting an animation frame; receive an instruction triggered by an operation performed by a user on the control, wherein the instruction includes identification information of the multiple animation frames; and determine the multiple animation frames based on the identification information.
[0187] In a possible implementation, the interaction module 705 is specifically configured to obtain the multiple first face models according to the multiple animation frames.
[0188] The device of this embodiment can be used to perform Figure 3 The technical solution of the method embodiment shown has similar implementation principles and technical effects, which will not be repeated here.
[0189] In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The processor can be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application-specific integrated circuit (application-specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware coding processor to be executed, or the hardware and software modules in the coding processor are combined to be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0190] The memory mentioned in the above embodiments may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0191] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0192] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0193] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0194] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0195] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0196] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0197] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for pinching the face of a digital human, characterized in that: include: Acquire a plurality of first face models, wherein the first face models have expressions, and the plurality of first face models are from a plurality of animation frames, and the plurality of animation frames are selected by a user from a first animation sequence; Performing face pinching on the plurality of first face models respectively to obtain a plurality of second face models; Acquire a third face model according to the plurality of second face models, wherein the third face model is expressionless; A digital human model is obtained according to the third human face model.
2. The method according to claim 1, characterized in that The step of acquiring a third face model according to the plurality of second face models comprises: Performing neutral expression inverse analysis on the plurality of second face models respectively to obtain a plurality of fourth face models, wherein the fourth face models are expressionless; The plurality of fourth face models are fused to obtain the third face model.
3. The method according to claim 1 or 2, characterized in that: The step of obtaining a digital human model according to the third human face model comprises: Performing facial binding according to the third face model to obtain a plurality of fifth face models, wherein the facial binding includes at least one of the following: expression-based binding, shape-based binding, bone binding, and neural network binding; Performing facial driving according to the plurality of fifth face models to obtain a second animation sequence; When the effect of the second animation sequence meets the user's needs, the third human face model is used as the digital human model.
4. The method according to claim 1 or 2, characterized in that: The step of obtaining a digital human model according to the third human face model comprises: The third human face model is used as the digital human model.
5. The method according to claim 2, characterized in that: The fusing the plurality of fourth face models to obtain the third face model comprises: The plurality of fourth face models are superimposed based on weights to obtain the third face model.
6. The method according to claim 2, characterized in that The fusing the plurality of fourth face models to obtain the third face model comprises: The third face model is obtained by fusing the face pinching deformation areas of the plurality of fourth face models.
7. The method according to claim 6, characterized in that The step of fusing the face pinching deformation regions of the plurality of fourth face models to obtain the third face model comprises: When the face pinching deformation areas of the plurality of fourth face models are the same, the plurality of fourth face models are averaged and superimposed to obtain the third face model.
8. The method according to claim 6, characterized in that The step of fusing the face pinching deformation regions of the plurality of fourth face models to obtain the third face model comprises: When the face-pinching deformation areas of the plurality of fourth face models are not completely the same, averaging and superimposing the plurality of fourth face models having the same face-pinching deformation areas to obtain at least two sixth face models; The at least two sixth face models are superimposed based on weights to obtain the third face model.
9. The method according to any one of claims 1 to 8, characterized in that Also includes: Displaying an interactive interface, wherein the interactive interface includes a control for selecting an animation frame; Receiving an instruction triggered by an operation performed by a user on the control, the instruction including identification information of the plurality of animation frames; The plurality of animation frames are determined according to the identification information.
10. The method according to claim 9, characterized in that The obtaining of a plurality of first face models comprises: The multiple first face models are acquired according to the multiple animation frames.
11. A digital human face-pinching device, characterized in that: include: An acquisition module, configured to acquire a plurality of first face models, wherein the first face models have expressions and are from a plurality of animation frames, wherein the plurality of animation frames are selected by a user from a first animation sequence; A face pinching module, used for pinching the multiple first face models respectively to obtain multiple second face models; An inverse solution module, used for obtaining a third face model according to the plurality of second face models, wherein the third face model is expressionless; The digital human module is used to obtain a digital human model according to the third human face model.
12. The device according to claim 11, characterized in that The inverse analysis module is specifically used to perform neutral expression inverse analysis on the multiple second face models to obtain multiple fourth face models, where the fourth face models are expressionless; and to fuse the multiple fourth face models to obtain the third face model.
13. The device according to claim 11 or 12, characterized in that The digital human module is specifically used to perform facial binding according to the third human face model to obtain multiple fifth human face models, wherein the facial binding includes at least one of the following: expression-based binding, shape-based binding, bone binding, and neural network binding; Performing facial driving according to the plurality of fifth face models to obtain a second animation sequence; and when the effect of the second animation sequence meets user requirements, using the third face model as the digital human model.
14. The device according to claim 11 or 12, characterized in that The digital human module is specifically configured to use the third human face model as the digital human model.
15. The device according to claim 12, characterized in that The inverse solution module is specifically used to perform weight-based superposition on the multiple fourth face models to obtain the third face model.
16. The device according to claim 12, characterized in that The inverse solution module is specifically used to fuse the plurality of fourth face models according to their respective face pinching deformation areas to obtain the third face model.
17. The device according to claim 16, characterized in that The inverse solution module is specifically used to average and superimpose the multiple fourth face models to obtain the third face model when the face pinching deformation areas of the multiple fourth face models are the same.
18. The device according to claim 16, characterized in that The inverse solution module is specifically used to, when the pinching deformation areas of the multiple fourth face models are not exactly the same, average and superimpose the multiple fourth face models with the same pinching deformation areas to obtain at least two sixth face models; and perform weight-based superposition on the at least two sixth face models to obtain the third face model.
19. The device according to any one of claims 11 to 18, characterized in that Also includes: An interactive module, used to display an interactive interface, wherein the interactive interface includes a control for selecting an animation frame; An instruction triggered by an operation performed by a user on the control is received, wherein the instruction includes identification information of the multiple animation frames; and the multiple animation frames are determined according to the identification information.
20. The device according to claim 19, characterized in that The interaction module is specifically configured to obtain the multiple first face models according to the multiple animation frames.
21. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 10.
22. A computer-readable storage medium, characterized in that: The invention comprises a computer program, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 10.
23. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 10.