Virtual Garment Folding Method, Device, Computer Equipment and Storage Medium

By establishing fixed templates and folding templates, the virtual garments are automatically folded, which solves the problem of low folding efficiency of virtual garments in the prior art and achieves a more efficient folding effect.

CN114820130BActive Publication Date: 2025-06-10GUANGDONG ZHENYUAN TEXTILE TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210497267.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-09
Publication Date
2025-06-10
Estimated Expiration
2042-05-09

AI Technical Summary

Technical Problem

The existing virtual garment folding methods are inefficient and cannot adjust the folding method according to the actual clothes style and size, resulting in a large gap between the folding effect and the actual object.

Method used

By obtaining folding sizes and virtual garments, set up fixed templates and folding templates, including left folding virtual boards, right folding virtual boards and half folding virtual boards, automatically folding virtual boards according to these templates.

Benefits of technology

It improves the folding efficiency of virtual garments, can adjust the folding size according to customer needs, solve conflicts and wrinkles during the folding process, without manual adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114820130B_ABST
    Figure CN114820130B_ABST
Patent Text Reader

Abstract

The present application relates to a virtual garment folding method, device, computer equipment, storage medium and computer program product. The method comprises: obtaining folding dimensions and virtual garments, wherein the folding dimensions include folding width and folding length, wherein the folding width represents the desired width of the virtual garment after being folded, and the folding length represents the desired length of the virtual garment after being folded; according to the folding dimensions, establishing a fixed template and a folding template, wherein the folding template includes a left folding virtual plate, a right folding virtual plate and a folding virtual plate; and folding the virtual garment according to the fixed template and the folding template. With the present method, the folding dimensions can be adjusted according to the needs of the customer, and the folded virtual garment has the folding dimensions required by the customer. At the same time, the virtual garment is automatically folded using the established fixed template and folding template, which can effectively solve the conflict and wrinkling problems in the folding process without manual adjustment, thereby improving the folding efficiency of the virtual garment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of clothing design, and particularly to a virtual garment folding system, method, computer device, storage medium, and computer program product. Background Art

[0002] When clothing is sold, in addition to being worn on a model, there is also a folding method. With the development of Internet e-commerce, most often, after making physical clothing, the pictures of the physical clothing are taken and uploaded to the website for display and sales. This not only takes time but also costs to hire a photographer. If the effect of folding virtual clothing is simulated by virtual methods, it will help alleviate the cost problem of clothing sales.

[0003] Current virtual garment folding methods often use the inherent folding templates provided by virtual garment software. However, the folding templates provided by the software do not have corresponding parameter adjustment options or other auxiliary tools, and cannot make corresponding folding adjustments according to the styles and sizes of the clothes produced in actual production. There is a large gap between the folding effects of some parts when folding the virtual garment and the actual folding effects. For example, some parts penetrate the model or are severely wrinkled, and a lot of time is required for adjustment, resulting in a low efficiency of folding virtual garments. Summary of the Invention

[0004] Based on this, in view of the technical problem of low efficiency in folding virtual garments by the traditional method of using the folding templates provided by virtual garment software, it is necessary to provide a virtual garment folding method, device, computer device, computer-readable storage medium, and computer program product that can improve the efficiency of folding virtual garments.

[0005] In a first aspect, the present application provides a virtual garment folding method. The method includes:

[0006] Obtain the folding dimensions and the virtual garment. The folding dimensions include the folding width and the folding length. The folding width represents the expected width after the virtual garment is folded, and the folding length represents the expected length after the virtual garment is folded;

[0007] According to the folding dimensions, establish a fixed template and a folding template. The folding template includes a left folding virtual board, a right folding virtual board, and a folding virtual board in half;

[0008] Fold the virtual garment according to the fixed template and the folding template.

[0009] In one of the embodiments, establishing a fixed template and a folding template according to the folding dimensions includes:

[0010] Establish a fixed template according to the folding width. The width of the fixed template is equal to the folding width, and the length of the fixed template is greater than or equal to the folding length;

[0011] A left folding virtual plate is established according to the first edge of the fixed template, and a right folding virtual plate is established according to the second edge of the fixed template, the first edge and the second edge are opposite, and the left folding virtual plate and the right folding virtual plate are both perpendicular to the fixed template; and a folding virtual plate is established, the folding virtual plate includes a first folding plate and a second folding plate, and the first folding plate and the second folding plate are perpendicular.

[0012] In one embodiment, folding the virtual garment according to the fixed template and the folding template includes:

[0013] fixing the virtual garment on the first surface of the fixed template;

[0014] According to the left folding action corresponding to the left folding virtual plate, the virtual garment is folded to the left, so that the portion of the virtual garment that overflows the first edge is folded back to the second surface of the fixed template, and the first surface and the second surface are opposite to each other, thereby obtaining the virtual garment after being folded to the left;

[0015] According to the right folding action corresponding to the right folding virtual plate and the left folded virtual garment, the left folded virtual garment is right folded so that the portion of the left folded virtual garment that overflows the second edge is folded back to the second surface to obtain the left-half folded virtual garment;

[0016] According to the folding length, the virtual garment folded in half is fixed on the first surface of the first folding plate, and according to the folding action corresponding to the folded virtual plate, the virtual garment folded in half is folded in half by the second folding plate, so that the part of the virtual garment folded in half that overflows from the first folding plate is folded back to the second surface of the first folding plate, and the first surface of the first folding plate is opposite to the second surface of the first folding plate.

[0017] In one of the embodiments, the left folding action corresponding to the left folding virtual plate includes: rotating 90 degrees toward the second surface of the fixed template with the first rotation line as the axis, and the first rotation line is determined based on the fixed template and the left folding virtual plate; the right folding action corresponding to the right folding virtual plate includes: rotating 90 degrees toward the second surface of the fixed template with the second rotation line as the axis, and the second rotation line is determined based on the fixed template and the right folding virtual plate; the folding action corresponding to the folding virtual plate includes: the second folding plate rotates 90 degrees toward the second surface of the first folding plate with the third rotation line as the axis, and the third rotation line is determined based on the first folding plate and the second folding plate.

[0018] In one embodiment, fixing the virtual garment on the first surface of the fixed template includes:

[0019] Obtaining the vertical center line of the virtual garment;

[0020] The vertical center line of the virtual garment is aligned with the vertical center line of the fixed template, so that the virtual garment is fixed on the first surface of the fixed template.

[0021] In one embodiment, according to the left folding action corresponding to the left folding virtual board, the virtual ready-to-wear is left-folded, including:

[0022] Adjust the left folding action corresponding to the left folding virtual board to: rotate 90 degrees around the first rotation line towards the second surface of the fixed template and move forward a preset distance along the second surface;

[0023] Based on the adjusted left folding action, left-fold the virtual ready-to-wear.

[0024] In one embodiment, according to the folding action corresponding to the double-folding virtual board, the left-and-right double-folded virtual ready-to-wear is double-folded by the second double-folding board, including:

[0025] According to the third rotation line in the folding action, adjust the distance between the first double-folding board and the second double-folding board to obtain an updated third rotation line;

[0026] According to the updated third rotation line, obtain the adjusted folding action. The adjusted folding action includes: the second double-folding board rotates 90 degrees around the updated third rotation line towards the second surface of the first double-folding board;

[0027] According to the adjusted folding action, double-fold the left-and-right double-folded virtual ready-to-wear by the second double-folding board.

[0028] In a second aspect, the present application also provides a virtual ready-to-wear folding device. The device includes:

[0029] A data acquisition module for acquiring the folding dimensions and the virtual ready-to-wear. The folding dimensions include the folding width and the folding length. The folding width represents the expected width after the virtual ready-to-wear is folded, and the folding length represents the expected length after the virtual ready-to-wear is folded;

[0030] A virtual template establishment module for establishing a fixed template and a folding template according to the folding dimensions. The folding template includes a left folding virtual board, a right folding virtual board, and a double-folding virtual board;

[0031] A virtual folding module for folding the virtual ready-to-wear according to the fixed template and the folding template.

[0032] In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0033] Acquire folding dimensions and virtual garments, the folding dimensions including folding width and folding length, the folding width representing the expected width of the virtual garment after being folded, and the folding length representing the expected length of the virtual garment after being folded; establish a fixed template and a folding template according to the folding dimensions, the folding template including a left folding virtual plate, a right folding virtual plate and a half-folded virtual plate; fold the virtual garment according to the fixed template and the folding template.

[0034] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0035] Acquire folding dimensions and virtual garments, the folding dimensions including folding width and folding length, the folding width representing the expected width of the virtual garment after being folded, and the folding length representing the expected length of the virtual garment after being folded; establish a fixed template and a folding template according to the folding dimensions, the folding template including a left folding virtual plate, a right folding virtual plate and a half-folded virtual plate; fold the virtual garment according to the fixed template and the folding template.

[0036] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0037] Acquire folding dimensions and virtual garments, the folding dimensions including folding width and folding length, the folding width representing the expected width of the virtual garment after being folded, and the folding length representing the expected length of the virtual garment after being folded; establish a fixed template and a folding template according to the folding dimensions, the folding template including a left folding virtual plate, a right folding virtual plate and a half-folded virtual plate; fold the virtual garment according to the fixed template and the folding template.

[0038] The above-mentioned virtual garment folding method, device, computer equipment, storage medium and computer program product obtain the folding size and virtual garment, the folding size includes folding width and folding length, the folding width represents the expected width of the virtual garment after being folded, and the folding length represents the expected length of the virtual garment after being folded. According to the folding size, a fixed template and a folding template are established, and the folding template includes a left folding virtual plate, a right folding virtual plate and a folded virtual plate. The virtual garment is folded according to the fixed template and the folding template. In the above scheme, the folding size can be adjusted according to the needs of the customer, and the folded virtual garment has the folding size required by the customer. At the same time, the virtual garment is automatically folded using the established fixed template and folding template, which can effectively solve the conflict and wrinkling problems in the folding process without manual adjustment, thereby improving the folding efficiency of the virtual garment. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is an application environment diagram of the virtual clothing folding method in an embodiment;

[0040] Figure 2 It is a schematic flowchart of the virtual clothing folding method in an embodiment;

[0041] Figure 3 It is a schematic flowchart of the virtual clothing folding method in another embodiment;

[0042] Figure 4 It is a schematic flowchart of the virtual clothing folding method in yet another embodiment;

[0043] Figure 5 It is a schematic sub - flowchart of S620 in an embodiment;

[0044] Figure 6 It is a schematic sub - flowchart of S640 in an embodiment;

[0045] Figure 7 It is a schematic sub - flowchart of S680 in an embodiment;

[0046] Figure 8 It is a schematic diagram of a fixed template and a folding template in an embodiment;

[0047] Figure 9 It is a schematic diagram of the left - folding virtual board folding the virtual clothing fixed on the fixed template to the left in an embodiment;

[0048] Figure 10 It is a schematic diagram of the virtual clothing after left - and - right folding being fixed on the first folding board in an embodiment;

[0049] Figure 11 It is a structural block diagram of a virtual clothing folding device in an embodiment;

[0050] Figure 12 It is an internal structure diagram of a computer device in an embodiment. Specific Embodiments

[0051] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0052] The virtual clothing folding method provided by the embodiments of the present application can be applied as shown in Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or can be placed on the cloud or other network servers. The terminal 102 obtains the folding size and the virtual garment from the server 104. The folding size includes the folding width and the folding length. The folding width represents the expected width after the virtual garment is folded, and the folding length represents the expected length after the virtual garment is folded; according to the folding size, a fixed template and a folding template are established. The folding template includes a left folding virtual board, a right folding virtual board, and a folding virtual board in half; according to the fixed template and the folding template, the virtual garment is folded. Among them, the terminal 102 can be but is not limited to various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0053] In one embodiment, as Figure 2 shown, a method for folding a virtual garment is provided. Taking the method applied to Figure 1 the terminal 102 in

[0054] S200, obtain the folding size and the virtual garment. The folding size includes the folding width and the folding length. The folding width represents the expected width after the virtual garment is folded, and the folding length represents the expected length after the virtual garment is folded.

[0055] Among them, the folding size is the expected size after the virtual garment is folded, which can be adjusted according to the needs of the customer. Generally, the expected folding shape of the virtual garment is a rectangle. The folding size includes the folding width and the folding length. The folding width represents the expected width after the virtual garment is folded, and the folding length represents the expected length after the virtual garment is folded. It should be noted that the present application does not make specific limitations on the sizes of the folding width and the folding length.

[0056] S400, according to the folding size, establish a fixed template and a folding template. The folding template includes a left folding virtual board, a right folding virtual board, and a folding virtual board in half.

[0057] Among them, the fixed template and the folding template are virtual templates established in 3D graphic image software. The fixed template is used to fix the virtual garment and determine the position of the virtual garment on the fixed template. The folding template is used to fold the virtual garment. The folding template includes a left folding virtual board, a right folding virtual board, and a folding virtual board. The size of the fixed template can be determined by the folding size. Then, according to the fixed template, the folding template is established. Specifically, the position of the folding template can be determined according to the position and size of the fixed template. Preferably, the 3D graphic image software adopted in this application can be Blender. Blender provides 3D graphic creation tools, including modeling, texturing, rigging, skinning, animation, and physical simulation, script control, rendering, motion tracking, compositing, and post-processing of other systems. It should be noted that this application does not specifically limit the type of 3D graphic image software adopted.

[0058] S600. Fold the virtual garment according to the fixed template and the folding template.

[0059] Among them, place the virtual garment on the fixed template. The left folding virtual board folds the virtual garment to the left, and the right folding virtual board folds the virtual garment to the right. The virtual garment after left and right folding is placed on the folding virtual board, and the folding virtual board folds the virtual garment in half. Thus, the fixed template and the folding template fold the virtual garment.

[0060] In the above virtual garment folding method, by obtaining the folding size and the virtual garment, the folding size includes the folding width and the folding length. The folding width represents the expected width of the virtual garment after being folded, and the folding length represents the expected length of the virtual garment after being folded. According to the folding size, a fixed template and a folding template are established. The folding template includes a left folding virtual board, a right folding virtual board, and a folding virtual board. According to the fixed template and the folding template, the virtual garment is folded. Since the folding size can be adjusted according to the customer's needs, the folded virtual garment has the folding size required by the customer. At the same time, using the established fixed template and folding template to automatically fold the virtual garment can effectively solve the problems of conflict and wrinkling during the folding process, without manual adjustment, and improve the folding efficiency of the virtual garment.

[0061] In one embodiment, as Figure 3 shown, establishing the fixed template and the folding template according to the folding size includes:

[0062] S420. Establish a fixed template according to the folding width. The width of the fixed template is equal to the folding width, and the length of the fixed template is greater than or equal to the folding length.

[0063] S440. Establish a left folding virtual board according to the first edge of the fixed template, and establish a right folding virtual board according to the second edge of the fixed template. The first edge and the second edge are opposite to each other, and both the left folding virtual board and the right folding virtual board are perpendicular to the fixed template. Also, establish a folding virtual board which includes a first folding board and a second folding board, and the first folding board and the second folding board are perpendicular to each other.

[0064] In this embodiment, for the fixed template established in the three-dimensional graphic image software, its width is determined according to the folding width in the folding dimensions, and the width of the fixed template is equal to the folding width. The length of the fixed template can be set according to the folding length. Specifically, to adapt to virtual ready-to-wear of different lengths, the length of the fixed template can be greater than or equal to the folding length.

[0065] When the expected folding shape of the virtual ready-to-wear is a rectangle, the shapes of both the fixed template and the folding template can be rectangles. The edges corresponding to the length of the fixed template are respectively called the first edge and the second edge, and the first edge and the second edge are opposite to each other. Establish a left folding virtual board beside the first edge of the fixed template, and there is a distance of a first preset length between the left folding virtual board and the first edge of the fixed template. Establish a right folding virtual board beside the second edge of the fixed template, and there is a distance of a second preset length between the right folding virtual board and the second edge of the fixed template. Both the left folding virtual board and the right folding virtual board are perpendicular to the fixed template. Generally, when folding the template, it is usually first folded to the left using the left folding virtual board, and then folded to the right using the right folding virtual board, with the right folding virtual board covering the left-folded virtual board. The second preset length is greater than or equal to the first preset length. Similarly, if the folding template is first folded to the right using the right folding virtual board and then folded to the left using the left folding virtual board, then the second preset length is less than or equal to the first preset length. Since the folding method can be determined according to customer requirements, this application does not specifically limit the magnitudes of the first preset length and the second preset length. Then, establish a folding virtual board on either side of the fixed template. The folding virtual board includes a first folding board and a second folding board, and the first folding board and the second folding board are perpendicular to each other. The size of the first folding board is equal to the size of the second folding board. The two edges corresponding to the width of the first folding board are called the width edges of the first folding board, and the two edges corresponding to the width of the second folding board are called the width edges of the second folding board. The width edges of the first folding board are parallel to the width edges of the second folding board, and the horizontal distance from the width edge of the first folding board to the width edge of the second folding board is a third preset length, and the vertical distance from the width edge of the first folding board to the width edge of the second folding board is a fourth preset length. This application does not specifically limit the magnitudes of the third preset length and the fourth preset length.

[0066] For the solution of the above embodiment, by folding width, a fixed template is established. The width of the fixed template is equal to the folding width, and the length of the fixed template is greater than or equal to the folding length. According to the first edge of the fixed template, a left folding virtual plate is established, and according to the second edge of the fixed template, a right folding virtual plate is established. Both the left folding virtual plate and the right folding virtual plate are perpendicular to the fixed template. The established folding virtual plate includes a first folding plate and a second folding plate, and the first folding plate and the second folding plate are perpendicular. This method of establishing virtual fixed templates and folding templates in 3D graphic image software according to folding dimensions can adjust the folding dimensions according to customer requirements, and then adjust the relative positions and sizes of the fixed template and the folding template. The corresponding parameters can be flexibly adjusted in the software, which can effectively meet the folding requirements of various types of virtual clothing and improve the folding efficiency of virtual clothing.

[0067] In one embodiment, as Figure 4 shown, folding the virtual clothing according to the fixed template and the folding template includes:

[0068] S620, fixing the virtual clothing on the first surface of the fixed template;

[0069] S640, performing left folding on the virtual clothing according to the left folding action corresponding to the left folding virtual plate, so that the part of the virtual clothing that overflows the first edge is folded back to the second surface of the fixed template. The first surface and the second surface are opposite to obtain the left-folded virtual clothing;

[0070] S660, performing right folding on the left-folded virtual clothing according to the right folding action corresponding to the right folding virtual plate and the left-folded virtual clothing, so that the part of the left-folded virtual clothing that overflows the second edge is folded back to the second surface to obtain the left-and-right folded virtual clothing;

[0071] S680, fixing the left-and-right folded virtual clothing on the first surface of the first folding plate according to the folding length, and performing folding on the left-and-right folded virtual clothing through the second folding plate according to the folding action corresponding to the folding virtual plate, so that the part of the left-and-right folded virtual clothing that overflows the first folding plate is folded back to the second surface of the first folding plate. The first surface and the second surface of the first folding plate are opposite.

[0072] In this embodiment, the upper surface of the fixed template is referred to as the first surface, and the lower surface of the fixed template is referred to as the second surface. The first surface and the second surface are opposite to each other. The virtual garment is fixedly placed on the first surface of the fixed template. The parts of the virtual garment that overflow the fixed template respectively fall below the fixed template along the first edge and the second edge of the fixed template. Moreover, the part of the virtual garment that overflows the first edge of the fixed template is located between the left folding virtual board and the first edge of the fixed template, and the part of the virtual garment that overflows the second edge of the fixed template is located between the right folding virtual board and the second edge of the fixed template.

[0073] While establishing the folding templates in the 3D graphic image software, corresponding folding actions are also established for each folding template. Among them, the left folding virtual board corresponds to the left folding action, the right folding virtual board corresponds to the right folding action, and the double-fold virtual board corresponds to the double-fold action. The fixed template, the folding templates, and the folding actions corresponding to the folding templates established in the 3D graphic image software can be imported into the virtual garment software. Using the animation function of the virtual garment software, in the virtual garment software, the virtual garment completes the folding according to the folding actions corresponding to the folding templates. The virtual garment software can be CLO 3D clothing design software. It should be noted that the type of the virtual garment software is not specifically limited in this application.

[0074] The left folding action corresponding to the left folding virtual board is used to fold the virtual garment to the left, so that the part of the virtual garment that overflows the first edge of the fixed template is folded back to the second surface of the fixed template, obtaining the left-folded virtual garment. The right folding action corresponding to the right folding virtual board is used to fold the left-folded virtual garment to the right, so that the part of the left-folded virtual garment that overflows the second edge of the fixed template is folded back to the second surface of the fixed template, obtaining the left-and-right double-folded virtual garment.

[0075] Fix the virtual ready-to-wear after left-right folding on the first surface of the first folding board according to the folding length. Specifically, the upper surface of the first folding board is called the first surface of the first folding board, and the lower surface of the first folding board is called the second surface of the first folding board. The first surface of the first folding board and the second surface of the first folding board are opposite. The width edges of the adjacent first folding board and the second folding board are respectively called the first width edge and the second width edge. Fix the virtual ready-to-wear after left-right folding on the first surface of the first folding board. Among them, the distance from the upper edge of the virtual ready-to-wear after left-right folding to the first width edge is equal to the folding length of the folding size. The part of the virtual ready-to-wear after left-right folding that overflows the first width edge of the first folding board hangs down below the first folding board, and the part of the virtual ready-to-wear after left-right folding that overflows the first width edge of the first folding board is located between the second folding board and the first width edge of the first folding board. The folding action corresponding to the folding virtual board is used for the second folding board to fold the virtual ready-to-wear after left-right folding, so that the part of the virtual ready-to-wear after left-right folding that overflows the first folding board is folded back to the second surface of the first folding board. It should be noted that the folding method can be adjusted according to customer needs. For example, after placing the virtual ready-to-wear on the fixed template, the virtual ready-to-wear can also be first right-folded according to the right-fold action of the right folding virtual board to obtain the right-folded virtual ready-to-wear, and then left-folded according to the left-fold action of the left folding virtual board to obtain the virtual ready-to-wear after left-right folding. Another example is to first fix the virtual ready-to-wear on the folding virtual board according to the folding length, fold the virtual ready-to-wear according to the folding action corresponding to the folding virtual board to obtain the folded virtual ready-to-wear, then fix the folded virtual ready-to-wear on the fixed template, and left-fold the folded virtual ready-to-wear according to the left-fold action corresponding to the left folding virtual board to obtain the left-folded and folded virtual ready-to-wear, and then right-fold the left-folded and folded virtual ready-to-wear according to the right-fold action corresponding to the right folding virtual board.

[0076] In the solution of the above embodiment, by fixing the virtual garment on the first surface of the fixed template, the left folding of the virtual garment is performed according to the left folding action corresponding to the left folding virtual board to obtain the left-folded virtual garment, the right folding of the left-folded virtual garment is performed according to the right folding action corresponding to the right folding virtual board to obtain the left-and-right folded virtual garment, and according to the folding length, the left-and-right folded virtual garment is fixed on the first surface of the first folding board. Then, the left-and-right folded virtual garment is folded according to the folding action corresponding to the folding virtual board. This method of fixing the virtual garment on the fixed template, then performing left and right folding on the virtual garment using the left folding virtual board and the right folding virtual board, and automatically folding the virtual garment using the folding virtual board draws on the folding method of the actual garment. With the assistance of the virtual fixed template and folding template, the folding of the virtual garment is realized. The implementation method of the virtual software enables the folding method to be adjusted according to customer needs, which can meet various types of virtual garments and folding requirements. The folding process is automatic, improving the folding efficiency of the virtual garment.

[0077] In one embodiment, the left folding action corresponding to the left folding virtual board includes: rotating 90 degrees towards the second surface of the fixed template with the first rotation line as the axis, where the first rotation line is determined according to the fixed template and the left folding virtual board; the right folding action corresponding to the right folding virtual board includes: rotating 90 degrees towards the second surface of the fixed template with the second rotation line as the axis, where the second rotation line is determined according to the fixed template and the right folding virtual board; the folding action corresponding to the folding virtual board includes: the second folding board rotates 90 degrees towards the second surface of the first folding board with the third rotation line as the axis, where the third rotation line is determined according to the first folding board and the second folding board.

[0078] In this embodiment, the left folding action corresponding to the left folding virtual board includes: rotating 90 degrees towards the second surface of the fixed template with the first rotation line as the axis, where the first rotation line is determined according to the fixed template and the left folding virtual board. Specifically, the first rotation line is the intersection line of the extension surface of the first surface of the fixed template and the left folding virtual board; the right folding action corresponding to the right folding virtual board includes: rotating 90 degrees towards the second surface of the fixed template with the second rotation line as the axis, where the second rotation line is determined according to the fixed template and the right folding virtual board. Specifically, the second rotation line is the intersection line of the extension surface of the first surface of the fixed template and the right folding virtual board; the folding action corresponding to the folding virtual board includes: the second folding board rotates 90 degrees towards the second surface of the first folding board with the third rotation line as the axis, where the third rotation line is determined according to the first folding board and the second folding board. Specifically, the third rotation line is the width edge of the second folding board adjacent to the first folding board.

[0079] In the solution of the above embodiment, by specifically setting the left - folding action corresponding to the left - folding virtual board, the right - folding action corresponding to the right - folding virtual board, and the folding - in - half action corresponding to the folding - in - half virtual board, it is beneficial for the virtual clothing to be automatically folded according to the folding action corresponding to the folding template. At the same time, the specific folding action can also be flexibly adjusted according to customer needs, meeting the folding requirements of various different types of virtual clothing, and improving the folding efficiency of the virtual clothing.

[0080] In one embodiment, as Figure 5 shown, fixing the virtual clothing on the first surface of the fixed template includes:

[0081] S622, obtaining the vertical mid - line of the virtual clothing;

[0082] S624, aligning the vertical mid - line of the virtual clothing with the vertical mid - line of the fixed template, so that the virtual clothing is fixed on the first surface of the fixed template.

[0083] In this embodiment, the direction corresponding to the length of the virtual clothing is called the vertical direction of the virtual clothing, and the direction corresponding to the length of the fixed template is called the vertical direction of the fixed template. The vertical mid - line of the virtual clothing is a straight line in the vertical direction of the virtual clothing, and this straight line divides the width of the virtual clothing into two equal parts. Similarly, the vertical mid - line of the fixed template is a straight line in the vertical direction of the fixed template, and this straight line divides the width of the fixed template into two equal parts. Obtaining the vertical mid - line of the virtual clothing and the vertical mid - line of the fixed template, and aligning the vertical mid - line of the virtual clothing with the vertical mid - line of the fixed template, so that the virtual clothing is fixed on the first surface of the fixed template.

[0084] In the solution of the above embodiment, by obtaining the vertical mid - line of the virtual clothing and the vertical mid - line of the fixed template, and aligning the vertical mid - line of the virtual clothing with the vertical mid - line of the fixed template, the virtual clothing can be fixed on the first surface of the fixed template, laying a foundation for the folding template to fold the virtual clothing fixed on the fixed template.

[0085] In one embodiment, as Figure 6 shown, folding the virtual clothing to the left according to the left - folding action corresponding to the left - folding virtual board includes:

[0086] S642, adjusting the left - folding action corresponding to the left - folding virtual board to: rotating 90 degrees around the first rotation line towards the second surface of the fixed template and moving forward a preset distance along the second surface;

[0087] S644, folding the virtual clothing to the left based on the adjusted left - folding action.

[0088] In this embodiment, to avoid folding conflicts, wrinkling, and mold penetration problems that may occur after directly rotating the left fold, and to further optimize the folding effect, the present application improves the left-fold operation. The left-fold operation corresponding to the left-fold virtual board is adjusted to rotate 90 degrees around the first rotation line towards the second surface of the fixed template and then move forward a preset distance along the second surface. Based on the adjusted left-fold operation, the virtual garment is left-folded. Specifically, the adjusted left-fold operation is used to left-fold the virtual garment so that the part of the virtual garment that overflows the first edge of the fixed template is folded back onto the second surface of the fixed template, obtaining the left-folded virtual garment. To achieve a better folding effect, the preset distance can be set according to the thickness of the clothes based on empirical values. The present application does not specifically limit the size of the preset distance.

[0089] In the solution of the above embodiment, the left-fold operation corresponding to the left-fold virtual board is adjusted to: rotate 90 degrees around the first rotation line towards the second surface of the fixed template and then move forward a preset distance along the second surface. Based on the adjusted left-fold operation, the virtual garment is left-folded. Since the adjusted left-fold operation adds the step of moving the left-fold virtual board forward a preset distance along the second surface of the fixed template, as the left-fold virtual board moves forward, it drives the virtual garment to tighten inward, which can eliminate the folding conflicts, wrinkling, and mold penetration problems caused by directly rotating the left fold. The left-fold operation is established before importing the virtual garment software, and the virtual garment is automatically folded in the virtual garment software according to the left-fold operation without manual adjustment, improving the folding efficiency of the virtual garment.

[0090] In one embodiment, according to the right-fold operation corresponding to the right-fold virtual board and the left-folded virtual garment, the left-folded virtual garment is right-folded, including: adjusting the right-fold operation corresponding to the right-fold virtual board to: rotate 90 degrees around the second rotation line towards the second surface of the fixed template and then move forward a preset distance along the second surface; based on the adjusted right-fold operation and the left-folded virtual garment, the left-folded virtual garment is right-folded.

[0091] In this embodiment, to avoid folding conflicts, wrinkling, and mold penetration problems that occur after directly rotating the right fold, and to further optimize the folding effect, the present application improves the right fold action. The right fold action corresponding to the right folding virtual board is adjusted to rotate 90 degrees around the second rotation line towards the second surface of the fixed template and move forward a second preset distance along the second surface. Based on the adjusted right fold action and the virtual ready-to-wear after left folding, the virtual ready-to-wear after left folding is right-folded. Specifically, the adjusted right fold action is used to right-fold the virtual ready-to-wear after left folding, so that the part of the virtual ready-to-wear after left folding that overflows the second edge of the fixed template is folded back to the second surface of the fixed template, obtaining the virtual ready-to-wear after left and right folding. To achieve a better folding effect, the second preset distance can be set according to the thickness of the clothes based on empirical values, and the present application does not specifically limit the size of the second preset distance.

[0092] For the solution of the above embodiment, the right fold action corresponding to the right folding virtual board is adjusted to: rotate 90 degrees around the second rotation line towards the second surface of the fixed template and move forward a second preset distance along the second surface. Based on the adjusted right fold action and the virtual ready-to-wear after left folding, the virtual ready-to-wear after left folding is right-folded. Since the adjusted right fold action adds the step of moving the right folding virtual board forward a second preset distance along the second surface of the fixed template, as the right folding virtual board moves forward, it drives the virtual ready-to-wear to tighten inward, which can eliminate the folding conflicts, wrinkling, and mold penetration problems caused by directly rotating the right fold. The right fold action is established before importing into the virtual ready-to-wear software, and the virtual ready-to-wear is automatically folded according to the right fold action in the virtual ready-to-wear software without manual adjustment, improving the folding efficiency of the virtual ready-to-wear.

[0093] In one embodiment, as Figure 7 shown, according to the folding action corresponding to the folding virtual board, the virtual ready-to-wear after left and right folding is folded by the second folding board, including:

[0094] S682, according to the third rotation line in the folding action, adjust the distance between the first folding board and the second folding board to obtain the updated third rotation line;

[0095] S684, according to the updated third rotation line, obtain the adjusted folding action. The adjusted folding action includes: the second folding board rotates 90 degrees around the updated third rotation line towards the second surface of the first folding board;

[0096] S686, according to the adjusted folding action, fold the virtual ready-to-wear after left and right folding by the second folding board.

[0097] In this embodiment, to avoid folding conflicts, wrinkling, and die-piercing problems that occur after direct rotation and folding, and to further optimize the folding effect, the present application improves the folding action. According to the third rotation line in the folding action, the distance between the first folding plate and the second folding plate is adjusted to obtain an updated third rotation line. Specifically, the second folding plate is moved towards the first folding plate, horizontally moving a third preset distance and vertically moving a fourth longitudinal distance. As the second folding plate moves, the third rotation line also moves, obtaining an updated third rotation line. The updated third rotation line is the width edge of the moved second folding plate adjacent to the first folding plate. To achieve a better folding effect, the third preset distance and the fourth preset distance can be set according to the thickness of the clothes based on empirical values. The present application does not specifically limit the magnitudes of the third preset distance and the fourth preset distance.

[0098] According to the updated third rotation line, an adjusted folding action is obtained. The adjusted folding action includes: the second folding plate rotates 90 degrees towards the second surface of the first folding plate with the updated third rotation line as the axis. Based on the adjusted folding action, the second folding plate is used to fold the virtual ready-to-wear after left-right folding. Specifically, the adjusted folding action is used for the second folding plate to fold the virtual ready-to-wear after left-right folding, so that the part of the virtual ready-to-wear that overflows the first folding plate after left-right folding folds back to the second surface of the first folding plate.

[0099] In the solution of the above embodiment, by adjusting the distance between the first folding plate and the second folding plate, an updated third rotation line is obtained. According to the updated third rotation line, an adjusted folding action is obtained. The adjusted folding action includes: the second folding plate rotates 90 degrees towards the second surface of the first folding plate with the updated third rotation line as the axis. According to the adjusted folding action, the second folding plate is used to fold the virtual ready-to-wear after left-right folding. Since the adjusted folding action adds the step of adjusting the distance between the first folding plate and the second folding plate to obtain an updated third rotation line, as the distance between the first folding plate and the second folding plate is adjusted, the updated third rotation line approaches the first folding plate, driving the virtual ready-to-wear to tighten inward, which can eliminate the folding conflicts, wrinkling, and die-piercing problems caused by direct rotation and folding. The folding action is established before importing into the virtual ready-to-wear software, and the virtual ready-to-wear is automatically folded in the virtual ready-to-wear software according to the folding action without manual adjustment, improving the folding efficiency of the virtual ready-to-wear.

[0100] To illustrate the virtual ready-to-wear folding method and effect in this solution in detail, the following is described with a most detailed embodiment:

[0101] Obtain the folding dimensions and virtual ready-to-wear clothing. The folding dimensions include the folding width and the folding length. The folding width represents the expected width after the virtual ready-to-wear clothing is folded, and the folding length represents the expected length after the virtual ready-to-wear clothing is folded. As Figure 8 shown in the schematic diagrams of the established fixed template and folding template. Among them, the fixed template is 720, and the folding template includes a left folding virtual board 740, a right folding virtual board 760, and a folding-in-half virtual board 780. In the Blender software, according to the folding dimensions, the fixed template 720 and the folding template are established. Specifically, according to the folding width, the fixed template 720 is established. The width of the fixed template 720 is equal to the folding width, and the length of the fixed template 720 is greater than or equal to the folding length. According to the first edge of the fixed template 720, the left folding virtual board 740 is established, and according to the second edge of the fixed template 720, the right folding virtual board 760 is established. The first edge and the second edge are opposite to each other, and both the left folding virtual board 740 and the right folding virtual board 760 are perpendicular to the fixed template 720. The folding-in-half virtual board 780 is established. As Figure 9 shown in, the folding-in-half virtual board 780 includes a first folding-in-half board 782 and a second folding-in-half board 784. The first folding-in-half board 782 and the second folding-in-half board 784 are perpendicular to each other. The folding actions corresponding to the folding template are established. The folding actions include the left folding action corresponding to the left folding virtual board 740, the right folding action corresponding to the right folding virtual board 760, and the folding-in-half action corresponding to the folding-in-half virtual board 780. The left folding action corresponding to the left folding virtual board 740 includes: rotating 90 degrees towards the second surface of the fixed template 720 with the first rotation line 742 as the axis, and moving forward a preset distance along the second surface. The first rotation line 742 is determined according to the fixed template 720 and the left folding virtual board 740. The right folding action corresponding to the right folding virtual board 760 includes: rotating 90 degrees towards the second surface of the fixed template 720 with the second rotation line 762 as the axis, and moving forward a preset distance along the second surface. The second rotation line 762 is determined according to the fixed template 720 and the right folding virtual board 760. The folding-in-half action corresponding to the folding-in-half virtual board 780 includes: the third rotation line 786 is the width edge of the second folding-in-half board 784 adjacent to the first folding-in-half board 782. According to the third rotation line 786, the distance between the first folding-in-half board 782 and the second folding-in-half board 784 is adjusted to obtain the updated third rotation line 788 as Figure 10 shown in. With the updated third rotation line 788 as the axis, rotate 90 degrees towards the second surface of the first folding-in-half board 782. The updated third rotation line 788 is the width edge of the moved second folding-in-half board 784 adjacent to the first folding-in-half board 782.

[0102] Import the fixed template 720 and the folding template established in the Blender software into the CLO virtual ready-to-wear clothing software, and import the virtual ready-to-wear clothing into the CLO virtual ready-to-wear clothing software. Using the animation function of the CLO software, the virtual ready-to-wear clothing is folded according to the folding actions corresponding to the folding template. AsFigure 9 As shown, the virtual garment 790 is fixed on the fixed template 720, and the left-fold virtual board 740 folds the left side of the virtual garment 790. The vertical center line of the virtual garment 790 is obtained; the vertical center line of the virtual garment 790 is aligned with the vertical center line of the fixed template 720, so that the virtual garment 790 is fixed on the first surface of the fixed template 720. According to the left-fold action corresponding to the left-fold virtual board 740, the left side of the virtual garment 790 is folded, so that the part of the virtual garment 790 that overflows the first edge is folded back to the second surface of the fixed template 720. The first surface and the second surface are opposite to each other, and the left-folded virtual garment is obtained. As Figure 10 As shown, after left and right folding, the virtual garment 790 is fixed on the first folding board 782 of the double-fold virtual board 780. According to the right-fold action corresponding to the right-fold virtual board 760 and the left-folded virtual garment, the left-folded virtual garment is right-folded, so that the part of the left-folded virtual garment that overflows the second edge is folded back to the second surface, and the left and right double-folded virtual garment is obtained; according to the folding length, the left and right double-folded virtual garment is fixed on the first surface of the first folding board 782. According to the double-fold action corresponding to the double-fold virtual board 780, the left and right double-folded virtual garment is double-folded by the second folding board 784, so that the part of the left and right double-folded virtual garment that overflows the first folding board 782 is folded back to the second surface of the first folding board 782. The first surface and the second surface of the first folding board 782 are opposite to each other. It should be noted that the folding size and the folding action corresponding to the folding template can also be adjusted according to customer requirements. For example, the folding width or the folding length in the folding size can be adjusted. Another example is to adjust the folding action to first right-fold, then left-fold, and then perform two double-folds. The method for folding a virtual garment based on a fixed template and a folding template proposed in this application does not make specific limitations on the size of the virtual garment, the folding size, the style of the virtual garment, the folding order, and the number of folds, and can provide customers with more virtual garment folding display methods, improving the folding efficiency of the virtual garment.

[0103] In the above virtual garment folding method, by obtaining the folding size and the virtual garment, the folding size includes the folding width and the folding length. The folding width represents the expected width of the virtual garment after folding, and the folding length represents the expected length of the virtual garment after folding. According to the folding size, a fixed template and a folding template are established. The folding template includes a left-fold virtual board, a right-fold virtual board, and a double-fold virtual board. According to the fixed template and the folding template, the virtual garment is folded. Since the folding size can be adjusted according to customer requirements, the folded virtual garment has the folding size required by the customer. At the same time, using the established fixed template and folding template to automatically fold the virtual garment can effectively solve the problems of conflict and wrinkling during the folding process, without manual adjustment, improving the folding efficiency of the virtual garment.

[0104] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0105] Based on the same inventive concept, the embodiment of the present application also provides a virtual garment folding device for implementing the virtual garment folding method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more virtual garment folding device embodiments provided below can refer to the limitations of the virtual garment folding method above, and will not be repeated here.

[0106] In one embodiment, Figure 11 As shown, a virtual garment folding device 100 is provided, comprising: a data acquisition module 120, a virtual template establishment module 140 and a virtual folding module 160, wherein:

[0107] A data acquisition module 120 is used to acquire a folding size and a virtual garment, wherein the folding size includes a folding width and a folding length, wherein the folding width represents an expected width of the virtual garment after being folded, and the folding length represents an expected length of the virtual garment after being folded;

[0108] A virtual template establishing module 140 is used to establish a fixed template and a folding template according to the folding size, wherein the folding template includes a left folding virtual plate, a right folding virtual plate and a half-folded virtual plate;

[0109] The virtual folding module 160 is used to fold the virtual garment according to the fixed template and the folding template.

[0110] The above virtual garment folding device obtains the folding dimensions and the virtual garment. The folding dimensions include the folding width and the folding length. The folding width represents the expected width of the virtual garment after being folded, and the folding length represents the expected length of the virtual garment after being folded. According to the folding dimensions, a fixed template and a folding template are established. The folding template includes a left folding virtual board, a right folding virtual board, and a folding virtual board. According to the fixed template and the folding template, the virtual garment is folded. Since the folding dimensions can be adjusted according to the customer's needs, the folded virtual garment has the folding dimensions required by the customer. At the same time, using the established fixed template and folding template to automatically fold the virtual garment can effectively solve the problems of conflict and wrinkling during the folding process, without manual adjustment, and improve the folding efficiency of the virtual garment.

[0111] In one embodiment, the virtual template establishment module 140 is further configured to establish a fixed template according to the folding width. The width of the fixed template is equal to the folding width, and the length of the fixed template is greater than or equal to the folding length. According to the first edge of the fixed template, a left folding virtual board is established, and according to the second edge of the fixed template, a right folding virtual board is established. The first edge and the second edge are opposite to each other, and both the left folding virtual board and the right folding virtual board are perpendicular to the fixed template. And a folding virtual board is established. The folding virtual board includes a first folding board and a second folding board, and the first folding board and the second folding board are perpendicular to each other.

[0112] In one embodiment, the virtual folding module 160 is further configured to fix the virtual garment on the first surface of the fixed template. According to the left folding action corresponding to the left folding virtual board, the virtual garment is left-folded, so that the part of the virtual garment that overflows the first edge is folded back to the second surface of the fixed template. The first surface and the second surface are opposite to each other, and the left-folded virtual garment is obtained. According to the right folding action corresponding to the right folding virtual board and the left-folded virtual garment, the left-folded virtual garment is right-folded, so that the part of the left-folded virtual garment that overflows the second edge is folded back to the second surface, and the left-and-right folded virtual garment is obtained. According to the folding length, the left-and-right folded virtual garment is fixed on the first surface of the first folding board. According to the folding action corresponding to the folding virtual board, the left-and-right folded virtual garment is folded in half by the second folding board, so that the part of the left-and-right folded virtual garment that overflows the first folding board is folded back to the second surface of the first folding board. The first surface and the second surface of the first folding board are opposite to each other.

[0113] In one embodiment, the left folding action corresponding to the left folding virtual plate in the virtual folding module 160 includes: rotating 90 degrees towards the second surface of the fixed template with the first rotation line as the axis, where the first rotation line is determined based on the fixed template and the left folding virtual plate; the right folding action corresponding to the right folding virtual plate in the virtual folding module 160 includes: rotating 90 degrees towards the second surface of the fixed template with the second rotation line as the axis, where the second rotation line is determined based on the fixed template and the right folding virtual plate; the folding action corresponding to the folding virtual plate in the virtual folding module 160 includes: the second folding plate rotates 90 degrees towards the second surface of the first folding plate with the third rotation line as the axis, where the third rotation line is determined based on the first folding plate and the second folding plate.

[0114] In one embodiment, the virtual folding module 160 is further configured to obtain the vertical center line of the virtual garment; align the vertical center line of the virtual garment with the vertical center line of the fixed template, so that the virtual garment is fixed on the first surface of the fixed template.

[0115] In one embodiment, the virtual folding module 160 is further configured to adjust the left folding action corresponding to the left folding virtual plate to: rotate 90 degrees towards the second surface of the fixed template with the first rotation line as the axis, and move forward a preset distance along the second surface; based on the adjusted left folding action, perform left folding on the virtual garment.

[0116] In one embodiment, the virtual folding module 160 is further configured to adjust the distance between the first folding plate and the second folding plate according to the third rotation line in the folding action to obtain an updated third rotation line; according to the updated third rotation line, obtain an adjusted folding action, where the adjusted folding action includes: the second folding plate rotates 90 degrees towards the second surface of the first folding plate with the updated third rotation line as the axis; according to the adjusted folding action, perform folding on the left and right folded virtual garment through the second folding plate.

[0117] Each module in the above virtual garment folding device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in hardware form or be independent of it, or can be stored in the memory in the computer device in software form, so that the processor can call and execute the operations corresponding to the above respective modules.

[0118] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 12As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store folding dimensions and virtual garment data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a virtual garment folding method is implemented.

[0119] Those skilled in the art will understand that Figure 12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0120] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0121] Acquire a folded size and a virtual garment, wherein the folded size includes a folded width and a folded length, wherein the folded width represents an expected width of the virtual garment after being folded, and the folded length represents an expected length of the virtual garment after being folded;

[0122] According to the folding size, a fixed template and a folding template are established, and the folding template includes a left folding virtual plate, a right folding virtual plate and a half-folding virtual plate;

[0123] The virtual garment is folded according to the fixed template and the folding template.

[0124] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0125] According to the folding width, a fixed template is established, and the width of the fixed template is equal to the folding width, and the length of the fixed template is greater than or equal to the folding length; according to the first edge of the fixed template, a left folding virtual plate is established, and according to the second edge of the fixed template, a right folding virtual plate is established, the first edge and the second edge are opposite to each other, and both the left folding virtual plate and the right folding virtual plate are perpendicular to the fixed template; and a folding virtual plate is established, and the folding virtual plate includes a first folding plate and a second folding plate, and the first folding plate and the second folding plate are perpendicular to each other.

[0126] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0127] Fix the virtual garment on the first surface of the fixed template; according to the left folding action corresponding to the left folding virtual plate, perform a left fold on the virtual garment, so that the part of the virtual garment that overflows the first edge folds back to the second surface of the fixed template, and the first surface and the second surface are opposite to each other, obtaining the left-folded virtual garment; according to the right folding action corresponding to the right folding virtual plate and the left-folded virtual garment, perform a right fold on the left-folded virtual garment, so that the part of the left-folded virtual garment that overflows the second edge folds back to the second surface, obtaining the left-and-right folded virtual garment; according to the folding length, fix the left-and-right folded virtual garment on the first surface of the first folding plate, and according to the folding action corresponding to the folding virtual plate, perform a fold on the left-and-right folded virtual garment through the second folding plate, so that the part of the left-and-right folded virtual garment that overflows the first folding plate folds back to the second surface of the first folding plate, and the first surface of the first folding plate and the second surface of the first folding plate are opposite to each other.

[0128] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0129] The left folding action corresponding to the left folding virtual plate includes: rotating 90 degrees towards the second surface of the fixed template with the first rotation line as the axis, and the first rotation line is determined according to the fixed template and the left folding virtual plate; the right folding action corresponding to the right folding virtual plate includes: rotating 90 degrees towards the second surface of the fixed template with the second rotation line as the axis, and the second rotation line is determined according to the fixed template and the right folding virtual plate; the folding action corresponding to the folding virtual plate includes: the second folding plate rotates 90 degrees towards the second surface of the first folding plate with the third rotation line as the axis, and the third rotation line is determined according to the first folding plate and the second folding plate.

[0130] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0131] Obtain the vertical midline of the virtual garment; align the vertical midline of the virtual garment with the vertical midline of the fixed template, so that the virtual garment is fixed on the first surface of the fixed template.

[0132] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0133] Adjust the left folding action corresponding to the left folding virtual board to: rotate 90 degrees around the first rotation line towards the second surface of the fixed template and move forward a preset distance along the second surface; based on the adjusted left folding action, perform a left fold on the virtual garment.

[0134] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0135] According to the third rotation line in the folding action, adjust the distance between the first folding board and the second folding board to obtain an updated third rotation line; according to the updated third rotation line, obtain an adjusted folding action, and the adjusted folding action includes: the second folding board rotates 90 degrees around the updated third rotation line towards the second surface of the first folding board; according to the adjusted folding action, perform a fold on the left and right folded virtual garment through the second folding board.

[0136] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0137] Obtain a folding size and a virtual garment. The folding size includes a folding width and a folding length. The folding width represents the expected width after the virtual garment is folded, and the folding length represents the expected length after the virtual garment is folded;

[0138] According to the folding size, establish a fixed template and a folding template. The folding template includes a left folding virtual board, a right folding virtual board, and a folding virtual board;

[0139] According to the fixed template and the folding template, fold the virtual garment.

[0140] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0141] According to the folding width, establish a fixed template. The width of the fixed template is equal to the folding width, and the length of the fixed template is greater than or equal to the folding length; according to the first edge of the fixed template, establish a left folding virtual board, and according to the second edge of the fixed template, establish a right folding virtual board. The first edge and the second edge are opposite, and both the left folding virtual board and the right folding virtual board are perpendicular to the fixed template; and establish a folding virtual board, which includes a first folding board and a second folding board, and the first folding board and the second folding board are perpendicular.

[0142] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0143] Fix the virtual garment on the first surface of the fixed template; according to the left folding action corresponding to the left folding virtual board, perform a left fold on the virtual garment so that the part of the virtual garment that overflows the first edge folds back to the second surface of the fixed template, and the first surface and the second surface are opposite to obtain the left-folded virtual garment; according to the right folding action corresponding to the right folding virtual board and the left-folded virtual garment, perform a right fold on the left-folded virtual garment so that the part of the left-folded virtual garment that overflows the second edge folds back to the second surface to obtain the left-and-right folded virtual garment; according to the folding length, fix the left-and-right folded virtual garment on the first surface of the first folding board, and according to the folding action corresponding to the folding virtual board, fold the left-and-right folded virtual garment through the second folding board so that the part of the left-and-right folded virtual garment that overflows the first folding board folds back to the second surface of the first folding board, and the first surface of the first folding board and the second surface of the first folding board are opposite.

[0144] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0145] The left folding action corresponding to the left folding virtual board includes: rotating 90 degrees towards the second surface of the fixed template with the first rotation line as the axis, and the first rotation line is determined according to the fixed template and the left folding virtual board; the right folding action corresponding to the right folding virtual board includes: rotating 90 degrees towards the second surface of the fixed template with the second rotation line as the axis, and the second rotation line is determined according to the fixed template and the right folding virtual board; the folding action corresponding to the folding virtual board includes: the second folding board rotates 90 degrees towards the second surface of the first folding board with the third rotation line as the axis, and the third rotation line is determined according to the first folding board and the second folding board.

[0146] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0147] Obtain the vertical midline of the virtual garment; align the vertical midline of the virtual garment with the vertical midline of the fixed template so that the virtual garment is fixed on the first surface of the fixed template.

[0148] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0149] Adjust the left folding action corresponding to the left folding virtual board to: rotate 90 degrees towards the second surface of the fixed template with the first rotation line as the axis and move forward a preset distance along the second surface; based on the adjusted left folding action, perform a left fold on the virtual garment.

[0150] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0151] Adjust the distance between the first folding plate and the second folding plate according to the third rotation line in the folding motion to obtain an updated third rotation line; according to the updated third rotation line, obtain an adjusted folding motion, where the adjusted folding motion includes: the second folding plate rotates 90 degrees towards the second surface of the first folding plate with the updated third rotation line as the axis; according to the adjusted folding motion, fold the left-and-right folded virtual ready-to-wear through the second folding plate.

[0152] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the following steps:

[0153] Obtain a folding size and a virtual ready-to-wear. The folding size includes a folding width and a folding length. The folding width represents the expected width after the virtual ready-to-wear is folded, and the folding length represents the expected length after the virtual ready-to-wear is folded.

[0154] Establish a fixed template and a folding template according to the folding size. The folding template includes a left folding virtual plate, a right folding virtual plate, and a folding virtual plate.

[0155] Fold the virtual ready-to-wear according to the fixed template and the folding template.

[0156] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0157] Establish a fixed template according to the folding width. The width of the fixed template is equal to the folding width, and the length of the fixed template is greater than or equal to the folding length. Establish a left folding virtual plate according to the first edge of the fixed template, and establish a right folding virtual plate according to the second edge of the fixed template. The first edge and the second edge are opposite to each other, and both the left folding virtual plate and the right folding virtual plate are perpendicular to the fixed template. And establish a folding virtual plate, where the folding virtual plate includes a first folding plate and a second folding plate, and the first folding plate and the second folding plate are perpendicular to each other.

[0158] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0159] Fix the virtual garment on the first surface of the fixed template; according to the left folding action corresponding to the left folding virtual board, perform a left fold on the virtual garment, so that the part of the virtual garment that overflows the first edge is folded back to the second surface of the fixed template, and the first surface and the second surface are opposite to obtain the left-folded virtual garment; according to the right folding action corresponding to the right folding virtual board and the left-folded virtual garment, perform a right fold on the left-folded virtual garment, so that the part of the left-folded virtual garment that overflows the second edge is folded back to the second surface to obtain the left-and-right folded virtual garment; according to the folding length, fix the left-and-right folded virtual garment on the first surface of the first folding board, and according to the folding action corresponding to the folding virtual board, fold the left-and-right folded virtual garment through the second folding board, so that the part of the left-and-right folded virtual garment that overflows the first folding board is folded back to the second surface of the first folding board, and the first surface of the first folding board and the second surface of the first folding board are opposite.

[0160] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0161] The left folding action corresponding to the left folding virtual board includes: rotating 90 degrees towards the second surface of the fixed template with the first rotation line as the axis, and the first rotation line is determined according to the fixed template and the left folding virtual board; the right folding action corresponding to the right folding virtual board includes: rotating 90 degrees towards the second surface of the fixed template with the second rotation line as the axis, and the second rotation line is determined according to the fixed template and the right folding virtual board; the folding action corresponding to the folding virtual board includes: the second folding board rotates 90 degrees towards the second surface of the first folding board with the third rotation line as the axis, and the third rotation line is determined according to the first folding board and the second folding board.

[0162] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0163] Obtain the vertical midline of the virtual garment; align the vertical midline of the virtual garment with the vertical midline of the fixed template so that the virtual garment is fixed on the first surface of the fixed template.

[0164] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0165] Adjust the left folding action corresponding to the left folding virtual board to: rotate 90 degrees towards the second surface of the fixed template with the first rotation line as the axis and move forward a preset distance along the second surface; based on the adjusted left folding action, perform a left fold on the virtual garment.

[0166] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0167] Adjust the distance between the first folding plate and the second folding plate according to the third rotation line in the folding motion to obtain an updated third rotation line; obtain an adjusted folding motion according to the updated third rotation line, where the adjusted folding motion includes: the second folding plate rotates 90 degrees towards the second surface of the first folding plate with the updated third rotation line as the axis; perform folding on the left and right folded virtual ready-to-wear through the second folding plate according to the adjusted folding motion.

[0168] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.

[0169] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., and are not limited thereto. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., and are not limited thereto.

[0170] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0171] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A virtual garment folding method, It is characterized in that The method comprises: Acquire a folding size and a virtual garment, wherein the folding size includes a folding width and a folding length, wherein the folding width represents an expected width of the virtual garment after being folded, and the folding length represents an expected length of the virtual garment after being folded; According to the folding size, a fixed template and a folding template are established, wherein the folding template includes a left folding virtual plate, a right folding virtual plate and a half-folded virtual plate; Folding the virtual garment according to the fixed template and the folding template; The step of establishing a fixed template and a folding template according to the folding size comprises: A fixed template is established according to the folding width, the left folding virtual plate is established according to the first edge of the fixed template, and the right folding virtual plate is established according to the second edge of the fixed template.

2. The virtual garment folding method according to claim 1, It is characterized in that The method further comprises: The width of the fixed template is equal to the folding width, and the length of the fixed template is greater than or equal to the folding length; the first edge and the second edge are opposite, and the left folding virtual plate and the right folding virtual plate are both perpendicular to the fixed template; the folded virtual plate is established, and the folded virtual plate includes a first folding plate and a second folding plate, and the first folding plate and the second folding plate are perpendicular.

3. The virtual garment folding method according to claim 2, It is characterized in that The step of folding the virtual garment according to the fixed template and the folding template comprises: Fixing the virtual garment on the first surface of the fixed template; According to the left folding action corresponding to the left folding virtual plate, the virtual garment is folded to the left, so that the portion of the virtual garment that overflows the first edge is folded back to the second surface of the fixed template, and the first surface and the second surface are opposite to each other, thereby obtaining the virtual garment after being folded to the left; According to the right folding action corresponding to the right folding virtual plate and the left folded virtual garment, the left folded virtual garment is right folded so that a portion of the left folded virtual garment that overflows the second edge is folded back to the second surface to obtain a left-to-right folded virtual garment; According to the folding length, the virtual garment folded in half is fixed on the first surface of the first folding plate, and according to the folding action corresponding to the folded virtual plate, the virtual garment folded in half is folded in half by the second folding plate, so that the part of the virtual garment folded in half that overflows from the first folding plate is folded back to the second surface of the first folding plate, and the first surface of the first folding plate is opposite to the second surface of the first folding plate.

4. The virtual garment folding method according to claim 3, It is characterized in that The left folding action corresponding to the left folding virtual board includes: rotating 90 degrees towards the second surface of the fixed template with the first rotation line as the axis, where the first rotation line is determined according to the fixed template and the left folding virtual board; the right folding action corresponding to the right folding virtual board includes: rotating 90 degrees towards the second surface of the fixed template with the second rotation line as the axis, where the second rotation line is determined according to the fixed template and the right folding virtual board; the folding action corresponding to the folding virtual board includes: the second folding board rotates 90 degrees towards the second surface of the first folding board with the third rotation line as the axis, where the third rotation line is determined according to the first folding board and the second folding board.

5. The virtual clothing folding method according to claim 3, characterized in that the fixing of the virtual clothing on the first surface of the fixed template includes: obtaining the vertical midline of the virtual clothing; aligning the vertical midline of the virtual clothing with the vertical midline of the fixed template, so that the virtual clothing is fixed on the first surface of the fixed template.

6. The virtual clothing folding method according to claim 4, characterized in that the left folding of the virtual clothing according to the left folding action corresponding to the left folding virtual board includes: adjusting the left folding action corresponding to the left folding virtual board to: rotating 90 degrees towards the second surface of the fixed template with the first rotation line as the axis and moving forward a preset distance along the second surface; based on the adjusted left folding action, performing left folding on the virtual clothing.

7. The virtual clothing folding method according to claim 4, characterized in that the folding of the left and right folded virtual clothing by the second folding board according to the folding action corresponding to the folding virtual board includes: adjusting the distance between the first folding board and the second folding board according to the third rotation line in the folding action to obtain an updated third rotation line; obtaining an adjusted folding action according to the updated third rotation line, where the adjusted folding action includes: the second folding board rotates 90 degrees towards the second surface of the first folding board with the updated third rotation line as the axis; according to the adjusted folding action, folding the left and right folded virtual clothing by the second folding board.

8. A virtual clothing folding device, characterized in that the device includes: a data acquisition module, configured to acquire folding dimensions and virtual clothing, where the folding dimensions include a folding width and a folding length, the folding width represents the expected width after the virtual clothing is folded, and the folding length represents the expected length after the virtual clothing is folded; a virtual template establishment module, configured to establish a fixed template and a folding template according to the folding dimensions, where the folding template includes a left folding virtual board, a right folding virtual board, and a folding virtual board; a virtual folding module, configured to fold the virtual clothing according to the fixed template and the folding template; The virtual template establishing module is further configured to establish a fixed template according to the folding width, establish the left folding virtual board according to the first edge of the fixed template, and establish the right folding virtual board according to the second edge of the fixed template.

9. A computer device, comprising a memory and a processor, where the memory stores a computer program, characterized in that when the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Knitwear folding simulation apparatus, simulation method, and storage medium

    CN101772785A

  • 3D virtual simulation tailoring technology of clothes

    CN104599313A