Method, device, readable medium and electronic device for generating virtual object
By obtaining and modifying the deviation information between the initial and preset face models of the virtual object, a high-definition digital human face model is directly generated, which solves the difficulty and high cost of generating high-definition digital human face models in the existing technology. , achieving a fast and efficient generation process.
Patent Information
- Application Number
- CN202210383985.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-12
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-04-12
AI Technical Summary
Existing technology is difficult to quickly and efficiently generate high-fidelity facial models of high-definition digital people, and the cost is high. Each digital person's skeleton needs to be individually refined and produced.
By obtaining the deviation information between the initial face model of the target virtual object and the preset face model of the preset virtual object, the preset face model is directly modified to generate the target face model of the target virtual object, avoiding the need for separate Make detailed production of the target face model.
It realizes the rapid and efficient generation of high-definition digital human face models, reduces the generation cost, and can be used to generate full-body models.
Smart Images

Figure CN114723890B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular, to a method, device, readable medium and electronic device for generating a virtual object. Background Art
[0002] In recent years, with the continuous development and application of information technology, the application scenarios of high-definition digital humans have also increased (such as interactive question-and-answer scenarios). At present, the difficulty in generating high-definition digital humans lies in how to generate a high-fidelity facial model of a high-definition digital human. A high-definition digital human facial model often has 800-1000 bones to drive various micro-expressions of the high-definition digital human face. In related technologies, generating a high-definition digital human facial model requires individually and finely producing the skeleton of each digital human. However, it is difficult to generate a high-definition digital human facial model in this way. It is difficult to generate a high-definition digital human facial model quickly and efficiently, and the cost of generating a high-definition digital human facial model is high. Summary of the invention
[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0004] In a first aspect, the present disclosure provides a method for generating a virtual object, the method comprising:
[0005] Obtaining an initial face model of the target virtual object;
[0006] Determining deviation information between the initial face model and the preset face model of the preset virtual object according to the initial face model;
[0007] A target face model of the target virtual object is generated according to the preset face model and the deviation information.
[0008] In a second aspect, the present disclosure provides a device for generating a virtual object, the device comprising:
[0009] An acquisition module, used to acquire an initial face model of a target virtual object;
[0010] A determination module, configured to determine deviation information between the initial face model and the preset face model of the preset virtual object according to the initial face model and the preset face model of the preset virtual object;
[0011] A generating module is used to generate a target face model of the target virtual object according to the preset face model and the deviation information.
[0012] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect of the present disclosure.
[0013] In a fourth aspect, the present disclosure provides an electronic device, including:
[0014] a storage device having a computer program stored thereon;
[0015] A processing device is used to execute the computer program in the storage device to implement the steps of the method described in the first aspect of the present disclosure.
[0016] Through the above technical solution, the present disclosure first obtains the initial facial model of the target virtual object, and then determines the deviation information between the initial facial model and the preset facial model of the preset virtual object according to the initial facial model and the preset facial model of the preset virtual object, and generates the target facial model of the target virtual object according to the preset facial model and the deviation information. The present disclosure determines the deviation information between the initial facial model of the target virtual object and the preset facial model of the preset virtual object, and directly modifies the preset facial model using the deviation information, so as to quickly and efficiently generate the target facial model of the target virtual object, without the need to separately refine the target facial model, thereby reducing the cost of generating the target virtual object.
[0017] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:
[0019] Figure 1 is a flow chart of a method for generating a virtual object according to an exemplary embodiment;
[0020] Figure 2 is based on Figure 1 A flow chart of step 102 is shown in the illustrated embodiment;
[0021] Figure 3 is based on Figure 1 Another flow chart of step 103 is shown in the illustrated embodiment;
[0022] Figure 4 is a block diagram of a device for generating a virtual object according to an exemplary embodiment;
[0023] Figure 5 is based on Figure 4 A block diagram of a determination module shown in the illustrated embodiment;
[0024] Figure 6 is based on Figure 4 A block diagram of a generation module shown in the illustrated embodiment;
[0025] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0027] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0028] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0029] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0032] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0033] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0034] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0035] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0036] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0037] Figure 1 FIG. 1 is a flow chart of a method for generating a virtual object according to an exemplary embodiment. Figure 1 As shown, the method may include the following steps:
[0038] Step 101: Acquire an initial face model of a target virtual object.
[0039] For example, a new high-fidelity face model of a high-definition digital human can be generated by modifying an existing face model of a high-definition digital human, thereby quickly and efficiently generating a face model of a high-definition digital human and reducing the cost of generating a face model of a high-definition digital human. Specifically, an initial face model of a target virtual object can be obtained first. The target virtual object can be a high-definition digital human or other virtual three-dimensional objects, such as a game modeling character, and the present disclosure does not specifically limit this. The initial face model can be a relatively rough face model of a pre-constructed target virtual object (i.e., a rough face of a target virtual object is pre-constructed). For example, when the target virtual object is a high-definition digital human, a real person (the real person can be a real person template required for making the high-definition digital human) can be 3D scanned, and the 3D scanning result can be used as the initial face model of the high-definition digital human. In addition, the initial face model of the high-definition digital human can also be constructed by hand.
[0040] Step 102: Determine deviation information between the initial face model and the preset face model of the preset virtual object according to the initial face model and the preset face model of the preset virtual object.
[0041] For example, after obtaining the initial facial model, the initial facial model can be first fitted onto the preset facial model (the preset facial model is actually a detailed face of a preset virtual object that has been constructed). Since there are certain differences between the initial facial model and the preset facial model, the preset facial model can be adjusted to make the preset facial model coincide with the initial facial model, and the deviation information can be determined based on the adjusted preset facial model. For example, the position deviation between each part of the preset facial model before adjustment and each part of the preset facial model after adjustment can be used as the deviation information.
[0042] Step 103: Generate a target face model of the target virtual object according to the preset face model and the deviation information.
[0043] In this step, the positions to which the parts of the preset facial model should be modified when the preset facial model is modified to the target facial model of the target virtual object can be inferred from the deviation information, and the preset facial model can be modified according to the positions to generate the target facial model. The target facial model can be understood as a detailed facial model of the target virtual object obtained by modifying the existing preset facial model.
[0044] It should be noted that the virtual object generation method in the present disclosure can be used not only to modify the existing preset virtual object face model to generate a detailed face model of the target virtual object, but also to modify the existing preset virtual object full body model (the full body model includes not only the face of the virtual object, but also other parts of the virtual object except the face) to generate a detailed full body model of the target virtual object. The method of generating the full body model of the target virtual object is the same as the method of generating the target face model of the target virtual object, and the present disclosure will not elaborate on this.
[0045] In summary, the method for generating a virtual object provided by the embodiment of the present disclosure first obtains an initial facial model of a target virtual object, then determines the deviation information between the initial facial model and the preset facial model of a preset virtual object based on the initial facial model and the preset facial model of the preset virtual object, and generates a target facial model of the target virtual object based on the preset facial model and the deviation information. The present disclosure determines the deviation information between the initial facial model of the target virtual object and the preset facial model of the preset virtual object, and directly modifies the preset facial model using the deviation information, so as to quickly and efficiently generate the target facial model of the target virtual object, without the need to separately refine the target facial model, thereby reducing the cost of generating the target virtual object.
[0046] Figure 2 is based on Figure 1 The embodiment shown is a flow chart of step 102. Figure 2 As shown, the preset face model includes multiple face bone models of the preset virtual object and model information corresponding to each face bone model, and the model information includes the initial bone position of the face bone model. Step 102 may include the following steps:
[0047] Step 1021, adjusting the initial bone position of each facial bone model so that the preset facial model overlaps with the initial facial model, and obtaining the target bone position of each facial bone model.
[0048] Taking the preset virtual object as the preset digital human and the target virtual object as the target digital human as an example for explanation, the preset face model may include multiple face bone models of the preset digital human and model information corresponding to each face bone model. Wherein, each face bone model may be understood as a face bone constituting the face of the digital human, and the model information corresponding to each face bone model may include the initial bone position of the face bone model (i.e., the position of the face bone model before the preset face model is adjusted). By controlling different face bone models to move along a certain trajectory, various micro-expressions of the face of the digital human may be driven to be realized. After obtaining the initial face model, the initial face model may be first put on the preset face model, and then the initial bone positions of the multiple face bone models of the preset face model may be adjusted to make the preset face model overlap with the initial face model (i.e., let the rough face of the pre-constructed target virtual object overlap with the fine face of the already constructed preset virtual object), and record the target bone position of each face bone model (i.e., the position of the face bone model after the preset face model is adjusted).
[0049] Step 1022, determining deviation information according to the initial bone position and the target bone position.
[0050] In this step, for each facial skeleton model, the position deviation between the initial skeleton position of the facial skeleton model and the target skeleton position of the facial skeleton model can be used as deviation information, and then the deviation information can be stored.
[0051] Figure 3 is based on Figure 1 Another flow chart of step 103 of the illustrated embodiment. As shown in 3, the model information also includes the skeleton movement information of the facial skeleton model, and the skeleton movement information includes the initial movement trajectory of the facial skeleton model when the preset virtual object displays multiple preset expressions. Step 103 may include the following steps:
[0052] Step 1031, determining the target motion trajectory of the facial skeleton model when the target virtual object displays multiple preset expressions according to the initial motion trajectory and the deviation information.
[0053] Step 1032, generating a target facial model according to the facial skeleton model, the target skeleton position and the target motion trajectory.
[0054] For example, when the virtual object is a high-definition digital human, the generated target facial model also needs to be able to vividly and realistically display a variety of preset expressions of the target virtual object, so it is necessary to further obtain the skeletal motion information of each facial skeletal model. Among them, the skeletal motion information includes the initial motion trajectory of the facial skeletal model when the preset virtual object displays a variety of preset expressions. When rendering the target facial model, the stored deviation information can be first retrieved, and then based on the initial motion trajectory and the deviation information, the target motion trajectory of each facial skeletal model included in the target facial model when the target virtual object displays a variety of preset expressions can be inferred.
[0055] Then, for each facial bone model in the preset facial model, the initial bone position of the facial bone model can be modified to its corresponding target bone position, and the initial motion trajectory corresponding to the facial bone model can be modified to its corresponding target motion trajectory to render and generate the target facial model.
[0056] In summary, the method for generating a virtual object provided by the embodiment of the present disclosure first obtains an initial facial model of a target virtual object, then determines the deviation information between the initial facial model and the preset facial model of a preset virtual object based on the initial facial model and the preset facial model of the preset virtual object, and generates a target facial model of the target virtual object based on the preset facial model and the deviation information. The present disclosure determines the deviation information between the initial facial model of the target virtual object and the preset facial model of the preset virtual object, and directly modifies the preset facial model using the deviation information, so as to quickly and efficiently generate the target facial model of the target virtual object, without the need to separately refine the target facial model, thereby reducing the cost of generating the target virtual object.
[0057] Figure 4 FIG. 1 is a block diagram of a device for generating a virtual object according to an exemplary embodiment. Figure 4 As shown, the device 200 includes:
[0058] The acquisition module 201 is used to acquire an initial face model of a target virtual object.
[0059] The determination module 202 is used to determine deviation information between the initial face model and the preset face model of the preset virtual object according to the initial face model and the preset face model of the preset virtual object.
[0060] The generation module 203 is used to generate a target face model of the target virtual object according to the preset face model and deviation information.
[0061] Optionally, the determination module 202 is used to:
[0062] The preset face model is adjusted so that the preset face model coincides with the initial face model, and deviation information is determined according to the adjusted preset face model.
[0063] Figure 5 is based on Figure 4 The embodiment shown is a block diagram of a determination module. Figure 5 As shown, the preset face model includes multiple face skeleton models of the preset virtual object and model information corresponding to each face skeleton model, and the model information includes the initial skeleton position of the face skeleton model. The determination module 202 includes:
[0064] The adjustment submodule 2021 is used to adjust the initial bone position of each facial bone model so that the preset facial model coincides with the initial facial model, thereby obtaining the target bone position of each facial bone model.
[0065] The first determination submodule 2022 is used to determine deviation information according to the initial bone position and the target bone position.
[0066] Optionally, the first determining submodule 2022 is used to:
[0067] For each facial skeleton model, the position deviation between the initial skeleton position of the facial skeleton model and the target skeleton position of the facial skeleton model is used as deviation information.
[0068] Figure 6 is based on Figure 4 The embodiment shown is a block diagram of a generation module. Figure 6 As shown, the model information also includes the skeleton movement information of the facial skeleton model, and the skeleton movement information includes the initial movement trajectory of the facial skeleton model when the preset virtual object displays multiple preset expressions. The generation module 203 includes:
[0069] The second determination submodule 2031 is used to determine the target motion trajectory of the facial skeleton model when the target virtual object displays multiple preset expressions according to the initial motion trajectory and the deviation information.
[0070] The generation submodule 2032 is used to generate a target facial model according to the facial skeleton model, the target skeleton position and the target motion trajectory.
[0071] In summary, the virtual object generation device provided by the embodiment of the present disclosure first obtains the initial facial model of the target virtual object, then determines the deviation information between the initial facial model and the preset facial model of the preset virtual object according to the initial facial model and the preset facial model of the preset virtual object, and generates the target facial model of the target virtual object according to the preset facial model and the deviation information. The present disclosure determines the deviation information between the initial facial model of the target virtual object and the preset facial model of the preset virtual object, and directly modifies the preset facial model using the deviation information, so as to quickly and efficiently generate the target facial model of the target virtual object, without the need to separately refine the target facial model, thereby reducing the cost of generating the target virtual object.
[0072] Reference below Figure 7 , which shows an electronic device (eg, Figure 1 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0073] like Figure 7 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0074] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0075] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0076] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0077] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0078] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0079] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains an initial facial model of a target virtual object; determines deviation information between the initial facial model and the preset facial model of a preset virtual object based on the initial facial model and the preset facial model of the preset virtual object; and generates a target facial model of the target virtual object based on the preset facial model and the deviation information.
[0080] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0081] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0082] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module does not limit the module itself in some cases. For example, an acquisition module may also be described as a "module for acquiring an initial face model of a target virtual object."
[0083] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0084] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0085] According to one or more embodiments of the present disclosure, Example 1 provides a method for generating a virtual object, the method comprising: obtaining an initial facial model of a target virtual object; determining deviation information between the initial facial model and a preset facial model of a preset virtual object based on the initial facial model and the preset facial model; and generating a target facial model of the target virtual object based on the preset facial model and the deviation information.
[0086] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein the deviation information between the initial facial model and the preset facial model of the preset virtual object is determined, including: adjusting the preset facial model so that the preset facial model coincides with the initial facial model, and determining the deviation information based on the adjusted preset facial model.
[0087] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 2, wherein the preset facial model includes multiple facial bone models of the preset virtual object and model information corresponding to each of the facial bone models, and the model information includes an initial bone position of the facial bone model; the preset facial model is adjusted so that the preset facial model coincides with the initial facial model, and the deviation information is determined based on the adjusted preset facial model, including: adjusting the initial bone position of each of the facial bone models so that the preset facial model coincides with the initial facial model, and obtaining a target bone position of each of the facial bone models; and determining the deviation information based on the initial bone position and the target bone position.
[0088] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 3, wherein the deviation information is determined based on the initial bone position and the target bone position, including: for each facial bone model, taking the position deviation between the initial bone position of the facial bone model and the target bone position of the facial bone model as the deviation information.
[0089] According to one or more embodiments of the present disclosure, Example 5 provides the method described in Example 3, wherein the model information also includes bone motion information of the facial bone model, and the bone motion information includes the initial motion trajectory of the facial bone model when the preset virtual object displays a plurality of preset expressions; generating a target facial model of the target virtual object based on the preset facial model and the deviation information includes: determining the target motion trajectory of the facial bone model when the target virtual object displays a plurality of the preset expressions based on the initial motion trajectory and the deviation information; generating the target facial model based on the facial bone model, the target bone position and the target motion trajectory.
[0090] According to one or more embodiments of the present disclosure, Example 6 provides a device for generating a virtual object, the device comprising: an acquisition module for acquiring an initial facial model of a target virtual object; a determination module for determining deviation information between the initial facial model and a preset facial model of a preset virtual object based on the initial facial model and the preset facial model of the preset virtual object; and a generation module for generating a target facial model of the target virtual object based on the preset facial model and the deviation information.
[0091] According to one or more embodiments of the present disclosure, Example 7 provides the apparatus of Example 6, wherein the determination module is used to: adjust the preset facial model so that the preset facial model coincides with the initial facial model, and determine the deviation information based on the adjusted preset facial model.
[0092] According to one or more embodiments of the present disclosure, Example 8 provides the device of Example 7, wherein the preset facial model includes multiple facial bone models of the preset virtual object and model information corresponding to each of the facial bone models, and the model information includes the initial bone position of the facial bone model; the determination module includes: an adjustment submodule, used to adjust the initial bone position of each of the facial bone models so that the preset facial model coincides with the initial facial model to obtain the target bone position of each of the facial bone models; a first determination submodule, used to determine the deviation information based on the initial bone position and the target bone position.
[0093] According to one or more embodiments of the present disclosure, Example 9 provides the apparatus of Example 8, wherein the first determination submodule is used to: for each of the facial bone models, use the position deviation between the initial bone position of the facial bone model and the target bone position of the facial bone model as the deviation information.
[0094] According to one or more embodiments of the present disclosure, Example 10 provides the device of Example 8, wherein the model information also includes bone movement information of the facial bone model, and the bone movement information includes the initial motion trajectory of the facial bone model when the preset virtual object displays a plurality of preset expressions; the generation module includes: a second determination submodule, for determining the target motion trajectory of the facial bone model when the target virtual object displays a plurality of the preset expressions based on the initial motion trajectory and the deviation information; and a generation submodule, for generating the target facial model based on the facial bone model, the target bone position and the target motion trajectory.
[0095] According to one or more embodiments of the present disclosure, Example 11 provides a computer-readable medium having a computer program stored thereon, which implements the steps of the methods described in Examples 1 to 5 when executed by a processing device.
[0096] According to one or more embodiments of the present disclosure, Example 12 provides an electronic device, comprising: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of the method described in Examples 1 to 5.
[0097] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0098] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0099] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A method for generating a virtual object, It is characterized in that The method comprises: Obtaining an initial face model of a target virtual object; Determining deviation information between the initial face model and the preset face model of the preset virtual object according to the initial face model; Generating a target face model of the target virtual object according to the preset face model and the deviation information; The step of determining deviation information between the initial face model and the preset face model of the preset virtual object according to the initial face model includes: Adjusting the preset face model so that the preset face model overlaps with the initial face model, and determining the deviation information according to the adjusted preset face model; The preset face model includes multiple face bone models of the preset virtual object and model information corresponding to each of the face bone models, the model information includes bone movement information of the face bone model, and the bone movement information includes initial movement tracks of the face bone model when the preset virtual object displays multiple preset expressions; generating a target face model of the target virtual object according to the preset face model and the deviation information includes: Determining, according to the initial motion trajectory and the deviation information, a target motion trajectory of the facial skeleton model when the target virtual object displays a plurality of the preset expressions; The target face model is generated according to the face bone model, the target bone position and the target motion trajectory; the target bone position is the bone position of the face bone model when the preset face model and the initial face model overlap.
2. The method according to claim 1, It is characterized in that The model information also includes an initial bone position of the facial bone model; the step of adjusting the preset facial model so that the preset facial model overlaps with the initial facial model, and determining the deviation information according to the adjusted preset facial model includes: Adjusting the initial bone position of each of the facial bone models so that the preset facial model overlaps with the initial facial model, and obtaining the target bone position of each of the facial bone models; The deviation information is determined according to the initial bone position and the target bone position.
3. The method according to claim 2, It is characterized in that The step of determining the deviation information according to the initial bone position and the target bone position includes: For each of the facial skeleton models, the position deviation between the initial skeleton position of the facial skeleton model and the target skeleton position of the facial skeleton model is used as the deviation information.
4. A device for generating a virtual object, It is characterized in that The device comprises: An acquisition module, used to acquire an initial face model of a target virtual object; A determination module, configured to determine deviation information between the initial face model and the preset face model of the preset virtual object according to the initial face model and the preset face model of the preset virtual object; A generating module, configured to generate a target face model of the target virtual object according to the preset face model and the deviation information; The determination module is used for: Adjusting the preset face model so that the preset face model overlaps with the initial face model, and determining the deviation information according to the adjusted preset face model; The preset face model includes multiple face bone models of the preset virtual object and model information corresponding to each of the face bone models, the model information includes bone movement information of the face bone model, and the bone movement information includes initial movement trajectories of the face bone model when the preset virtual object displays multiple preset expressions; The generation module is used to determine the target motion trajectory of the facial bone model when the target virtual object displays multiple preset expressions based on the initial motion trajectory and the deviation information; and to generate the target facial model based on the facial bone model, the target bone position and the target motion trajectory; the target bone position is the bone position of the facial bone model when the preset facial model coincides with the initial facial model.
5. The device according to claim 4, It is characterized in that The model information also includes the initial bone position of the facial bone model; the determination module includes: An adjustment submodule, used for adjusting the initial bone position of each of the facial bone models so that the preset facial model coincides with the initial facial model, and obtaining a target bone position of each of the facial bone models; The first determination submodule is used to determine the deviation information according to the initial bone position and the target bone position.
6. The device according to claim 5, It is characterized in that The first determining submodule is used for: For each of the facial skeleton models, the position deviation between the initial skeleton position of the facial skeleton model and the target skeleton position of the facial skeleton model is used as the deviation information.
7. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 3 are implemented.
8. An electronic device, It is characterized in that include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 3.
