Method for virtual trying-on of clothes, related apparatus and communication system
Virtual fitting is performed between electronic devices and servers through device-cloud collaboration technology, and 3D images and clothing data are used for dynamic rendering, which solves the problem of matching clothing and user body types in the online clothing market, improves the shopping experience and reduces the return rate .
Patent Information
- Application Number
- PCT/CN2024/088828
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2024-04-19
- Publication Date
- 2024-10-31
AI Technical Summary
In the online clothing market, users are unable to try on clothing, resulting in poor shopping experience and high return rates. It is difficult for existing technology to effectively solve the problem of matching clothing with the user's body shape.
Through device-cloud collaboration technology, electronic devices and servers are used for virtual fitting, and the 3D image is dynamically rendered based on the user's human body data and clothing information to provide high-precision clothing fitting effects. Users can select clothing and fitting actions in real time. View the deformation details of the garment.
It improves users' shopping experience when purchasing clothing online, reduces the purchase of inappropriate clothing, reduces the return rate of clothing e-commerce, and helps users choose suitable clothing through dynamic virtual fitting effects.
Smart Images

Figure CN2024088828_31102024_PF_FP_ABST
Abstract
Description
Virtual fitting method, related device and communication system
[0001] This application claims priority to the Chinese patent application with application number 202310491407.8 filed with the State Intellectual Property Office of China on April 28, 2023, and priority to the Chinese patent application with the invention name “Virtual fitting method, related device and communication system”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a virtual fitting method, related devices, and a communication system. Background Art
[0003] With the development of the online clothing market, more and more users are purchasing clothing through online clothing e-commerce platforms. However, users cannot try out clothing before purchasing it online, and often need to return the clothing they purchased online because it doesn't fit. This leads to a poor shopping experience for users and a high return rate for clothing e-commerce platforms.
[0004] Summary of the Invention
[0005] The present application provides a virtual fitting method, related devices and communication system. Among them, the electronic device can render the fitting effect of the user's 3D image wearing clothes based on the user's body data and the clothes and fitting actions selected by the user. The above-mentioned fitting effect can realistically present the clothing information such as the style and fabric of the clothes, as well as the deformation information of details such as wrinkles caused by the collision of the clothes with the 3D image. Among them, when the 3D image performs different fitting actions, the collision of the clothes and the 3D image can produce different deformations. The electronic device can render different fitting effects corresponding to different fitting actions of the 3D image, presenting to the user the dynamic changes of the clothes during the different fitting actions of the 3D image.
[0006] In a first aspect, the present application provides a virtual fitting method. In which, an electronic device receives a first operation, the first operation is used to select a first garment for virtual fitting; in response to the first operation, the electronic device sends first human body data of a first 3D image, first action data of a first action sequence, and first clothing data of a first garment to a server, wherein the first action sequence includes a first action and a second action; the electronic device receives first simulation data of the first garment from the server; the electronic device renders a first set of fitting effects based on the first simulation data, the first set of fitting effects including a first fitting effect and a second fitting effect, the first fitting effect is used to represent the effect of the first 3D image wearing the first garment and performing the first action, the second fitting effect is used to represent the effect of the first 3D image wearing the first garment and performing the second action, and the first fitting effect and the second fitting effect are different.
[0007] The first simulation data may be obtained by the server performing cloth simulation based on the first human body data, the first motion data and the first clothing data.
[0008] The above-mentioned first operation can refer to the operation of the virtual fitting control 512 shown in FIG. 5B in the subsequent embodiments of the present application.
[0009] Through end-to-end cloud collaboration, this method enables virtual fitting functionality on mobile devices, presenting high-precision, dynamic virtual fitting effects. This allows users to virtually try on clothes while shopping in online apparel marketplaces, viewing the effects of the clothes being fitted on a 3D avatar that matches their body type. These fitting effects realistically reflect how the garment will look on the user. This helps users understand how clothes will look on them before placing an order, reducing the likelihood of purchasing unsuitable clothing online and lowering the return rate for online apparel retailers.
[0010] In combination with the first aspect, in some embodiments, the first human body data includes first human body mesh data of the first 3D image, the first action data includes first skeleton data of the first action and second skeleton data of the second action, and the first clothing data includes clothing mesh data and clothing parameter information of the first clothing, and the clothing parameter information includes one or more of the following: stretch coefficient, bending coefficient, and friction coefficient of the first clothing.
[0011] Alternatively, the first human body data includes human body parameters of the first 3D image, the human body parameters are used to generate first human body mesh data, the first action data includes identification information of the first action and the second action, and the first clothing data includes identification information of the first clothing.
[0012] It can be seen from the above embodiments that the electronic device can reduce the amount of data transmission by sending human body parameters, identification information of fitting actions (such as the first action, the second action), and identification information of the first clothing to the server, save the transmission bandwidth between the electronic device and the server, and improve the efficiency of virtual fitting.
[0013] In combination with the first aspect, in some embodiments, the electronic device may determine that the first garment can be virtually tried on; the electronic device provides a first control, and the first control is used to select the first garment for virtual trying on; wherein the above-mentioned first operation may be an operation on the first control.
[0014] In combination with the first aspect, in some embodiments, before the electronic device sends the first human body data of the first 3D image, the first action data of the first action sequence, and the first clothing data of the first clothing to the server, the electronic device may also receive an operation to select the first 3D image and / or the first action sequence.
[0015] As can be seen from the above embodiments, users can choose to use their own or another person's 3D avatar for virtual fitting. During the virtual fitting process, users can adjust the virtual clothing being tried on and the fitting movements performed by the 3D avatar. Based on the user's selected clothing, fitting movements, and fitting effects, the electronic device 100 can render a fitting effect of the 3D avatar wearing the clothing and performing the fitting movements, helping the user accurately determine whether the clothing is suitable for the user corresponding to the 3D avatar. This can effectively reduce the incidence of users purchasing inappropriate clothing online and reduce the return rate of clothing e-commerce companies.
[0016] In conjunction with the first aspect, in some embodiments, the first set of fitting effects can be presented by playing a first video. The electronic device receives a second operation on the first video, where the second operation is used to play the first video, pause the first video, fast-forward the first video, or rewind the first video; and the electronic device controls the playback of the first video according to the second operation.
[0017] During playback of the first video, the first 3D character can put on the first garment being tried on and perform the actions in the first action sequence. This allows the user to view a dynamic virtual fitting effect. Furthermore, the user can control the electronic device to pause playback of the fitting effect and view and adjust the playback progress of the fitting effect.
[0018] In combination with the first aspect, in some embodiments, the electronic device receives a third operation, and the third operation is used to select a second garment for virtual fitting; in response to the third operation, the electronic device sends second clothing data and first hierarchical information of the second garment to the server, and the first hierarchical information is used to indicate the layering of the first garment and the second garment; the electronic device receives second simulation data from the server; the electronic device renders a second set of fitting effects based on the second simulation data, and the second set of fitting effects includes a third fitting effect and a fourth fitting effect, and the third fitting effect is used to represent the effect of the first 3D image wearing the first garment and the second garment to perform a first action, and the fourth fitting effect is used to represent the effect of the first 3D image wearing the first garment and the second garment to perform a second action.
[0019] As can be seen from the above embodiments, users can select a single piece of clothing to virtually try on, and can also select multiple pieces of clothing to match and view the try-on effects of the combination of multiple pieces of clothing.
[0020] In combination with the first aspect, in some embodiments, the electronic device receives a fourth operation, and the fourth operation is used to select a third garment to replace the first garment for virtual fitting; in response to the fourth operation, the electronic device sends third garment data of the third garment to the server; the electronic device receives third simulation data of the third garment from the server; the electronic device renders a third set of fitting effects based on the third simulation data, and the third set of fitting effects includes a fifth fitting effect and a sixth fitting effect, and the fifth fitting effect is used to represent the effect of the first 3D image wearing the third garment and performing the first action, and the sixth fitting effect is used to represent the effect of the first 3D image wearing the third garment and performing the second action.
[0021] As can be seen from the above embodiments, during the virtual try-on process, the user can select one or more pieces of clothing to replace the clothing that the 3D avatar has already tried on. For example, the user can adjust the size or color of the clothing worn by the 3D avatar, or change the clothing worn by the 3D avatar to a different style.
[0022] In combination with the first aspect, in some embodiments, the electronic device receives a fifth operation, and the fifth operation is used to change the first action sequence into a second action sequence, and the second action sequence includes a third action and a fourth action; in response to the fifth operation, the electronic device sends the second action data of the second action sequence to the server; the electronic device receives fourth simulation data of the first clothing from the server; the electronic device renders a fourth set of fitting effects based on the fourth simulation data, and the fourth set of fitting effects includes a seventh fitting effect and an eighth fitting effect, and the seventh fitting effect is used to represent the effect of the first 3D image wearing the first clothing and performing the third action, and the eighth fitting effect is used to represent the effect of the first 3D image wearing the first clothing and performing the fourth action.
[0023] In combination with the first aspect, in some embodiments, the electronic device receives a sixth operation, and the sixth operation is used to select the fitting scene as the first scene; in response to the sixth operation, the electronic device obtains the first scene data of the first scene; the electronic device renders a first set of fitting effects based on the first scene data and the first simulation data, and the first set of fitting effects includes a first fitting effect and a second fitting effect. The first fitting effect is used to express the effect of the first 3D image wearing the first clothing and performing the first action in the first scene, and the second fitting effect is used to express the effect of the first 3D image wearing the first clothing and performing the second action in the first scene.
[0024] As can be seen from the above embodiments, during the virtual fitting process, users can set fitting scenes, such as a catwalk, stage, square, lawn, beach, or indoors. The electronic device can render the fitting effects in each fitting scene. Providing one or more options in the virtual fitting scene can increase the playability of the virtual fitting experience, allowing users to experience the virtual fitting effects in different scenarios.
[0025] In combination with the first aspect, in some embodiments, the electronic device obtains first body size information, where the first body size information includes one or more of the following: height, shoulder width, chest circumference, waist circumference, hip circumference, arm circumference, arm length, neck circumference, abdominal circumference, hip circumference, thigh circumference, calf circumference, and leg length; the electronic device obtains first human body mesh data of a first 3D image based on the first body size information.
[0026] Alternatively, the electronic device obtains one or more images, wherein the one or more images display a human body corresponding to the first 3D image; and the electronic device obtains first human body mesh data of the first 3D image based on the one or more images.
[0027] In a second aspect, the present application provides a virtual fitting method. The method can be executed by a processing module in an electronic device. The processing module can be a digital clothing simulation SDK. The processing module can be used to: obtain first human body data of a first 3D image, first action data of a first action sequence, and first clothing data of a first garment, wherein the first action sequence includes a first action and a second action; send the first human body data, the first action data, and the first clothing data to a server; receive the first simulation data of the first garment from the server; and hand over the first simulation data to a 3D rendering module to render a first set of fitting effects, the first set of fitting effects including a first fitting effect and a second fitting effect, the first fitting effect being used to express the effect of the first 3D image wearing the first garment and performing the first action, the second fitting effect being used to express the effect of the first 3D image wearing the first garment and performing the second action, the first fitting effect and the second fitting effect being different.
[0028] The first simulation data may be obtained by the server performing cloth simulation based on the first human body data, the first motion data and the first clothing data.
[0029] Through end-to-end cloud collaboration, this method enables virtual fitting functionality on mobile devices, presenting high-precision, dynamic virtual fitting effects. This allows users to virtually try on clothes while shopping in online apparel marketplaces, viewing the effects of the clothes being fitted on a 3D avatar that matches their body type. These fitting effects realistically reflect how the garment will look on the user. This helps users understand how clothes will look on them before placing an order, reducing the likelihood of purchasing unsuitable clothing online and lowering the return rate for online apparel retailers.
[0030] In combination with the second aspect, in some embodiments, the first human body data includes first human body mesh data of the first 3D image, the first action data includes first skeleton data of the first action and second skeleton data of the second action, and the first clothing data includes clothing mesh data and clothing parameter information of the first clothing, and the clothing parameter information includes one or more of the following: stretch coefficient, bending coefficient, and friction coefficient of the first clothing.
[0031] Alternatively, the first human body data includes human body parameters of the first 3D image, the human body parameters are used to generate first human body mesh data, the first action data includes identification information of the first action and the second action, and the first clothing data includes identification information of the first clothing.
[0032] It can be seen from the above embodiments that the electronic device can reduce the amount of data transmission by sending human body parameters, identification information of fitting actions (such as the first action, the second action), and identification information of the first clothing to the server, save the transmission bandwidth between the electronic device and the server, and improve the efficiency of virtual fitting.
[0033] In combination with the second aspect, in some embodiments, the processing module can be used to: preprocess the first simulation data to obtain preprocessed data, the preprocessing including one or more of the following: normal calculation of the first simulation data, data synchronization of the first simulation data and the human body data of the first action sequence of the first 3D image; the preprocessed data is handed over to the 3D rendering module to render a first set of fitting effects.
[0034] The human body data of the first 3D image performing the first action sequence may include human body mesh data corresponding to each action included in the first action sequence performed by the first 3D image, wherein different human body mesh data correspond to different actions performed by the 3D image.
[0035] In combination with the second aspect, in some embodiments, the processing module can be used to: obtain second clothing data and first-level information of the second clothing, the first-level information being used to indicate the layering of the first clothing and the second clothing; send the second clothing data and the first-level information to the server; receive second simulation data from the server; and hand over the second simulation data to the 3D rendering module to render a second set of fitting effects, the second set of fitting effects including a third fitting effect and a fourth fitting effect, the third fitting effect being used to represent the effect of the first 3D image wearing the first clothing and the second clothing to perform a first action, and the fourth fitting effect being used to represent the effect of the first 3D image wearing the first clothing and the second clothing to perform a second action.
[0036] As can be seen from the above embodiments, users can select a single piece of clothing to virtually try on, and can also select multiple pieces of clothing to match and view the try-on effects of the combination of multiple pieces of clothing.
[0037] In a third aspect, the present application provides a virtual fitting method. The method can be applied to a communication system. The communication system may include an electronic device and a server. The electronic device receives a first operation, and the first operation is used to select a first garment for virtual fitting; in response to the first operation, the electronic device sends first human body data of a first 3D image, first action data of a first action sequence, and first clothing data of a first garment to the server, wherein the first action sequence includes a first action and a second action; the server determines first simulation data of the first garment based on the first human body data, the first action data, and the first clothing data, and sends the first simulation data to the electronic device; the electronic device renders a first set of fitting effects based on the first simulation data, the first set of fitting effects including a first fitting effect and a second fitting effect, the first fitting effect being used to represent the effect of the first 3D image wearing the first garment and performing the first action, and the second fitting effect being used to represent the effect of the first 3D image wearing the first garment and performing the second action, and the first fitting effect and the second fitting effect being different.
[0038] Through end-to-end cloud collaboration, this method enables virtual fitting functionality on mobile devices, presenting high-precision, dynamic virtual fitting effects. This allows users to virtually try on clothes while shopping in online apparel marketplaces, viewing the effects of the clothes being fitted on a 3D avatar that matches their body type. These fitting effects realistically reflect how the garment will look on the user. This helps users understand how clothes will look on them before placing an order, reducing the likelihood of purchasing unsuitable clothing online and lowering the return rate for online apparel retailers.
[0039] In combination with the third aspect, in some embodiments, the first human body data includes first human body mesh data of the first 3D image, the first action data includes first skeleton data of the first action and second skeleton data of the second action, and the first clothing data includes clothing mesh data and clothing parameter information of the first clothing, and the clothing parameter information includes one or more of the following: stretch coefficient, bending coefficient, and friction coefficient of the first clothing.
[0040] Alternatively, the first human body data includes human body parameters of the first 3D image, the human body parameters are used to generate first human body mesh data, the first action data includes identification information of the first action and the second action, and the first clothing data includes identification information of the first clothing.
[0041] It can be seen from the above embodiments that the electronic device can reduce the amount of data transmission by sending human body parameters, identification information of fitting actions (such as the first action, the second action), and identification information of the first clothing to the server, saving the transmission bandwidth between the electronic device and the server and improving the efficiency of virtual fitting.
[0042] In combination with the third aspect, in some embodiments, the electronic device may determine that the first garment can be virtually tried on; the electronic device provides a first control, and the first control is used to select the first garment for virtual trying on; wherein the above-mentioned first operation may be an operation on the first control.
[0043] In combination with the third aspect, in some embodiments, before the electronic device sends the first human body data of the first 3D image, the first action data of the first action sequence, and the first clothing data of the first clothing to the server, the electronic device may also receive an operation to select the first 3D image and / or the first action sequence.
[0044] As can be seen from the above embodiments, users can choose to use their own or another person's 3D avatar for virtual fitting. During the virtual fitting process, users can adjust the virtual clothing being tried on and the fitting movements performed by the 3D avatar. Based on the user's selected clothing, fitting movements, and fitting effects, the electronic device 100 can render a fitting effect of the 3D avatar wearing the clothing and performing the fitting movements, helping the user accurately determine whether the clothing is suitable for the user corresponding to the 3D avatar. This can effectively reduce the incidence of users purchasing inappropriate clothing online and reduce the return rate of clothing e-commerce companies.
[0045] In conjunction with the third aspect, in some embodiments, the first set of fitting effects can be presented by playing a first video. The electronic device receives a second operation on the first video, where the second operation is used to play the first video, pause the first video, fast-forward the first video, or rewind the first video; and the electronic device controls playback of the first video based on the second operation.
[0046] During playback of the first video, the first 3D character can put on the first garment being tried on and perform the actions in the first action sequence. This allows the user to view a dynamic virtual fitting effect. Furthermore, the user can control the electronic device to pause playback of the fitting effect and view and adjust the playback progress of the fitting effect.
[0047] In combination with the third aspect, in some embodiments, the electronic device receives a third operation, and the third operation is used to select a second garment for virtual fitting; in response to the third operation, the electronic device sends second clothing data and first hierarchical information of the second garment to the server, and the first hierarchical information is used to indicate the layering of the first garment and the second garment; the server determines second simulation data based on the second clothing data and the first hierarchical information, and sends the second simulation data to the electronic device; the electronic device renders a second set of fitting effects based on the second simulation data, and the second set of fitting effects includes a third fitting effect and a fourth fitting effect, and the third fitting effect is used to represent the effect of the first 3D image wearing the first garment and the second garment to perform a first action, and the fourth fitting effect is used to represent the effect of the first 3D image wearing the first garment and the second garment to perform a second action.
[0048] As can be seen from the above embodiments, users can select a single piece of clothing to virtually try on, and can also select multiple pieces of clothing to match and view the try-on effects of the combination of multiple pieces of clothing.
[0049] In combination with the third aspect, in some embodiments, the electronic device receives a fourth operation, and the fourth operation is used to select a third garment to replace the first garment for virtual fitting; in response to the fourth operation, the electronic device sends third garment data of the third garment to the server; the server determines third simulation data of the third garment based on the first human body data, the first action data and the third garment data, and sends the third simulation data to the electronic device; the electronic device renders a third set of fitting effects based on the third simulation data, and the third set of fitting effects includes a fifth fitting effect and a sixth fitting effect, the fifth fitting effect is used to represent the effect of the first 3D image wearing the third garment and performing the first action, and the sixth fitting effect is used to represent the effect of the first 3D image wearing the third garment and performing the second action.
[0050] As can be seen from the above embodiments, during the virtual try-on process, the user can select one or more pieces of clothing to replace the clothing that the 3D avatar has already tried on. For example, the user can adjust the size or color of the clothing worn by the 3D avatar, or change the clothing worn by the 3D avatar to a different style.
[0051] In combination with the third aspect, in some embodiments, the electronic device receives a fifth operation, and the fifth operation is used to change the first action sequence into a second action sequence, and the second action sequence includes a third action and a fourth action; in response to the fifth operation, the electronic device sends the second action data of the second action sequence to the server; the server determines the fourth simulation data of the first clothing based on the first human body data, the second action data and the first clothing data, and sends the fourth simulation data to the electronic device; the electronic device renders a fourth set of fitting effects based on the fourth simulation data, and the fourth set of fitting effects includes a seventh fitting effect and an eighth fitting effect, the seventh fitting effect is used to represent the effect of the first 3D image wearing the first clothing and performing the third action, and the eighth fitting effect is used to represent the effect of the first 3D image wearing the first clothing and performing the fourth action.
[0052] In combination with the third aspect, in some embodiments, the electronic device receives a sixth operation, and the sixth operation is used to select the fitting scene as the first scene; in response to the sixth operation, the electronic device obtains the first scene data of the first scene; the electronic device renders a first set of fitting effects based on the first scene data and the first simulation data, and the first set of fitting effects includes a first fitting effect and a second fitting effect. The first fitting effect is used to express the effect of the first 3D image wearing the first clothing and performing the first action in the first scene, and the second fitting effect is used to express the effect of the first 3D image wearing the first clothing and performing the second action in the first scene.
[0053] As can be seen from the above embodiments, during the virtual fitting process, users can set fitting scenes, such as a catwalk, stage, square, lawn, beach, or indoors. The electronic device can render the fitting effects in each fitting scene. Providing one or more options in the virtual fitting scene can increase the playability of the virtual fitting experience, allowing users to experience the virtual fitting effects in different scenarios.
[0054] In combination with the third aspect, in some embodiments, the electronic device obtains first body size information, where the first body size information includes one or more of the following: height, shoulder width, chest circumference, waist circumference, hip circumference, arm circumference, arm length, neck circumference, abdominal circumference, hip circumference, thigh circumference, calf circumference, and leg length; the electronic device obtains first human body mesh data of a first 3D image based on the first body size information.
[0055] Alternatively, the electronic device obtains one or more images, wherein the one or more images display a human body corresponding to the first 3D image; and the electronic device obtains first human body mesh data of the first 3D image based on the one or more images.
[0056] In conjunction with the third aspect, in some embodiments, the server may obtain first human body mesh data of the first 3D image based on the first human body data, and obtain first skeletal data of the first action and second skeletal data of the second action based on the first action data; the server uses the first human body mesh data, the first skeletal data, and the second skeletal data to determine second human body mesh data of the first 3D image in the first action and third human body mesh data of the first 3D image in the second action; the server determines first simulation data based on the second human body mesh data, the third human body mesh data, and the first clothing data. The first simulation data may include simulation data of a collision between the first clothing determined by the second human body mesh data and the first clothing data and the first 3D image performing the first action, and simulation data of a collision between the first clothing determined by the third human body mesh data and the first clothing data and the first 3D image performing the second action.
[0057] In combination with the third aspect, in some embodiments, the first simulation data is stored in a database of the server; the server searches the database for the first simulation data based on the first human body data, the first motion data, and the first clothing data.
[0058] As can be seen from the above embodiment, the server can store garment simulation data generated by fabric simulation. When the same or similar 3D character needs to be simulated again by performing the same fitting action and putting on the same garment, the server can retrieve the garment simulation data from the database without having to perform the specific fabric simulation calculation process again. This reduces the server's need for repeated fabric simulation processes, conserves server computing resources, and improves server-side concurrency.
[0059] In a fourth aspect, the present application provides an electronic device. The electronic device may include a communication device, a memory, and a processor. The communication device may be used for the electronic device to communicate with a server. The memory may be used to store a computer program. The processor may be used to invoke the computer program, causing the electronic device to perform any possible implementation method as described in the first aspect.
[0060] In a fifth aspect, the present application provides a communication system. The communication system may include an electronic device and a server. The electronic device may be used to receive a first operation, where the first operation is used to select a first garment for virtual fitting; the electronic device may also be used to send first human body data of a first 3D image, first action data of a first action sequence, and first clothing data of a first garment to the server in response to the first operation, wherein the first action sequence includes a first action and a second action; the server may be used to determine first simulation data of the first garment based on the first human body data, the first action data, and the first clothing data, and send the first simulation data to the electronic device; the electronic device may be used to render a first set of fitting effects based on the first simulation data, the first set of fitting effects including a first fitting effect and a second fitting effect, the first fitting effect being used to represent the effect of the first 3D image wearing the first garment and performing the first action, the second fitting effect being used to represent the effect of the first 3D image wearing the first garment and performing the second action, the first fitting effect and the second fitting effect being different.
[0061] In a sixth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, enables the electronic device to execute any possible implementation method as in the first aspect.
[0062] In a seventh aspect, the present application provides a computer program product, which may include computer instructions. When the computer instructions are run on an electronic device, the electronic device executes any possible implementation method as in the first aspect.
[0063] In an eighth aspect, the present application provides a chip, which is applied to an electronic device. The chip includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute any possible implementation method as in the first aspect.
[0064] It is understandable that the electronic device provided in the fourth aspect, the communication system provided in the fifth aspect, the computer-readable storage medium provided in the sixth aspect, the computer program product provided in the seventh aspect, and the chip provided in the eighth aspect are all used to execute the methods provided in the embodiments of the present application. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] FIG1 is an architecture diagram of a communication system 10 provided in an embodiment of the present application;
[0066] FIG2A is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application;
[0067] FIG2B is a software structure block diagram of an electronic device 100 provided in an embodiment of the present application;
[0068] FIG3 is a schematic structural diagram of a server 200 provided in an embodiment of the present application;
[0069] 4A to 4E are schematic diagrams of some scenarios for creating 3D images provided in embodiments of the present application;
[0070] 5A to 5H are schematic diagrams of some virtual fitting scenarios provided by embodiments of the present application;
[0071] FIG6 is a flowchart of a virtual fitting method provided in an embodiment of the present application;
[0072] FIG7 is an architecture diagram of another communication system 70 provided in an embodiment of the present application;
[0073] FIG8 is an architecture diagram of another communication system 80 provided in an embodiment of the present application;
[0074] FIG9 is an architecture diagram of another communication system 90 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0075] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0076] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0077] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0078] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application (APP) or an operating system (OS) and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0079] In some embodiments, the electronic device can generate a clothing model based on clothing data and generate a human body model based on the user's body data. The above-mentioned clothing model and human body model can be 2D graphics. When performing virtual fitting, the electronic device can synthesize the clothing model as a texture with the human body model, thereby rendering the fitting effect of the user's virtual image wearing the clothing. However, since the clothing model is a static image, the fitting effect rendered by the electronic device cannot show the deformation caused by the collision between the clothing and the human body. In other words, even if the user's virtual image performs different fitting actions, the fitting effect rendered by the electronic device using the above-mentioned clothing model is the same. The user cannot see the dynamic changes of the clothing when the virtual image performs different fitting actions.
[0080] The present application provides a virtual fitting method. The method can be applied to a communication system including a mobile terminal and a server. The mobile terminal can respond to a user selecting clothing and performing a fitting action to perform a virtual fitting operation, and send the user's three-dimensional (3D) image data, 3D digital clothing data, and action data to the server. The fitting action can be a single action, or it can be an action sequence including multiple actions. The server can use physical simulation technology to calculate the clothing deformation information after the human body and clothing collide under the corresponding fitting action to obtain simulation data of the digital clothing. The server can send the simulation data of the digital clothing to the mobile terminal. The mobile terminal can then perform real-time rendering based on the simulation data to display the fitting effect of the user's 3D image wearing the digital clothing and performing the fitting action. The fitting effect can realistically present clothing information such as the style and fabric of the digital clothing, as well as deformation information such as details such as wrinkles generated by the collision of the digital clothing and the 3D image.
[0081] The digital clothing may refer to clothing obtained by performing clothing modeling on physical clothing.
[0082] Through end-to-end cloud collaboration, this method enables virtual fitting functionality on mobile devices, presenting high-precision, dynamic virtual fitting effects. This allows users to virtually try on clothes while shopping in online apparel marketplaces, viewing the effects of digital clothing being fitted on a 3D avatar that matches their body type. These fitting effects realistically reflect how the garment will look on the user. This helps users understand how clothing will look on them before placing an order, reducing the likelihood of purchasing inappropriate clothing online and lowering the return rate for online apparel retailers.
[0083] The concepts involved in the embodiments of this application are introduced below.
[0084] mesh
[0085] Mesh can refer to the mesh of a 3D model. The above-mentioned 3D model can be, for example, a human body model, a clothing model, etc. Mesh data can include data used to represent the mesh of the 3D model. Mesh data can be used to render its corresponding mesh. Among them, the 3D model can be composed of polygons. A complex polygon can be composed of multiple triangular faces. Therefore, the surface of a 3D model can be composed of multiple triangular faces connected to each other. In three-dimensional space, the set of points that constitute these triangular faces and the edges of the triangles can be a mesh. For example, a human body mesh can include the points of the triangular faces that constitute the surface of the human body model and the edges of the triangles. The human body mesh data can include the coordinates of the points that constitute the surface of the human body model, the connection relationship between multiple points, etc. The clothing mesh can include the points of the triangular faces that constitute the surface of the clothing model and the edges of the triangles. The clothing mesh data can include the coordinates of the points that constitute the surface of the clothing model, the connection relationship between multiple points, etc.
[0086] The points that make up the triangular faces of a 3D model are called vertices. Each vertex can correspond to one or more pieces of information, such as normals, UV texture coordinates, colors, and tangents. This information can be used to render the 3D model.
[0087] A 3D model can be obtained through modeling. Modeling can refer to creating a mesh of the 3D model. A mesh can contain several key attributes (vertex coordinates, normals, texture coordinates, triangle drawing sequence, etc.). The process of creating a mesh can be the process of drawing triangles.
[0088] The following describes the architecture of the communication system involved in this application as well as the hardware and software structures of the equipment.
[0089] FIG1 exemplarily shows an architecture diagram of a communication system 10 provided in an embodiment of the present application.
[0090] As shown in FIG1 , a communication system 10 may include an electronic device 100 and a server 200. A communication connection may be established between the electronic device 100 and the server 200. The electronic device 100 may be a mobile terminal. For example, the electronic device 100 may be a mobile phone, a tablet computer, a smartwatch, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiments of the present application do not limit the specific type of the electronic device 100.
[0091] The electronic device 100 and the server 200 can work together to provide users with a virtual fitting service. The user can select the clothes they want to try on on the electronic device 100 and see a 3D image of their body shape wearing the clothes on the electronic device 100.
[0092] As shown in Figure 1, electronic device 100 may include an e-commerce application 210. E-commerce application 210 may be an app that provides online clothing purchasing functionality. This embodiment of the present application does not limit the name of e-commerce application 210. E-commerce application 210 may include an account management module 211, a product display module 212, an ordering module 213, a payment module 214, a 3D image management module 215, and a virtual fitting module 216.
[0093] The account management module 211 can be used to manage the account information of the accounts logged into the e-commerce application 210. This account information may include, but is not limited to, account name, account password, etc. Based on the account management module 211, the e-commerce application 210 can provide users with functions such as account login, account logout, and account name and password modification.
[0094] The product display module 212 can be used to provide product display functionality. These products may include clothing (e.g., tops, pants, skirts, shoes, etc.). Based on the product display module 212, the e-commerce application 210 can display product information such as images, prices, and specifications. The product information displayed by the e-commerce application 210 may be uploaded by merchants registered in the e-commerce application 210.
[0095] The order purchase module 213 can be used to provide a function of placing an order for a product. Based on the order purchase module 213, a user can place an order to purchase a product in the e-commerce application 210.
[0096] The payment module 214 can be used to provide a payment function. Based on the payment module 214, users can make payments after placing an order in the e-commerce application 210.
[0097] The embodiment of the present application does not limit the implementation method of the above-mentioned e-commerce application 210 providing account management function, product display function, ordering function and payment function.
[0098] The 3D image management module 215 can be used to provide a 3D image creation function. Based on the 3D image management module 215, the e-commerce application 210 can create one or more 3D images. These one or more 3D images may include the 3D image of the user corresponding to the account logged into the e-commerce application 210, and may also include the 3D images of other users. For example, user 1 can log in to his or her account in the e-commerce application 210 and create his or her own 3D image so that he or she can use his or her own 3D image for virtual fitting. User 1 can also create 3D images of other users in the e-commerce application 210, such as a 3D image of user 1's mother. In this way, user 1 can also use his or her mother's 3D image for virtual fitting to buy clothes for his or her mother.
[0099] A 3D avatar can be obtained by modeling a user's body. A user's 3D avatar can realistically reflect the user's body shape. That is, the body dimension information of the user's 3D avatar in key body parts is the same as or similar to the user's actual body dimension information. The similarity of the above body dimension information can mean that the difference between the 3D avatar's body dimension information and the user's actual body dimension information is less than a preset threshold. The above body dimension information can include one or more of the following: height, shoulder width, chest circumference, waist circumference, hip circumference, arm circumference, arm length, neck circumference, abdominal circumference, hip circumference, thigh circumference, calf circumference, leg length, etc. The embodiments of this application do not limit the content of the above body dimension information.
[0100] The method by which the 3D image management module 215 performs human body modeling to create a 3D image will be described in detail in subsequent embodiments and will not be expanded here.
[0101] In some embodiments, the 3D image management module 215 can be a module independent of the e-commerce application 210. For example, the 3D image management module 215 can be a system-level application provided by the electronic device 100. All e-commerce applications in the electronic device 100 can obtain the user's 3D image through the 3D image management module 215 and use this 3D image to provide virtual fitting functions. In this way, the user can create a 3D image only once in the electronic device 100, without having to create 3D images multiple times in different e-commerce applications. This can simplify the user's 3D image creation process and improve the user experience.
[0102] The virtual fitting module 216 can be used to provide a function of displaying virtual fitting effects. The virtual fitting module 216 can include a 3D rendering module 216A, a digital clothing simulation software development kit (SDK) 216B, an action management module 216C, and a scene management module 216D.
[0103] The action management module 216C can be used to manage the actions required for virtual fitting. In some embodiments, the above-mentioned action can be a preset single action or an action sequence. In other embodiments, the above-mentioned action can also be an action sequence collected in real time by motion capture technology. The above-mentioned action sequence is a collection of multiple actions with a sequential order. Based on the action management module 216C, the e-commerce application 210 can provide one or more action options for users to select fitting actions during virtual fitting. In the virtual fitting scene, the 3D image can move according to the fitting action selected by the user, thereby presenting a fitting effect of the 3D image putting on the clothes and performing the fitting action.
[0104] Based on the action management module 216C, the e-commerce application 210 can also provide a function for recording fitting movements. For example, the e-commerce application 210 can use the camera in the electronic device 100 to capture images containing user movements. The e-commerce application 210 can then use the action management module 216C to analyze the user's movements from the images. These user movements can be used as fitting movements for virtual fitting.
[0105] The scene management module 216D can be used to manage the scenes required for virtual fitting. These scenes can represent the background of the 3D character during virtual fitting. For example, the scenes can include a catwalk, a stage, a square, a lawn, a beach, a room, etc. This embodiment of the application does not limit the types of these scenes.
[0106] The digital clothing simulation SDK 216B may be used to interact with the server 200 . The digital clothing simulation SDK 216B may be referred to as a processing module of the electronic device 100 .
[0107] In some embodiments, the digital clothing simulation SDK 216B may upload 3D image data, 3D digital clothing data, and motion data to the server 200 .
[0108] The 3D image data may include human body mesh data. In some embodiments, the 3D image data may also include skeleton data. The human body model constructed using the 3D image data may represent the 3D image corresponding to the 3D image data.
[0109] The 3D digital clothing data may include clothing mesh data and clothing parameter information. The clothing parameter information may include, but is not limited to, stretch coefficient, bending coefficient, friction coefficient, etc. The clothing parameter information can be determined based on the physical material of the clothing fabric. The 3D digital clothing data may be obtained by modeling the clothing.
[0110] The above-mentioned action data may include data corresponding to the fitting action. For example, the action data may be complete skeleton data of the fitting action. Optionally, the action data may also be the action ID corresponding to the fitting action.
[0111] The digital clothing simulation SDK 216B may obtain the motion data from the motion management module 216C and then send the motion data to the server 200 .
[0112] In some embodiments, the digital clothing simulation SDK 216B can obtain clothing simulation data obtained through physical simulation technology from the server 200. The clothing simulation data can be used to represent the shape of the clothing after collision with the human body in the corresponding fitting action.
[0113] In a possible implementation, the server 200 may include a 3D digital garment simulation module 230 . The digital garment simulation SDK 216B may specifically interact with the 3D digital garment simulation module 230 .
[0114] In some embodiments, the digital clothing simulation SDK216B can also be used to provide a coding function to encode and decode the data exchanged between the digital clothing simulation SDK216B and the server 200. For example, the digital clothing simulation SDK216B can encode the data and send the encoded data to the 3D digital clothing simulation module 230. Then, the 3D digital clothing simulation module 230 can decode the received data. The digital clothing simulation SDK216B can encode the data to reduce the amount of uplink data. The digital clothing simulation SDK216B can receive data sent from the 3D digital clothing simulation module 230. The data can be encoded by the 3D digital clothing simulation module 230. The digital clothing simulation SDK216B can decode the received data. The above-mentioned coding and decoding function can reduce the transmission bandwidth between the digital clothing simulation SDK216B and the server 200.
[0115] In some embodiments, the digital clothing simulation SDK 216B can also be used to pre-process the clothing simulation data before rendering. For example, the digital clothing simulation SDK 216B can calculate the normal of the clothing simulation data.
[0116] The 3D rendering module 216A can be used to perform 3D rendering based on the action data, scene data, 3D image data, and clothing simulation data to display a virtual fitting effect. In one possible implementation, the picture rendered by the 3D rendering module 216A can be a picture with a fixed virtual camera perspective, or a picture after the virtual camera perspective is switched according to user control. The above-mentioned rendered picture can also be enlarged or reduced. Optionally, the above-mentioned rendered picture can also perform other interactions based on the user's input. For example, the user's input can be to apply a directional force to the clothing. The 3D rendering module 216A can simulate the effect of wind blowing during 3D rendering based on the user's input, presenting the effect of wind blowing the clothing in a specified direction.
[0117] The digital clothing simulation SDK 216B can send clothing simulation data obtained from the server 200 to the 3D rendering module 216A. The motion management module 216C can send motion data to the 3D rendering module 216A. The scene management module 216D can send scene data to the 3D rendering module 216A.
[0118] In some embodiments, the electronic device 100 may further include a storage module (not shown in FIG1 ). The electronic device 100 may store in the storage module the simulation data of the clothing in the case of the combination of 3D image + clothing + fitting action. The simulation data may be sent by the server 200. In this way, when it is detected that the user selects the same 3D image + clothing + fitting action for virtual fitting again, the e-commerce application 210 can obtain the simulation data of the clothing from the above-mentioned storage module without having to request the server 200 to perform fabric simulation again. The above embodiment can save the computing resources of the server 200 and the bandwidth effect of the electronic device 100.
[0119] In some embodiments, the digital clothing simulation SDK 216B and the e-commerce application 210 may be provided by the same or different providers. The 3D image management module 215, 3D rendering module 216A, action management module 216C, and scene management module 216D may also be provided by the same or different providers.
[0120] The server 200 may include a 3D digital clothing management module 220 and a 3D digital clothing simulation module 230 .
[0121] The 3D digital clothing simulation module 230 can be used to provide high-precision fabric simulation services. The above-mentioned fabric simulation can also be referred to as clothing simulation. Fabric simulation can be a process of calculating the deformation of the clothing mesh by calculating the collision between the human body mesh and the clothing mesh. The 3D digital clothing simulation module 230 can determine the simulation data of the clothing based on the 3D image data, the 3D digital clothing data, and the action data. The simulation data of the clothing can include clothing mesh data. The clothing mesh data in the clothing simulation data can be mesh data after the clothing collides with the human body and is deformed, which can reflect the shape of the clothing after the collision with the human body during the corresponding fitting action.
[0122] The 3D digital clothing management module 220 can be used to manage 3D digital clothing data. The 3D digital clothing management module 220 can store 3D digital clothing data (such as clothing mesh data and clothing parameter information) obtained through clothing modeling.
[0123] In some embodiments, the e-commerce application 210 can communicate with the 3D digital clothing management module 220 to determine whether a garment has been modeled and has corresponding 3D digital garment data. When a garment is determined to have 3D digital garment data, the e-commerce application 210 may provide operating controls for virtual fitting when displaying the garment. This allows the user to virtually try on the garment using these operating controls. When a garment is determined to not have 3D digital garment data, the e-commerce application 210 may not provide operating controls for virtual fitting when displaying the garment. This means the user cannot virtually try on the garment.
[0124] In some embodiments, during the virtual fitting process, the digital clothing simulation SDK 216B in the e-commerce application 210 can send the identification information of the clothing (such as clothing ID, etc.) to the 3D digital clothing simulation module 230. Then, the 3D digital clothing simulation module 230 can obtain the 3D digital clothing data of the clothing from the 3D digital clothing management module 220 according to the identification information of the clothing, thereby performing fabric simulation on the clothing. The data volume of the above-mentioned clothing identification information is much smaller than the data volume of clothing mesh data and clothing parameter information. It can be seen that the above-mentioned method of transmitting clothing identification information during the virtual fitting process can reduce the amount of data transmission between the end cloud and save the transmission bandwidth between the electronic device 100 and the server 200.
[0125] In some embodiments, the 3D digital clothing simulation module 230 can send the simulation data of the clothing obtained through fabric simulation to the 3D digital clothing management module 220. The 3D digital clothing management module 220 can store the simulation data of the clothing in the case of the combination of 3D image + clothing + fitting action. When the same or similar 3D image needs to be subjected to the same fitting action and put on the same clothing for fabric simulation again, the 3D digital clothing simulation module 230 can obtain the simulation data of the clothing from the 3D digital clothing management module 220 without having to perform the specific solution process of fabric simulation again. The above-mentioned similar 3D image can indicate that the difference in the body size information of the 3D image is less than a preset threshold. It can be seen that the above embodiment can reduce the repeated fabric simulation process of the server 200 and save the computing resources of the server 200.
[0126] In some embodiments, the electronic device 100 may include a 3D digital clothing simulation module. In this way, the electronic device 100 can complete the fabric simulation and the rendering of the virtual fitting effect without interacting with the server 200.
[0127] In some embodiments, server 200 may include a 3D rendering module and a scene management module. In this way, server 200 can perform fabric simulation and render virtual fitting effects. Server 200 can send the rendering results to electronic device 100. Electronic device 100 can display the virtual fitting effects based on the received rendering results.
[0128] The electronic device 100 and the server 200 may further include more or fewer modules, which is not limited in the present embodiment.
[0129] Here, the software and hardware structure of the electronic device 100 is introduced.
[0130] FIG. 2A exemplarily shows a schematic diagram of the hardware structure of the electronic device 100 .
[0131] As shown in Figure 2A, 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.
[0132] It should be understood that the structures illustrated in the embodiments of the present application 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 may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0133] 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 processing unit (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). The different processing units may be independent devices or integrated into one or more processors. In some embodiments, the processor 110 may be a system on chip (SOC).
[0134] 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.
[0135] Processor 110 may also include a memory for storing instructions and data. In some examples, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces processor 110 latency, and thus improves system efficiency.
[0136] USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. USB interface 130 can be used to connect a charger to charge electronic device 100, transfer data between electronic device 100 and peripheral devices, or connect headphones to play audio.
[0137] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141.
[0138] 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 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.
[0139] 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.
[0140] 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 antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0141] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for 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), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1.
[0142] 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 that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0143] The electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.
[0144] The display screen 194 is used to display images, videos, 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.
[0145] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0146] The ISP is used to process data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then transmitted to the ISP for processing and converted into an image visible to the naked eye.
[0147] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0148] In some embodiments, the e-commerce application in the electronic device 100 can call the camera 193 to capture an image containing the user's action. Then, the electronic device 100 can use motion capture technology to identify the user's action from the image and determine the user's action as the fitting action in the virtual fitting process.
[0149] In some embodiments, the electronic device 100 may also perform 3D rendering of the virtual fitting effect through a GPU.
[0150] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0151] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0152] In some embodiments, the electronic device 100 can use the NPU to perform human body modeling to obtain a 3D image of the user. For example, the NPU can receive body dimension information of key body parts of the user and generate a 3D image of the user based on the body dimension information. For another example, the NPU can receive one or more images containing a human body and generate a 3D image of the user based on the images. This embodiment of the application does not limit the method of human body modeling performed by the NPU.
[0153] 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 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0154] 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 can 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 can 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.
[0155] In some embodiments, the internal memory 121 may also be used to store one or more of the following data: 3D image data, clothing simulation data, motion data of fitting movements, scene data of fitting scenes, clothing identification information, and the like.
[0156] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0157] 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 examples, the audio module 170 can be set in the processor 110, or some functional modules of the audio module 170 can be set in the processor 110. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. The microphone 170C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals. The headphone jack 170D is used to connect wired headphones.
[0158] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a gravity sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0159] The gyroscope sensor can be used to determine the motion posture of the electronic device 100. In some embodiments, the gyroscope sensor can be used to determine the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes). The electronic device 100 can also use the gyroscope sensor to determine the offset angle of the electronic device 100.
[0160] The accelerometer can detect the magnitude of acceleration in all directions (generally three axes) of the electronic device 100. In some embodiments, the accelerometer can be used to identify the posture of the electronic device 100 and can be applied to applications such as landscape and portrait screen switching and pedometers.
[0161] The gravity sensor can be used to determine the tilt angle of the electronic device 100 relative to the horizontal plane. In some embodiments, the gravity sensor can be used to determine the screen state of the electronic device 100, so as to adjust the screen to keep it horizontal.
[0162] In some embodiments, the electronic device 100 may determine the movement distance of the electronic device 100 within a period of time through an acceleration sensor and a gravity sensor.
[0163] Buttons 190 include a power button, a volume button, etc. Motor 191 can generate vibration prompts. Indicator 192 can be an indicator light that can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0164] The SIM card interface 195 is used to connect a SIM card. A SIM card can be connected to and disconnected from the electronic device 100 by inserting or removing it from the SIM card interface 195. The electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some examples, the electronic device 100 uses an eSIM, or embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0165] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Taking the system as an example, the software structure of the electronic device 100 is exemplarily described.
[0166] FIG2B is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0167] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, The system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime (Android Runtime) and system library, and kernel layer.
[0168] The application layer can include a series of application packages.
[0169] As shown in FIG2B , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, short message, e-commerce application, etc. Among them, the e-commerce application may provide functions such as online clothing purchase.
[0170] The application framework layer provides APIs and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
[0171] As shown in FIG2B , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, an activity manager, and the like.
[0172] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0173] 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.
[0174] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0175] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0176] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0177] The Notification Manager allows applications to display notification information in the status bar (such as the pull-down notification 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 the completion of downloads, message reminders, etc. The Notification Manager can also be used to display notifications in the form of icons or scrolling text in the status bar at the top of the system, such as notifications from applications running in the background, or notifications that appear on the screen in the form of dialog windows. For example, text messages can be displayed in the status bar, prompts can be sounded, electronic devices can vibrate, indicator lights can flash, etc.
[0178] The Activity Manager is responsible for managing activities, starting, switching, and scheduling components in the system, as well as managing and scheduling applications. The Activity Manager can be called by upper-level applications to open corresponding activities.
[0179] Android Runtime includes core libraries and a virtual machine. Android Runtime is responsible for scheduling and management of the Android system.
[0180] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0181] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0182] The system library can 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.
[0183] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0184] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0185] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing. Specifically, the electronic device 100 can implement 3D rendering of virtual fitting based on the 3D graphics processing library, presenting a fitting effect of a user's 3D avatar wearing clothing and performing fitting actions on the display screen.
[0186] A 2D graphics engine is a drawing engine for 2D drawings.
[0187] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0188] FIG3 exemplarily shows a structural diagram of a server 200 provided in an embodiment of the present application.
[0189] As shown in Figure 3, server 200 may include: one or more processors 310, memory 311, communication interface 312, transmitter 314, receiver 315, coupler 316, and antenna 317. These components may be connected via bus 313 or other means. Figure 3 uses bus connection as an example for illustration.
[0190] The communication interface 312 can be used for the server 200 to communicate with other electronic devices, such as the electronic device 100 shown in FIG1 . Specifically, the communication interface 312 can be a 3G communication interface, a long-term evolution (LTE) (4G) communication interface, a 5G communication interface, a WLAN communication interface, a WAN communication interface, etc. The server 200 is not limited to a wireless communication interface. The server 200 can also be configured with a wired communication interface 312 to support wired communication.
[0191] In some embodiments of the present application, the transmitter 314 and the receiver 315 can be regarded as a wireless modem. The transmitter 314 can be used to transmit and process the signal output by the processor 310. The receiver 315 can be used to receive the signal. In the server 200, the number of transmitters 314 and receivers 315 can be one or more. The antenna 317 can be used to convert electromagnetic energy in the transmission line into electromagnetic waves in free space, or to convert electromagnetic waves in free space into electromagnetic energy in the transmission line. The coupler 316 can be used to divide the mobile communication signal into multiple paths and distribute them to multiple receivers 315. It is understandable that the antenna 317 of the server 200 can be implemented as a large-scale antenna array.
[0192] Memory 311 is coupled to processor 310 and is used to store various software programs and / or multiple sets of instructions. Specifically, memory 311 may include high-speed random access memory and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
[0193] The memory 311 can store an operating system (hereinafter referred to as system), for example The memory 311 may also store a network communication program, which can be used to communicate with one or more electronic devices (such as the electronic device 100).
[0194] In an embodiment of the present application, the memory 311 can be used to store clothing data, clothing simulation data, and fitting action data. The clothing data can include one or more of the following: clothing identification information (such as clothing ID, etc.), 3D digital clothing data. The 3D digital clothing data can include clothing mesh data and clothing parameter information. The action data can include one or more of the following: action identification information (such as action ID, etc.), action skeletal data.
[0195] Optionally, the memory 311 may also be used to store master model data of a human body master model consistent with the electronic device 100 side, so that the server 200 can generate 3D image data of the user consistent with the electronic device 100 side based on the master model data.
[0196] In embodiments of the present application, processor 310 may be configured to read and execute computer-readable instructions. Specifically, processor 310 may be configured to invoke a program stored in memory 311 and execute the instructions contained in the program. This program may, for example, be a program implementing the cloth simulation provided in one or more embodiments of the present application.
[0197] It should be noted that the server 200 shown in FIG3 is only one implementation of the embodiment of the present application. In actual applications, the server 200 may also include more or fewer components, which is not limited here.
[0198] Based on the communication system 10 shown in FIG1 , some virtual fitting scenarios provided by embodiments of the present application are introduced below.
[0199] 4A to 4E exemplarily show some schematic diagrams of scenarios for creating 3D images.
[0200] As shown in FIG4A , electronic device 100 may display user interface 410. User interface 410 may include application icons, such as e-commerce application icon 411. In response to an operation on e-commerce application icon 411, electronic device 100 may run the e-commerce application and display user interface 420 shown in FIG4B .
[0201] As shown in Figure 4B, user interface 420 may be a product display interface in an e-commerce application. User interface 420 may include product options such as product option 421, product option 422, product option 423, and product option 424. The product options may display product information (such as product images, text descriptions, prices, etc.) for the corresponding products. For example, product option 421 may be a product option corresponding to pants. Product option 421 may include an image of the pants, text descriptions of the pants, and the price of the pants. Product option 421 also includes a virtual fitting control 421A. Virtual fitting control 421A can be used to virtually try on the clothing corresponding to product option 421.
[0202] Product option 422 may be a product option corresponding to a shirt. Product option 422 may include a virtual fitting control 422A. Virtual fitting control 422A may be used to virtually try on the clothing corresponding to product option 422.
[0203] Product option 423 may be a product option corresponding to a skirt and may also include a virtual fitting control.
[0204] Product option 424 may be a product option corresponding to a short-sleeved shirt. Product option 424 does not include a virtual fitting control. This means that the clothing corresponding to product option 424 is not available for virtual fitting.
[0205] In one possible implementation, the e-commerce application on electronic device 100 can determine whether to provide the aforementioned virtual fitting control in the corresponding product options based on whether a garment can be virtually tried on. The e-commerce application can determine whether a garment can be virtually tried on based on whether the garment's 3D digital garment data is stored in server 200. If the garment's 3D digital garment data is stored in server 200, the garment can be virtually tried on. Otherwise, the garment cannot be virtually tried on.
[0206] The user interface 420 may further include a my control 425. In response to an operation on the my control 425, the electronic device 100 may display a user interface 430 shown in FIG4C.
[0207] As shown in FIG4C , the user interface 430 may include a user information display area 431 , a 3D image control 432 , and other controls.
[0208] The user information display area 431 may be used to display the account information of the account logged in to the e-commerce application, such as the account avatar, account name, etc.
[0209] The 3D image control 432 may be used to trigger the electronic device 100 to open a 3D image management interface. In response to an operation on the 3D image control 432, the electronic device 100 may display a user interface 440 as shown in FIG4D.
[0210] As shown in FIG4D , the user interface 440 may include a new creation control 441 and an existing 3D image area 442 .
[0211] The new control 441 can be used to create a new 3D image.
[0212] Existing 3D avatar area 442 displays options corresponding to 3D avatars that a user (e.g., User 1) has already created in the e-commerce application. For example, 3D avatar option 442A and 3D avatar option 442B are shown. 3D avatar option 442A may correspond to User 1's own 3D avatar, while 3D avatar option 442B may correspond to User 1's mother's 3D avatar.
[0213] In response to the operation of the new control 441 shown in FIG. 4D , the electronic device 100 may display the user interface 450 shown in FIG. 4E .
[0214] As shown in FIG. 4E , the user interface 450 may include an information input area 451 , a confirmation control 452 , and a cancel control 453 .
[0215] Information input area 451 can be used to enter information used to create a 3D avatar. This information used to create a 3D avatar can include one or more body measurement information, such as height, weight, shoulder width, chest circumference, waist circumference, hip circumference, arm circumference, arm length, etc. This embodiment of the application does not limit the information used to create a 3D avatar.
[0216] The confirmation control 452 may be used to trigger the electronic device 100 to create a 3D image according to the information input in the information input area 451 .
[0217] The cancel control 453 may be used to cancel the creation of the 3D figure.
[0218] The electronic device 100 is not limited to using one or more pieces of body size information shown in FIG4E to create a 3D image. The electronic device 100 may also use other methods to perform human body modeling to create a 3D image. For example, the electronic device 100 may also use one or more images containing a human body to create a 3D image. In response to an operation on the new control 441 shown in FIG4D , the electronic device 100 may provide an image upload entry to prompt the user to upload one or more images containing a human body. The electronic device 100 may then perform human body modeling based on the one or more images containing a human body uploaded by the user to create a 3D image.
[0219] The electronic device 100 creates a 3D avatar and can determine and save 3D avatar data. The 3D avatar data can include human body mesh data and skeleton data. The 3D avatar data can be used for virtual fitting, allowing the user to view the effect of the 3D avatar wearing clothing.
[0220] In addition to being provided by the e-commerce application, the aforementioned entry for creating a 3D image can also be provided by a system-level application in the electronic device 100. In other words, in addition to being able to create 3D images in various e-commerce applications, users can also create 3D images in a system-level application that provides a 3D image creation entry. The system-level application can provide an interface for obtaining 3D images. Each e-commerce application in the electronic device 100 can obtain a 3D image from the system-level application through the interface for obtaining 3D images.
[0221] As can be seen from the scenarios shown in Figures 4A to 4E above, electronic device 100 can provide a 3D avatar creation function, allowing users to create a 3D avatar that matches their own or other users' body shapes. Thus, during the virtual fitting process, users can view the effect of the 3D avatar wearing the clothing. This fitting effect can realistically reflect the effect of the clothing on the user corresponding to the 3D avatar, helping users more accurately understand whether the clothing is suitable for themselves or other users.
[0222] 5A to 5H exemplarily show some schematic diagrams of virtual fitting scenes.
[0223] As shown in FIG5A , the electronic device 100 may display a user interface 420. The user interface 420 may include product options 422. The product options 422 may include a virtual fitting control 422A. For other controls in the user interface 420, reference may be made to the description of the previous embodiment.
[0224] In response to the operation on the product option 422 shown in Figure 5A, the electronic device 100 may display the user interface 510 shown in Figure 5B. The user interface 510 may be a display interface of the clothing corresponding to the product option 422.
[0225] As shown in FIG5B , the user interface 510 may include a picture display area 511 , a virtual fitting control 512 , a shopping cart control 513 , a purchase control 514 , and the like.
[0226] The picture display area 511 may be used to display pictures of clothing.
[0227] The virtual fitting control 512 may be used to virtually try on the clothing displayed on the user interface 510 (ie, the clothing corresponding to the product option 422 shown in FIG. 5A ).
[0228] The shopping cart control 513 can be used to add the clothing displayed in the user interface 510 to the shopping cart.
[0229] Purchase control 514 may be used to purchase clothing displayed in user interface 510 .
[0230] In some embodiments, electronic device 100 stores multiple 3D avatars. For example, the 3D avatar options 442A and 442B shown in FIG. 4D correspond to these 3D avatar options. In response to an operation on virtual fitting control 512 shown in FIG. 5B or virtual fitting control 422A shown in FIG. 5A , electronic device 100 may display user interface 520 shown in FIG. 5C . User interface 520 may include options corresponding to multiple 3D avatars in electronic device 100, allowing the user to select a 3D avatar for virtual fitting. For example, user interface 520 may include 3D avatar option 521 and 3D avatar option 522. 3D avatar option 521 may correspond to the user's own 3D avatar. 3D avatar option 522 may correspond to the user's mother's 3D avatar. It is understood that if a user wants to buy clothes for themselves, they can select their own 3D avatar for virtual fitting. If a user wants to buy clothes for their mother, they can select their mother's 3D avatar for virtual fitting.
[0231] User interface 520 may further include an OK control 523 and a cancel control 524. OK control 523 may be used to trigger electronic device 100 to perform virtual fitting based on the 3D image corresponding to the selected 3D image option in user interface 520. Cancel control 524 may be used to cancel the virtual fitting.
[0232] In some embodiments, only one 3D avatar is stored in the electronic device 100. In response to an operation on the virtual fitting control 512 shown in FIG. 5B or the virtual fitting control 422A shown in FIG. 5A , the electronic device 100 can directly use the 3D avatar stored in the electronic device 100 for virtual fitting, without displaying the user interface shown in FIG. 5C for the user to select a 3D avatar.
[0233] In some embodiments, the electronic device 100 does not have a 3D avatar stored. That is, the user has not yet created a 3D avatar. In response to the operation of the virtual fitting control 512 shown in Figure 5B or the virtual fitting control 422A shown in Figure 5A, the electronic device 100 may prompt the user to create a 3D avatar. For example, the electronic device 100 may display the user interface 450 shown in Figure 4E to instruct the user to create a 3D avatar. After the user creates the 3D avatar, the electronic device 100 may use the user-created 3D avatar for virtual fitting.
[0234] For example, when the 3D image option 521 shown in FIG. 5C is in a selected state, in response to an operation on the confirmation control 523 , the electronic device 100 may display the user interface 530 shown in FIG. 5D .
[0235] As shown in FIG. 5D , the user interface 530 may include a fitting effect display area 531 , a pause control 532 , a play progress bar 533 , a recommended clothing option area 534 , an action option area 535 , and a scene option area 536 .
[0236] The fitting effect display area 531 can be used to display a fitting scene and a fitting effect of a 3D character wearing clothing and performing fitting movements. The fitting effect can be generated by 3D rendering by the electronic device 100 based on the 3D character data, movement data, and clothing simulation data. The clothing simulation data can be obtained by the electronic device 100 from the server 200.
[0237] The pause control 532 can be used to pause playing the fitting effect.
[0238] The play progress bar 533 may be used to indicate the current play progress of the fitting effect.
[0239] It should be noted that in some embodiments, the fitting effect can be presented in the form of a video. The fitting action can be a sequence of multiple actions in a sequential order. During the video presentation of the fitting effect, the 3D character can put on the garment being tried on and perform the actions in the sequence one by one.
[0240] In this way, the user can view the dynamic virtual fitting effect. In addition, the user can control the electronic device 100 to pause the playing of the fitting effect through the pause control 532. The user can also view and adjust the playing progress of the fitting effect through the play progress bar 533.
[0241] In other embodiments, the fitting effect displayed in the fitting effect display area 531 may also be static. For example, the fitting action may be a single action. The electronic device 100 may display a 3D rendered image in the fitting effect display area 531 of a 3D character wearing the garment being tried on and performing a single fitting action.
[0242] The recommended clothing option area 534 may include one or more clothing options. The electronic device 100 may match the clothing corresponding to the clothing option selected in the recommended clothing option area 534 with the clothing displayed in the user interface 510 shown in FIG5B to perform virtual fitting. For example, the recommended clothing option area 534 may include a shirt option, a skirt option, and a clothing 1 option. The clothing corresponding to the shirt option may be the shirt displayed in the user interface 510 shown in FIG5B . Among them, the shirt option and the skirt option are in a selected state. The electronic device 100 may match the shirt corresponding to the shirt option and the skirt corresponding to the skirt option to perform virtual fitting. It can be seen that in the fitting effect display area 531 shown in FIG5D , the 3D image wears the shirt and skirt selected by the user for virtual fitting, showing the upper body effect of the shirt and skirt to the user.
[0243] In some embodiments, when multiple pieces of clothing are matched for virtual fitting, the electronic device 100 can determine the hierarchical information of the multiple pieces of clothing. The hierarchical information can represent the stacking levels of the multiple pieces of clothing on the 3D image. For example, a shirt can be stacked on top of a skirt, partially covering the skirt. Or, a skirt can be stacked on top of a shirt, partially covering the shirt. The stacking levels of the multiple pieces of clothing can be specified by the user. The electronic device 100 can provide a stacking level designation control in the user interface 530, so that the user can specify the stacking level of multiple pieces of clothing through the stacking level designation control. The embodiment of the present application does not limit the above-mentioned user operation for specifying the stacking level.
[0244] Optionally, in the case of virtual fitting of multiple garments, the electronic device 100 can also determine the position information, fitting status and other wearing information of one or more garments among the multiple garments when trying on. For example, when the garments to be tried on include a skirt, the electronic device 100 can determine the height of the skirt worn on the 3D image (such as worn at the high waist position, or at the mid-waist position, or at the low waist position, etc.). For another example, when the garments to be tried on include a coat, the electronic device 100 can determine the fitting status of the coat (such as whether the buttons of the coat are buttoned or the buttons of the coat are not buttoned). The embodiment of the present application does not limit the specific content of the above-mentioned wearing information. Among them, the above-mentioned wearing information such as the position information and fitting status can be specified by the user. The embodiment of the present application does not limit the above-mentioned user operation for specifying wearing information.
[0245] It is understandable that the user is not limited to selecting the above-mentioned skirt option in the recommended clothing option area 534. The user can also select more clothing options in the recommended clothing option area 534 to match with the shirt displayed in the user interface 510 for virtual try-on.
[0246] That is to say, users can choose a single piece of clothing to try on virtually, or they can choose multiple pieces of clothing to match and see the effects of trying on multiple pieces of clothing together.
[0247] Optionally, the electronic device 100 may also replace the clothing displayed in the user interface 510 shown in FIG. 5B according to the clothing corresponding to the clothing option selected in the recommended clothing option area 534 to perform virtual fitting. For example, in a case where the clothing corresponding to the clothing option selected in the recommended clothing option area 534 includes a top, this top may replace the shirt displayed in the user interface 510. The fitting effect display area 531 may display the fitting effect of the 3D image wearing the top of the replacement shirt. In some embodiments, the electronic device 100 may provide a replacement control in the user interface 530. The above-mentioned replacement control may be used to replace the clothing that the current 3D image is trying on with one or more pieces of clothing in the virtual fitting scene. The embodiment of the present application does not limit the display style of the above-mentioned replacement control.
[0248] That is, during the virtual try-on process, the user can select one or more pieces of clothing to replace the clothing that the 3D avatar has already tried on. For example, the user can adjust the size or color of the clothing worn by the 3D avatar, or change the clothing worn by the 3D avatar to a different style.
[0249] In some embodiments, the electronic device 100 may determine recommended clothing based on the clothing initially selected by the user for trying on (e.g., the shirt displayed in the user interface 510 shown in FIG. 5B ), and display clothing options corresponding to the recommended clothing in the recommended clothing options area 534. For example, the recommended clothing may include clothing that can be matched with the clothing initially selected by the user for trying on. This embodiment of the application does not limit the manner in which the electronic device 100 determines the recommended clothing.
[0250] Action options area 535 may include one or more action options, allowing the user to select the desired fitting action. For example, action options area 535 may include an action 1 option, an action 2 option, and an action 3 option. The fitting action corresponding to an action option can be a single action or an action sequence consisting of multiple actions in a sequential order. The fitting actions may be preset. Optionally, the fitting actions may be captured in real time using motion capture technology.
[0251] In one possible implementation, the electronic device 100 can provide a function for recording fitting movements, allowing the user to record fitting movements. The electronic device 100 uses a camera to capture user movements using motion capture technology. The electronic device 100 can store the captured user movement data and provide corresponding movement options in the movement options area 535. The user can then select the movement option corresponding to the recorded fitting movement in the movement options area 535 to view the fitting effect presented by the 3D avatar wearing the garment being tried on and performing the recorded fitting movement.
[0252] In other words, users can record the fitting movements they need or like, and choose to use their recorded fitting movements during virtual fitting.
[0253] In another possible implementation, the electronic device 100 may provide a real-time matching function for fitting actions. This real-time matching function for fitting actions may be used to match the actions of the 3D image with the user's actions in real time during virtual fitting. That is, the 3D image may put on the clothing being tried on and imitate the user's actions in real time. For example, if the user walks forward, the 3D image may also walk forward. If the user turns in circles, the 3D image may also turn in circles. If the user raises his arm, the 3D image may also raise his arm. During the virtual fitting process, the electronic device 100 may keep the camera turned on, collect the user's actions in real time through motion capture technology, and determine the user's actions as fitting actions. The electronic device 100 may 3D render the fitting effect of the 3D image putting on the clothing and performing the user's actions in real time.
[0254] That is to say, during the virtual fitting process, users can make various movements to view the fitting effect of the 3D image wearing the clothes and performing corresponding movements.
[0255] The scene selection area 536 may include one or more scene options that can be used by the user to select a virtual fitting scene. For example, the scene selection area 536 may include a scene 1 option, a scene 2 option, and a scene 3 option. The embodiments of the present application are not limited to the above-mentioned scenes.
[0256] Here, the dynamic fitting effect displayed in the fitting effect display area 531 is taken as an example for explanation.
[0257] Comparing Figures 5D and 5E , it can be seen that the fitting action performed by the 3D character in the fitting effect display area 531 shown in Figure 5E is different from the fitting action performed by the 3D character in the fitting effect display area 531 shown in Figure 5D . The playback progress bar 533 shown in Figure 5E is longer than the playback progress bar 533 shown in Figure 5D . That is, the playback progress of the fitting effect shown in Figure 5E is greater than the playback progress of the fitting effect shown in Figure 5D . It can be seen that, depending on the fitting action, the 3D character and the garment will produce different collisions, resulting in different deformations of the garment. The electronic device 100 can perform 3D rendering based on the simulated data of the garment under different fitting actions, presenting the fitting effects of the 3D character wearing the garment and performing different fitting actions. The user can view the deformation of the garment as the 3D character performs different fitting actions. For example, the fitting actions that the 3D character needs to perform may include a first action and a second action. The electronic device 100 can perform 3D rendering based on the simulation data of a garment under a first action to obtain a first fitting effect, and can also perform 3D rendering based on the simulation data of the same garment under a second action to obtain a second fitting effect. The first fitting effect and the second fitting effect can be used to represent the effects of the same 3D character wearing the same garment and performing the first and second actions, respectively. Because the first and second actions are different, the deformation of the garment caused by the collision between the 3D character and the garment under different actions is also different. Therefore, the first fitting effect and the second fitting effect are different.
[0258] Comparing Figure 5F and Figure 5E , it can be seen that the fitting action performed by the 3D image in the fitting effect display area 531 shown in Figure 5F is different from the fitting action performed by the 3D image in the fitting effect display area 531 shown in Figure 5E . The playback progress bar 533 shown in Figure 5F is longer than the playback progress bar 533 shown in Figure 5E . That is, the playback progress of the fitting effect shown in Figure 5F is greater than the playback progress of the fitting effect shown in Figure 5E . Similarly, the electronic device 100 can present the fitting effect of the 3D image wearing the clothing and performing different fitting actions. The user can view the deformation of the clothing when the 3D image performs different fitting actions.
[0259] Comparing Figures 5G and 5F , it can be seen that the fitting actions performed by the 3D image in the fitting effect display area 531 shown in Figure 5G are different from the fitting actions performed by the 3D image in the fitting effect display area 531 shown in Figure 5F . The playback progress bar 533 shown in Figure 5G is longer than the playback progress bar 533 shown in Figure 5F . That is, the playback progress of the fitting effect shown in Figure 5G is greater than the playback progress of the fitting effect shown in Figure 5F . Similarly, the electronic device 100 can present the fitting effects of the 3D image wearing clothes and performing different fitting actions. The user can view the deformation of the clothes when the 3D image performs different fitting actions.
[0260] It can be understood that the contents displayed in the fitting effect display area 531 shown in FIG. 5D to FIG. 5G may be partial fitting effect diagrams of a 3D character wearing clothes and performing continuous fitting actions in the same scene.
[0261] 5G , scene option area 536 may include scene 2 option 536A. In response to an operation on scene 2 option 536A, electronic device 100 may switch the virtual fitting scene from the scene corresponding to scene 1 option to the scene corresponding to scene 2 option 536A.
[0262] As shown in FIG5H , electronic device 100 may display a fitting effect of a 3D character wearing clothing and performing fitting actions in the scene corresponding to scene 2 option 536A in fitting effect display area 531. The selected scene option in scene option area 536 changes from scene 1 option shown in FIG5G to scene 2 option 536A shown in FIG5H .
[0263] It can be seen that the scenes presented in the fitting effect display area 531 shown in FIG. 5D to FIG. 5G are different from the scenes presented in the fitting effect display area 531 shown in FIG. 5H .
[0264] It is understandable that, since the 3D image, the clothing being tried on, and the fitting action have not changed, the 3D image and the clothing being tried on presented in fitting effect display area 531 shown in FIG5H can be consistent with the 3D image and the clothing being tried on presented in fitting effect display area 531 shown in FIG5D to FIG5G , respectively. In the case of switching only the scene, the electronic device 100 can replay the fitting effect of the same 3D image wearing the same clothing and performing the same fitting action in a new scene (such as the scene corresponding to scene 2 option 536A).
[0265] In some embodiments, the electronic device 100 may store preset human models. Users can perform virtual fittings directly using the human models already stored in the electronic device 100 without creating a 3D avatar. For example, the electronic device 100 may provide a male human model and a female human model. The user can select a male human model or a female human model to try on one or more garments. Based on the garments and human model selected by the user, the electronic device 100 can render the fitting effect of the selected human model wearing the selected garments. Optionally, the user can also select fitting actions and / or fitting scenes to view the fitting effect of the preset male or female human model wearing the selected garments and performing the specified fitting actions in the specified fitting scene. The server 200 may store human models that are consistent with those on the electronic device 100. The electronic device 100 can send identification information (e.g., human model ID) of the human model selected by the user to the server 200, and send identification information (e.g., garment ID) of the garment selected by the user to the server 200. The server 200 can perform fabric simulation based on the identification information of the human body model and the identification information of the garment to obtain simulation data of the garment. The server 200 can send the simulation data of the garment to the electronic device 100. The electronic device 100 can then render a fitting effect based on the received simulation data. Optionally, the electronic device 100 can also send 3D image data of the human body model selected by the user to the server 200. The above-mentioned method of virtually trying on garments using a preset human body model can help users refer to the effect of the garment on the upper body, so that users can judge whether the garment is suitable for them.
[0266] As can be seen from the scenes shown in Figures 5A to 5H above, users can use their own or other people's 3D images to perform virtual fittings. During the virtual fitting process, users can adjust the virtual clothing being tried on, the fitting actions performed by the 3D image, and the fitting scene. The electronic device 100 can render the fitting effect of the 3D image wearing the clothing and performing the fitting actions in the fitting scene according to the clothing, fitting actions, and fitting scene selected by the user, helping the user to accurately judge whether the clothing is suitable for the user corresponding to the 3D image. This can effectively reduce the situation where users buy inappropriate clothing online and reduce the return rate of clothing e-commerce.
[0267] FIG6 exemplarily shows a flow chart of a virtual fitting method provided in an embodiment of the present application.
[0268] As shown in FIG6 , the method can be applied to a communication system including an electronic device 100 and a server 200. Referring to FIG1 , the electronic device 100 can include a product display module 212, a 3D image management module 215, a 3D rendering module 216A, a digital clothing simulation SDK 216B, an action management module 216C, and a scene management module 216D. The server 200 can include a 3D digital clothing management module 220 and a 3D digital clothing simulation module 230. The virtual fitting method may include steps S611 to S622.
[0269] 1. (S611-S615) Determine the clothing to be tried on, the fitting action and the fitting scene.
[0270] S611 : The product display module 212 may send a virtual fitting request to the 3D rendering module 216A.
[0271] In some embodiments, the product display module 212 may detect a user operation to virtually try on one or more garments. This user operation can refer to the operation of the virtual fitting control 512 shown in FIG. 5B . The product display module 212 may then send a virtual fitting request to the 3D rendering module 216A. This virtual fitting request may include a description of the garment. This description of the garment can be used by the 3D rendering module 216A to determine the garment or garments to be tried on.
[0272] The virtual fitting request is not limited to the product display module 212; other modules may also be used to send the virtual fitting request. For example, the electronic device 100 may include a virtual fitting detection module. This virtual fitting detection module can be used to detect the clothing selected by the user for virtual fitting. The virtual fitting detection module can then send the virtual fitting request. The module that sends the virtual fitting request can be configured by the e-commerce application as needed.
[0273] Not limited to the 3D rendering module 216A, the virtual fitting request may also be received by other modules.
[0274] This application takes the example of the product display module 212 sending a virtual fitting request to the 3D rendering module 216A for explanation.
[0275] In some embodiments, in addition to the description information of the clothing, the above-mentioned virtual fitting request may also include description information of the target user. The above-mentioned target user may be a user who needs to virtually try on clothing. For example, as shown in Figure 5C, the user can select a 3D image of the clothing to be virtually tried on. The product display module 212 can determine the target user based on the 3D image option in the selected state in the user interface 520. Among them, the 3D image corresponding to the 3D image option in the selected state in the user interface 520 is the 3D image of the target user. The target information of the above-mentioned target user can be used by the 3D rendering module 216 to determine the target user for virtual fitting.
[0276] S612 , the 3D rendering module 216A may obtain human body data from the 3D image management module 215 .
[0277] According to the target information of the target user in the virtual fitting request, the 3D rendering module 216 can obtain the body data of the target user.
[0278] In one possible implementation, the human body data may be the 3D image data of the target user. The 3D image data may include human body mesh data and skeletal data. The body size information of the human body mesh data may be the same as or similar to the real body size information of the target user. For example, the height, weight, shoulder width, chest circumference, waist circumference, hip circumference, and arm length of the human body model constructed by the human body mesh data may be the same as or similar to the real height, weight, shoulder width, chest circumference, waist circumference, hip circumference, and arm length of the target user, respectively. The human body may be composed of multiple bones such as the trunk, limbs, and head. The skeletal data may be used to represent the topological structure of the target user's skeleton and may describe one or more actions of the target user's entire body. The skeletal data of the target user may be used to correspond to the fitting action to determine the human body mesh data of the target user's 3D image under the fitting action.
[0279] In some embodiments, the 3D avatar data may also include facial mesh information. This facial mesh information can be used to create a more realistic and natural expression in the 3D avatar during virtual fitting. This facial mesh information can be obtained by modeling the target user's face.
[0280] In some embodiments, the 3D avatar data may also include hair mesh information. This hair mesh information can be used to represent the effect of the target user's hair during a virtual fitting process. This allows the user to understand whether the clothing will match their hairstyle. The hair mesh information can be obtained by modeling the target user's hair.
[0281] In some embodiments, the 3D avatar data may also include shoe mesh information. This shoe mesh information can be used to represent the virtual fitting effect of the 3D avatar wearing different shoes. This allows the user to understand whether the clothing will match their shoes. The shoe mesh information can be modeled from the target user's shoes.
[0282] The 3D image data may also include more or less content, such as mesh information of earrings, mesh information of necklaces, mesh information of handbags, mesh information of sunglasses, etc. This embodiment of the present application does not limit this.
[0283] In another possible implementation, the human body data may be a base model weight information based on a set of human body base models. The human body base model may be a preset human body model, which may correspond to base model data. The base model data may include base model mesh data and base model skeleton data. Among them, the server 200 may store base model data consistent with the electronic device 100 side. In this way, the server 200 can generate the human body mesh data of the target user consistent with the electronic device 100 side based on the base model mesh data and the base model weight information of the target user, and generate the skeleton data of the target user consistent with the electronic device 100 side based on the base model skeleton data and the base model weight information of the target user.
[0284] The above-mentioned human body data is not limited to the above-mentioned basic model weight information. Other parameters that can be used to generate the target user's human body mesh data can also be included. For example, parameters of a skinned multi-person linear model (SMPL) are included. SMPL is a parametric human body model that uses a set of parameters (such as body shape parameters and posture parameters) to represent the human body mesh information.
[0285] The amount of data for the aforementioned model weight information or other parameters that can be used to generate the target user's body mesh data is typically smaller than the amount of data for the aforementioned 3D image data. Therefore, by obtaining the target user's model weight information or other parameters that can be used to generate the target user's body mesh data, the 3D rendering module 216A can reduce the amount of data transmitted in subsequent steps S616 and S617, conserving transmission bandwidth between the electronic device 100 and the server 200, and improving the efficiency of virtual fitting.
[0286] The parameters used to generate the target user's human body mesh data can be referred to as human body parameters. As can be seen from the above embodiments, human body parameters can be, for example, basic model weight information, or SMPL parameters, or body size information (such as one or more of height, shoulder width, chest circumference, waist circumference, hip circumference, arm circumference, arm length, neck circumference, abdominal circumference, hip circumference, thigh circumference, calf circumference, leg length, etc.). The embodiments of this application do not limit the specific content of the above human body parameters.
[0287] In some embodiments, the 3D image data of the target user may be obtained through human body modeling and stored in the 3D image management module 215. The 3D image management module 215 may obtain the user's body size information and generate 3D image data such as the user's body mesh data and skeletal data based on the body size information. Alternatively, the 3D image management module 215 may generate the user's 3D image data through traditional manual modeling or scanning modeling. For example, the 3D image management module 215 may obtain one or more images containing the user's body. The 3D image management module 215 may use image recognition methods (such as human body key point recognition, etc.) to process the one or more images to generate 3D image data such as the user's body mesh data and skeletal data. The above-mentioned method of generating 3D image data through human body modeling is merely an exemplary description of the present application. The 3D image management module 215 may also use other methods to construct a human body model.
[0288] Optionally, the 3D image management module 215 may use the 3D image data and base model data obtained through human body modeling to generate the base model weight information.
[0289] S613 : The 3D rendering module 216A may obtain clothing data from the 3D digital clothing management module 220 .
[0290] According to the description information of the garment in the virtual fitting request, the 3D rendering module 216A may obtain the garment data of the garment.
[0291] In a possible implementation, the clothing data acquired by the 3D rendering module 216A may include 3D digital clothing data of the clothing being tried on. The 3D digital clothing data may include clothing mesh data and clothing parameter information.
[0292] Garment mesh data can include multiple items of garment sub-mesh data. For example, garment sub-mesh data can include material mesh data, part mesh data, and so on. Material mesh data can be used to indicate the material of the garment (e.g., silk, cotton, linen, leather, etc.). Part mesh data can be used to indicate the mesh data of a specific part of the garment (e.g., sleeves, collar, etc.). Alternatively, garment sub-mesh data can include mesh data for a combination of the material and part of the garment.
[0293] Garment parameter information may include one or more of the following: stretch coefficient, bending coefficient, friction coefficient, etc. Garment parameter information can be determined based on the physical material of the garment's fabric. In some embodiments, garment parameter information may also include connection information between different garment sub-mesh data, such as bending direction information at the connection between different garment parts.
[0294] In another possible implementation, the clothing data acquired by the 3D rendering module 216A may be identification information of the garment being tried on, such as a garment ID. This clothing identification information can be used by the server 200 to determine the 3D digital clothing data corresponding to the garment ID. The data volume of this clothing identification information is much smaller than the data volume of the 3D digital clothing data. Therefore, transmitting clothing identification information between the electronic device 100 and the server 200 can reduce the amount of data transmitted, conserving transmission bandwidth between the electronic device 100 and the server 200.
[0295] The same garment in different sizes (e.g., S, M, L, etc.) can have different garment IDs, or can be distinguished by a combination of garment ID and size code. This allows for a more realistic simulation of the effect of trying on garments of different sizes on the same 3D avatar, making it easier for users to select the appropriate size.
[0296] The 3D digital garment data of the same garment with different sizes may also be different.
[0297] In some embodiments, the clothing being tried on can be a single piece of clothing or a combination of multiple pieces of clothing. In the case of virtually trying on multiple pieces of clothing, the 3D rendering module 216A can also obtain the hierarchical information of these multiple pieces of clothing. The hierarchical information of the above-mentioned multiple pieces of clothing can represent the stacking levels of these multiple pieces of clothing on the 3D image. That is, the above-mentioned clothing data can also include the hierarchical information of the clothing. For example, in the scene of virtually trying on a shirt and a skirt as shown in Figure 5D, the hierarchical levels of the shirt and the skirt are different. The shirt can be stacked on top of the skirt, partially covering the skirt. For another example, in the scene of virtually trying on a shirt and a jacket, the jacket and the skirt have different hierarchical levels. The jacket can be stacked on top of the shirt, partially covering the shirt. The embodiment of the present application does not limit the hierarchical information of multiple pieces of clothing.
[0298] The layering information of the above-mentioned multiple garments can be preset or specified by the user. For example, the user can specify that a shirt should be layered over a skirt so that the shirt partially covers the skirt. Alternatively, the user can specify that a skirt should be layered over a shirt so that the skirt partially covers the shirt.
[0299] In some embodiments, after the 3D rendering module 216A obtains the garment data from the 3D digital garment management module 220, it can store the garment data. When the garment data for the same garment needs to be obtained again, the 3D rendering module 216A can read the garment data from the memory of the electronic device 100. This eliminates the need for the 3D rendering module 216A to request the 3D digital garment management module 220 to send the garment data multiple times for the same garment. This can reduce the amount of data transmitted between the electronic device 100 and the server 200, improving the efficiency of virtual fitting.
[0300] In some embodiments, the 3D digital clothing data can be obtained through clothing modeling and stored in the server 200, for example, stored in the 3D digital clothing management module 220 of the server 200. The 3D digital clothing data can be modeled by professional digital clothing modeling software. Alternatively, the 3D digital clothing data can also be obtained by adding clothing parameter information to a mesh model output by a digital content creation (DCC) tool. The DCC tool can be a 3D modeling tool, for example, Maya, 3ds Max, Blender, etc. The embodiment of the present application does not limit the method for creating a clothing model and generating 3D digital clothing data.
[0301] In some embodiments, step S613 is optional. The electronic device 100 and the server 200 may store consistent identification information (e.g., clothing ID) for the same garment. The 3D rendering module 216A may determine the garment's identification information based on the garment's description information in the virtual fitting request, and then send the garment's identification information to the 3D digital garment simulation module 230 via the digital garment simulation SDK 216B.
[0302] S614 , the 3D rendering module 216A may obtain motion data from the motion management module 216C.
[0303] The motion data acquired by the 3D rendering module 216A may be motion data of the fitting motion that the 3D character is to perform during virtual fitting.
[0304] In one possible implementation, the motion data may include skeleton data. The above-mentioned skeleton data may describe one or more motions of the human body. Among them, the skeleton data of a fitting motion may represent the topological structure of the skeleton when the human body performs this fitting motion. The number of bones may determine the degree of refinement in expressing the fitting motion. The number of bones contained in the skeleton data representing a fitting motion may range from a dozen bones to hundreds of bones. The number of bones may be determined according to the needs of the virtual fitting service. The embodiment of the present application does not limit the number of bones contained in the skeleton data of a fitting motion.
[0305] Different fitting actions may correspond to different skeletal data. For example, a first action may correspond to first skeletal data. A second action may correspond to second skeletal data. In the case where the fitting action required by the 3D character includes multiple actions, the action data obtained by the 3D rendering module 216A may include skeletal data corresponding to the multiple actions. For example, the fitting action required by the 3D character includes a first action and a second action. The action data obtained by the 3D rendering module 216A may include first skeletal data and second skeletal data.
[0306] In another possible implementation, the action data may include identification information of the fitting action, such as an action ID. The server 200 may store identification information of the fitting action that is consistent with that on the electronic device 100. In this way, the server 200 can determine the fitting action based on the identification information and perform fabric simulation based on the collision between the 3D image and the garment during the fitting action, thereby obtaining garment simulation data.
[0307] The data size of the identification information of the fitting action is much smaller than that of the skeleton data. Therefore, the 3D rendering module 216A obtaining the identification information of the fitting action can reduce the amount of data transmission in subsequent steps S616 and S617, saving the transmission bandwidth between the electronic device 100 and the server 200, and improving the efficiency of virtual fitting.
[0308] The above-mentioned motion data can be the motion data of a preset fitting motion, or the motion data of a fitting motion selected by the user, or the motion data of the user's motion collected in real time by motion capture technology. The embodiment of the present application does not limit the specific content of the above-mentioned fitting motion.
[0309] S615 , the 3D rendering module 216A may obtain scene data from the scene management module 216D.
[0310] The scene data may include scene mesh data. The scene mesh data of a scene may be obtained by modeling the scene. The virtual fitting scene may be, for example, a catwalk, a stage, a square, a lawn, a beach, a room, etc.
[0311] In some embodiments, the scene data may also include lighting information, which can be used by the 3D rendering module 216A to simulate the effects of a sunny day, a cloudy day, or different stage lighting combinations during rendering.
[0312] In some embodiments, the scene data may further include particle information, which may be used by the 3D rendering module 216A to simulate effects such as rain or snow during rendering.
[0313] The embodiment of the present application does not limit the content of the scene data, and the scene data may also include more or less content.
[0314] The scene management module 216D may store scene data for one or more scenes, allowing users to select a scene during virtual fitting. Providing one or more scene options in the virtual fitting scene can increase the playability of the virtual fitting, allowing users to experience the virtual fitting effects in different scenes.
[0315] 2. (S616-S618) Performing fabric simulation on the garment.
[0316] S616 . The 3D rendering module 216A may send the human body data, motion data, and clothing data to the digital clothing simulation SDK 216B, requesting to obtain clothing simulation data.
[0317] S617 : The digital clothing simulation SDK 216B may send a digital clothing simulation request to the 3D digital clothing simulation module 230 .
[0318] The digital clothing simulation SDK 216B may be used to be responsible for information interaction between the electronic device 100 and the server 200 , and may encode and decode data, and send and receive data.
[0319] Upon receiving a request from the 3D rendering module 216 for garment simulation data, the digital garment simulation SDK 216B may send a digital garment simulation request to the 3D digital garment simulation module 230. This digital garment simulation request may include the human body data, motion data, and garment data from step S616. The digital garment simulation SDK 216B may compress and encode the human body data, motion data, and garment data before sending it to the 3D digital garment simulation module 230. This reduces the amount of data transmitted between the electronic device 100 and the server 200, conserving transmission bandwidth.
[0320] In some embodiments, the digital clothing simulation SDK 216B may also provide identity authentication and authorization functions.
[0321] S618 , the 3D digital clothing simulation module 230 may perform digital clothing simulation to obtain simulation data.
[0322] In one possible implementation, the 3D digital garment simulation module 230 can use a skeletal skinning algorithm to calculate the human body mesh data of the target user in one or more actions based on the human body data and motion data in the digital garment simulation request. The one or more actions are the fitting actions that the 3D avatar of the target user needs to perform during virtual fitting.
[0323] The 3D digital clothing simulation module 230 can use the target user's skeletal data and the skeletal data of a fitting action to reuse the fitting action for the target user using a motion redirection method, thereby obtaining the target user's skeletal data for the fitting action. The above-mentioned motion redirection can realize the reuse of the same fitting action for different target users and prevent the 3D images of different target users from losing proportions or undergoing unnecessary deformation when performing the same fitting action.
[0324] The 3D digital garment simulation module 230 can then use a skeletal skinning algorithm to generate the target user's body mesh deformation data based on the target user's body mesh data and the target user's skeletal data during a fitting action, thereby determining the target user's body mesh data during the fitting action. In other words, the deformation of the target user's body model driven by the skeletal data during the fitting action can be determined using the skeletal skinning algorithm.
[0325] Furthermore, the 3D digital clothing simulation module 230 can determine, based on the target user's body mesh data during one or more actions and the clothing data in the digital clothing simulation request, the simulation data of the clothing after the target user's 3D image performs the one or more actions and collides with the clothing. The above-mentioned clothing simulation data can include clothing mesh data. The clothing mesh data can be mesh data resulting from the deformation of the clothing caused by the collision with the target user's 3D image, and can reflect the shape of the clothing after the collision with the target user's 3D image during the fitting action (including deformation details such as wrinkles on the clothing).
[0326] In some embodiments, the above-mentioned action redirection based on the target user's skeletal data and the skeletal data of the fitting action is optional. The skeletal data of the fitting action can be used as the target user's skeletal data to drive the target user's human body mesh. Specifically, the 3D digital clothing simulation module 230 can obtain the target user's 3D image data based on the received human body data. The 3D image data may include the target user's human body mesh data. The 3D digital clothing simulation module 230 can use the skeleton skinning algorithm to generate the target user's human body mesh deformation data based on the target user's human body mesh data and the skeletal data of the fitting action, and then determine the target user's human body mesh data when performing this fitting action. In other words, the 3D image data may not include the user's skeletal data.
[0327] The above embodiment can reduce the computational effort involved in creating a 3D image and simulating fabric. Furthermore, when the arm length, leg length, height, and other information corresponding to the skeletal data of the fitting action are relatively close to the target user's actual arm length, leg length, and height, the above embodiment can relatively accurately obtain the human body mesh data of the target user performing the fitting action, and the rendered virtual fitting effect can also relatively realistically reflect the effect of the target user putting on the clothing.
[0328] It is understood that if the 3D avatar needs to perform multiple fitting actions, the aforementioned garment simulation data may include a garment mesh sequence. A garment mesh sequence may include multiple pieces of garment mesh data. Each piece of garment mesh data may correspond to a fitting action, i.e., it may reflect the shape of the garment after colliding with the target user's 3D avatar during a fitting action.
[0329] It should be noted that if the human body data in the digital clothing simulation request is base model weight information, the 3D digital clothing simulation module 230 can obtain the base model data from the 3D digital clothing management module 220, and determine the human body mesh data of the target user based on the base model mesh data and base model weight information in the base model data, and determine the skeletal data of the target user based on the base model skeletal data and base model weight information in the base model data. Alternatively, the 3D digital clothing simulation module 230 sends the base model weight information to the 3D digital clothing management module 220. The 3D digital clothing management module 220 may store base model data. The 3D digital clothing management module 220 can determine the 3D image data of the target user based on the base model data and base model weight information, and send the 3D image data of the target user to the 3D digital clothing simulation module 230. In this way, the 3D digital clothing simulation module 230 can perform fabric simulation based on the 3D image data of the target user to obtain simulation data of the clothing.
[0330] If the clothing data in the digital clothing simulation request is clothing identification information, the 3D digital clothing simulation module 230 can obtain the 3D digital clothing data of the clothing from the 3D digital clothing management module 220 according to the clothing identification information, so as to perform cloth simulation using the 3D digital clothing data.
[0331] If the action data in the digital clothing simulation request is identification information of the fitting action, the 3D digital clothing simulation module 230 can obtain the skeleton data of the fitting action from the 3D digital clothing management module 220 according to the identification information of the fitting action, so as to use the skeleton data of the fitting action to perform cloth simulation.
[0332] 3. (S619-S622) Rendering the fitting effect.
[0333] S619 : The 3D digital clothing simulation module 230 may send simulation data to the digital clothing simulation SDK 216B.
[0334] S620 and digital clothing simulation SDK216B can pre-process simulation data.
[0335] The pre-processing may include calculating the Normal data corresponding to the clothing mesh data in the simulation data to optimize the rendering effect of the 3D rendering module 216A in the subsequent step S622. The specific processing process of the pre-processing is not limited in the embodiment of the present application.
[0336] S621 . The digital clothing simulation SDK 216B may send the pre-processed simulation data to the 3D rendering module 216A.
[0337] In a possible implementation, the above step S620 is optional, that is, the above pre-processing may not be completed by the digital clothing simulation SDK 216B.
[0338] For example, the above pre-processing can be performed by the 3D rendering module 216A. The digital clothing simulation SDK 216B can send the received simulation data to the 3D rendering module 216A. After the 3D rendering module 216A pre-processes the simulation data, it executes the following step S622.
[0339] For another example, the above-mentioned preprocessing can be performed by the 3D digital garment simulation module 230. After the 3D digital garment simulation module 230 performs fabric simulation to obtain garment simulation data, it can perform the above-mentioned preprocessing on the simulation data. The 3D digital garment simulation module 230 can then send the preprocessed simulation data to the digital garment simulation SDK 216B. The digital garment simulation SDK 216B then sends the preprocessed simulation data to the 3D rendering module 216A.
[0340] S622 , the 3D rendering module 216A can complete rendering according to the 3D image data, action data, scene data, and pre-processed simulation data.
[0341] In some embodiments, during the virtual fitting process, the target user's 3D avatar may need to perform multiple fitting actions. The target user's 3D avatar's body mesh data and garment simulation data may differ for each fitting action. Each fitting action may correspond to body mesh data and garment simulation data. After receiving the pre-processed simulation data, the 3D rendering module 216A may synchronize the body mesh data and the pre-processed simulation data to ensure that the 3D avatar can wear the garment constructed based on the simulation data corresponding to each fitting action, thereby reducing the problem of garment wearing into the model.
[0342] Optionally, the above-mentioned data synchronization can also be performed by the digital clothing simulation SDK 216B. That is, the preprocessing of the simulation data by the digital clothing simulation SDK 216B can also include data synchronization of the human mesh data and the simulation data. The digital clothing simulation SDK 216B can send the data synchronization information to the 3D rendering module 216A. When rendering, the 3D rendering module 216A can combine the human mesh data corresponding to a fitting action and the simulation data of the garment for rendering based on the data synchronization information. The data obtained after the digital clothing simulation SDK 216B preprocesses the simulation data can be referred to as preprocessed data. As can be seen from the above embodiment, the preprocessed data can include one or more of the following: Normal data obtained by performing Normal calculation on the simulation data of the garment, and information obtained by data synchronization of the human mesh data corresponding to the fitting action and the simulation data (i.e., data synchronization information). This data synchronization information can be used to reduce the problem of garment threading when the 3D rendering module 216A renders the fitting effect. The embodiments of the present application do not limit the content of the above-mentioned preprocessed data. The preprocessed data can also include more or less content. The digital garment simulation SDK 216B may send the pre-processed data to the 3D rendering module 216A.
[0343] Optionally, the data synchronization described above can also be performed by the 3D digital garment simulation module 230. The 3D digital garment simulation module 230 can send synchronized simulation data and human mesh data to the digital garment simulation SDK 216B. The synchronized simulation data and human mesh data can represent simulation data and human mesh data corresponding to the same fitting action. The digital garment simulation SDK 216B can then send the synchronized simulation data and human mesh data to the 3D rendering module 216A.
[0344] The 3D rendering module 216A can call the rendering pipeline to render the fitting scene according to the scene data, and render the fitting effect of the 3D image wearing clothes and performing one or more fitting actions according to the 3D image data, action data and pre-processed simulation data.
[0345] In some embodiments, the 3D rendering module 216A can obtain preset lighting information and virtual camera perspective information, and complete the rendering of the fitting effect under the preset lighting and virtual camera perspective conditions. Optionally, the 3D rendering module 216A can also receive user interaction information to adjust the rendering content of the fitting effect.
[0346] For example, the user interaction information may be information determined based on the user's operation of adjusting the virtual camera angle. The 3D rendering module 216A may render the fitting effect after the virtual camera angle is adjusted. In this way, the user can manually adjust the viewing angle to view the virtual fitting effect from different perspectives.
[0347] For another example, the user interaction information may be information determined based on the user's operation of adjusting the lighting, and the 3D rendering module 216A may render the fitting effect after the lighting is adjusted.
[0348] For another example, the user interaction information may be information determined based on an operation to adjust a fitting action. The 3D rendering module 216A may obtain simulation data of the garment after the fitting action has been adjusted from the 3D digital garment simulation module 230 via the digital garment simulation SDK 216B, and then render a fitting effect of the 3D avatar wearing the garment and performing the adjusted fitting action. The method for the 3D rendering module 216A to obtain simulation data of the garment after the fitting action has been adjusted can be found in the description of steps S616 to S621 above.
[0349] The embodiment of the present application does not limit the specific content of the above-mentioned user interaction information.
[0350] As shown in Figure 6, the virtual fitting method provided by this application can achieve high-precision virtual fitting effects on mobile terminals with weak computing power. Furthermore, the cloud-side fabric simulation + terminal-side rendering model can reduce the computing cost of server 200 and improve the concurrency of server 200. Server 200 can simultaneously respond to fabric simulation requests from multiple mobile terminals and collaborate with these multiple mobile terminals to provide virtual fitting services for multiple users. In this way, when users purchase clothing online using an e-commerce application on their mobile terminal, they can conveniently view the effect of a 3D avatar that matches their body shape wearing the clothing and performing the fitting movements, thereby determining whether the clothing is suitable for them. This can effectively reduce the number of users who purchase inappropriate clothing online and reduce the return rate of clothing e-commerce companies. Furthermore, since both the user's body model and the clothing model can be completed before the virtual fitting, the electronic device 100 and server 200 can directly use the established body model and clothing model when collaboratively providing the virtual fitting service. This can effectively improve the efficiency of virtual fitting, and the electronic device 100 can quickly present the virtual fitting effect to the user.
[0351] Another communication system 70 provided in an embodiment of the present application is introduced below.
[0352] FIG7 exemplarily shows an architecture diagram of a communication system 70. As shown in FIG7 , the communication system 70 may include an electronic device 710 and a server 720.
[0353] The electronic device 710 may include a motion management module 711, a 3D image management module 712, a digital clothing simulation SDK 713, a 3D rendering module 714, and a scene management module 715. The motion management module 711, the 3D image management module 712, the digital clothing simulation SDK 713, the 3D rendering module 714, and the scene management module 715 may refer to the aforementioned description of the motion management module 216C, the 3D image management module 215, the digital clothing simulation SDK 216B, the 3D rendering module 216A, and the scene management module 216D shown in FIG. 1 , respectively.
[0354] The scene management module 715 is optional. In some embodiments, the electronic device 710 may not include the scene management module 715.
[0355] The digital garment simulation SDK 713 may include a codec module 713A, a network transmission module 713B, and a rendering preprocessing module 713C. The codec module 713A may be used to encode data to be transmitted and decode received data. The network transmission module 713B allows the digital garment simulation SDK 713 to communicate with the 3D digital garment simulation module 724 in the server 720. The rendering preprocessing module 713C may be used to preprocess the received garment simulation data. For example, it may perform Normal calculations on the garment simulation data.
[0356] Among them, the digital clothing simulation SDK713 can be called a processing module of the electronic device 710.
[0357] The server 720 may include a 3D digital clothing management module 721, a motion management module 722, a 3D image management module 723, and a 3D digital clothing simulation module 724. The 3D digital clothing management module 721 and the 3D digital clothing simulation module 724 may be described with reference to the aforementioned descriptions of the 3D digital clothing management module 220 and the 3D digital clothing simulation module 230 shown in FIG. 1 , respectively.
[0358] The 3D digital garment simulation module 724 may include a fabric simulation module 724A, a codec module 724B, and a network transmission module 724C. The fabric simulation module 724A may be used to perform fabric simulation based on 3D image data, skeletal data from fitting movements, and 3D digital garment data, generating simulated garment data. The codec module 724B and the network transmission module 724C may be described in the aforementioned descriptions of the codec module 713A and the network transmission module 713B, respectively, in the electronic device 710.
[0359] The action management module 722 can be used to determine the fitting action based on the fitting action ID or other action identification information, thereby obtaining the skeletal data of the fitting action. In one possible implementation, the action management module 722 can store the fitting action ID and the skeletal data of the fitting action that are consistent with the electronic device 710. The action management module 722 can search for the skeletal data corresponding to the fitting action based on the fitting action ID.
[0360] The 3D image management module 723 may be configured to generate the user's body mesh data consistent with the electronic device 710 according to the body mesh parameters.
[0361] In one possible implementation, the aforementioned human body mesh parameters may be model weight information based on a set of human model models. The 3D image management module 723 may store model data consistent with the electronic device 710. The 3D image management module 723 generates 3D image data for the target user consistent with the electronic device 710 based on the model data and the model weight information of the target user.
[0362] In another possible implementation, the human body mesh parameters may include the user's body size information (e.g., one or more information such as shoulder width, chest circumference, waist circumference, hip circumference, leg length, and arm length). The 3D image management module 723 may store a human body mesh generation model consistent with the electronic device 710. The 3D image management module 723 may use the mesh generation model to generate the user's human body mesh data consistent with the electronic device 710 based on the human body mesh parameters.
[0363] In another possible implementation, the human body mesh parameters may be other parameters that can be used to generate human body mesh data, such as SMPL parameters, etc. The embodiments of the present application do not limit the specific content of the human body mesh parameters.
[0364] As shown in Figure 7, the digital clothing simulation SDK 713 in the electronic device 710 can obtain human body mesh parameters from the 3D image management module 712 and obtain the fitting action ID from the action management module 711. The digital clothing simulation SDK 713 can also obtain the clothing ID of the clothing to be tried on. The digital clothing simulation SDK 713 can send the human body mesh parameters, fitting action ID, and clothing ID to the 3D digital clothing simulation module 724 in the server 720. Among them, the human body mesh parameters and fitting action ID can refer to the above introduction. The clothing ID can be used to identify the clothing. In the case where there are multiple pieces of clothing to be tried on, the clothing IDs sent by the digital clothing simulation SDK 713 can be the clothing IDs of multiple pieces of clothing.
[0365] In some embodiments, the clothing ID of a garment can be a combination of the style ID of the garment and the size information (e.g., size S, M, L, etc.). The style ID can be used to identify the style of the garment. It is understood that garments of the same style can have different sizes. Garments of the same style but in different sizes typically look different on the user. This allows users to adjust the size of the garment during a virtual try-on to find the garment that best fits them.
[0366] In some embodiments, the clothing ID of a piece of clothing may be a combination of the manufacturer ID+style ID+clothing size information of the piece of clothing.
[0367] In other embodiments, when the clothing ID includes clothing IDs of multiple clothing items, the clothing ID may also include hierarchical information of the multiple clothing items.
[0368] The embodiment of the present application does not limit the specific content of the above-mentioned clothing ID.
[0369] The 3D digital clothing simulation module 724 may use the received human body mesh parameters to instruct the 3D image management module 723 to determine human body mesh data.
[0370] The 3D digital clothing simulation module 724 can use the received fitting action ID to obtain the skeleton data of the fitting action from the action management module 722. The fitting action can be a single action or an action sequence including multiple actions.
[0371] The 3D digital clothing simulation module 724 may use the received clothing ID to obtain the 3D digital clothing data (such as clothing mesh, clothing parameter information, etc.) of the clothing from the 3D digital clothing management module 721 .
[0372] The 3D digital clothing simulation module 724 can use the obtained human body mesh data, the skeleton data of the fitting action, and the 3D digital clothing data to restore the human body mesh data corresponding to each fitting action through calculation. Furthermore, the 3D digital clothing simulation module 724 can perform fabric simulation and calculate the simulation data after the clothing and the 3D image perform the fitting action. Among them, the simulation data of the clothing can describe the deformation effects such as the bending and wrinkling of the clothing when the 3D image puts on the clothing and performs the fitting action. The calculation of the above-mentioned fabric simulation can be real-time calculation (such as 30 frames per second), or, it can also be non-real-time calculation (such as 1 frame per second), or, it can also be super real-time calculation (such as 100 frames per second). The embodiment of the present application does not limit the rate of the above-mentioned calculation. The specific process of the above-mentioned fabric simulation can refer to the above-mentioned introduction to steps S616 to S618 shown in Figure 6.
[0373] The 3D digital clothing simulation module 724 may send the simulation data of the clothing to the digital clothing simulation SDK 713 in the electronic device 710 .
[0374] The digital clothing simulation SDK 713 can pre-process the simulation data of the clothing and send the pre-processed simulation data to the 3D rendering module 714. The above pre-processing may include calculating the Normal information of each clothing mesh frame in the simulation data. The above pre-processing may also include synchronizing the simulation data of the clothing with the human body mesh of the 3D image in the fitting action. The simulation data and human body mesh data corresponding to the same fitting action may be a combination. In this way, the 3D rendering module 714 can render according to the synchronized data to ensure that the 3D image can wear the clothing constructed by the simulation data corresponding to the fitting action when performing the fitting action, thereby reducing the problem of clothing wearing the model.
[0375] Optionally, the digital clothing simulation SDK 713 may also send the received simulation data to the 3D rendering module 714. The 3D rendering module 714 may perform the above-mentioned preprocessing on the simulation data and then render the fitting effect based on the preprocessed simulation data. The process of the 3D rendering module 714 rendering the fitting effect can be referred to the aforementioned description of steps S619 to S621 shown in FIG. 6 .
[0376] It should be noted that electronic device 710 may also include more or fewer modules. For example, electronic device 710 may also include account management module 211, product display module 212, order purchase module 213, payment module 214, scenario management module 216D, etc., as shown in FIG1 . Server 720 may also include more or fewer modules. For details about server 720, please refer to the above description of server 200.
[0377] As can be seen from the communication system 70 shown in Figure 7 above, during the virtual fitting process, the electronic device 710 can reduce the amount of data transmission by sending human mesh parameters, fitting action ID, and clothing ID to the server 720, saving the transmission bandwidth between the electronic device 710 and the server 720 and improving the efficiency of virtual fitting. The electronic device 710 can provide a high-precision virtual fitting effect. When users use the electronic device 710 to purchase clothing online, they can easily view the fitting effect of a 3D image that matches their body shape wearing the clothing and performing the fitting action, thereby judging whether the clothing is suitable for them. This can effectively reduce the situation where users buy inappropriate clothing online and reduce the return rate of clothing e-commerce.
[0378] Another communication system 80 provided in an embodiment of the present application is introduced below.
[0379] FIG8 exemplarily shows an architecture diagram of a communication system 80. As shown in FIG8 , the communication system 80 may include an electronic device 810 and a server 820.
[0380] Electronic device 810 may include a motion management module 811, a 3D image management module 812, a digital clothing simulation SDK 813, a 3D rendering module 814, and a scene management module 815. Digital clothing simulation SDK 813 may include a codec module 813A, a network transmission module 813B, and a rendering preprocessing module 813C. For details about the various modules included in electronic device 810, refer to the description of electronic device 710 shown in FIG. 7 .
[0381] The scene management module 815 is optional. In some embodiments, the electronic device 810 may not include the scene management module 815.
[0382] The digital clothing simulation SDK 813 may be referred to as a processing module of the electronic device 810 .
[0383] The server 820 may include a 3D digital clothing simulation module 821. The 3D digital clothing simulation module 821 may include a fabric simulation module 821A, a codec module 821B, and a network transmission module 821C. The 3D digital clothing simulation module 821 may refer to the above description of the 3D digital clothing simulation module 724 shown in FIG.
[0384] In some embodiments, the digital clothing simulation SDK 813 can obtain 3D image data from the 3D image management module 812 and skeletal data of the fitting action from the action management module 811. The digital clothing simulation SDK 813 can also obtain 3D digital clothing data of the garment to be tried on. The digital clothing simulation SDK 813 can obtain this 3D digital clothing data from the server 820, or from a server associated with the e-commerce application, or from the memory of the electronic device 810.
[0385] As shown in FIG8 , the digital clothing simulation SDK 813 may send 3D image data, skeleton data of fitting movements, and 3D digital clothing data to a 3D digital clothing simulation module 821 in a server 820 .
[0386] The 3D digital clothing simulation module 821 can perform fabric simulation based on the received 3D image data, the skeletal data of the fitting action, and the 3D digital clothing data to obtain simulated clothing data. During the fabric simulation process, the 3D digital clothing simulation module 821 can also calculate the human body mesh data of the user's 3D image performing the fitting action. The fabric simulation process described above can be referred to the description of the previous embodiment and will not be repeated here.
[0387] The 3D digital clothing simulation module 821 can send the garment simulation data and the mesh data of the human body undergoing the fitting to the digital clothing simulation SDK 813. This eliminates the need for data synchronization between the digital clothing simulation SDK 813 and the 3D rendering module 814. The 3D rendering module 814 can use the garment simulation data and the mesh data of the human body undergoing the fitting to render the fitting effect. The implementation of the 3D rendering module 814 rendering the fitting effect can be referred to the description of the previous embodiment.
[0388] In some embodiments, the Normal calculation of the above-mentioned simulation data can be completed by the server 820. This can reduce the computing power consumption of the electronic device 810. Alternatively, the Normal calculation of the above-mentioned simulation data can be completed by the electronic device 810. This can reduce the transmission bandwidth between the electronic device 810 and the server 820.
[0389] It should be noted that electronic device 810 may also include more or fewer modules. For example, electronic device 810 may also include account management module 211, product display module 212, order purchase module 213, payment module 214, scenario management module 216D, etc., as shown in FIG1 . Server 820 may also include more or fewer modules. For details about server 820, please refer to the above description of server 200.
[0390] In some embodiments, the communication system 80 shown in FIG8 can be applied to scenarios where full trust is lacking between the electronic device 810 and the server 820. For example, if the server 820 does not include a 3D image management module, a motion management module, or a 3D digital clothing management module, the electronic device 810 and the server 820 can collaborate with each other on the cloud based on the communication system 80 to provide users with virtual fitting services.
[0391] Another communication system 90 provided in an embodiment of the present application is introduced below.
[0392] FIG9 exemplarily shows an architecture diagram of a communication system 90. As shown in FIG9 , the communication system 90 may include an electronic device 910 and a server 920.
[0393] Electronic device 910 may include a motion management module 911, a 3D image management module 912, a digital clothing simulation SDK 913, a 3D rendering module 914, and a scene management module 915. Digital clothing simulation SDK 913 may include a codec module 913A, a network transmission module 913B, and a rendering preprocessing module 913C. For details about the various modules included in electronic device 910, refer to the description of electronic device 710 shown in FIG. 7 .
[0394] The scene management module 915 is optional. In some embodiments, the electronic device 910 may not include the scene management module 915.
[0395] The digital clothing simulation SDK 913 may be referred to as a processing module of the electronic device 910 .
[0396] The server 920 may include a 3D digital clothing management module 921, a motion management module 922, a 3D image management module 923, a 3D digital clothing simulation module 924, and a database 925. The 3D digital clothing simulation module 924 may include a fabric simulation module 924A, a codec module 924B, and a network transmission module 924C.
[0397] The database 925 may be used to store simulation data of clothing in the case of a combination of 3D image+clothing+fitting action.
[0398] In some embodiments, the 3D digital clothing simulation module 924 may store the simulation data of the clothing obtained through fabric simulation into the database 925 , and record the combination of 3D image+clothing+fitting action corresponding to the simulation data in the database.
[0399] During the virtual fitting process, the digital clothing simulation SDK 913 can send human mesh parameters, fitting action ID, and clothing ID to the 3D digital clothing simulation module 924. Based on the received human mesh parameters, fitting action ID, and clothing ID, the 3D digital clothing simulation module 924 can search the database 925 for the presence of the same or similar 3D image + clothing + fitting action combination. The above-mentioned same 3D image + clothing + fitting action combination can represent the same 3D image (such as the same body size information of the 3D image), the same clothing (such as the same style and size of the clothing), and the same fitting action combination. The above-mentioned similar 3D image + clothing + fitting action combination can represent a combination of similar 3D images (such as the difference in body size information of the 3D image is less than a preset threshold), the same clothing, and the same fitting action.
[0400] If no identical or similar 3D figure + garment + fitting action combination is found in database 925, 3D digital garment simulation module 924 can perform fabric simulation using the received human body mesh parameters, fitting action ID, and garment ID to obtain garment simulation data. The implementation method for fabric simulation described above can be found in the description of the embodiment shown in FIG. 3D digital garment simulation module 924 can then send the garment simulation data to digital garment simulation SDK 913.
[0401] When the same or similar 3D image + clothing + fitting action combination is found in the database 925, the 3D digital clothing simulation module 924 can obtain historical simulation data (i.e., simulation data of the clothing corresponding to the same or similar 3D image + clothing + fitting action combination) from the database 925. The 3D digital clothing simulation module 924 can send the historical simulation data to the digital clothing simulation SDK 913.
[0402] After receiving the clothing simulation data from the server 920, the electronic device 910 can render a virtual fitting effect. Detailed descriptions can be made with reference to the above embodiments, which will not be repeated here.
[0403] It should be noted that electronic device 910 may also include more or fewer modules. For example, electronic device 910 may also include account management module 211, product display module 212, order purchase module 213, payment module 214, scenario management module 216D, etc., as shown in FIG1 . Server 920 may also include more or fewer modules. For details about server 920, please refer to the above description of server 200.
[0404] As shown in FIG9 , the communication system 90 can store garment simulation data generated by fabric simulation. When the same or similar 3D character needs to be fitted with the same garment for fabric simulation again, the server 920 can retrieve the garment simulation data from the database 925 without having to perform the specific fabric simulation calculations again. This reduces the need for server 920 to perform repeated fabric simulations, conserves server 920's computing resources, and improves server 920's concurrency capabilities.
[0405] It is understood that the various user interfaces described in the embodiments of this application are merely exemplary interfaces and do not limit the scope of this application. In other embodiments, the user interface may adopt a different interface layout, include more or fewer controls, and add or remove other functional options. As long as they are based on the same inventive concept provided by this application, they are all within the scope of protection of this application.
[0406] It should be noted that, without causing any contradiction or conflict, any feature in any embodiment of the present application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of the present application.
[0407] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A virtual fitting method, characterized in that: The method comprises: The electronic device receives a first operation, where the first operation is used to select a first garment for virtual fitting; In response to the first operation, the electronic device sends first human body data of a first 3D image, first motion data of a first motion sequence, and first clothing data of the first clothing to a server, wherein the first motion sequence includes a first motion and a second motion; The electronic device receives first simulation data of the first garment from the server; The electronic device renders a first set of fitting effects based on the first simulation data, the first set of fitting effects including a first fitting effect and a second fitting effect, the first fitting effect being used to show an effect of the first 3D image wearing the first clothing and performing the first action, the second fitting effect being used to show an effect of the first 3D image wearing the first clothing and performing the second action, the first fitting effect and the second fitting effect being different.
2. The method according to claim 1, characterized in that The first human body data includes first human body mesh data of the first 3D image, the first action data includes first skeleton data of the first action and second skeleton data of the second action, the first clothing data includes clothing mesh data and clothing parameter information of the first clothing, and the clothing parameter information includes one or more of the following: stretch coefficient, bending coefficient, and friction coefficient of the first clothing; or, The first human body data includes human body parameters of the first 3D image, and the human body parameters are used to generate the first human body mesh data. The first action data includes identification information of the first action and the second action. The first clothing data includes identification information of the first clothing.
3. The method according to claim 1 or 2, characterized in that: Before the electronic device sends the first human body data of the first 3D image, the first action data of the first action sequence, and the first clothing data of the first clothing to the server, the method further includes: The electronic device receives an operation of selecting the first 3D image and / or the first action sequence.
4. The method according to any one of claims 1 to 3, characterized in that The first set of fitting effects is presented by playing a first video, and the method further includes: The electronic device receives a second operation for the first video, where the second operation is used to play the first video, or to pause the first video, or to fast forward the first video, or to fast rewind the first video; The electronic device controls the playing of the first video according to the second operation.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The electronic device receives a third operation, where the third operation is used to select a second garment for virtual fitting; In response to the third operation, the electronic device sends the second clothing data and first level information of the second clothing to the server, where the first level information is used to indicate the layering level of the first clothing and the second clothing; The electronic device receives second simulation data from the server; The electronic device renders a second set of fitting effects based on the second simulation data, the second set of fitting effects including a third fitting effect and a fourth fitting effect, the third fitting effect being used to represent the effect of the first 3D image wearing the first garment and the second garment and performing the first action, and the fourth fitting effect being used to represent the effect of the first 3D image wearing the first garment and the second garment and performing the second action.
6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The electronic device receives a fourth operation, where the fourth operation is used to select a third garment to replace the first garment for virtual fitting; In response to the fourth operation, the electronic device sends third clothing data of the third clothing to the server; The electronic device receives the third simulation data of the third garment from the server; The electronic device renders a third set of fitting effects based on the third simulation data, the third set of fitting effects including a fifth fitting effect and a sixth fitting effect, the fifth fitting effect being used to represent the effect of the first 3D image wearing the third clothing and performing the first action, and the sixth fitting effect being used to represent the effect of the first 3D image wearing the third clothing and performing the second action.
7. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The electronic device receives a fifth operation, where the fifth operation is used to change the first action sequence into a second action sequence, where the second action sequence includes a third action and a fourth action; In response to the fifth operation, the electronic device sends second action data of the second action sequence to the server; The electronic device receives fourth simulation data of the first garment from the server; The electronic device renders a fourth set of fitting effects according to the fourth simulation data, wherein the fourth set of fitting effects includes a seventh fitting effect and an eighth fitting effect, wherein the seventh fitting effect is used to represent the effect of the first 3D image wearing the first garment and performing the third action. The eighth fitting effect is used to represent the effect of the first 3D image wearing the first clothing and performing the fourth action.
8. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The electronic device receives a sixth operation, where the sixth operation is used to select the fitting scene as the first scene; In response to the sixth operation, the electronic device acquires first scene data of the first scene; The electronic device renders a first set of fitting effects according to the first simulation data, specifically including: The electronic device renders the first set of fitting effects based on the first scene data and the first simulation data, the first set of fitting effects including the first fitting effect and the second fitting effect, the first fitting effect being used to represent the effect of the first 3D image wearing the first clothing and performing the first action in the first scene, and the second fitting effect being used to represent the effect of the first 3D image wearing the first clothing and performing the second action in the first scene.
9. The method according to claim 2, characterized in that: The method further comprises: The electronic device acquires first body size information, where the first body size information includes one or more of the following: height, shoulder width, chest circumference, waist circumference, hip circumference, arm circumference, arm length, neck circumference, abdominal circumference, hip circumference, thigh circumference, calf circumference, and leg length; The electronic device obtains first human body mesh data of the first 3D image according to the first body size information; or, The electronic device acquires one or more images, wherein the one or more images display a human body corresponding to the first 3D image; The electronic device obtains first human body mesh data of the first 3D image according to the one or more images.
10. A virtual fitting method, characterized in that: The method is performed by a processing module, and the method includes: Acquire first human body data of a first 3D image, first motion data of a first motion sequence, and first clothing data of a first clothing, wherein the first motion sequence includes a first motion and a second motion; Sending the first human body data, the first motion data, and the first clothing data to a server; receiving first simulation data of the first garment from the server; The first simulation data is handed over to a 3D rendering module to render a first set of fitting effects, wherein the first set of fitting effects includes the first fitting effect and the second fitting effect, wherein the first fitting effect is used to show the effect of the first 3D image wearing the first clothing and performing the first action, and the second fitting effect is used to show the effect of the first 3D image wearing the first clothing and performing the second action, and the first fitting effect is different from the second fitting effect.
11. The method according to claim 10, characterized in that The first human body data includes first human body mesh data of the first 3D image, the first action data includes first skeleton data of the first action and second skeleton data of the second action, the first clothing data includes clothing mesh data and clothing parameter information of the first clothing, and the clothing parameter information includes one or more of the following: stretch coefficient, bending coefficient, and friction coefficient of the first clothing; or, The first human body data includes human body parameters of the first 3D image, and the human body parameters are used to generate the first human body mesh data. The first action data includes identification information of the first action and the second action. The first clothing data includes identification information of the first clothing.
12. The method according to claim 10 or 11, characterized in that: The step of delivering the first simulation data to a 3D rendering module to render a first set of fitting effects specifically includes: Preprocessing the first simulation data to obtain preprocessed data, wherein the preprocessing includes one or more of the following: calculating normals of the first simulation data, synchronizing data of the first simulation data with human body data of the first action sequence of the first 3D image; The pre-processed data is delivered to the 3D rendering module to render the first set of fitting effects.
13. The method according to any one of claims 10 to 12, characterized in that: The method further comprises: Acquire second clothing data and first level information of a second clothing, where the first level information is used to indicate a layering level of the first clothing and the second clothing; sending the second clothing data and the first level information to the server; receiving second simulation data from the server; The second simulation data is delivered to the 3D rendering module to render a second set of fitting effects, wherein the second set of fitting effects includes a third fitting effect and a fourth fitting effect, wherein the third fitting effect is used to represent the effect of the first 3D image wearing the first garment and the second garment to perform the first action, and the fourth fitting effect is used to represent the effect of the first 3D image wearing the first garment and the second garment to perform the second action.
14. An electronic device, characterized in that: The electronic device comprises a communication device, a memory and a processor, wherein: The communication device is used to communicate with the server; The storage device is used to store computer programs; The processor is used to call the computer program so that the electronic device executes the method according to any one of claims 1 to 9.
15. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 9.
16. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
WebGL (web graphics library) technology-based virtual cloth fitting realization method
CN106548392A
Virtual fitting method and device, and terminal equipment
CN108510594A
3D virtual fitting method and system and storage medium
CN113610612A
Virtual fitting method, system and device and storage medium
CN114119905A
On-line method for aiding a customer in the purchase of clothes
US20030050864A1
