Methods, apparatus, computer equipment, and storage media for generating simulated knitting images
By acquiring information on the simulation tightness, yarn diameter, and weaving method from the weaving simulation instructions, and using the fabric simulation program to generate weaving simulation images, the problem of high cost in obtaining the weaving effect of traditional woven fabrics is solved, thus achieving cost-effectiveness reduction.
Patent Information
- Application Number
- CN202510128035.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-05
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2045-02-05
AI Technical Summary
Traditional techniques consume a lot of manpower in the process of achieving the desired weaving effect, resulting in high costs.
By acquiring information such as simulation tightness, yarn diameter, weaving method, and yarn quantity from the weaving simulation instructions, a weaving simulation image is generated using a fabric simulation program. This simulates the motion mode and texture relationship of the weaving device, avoiding the need for actual production samples.
It reduces the cost of obtaining the weaving effect of woven fabrics. By generating accurate weaving simulation images, users can perceive the weaving effect without producing actual samples.
Smart Images

Figure CN120032003B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of textile technology, and in particular to a method, apparatus, computer device, computer-readable storage medium, and computer program product for generating weaving simulation images. Background Technology
[0002] With the popularity of digital clothing and accessories, simulation technology is being used more and more in textiles and apparel, and the requirements for simulation effects are also getting higher and higher. In order to achieve a more realistic visual effect, it is necessary to simulate the texture and flow of fabrics and accessories more realistically, so as to provide more realistic virtual samples and simulation effects, and help consumers better understand the texture and details of clothing.
[0003] Traditional techniques require the actual production of corresponding woven fabric samples to determine the weaving effect of a woven fabric, which consumes a lot of manpower and is not conducive to reducing the cost of obtaining the weaving effect of the woven fabric. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for generating knitting simulation images that can reduce the cost of obtaining the knitting effect of knitted fabrics, in order to address the above-mentioned technical problems.
[0005] In a first aspect, this application provides a method for generating a knitting simulation image, including:
[0006] The simulation tightness information, yarn diameter information, weaving method information, and yarn threading quantity information corresponding to the weaving method information are obtained from the input of the weaving simulation command; the simulation tightness information represents the tightness of the yarn in the simulation image;
[0007] The theoretical spindle length is determined based on the simulation tightness information, the yarn diameter information, the weaving method information, and the number of yarns threaded.
[0008] Based on the theoretical spindle length information and the weaving method information, the weaving angle information is determined, and based on the weaving method information, the imaging density information is determined;
[0009] The weaving motion model corresponding to the weaving method information is obtained, and the weaving motion model, the weaving angle information, and the imaging density information are input as simulation parameters into a pre-compiled fabric simulation program to obtain a weaving simulation image; the weaving motion model represents the correspondence between the motion mode of the weaving device and the texture of the woven fabric.
[0010] In one embodiment, the method further includes:
[0011] Based on the weaving method information, determine the imaging width information;
[0012] The weaving motion model, the weaving angle information, the imaging density information, and the imaging width information are input as simulation parameters into the fabric simulation program to obtain the weaving simulation image.
[0013] In one embodiment, the step of inputting the weaving motion model, the weaving angle information, the imaging density information, and the imaging width information as simulation parameters into the fabric simulation program to obtain the weaving simulation image includes:
[0014] The fabric simulation program adjusts the weaving motion model based on the weaving angle information to obtain the adjusted weaving motion model.
[0015] The fabric simulation program generates an initial simulation image based on the adjusted weaving motion model and the imaging density information.
[0016] The fabric simulation program rotates the initial simulation image according to the weaving angle information to obtain the rotated simulation image.
[0017] The fabric simulation program crops the rotated simulation image according to the imaging width information to obtain the weaving simulation image.
[0018] In one embodiment, determining the imaging width information based on the weaving pattern information includes:
[0019] Based on the weaving method information, determine the weaving angle information;
[0020] Obtain the preset number of spindles for yarn threading, and determine the number of times the spindle appears in the preset projection plane based on the preset number of spindles for yarn threading.
[0021] The imaging width information is determined based on the occurrence frequency information, the theoretical spindle length information, and the weaving angle information.
[0022] In one embodiment, determining the theoretical spindle length information based on the simulation tightness information, the yarn diameter information, the weaving method information, and the number of yarns threaded includes:
[0023] Based on the weaving method information, the calculation coefficient is determined;
[0024] The theoretical spindle length information is determined by multiplying the product of the simulation tightness information, the yarn diameter information, and the yarn threading quantity information with the product of the calculation coefficient.
[0025] In one embodiment, determining the weaving angle information based on the theoretical spindle length information and the weaving method information includes:
[0026] Based on the theoretical spindle length information and the weaving method information, first length information and second length information are determined; the first length information represents the length of the adjacent side of the angle with the weaving angle information; the second length information represents the length of the opposite side of the angle with the weaving angle information.
[0027] The weaving angle information is determined based on the ratio between the second length information and the first length information.
[0028] Secondly, this application also provides a knitting simulation image generation device, comprising:
[0029] The response module is used to acquire simulation density information, yarn diameter information, weaving method information, and yarn threading quantity information corresponding to the weaving method information from the input of the weaving simulation command; the simulation density information represents the density of the yarn in the simulation image.
[0030] The determination module is used to determine the theoretical spindle length information based on the simulation tightness information, the yarn diameter information, the weaving method information, and the yarn threading quantity information;
[0031] The calculation module is used to determine the weaving angle information based on the theoretical spindle length information and the weaving method information, and to determine the imaging density information based on the weaving method information;
[0032] The generation module is used to obtain the weaving motion model corresponding to the weaving method information, and input the weaving motion model, the weaving angle information and the imaging density information as simulation parameters into a pre-compiled fabric simulation program to obtain a weaving simulation image; the weaving motion model represents the correspondence between the motion mode of the weaving device and the texture of the woven fabric.
[0033] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, implements the steps of the method described above.
[0034] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the above-described method.
[0035] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the above-described method.
[0036] The aforementioned method, apparatus, computer equipment, computer-readable storage medium, and computer program product for generating knitting simulation images acquire simulation density information, yarn diameter information, knitting method information, and yarn threading quantity information corresponding to the knitting method information from the input of the knitting simulation command. The simulation density information characterizes the density of the yarn in the simulation image; thus, it promptly responds to the simulation command and accurately acquires simulation parameters such as simulation density, yarn diameter, knitting method, and yarn threading quantity corresponding to the knitting method; based on the simulation density information, yarn diameter information, knitting method information, and yarn threading quantity information, it determines the theoretical spindle length information; thereby, it accurately calculates the theoretical spindle length based on the simulation density information, yarn diameter, knitting method, and yarn threading quantity corresponding to the knitting method; and based on the theoretical spindle length information and knitting method information, it determines the knitting angle information. Based on the weaving method information, the imaging density information is determined; thus, the weaving angle and imaging density information are accurately calculated based on the theoretical spindle length and weaving method; the weaving motion model corresponding to the weaving method information is obtained, and the weaving motion model, weaving angle information, and imaging density information are input as simulation parameters into a pre-compiled fabric simulation program to obtain a weaving simulation image; the weaving motion model represents the correspondence between the motion mode of the weaving device and the texture of the woven fabric, thereby using the fabric simulation program to generate an accurate weaving simulation image based on the weaving motion model corresponding to the weaving method, as well as the weaving angle and imaging density, without the need to actually produce samples of the woven fabric. By generating a weaving simulation image, users can perceive the weaving effect, avoiding the increased cost caused by producing samples of the woven fabric, thereby reducing the cost of obtaining the weaving effect of the woven fabric. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is an application environment diagram of a weaving simulation image generation method in one embodiment;
[0039] Figure 2 This is a flowchart illustrating a method for generating a weaving simulation image in one embodiment;
[0040] Figure 3 This is a schematic diagram of one ingot length in one embodiment;
[0041] Figure 4 This is a schematic diagram illustrating an analysis of weaving motion in one embodiment;
[0042] Figure 5 This is a schematic diagram of a basic motion model of a single ingot in one embodiment;
[0043] Figure 6 This is a schematic diagram of a basic motion model of a dual-spindle system in one embodiment;
[0044] Figure 7 This is a schematic diagram illustrating one embodiment of determining the weaving angle;
[0045] Figure 8 This is a schematic diagram illustrating another method for determining the weaving angle in one embodiment;
[0046] Figure 9 This is a schematic diagram illustrating the determination of imaging width in one embodiment;
[0047] Figure 10 This is a schematic diagram of a weaving motion in one embodiment;
[0048] Figure 11 This is a schematic diagram of a weaving simulation image in one embodiment;
[0049] Figure 12 This is a schematic diagram of another weaving motion in one embodiment;
[0050] Figure 13 This is a schematic diagram of another weaving simulation image in one embodiment;
[0051] Figure 14 This is a structural block diagram of a knitting simulation image generation device in one embodiment;
[0052] Figure 15 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0053] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0054] The knitting simulation image generation method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on a cloud or other network server. Terminal 102 acquires the simulation density information, yarn diameter information, weaving method information, and the number of yarns threaded corresponding to the weaving method information from the input of the weaving simulation command. The simulation density information characterizes the tightness of the yarn in the simulation image. Terminal 102 determines the theoretical spindle length information based on the simulation density information, yarn diameter information, weaving method information, and the number of yarns threaded. Terminal 102 determines the weaving angle information based on the theoretical spindle length information and the weaving method information, and determines the imaging density information based on the weaving method information. Terminal 102 acquires the weaving motion model corresponding to the weaving method information and inputs the weaving motion model, weaving angle information, and imaging density information as simulation parameters into a pre-compiled fabric simulation program to obtain a weaving simulation image. The weaving motion model characterizes the correspondence between the motion mode of the weaving device and the weave pattern of the woven fabric. The terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. The server 104 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services.
[0055] In one exemplary embodiment, such as Figure 2 As shown, a method for generating a woven simulation image is provided. Taking the application of this method in diagnosis as an example, the method includes the following steps S202 to S208. Wherein:
[0056] Step S202: Obtain the simulation tightness information, yarn diameter information, weaving method information, and yarn threading quantity information corresponding to the weaving method information input from the weaving simulation command; the simulation tightness information represents the tightness of the yarn in the simulation image.
[0057] Among them, the knitting simulation command can refer to the command used to control the terminal to generate a knitting simulation image of the knitted fabric. In practical applications, the knitting simulation command can be triggered by the user by clicking a preset button on the terminal's display interface.
[0058] Among them, the simulation density information can refer to information that characterizes the density of the yarn in the simulation image. In practical applications, the simulation density information may include, but is not limited to, information such as the distance between the yarns.
[0059] Among them, yarn diameter information can refer to information that characterizes the diameter of the yarn used to weave the woven fabric.
[0060] Among them, weaving method information can refer to information that characterizes the weaving method of the woven fabric. In practical applications, weaving methods can include, but are not limited to, single-spindle weaving, double-spindle weaving, yarn threading method, etc.
[0061] Among them, the yarn threading quantity information can refer to the number of yarns that can be processed simultaneously on each spinning machine spindle. In practical applications, the yarn threading quantity information can include the information on the number of yarns passing through each spinning machine spindle.
[0062] As an example, when a user needs to simulate the weaving effect of a fabric generated / woven under simulated actual production conditions, the user can input information such as simulation tightness, yarn diameter, weaving method, and the number of yarns corresponding to the weaving method through the operating terminal, and click the "Simulation" button on the terminal's display interface to trigger the weaving simulation command. The terminal can respond to the weaving simulation command and obtain the simulation tightness, yarn diameter, weaving method, and the number of yarns corresponding to the weaving method input.
[0063] Step S204: Determine the theoretical spindle length information based on the simulation density information, yarn diameter information, weaving method information, and yarn threading quantity information.
[0064] Theoretical spindle length information can refer to information representing the length of the distance between a spindle of yarn and other spindle yarns. It can be understood that theoretical spindle length information can include the spindle length in a simulation image, such as... Figure 3 As shown, a schematic diagram of a spindle length is provided.
[0065] As an example, since weaving method information can characterize the movement of each spindle during the weaving process, and the movement of each spindle during the weaving process can determine the texture in the weaving, the terminal can combine simulation density information, yarn diameter information, weaving method information, and yarn threading quantity information, and use a pre-set spindle length calculation expression corresponding to the weaving method information to calculate the theoretical spindle length information.
[0066] Step S206: Determine the weaving angle information based on the theoretical spindle length information and weaving method information, and determine the imaging density information based on the weaving method information.
[0067] Among them, the weaving angle information can refer to the information that characterizes the inclination of the pattern formed by the yarn in the woven fabric. In practical applications, the weaving angle may include, but is not limited to, the angle between the yarn and a preset straight line (such as a horizontal line).
[0068] Imaging density information can refer to the number of pixels in a simulated image per unit area. In practical applications, imaging density information can be used as the resolution of the simulated image.
[0069] As an example, since weaving method information can characterize the movement of each spindle during the weaving process, and the movement of each spindle during weaving determines the texture of the fabric, the terminal can combine theoretical spindle length information and weaving method information to calculate the weaving angle information according to a pre-set weaving angle calculation expression corresponding to the weaving method information. Similarly, since weaving method information can characterize the movement of each spindle during the weaving process, and the movement of each spindle during weaving determines the texture of the fabric, the terminal can determine a pre-set imaging density calculation expression corresponding to the weaving method information to calculate the imaging density information.
[0070] Step S208: Obtain the weaving motion model corresponding to the weaving method information, and input the weaving motion model, weaving angle information and imaging density information as simulation parameters into the pre-compiled fabric simulation program to obtain the weaving simulation image; the weaving motion model represents the correspondence between the motion mode of the weaving device and the texture of the woven fabric.
[0071] Among them, the knitting motion model can refer to information that characterizes the correspondence between the motion pattern of the knitting device and the texture of the knitted fabric.
[0072] Among them, the fabric simulation program can refer to a pre-compiled model used to generate a simulation image of the woven fabric based on the weaving motion model, weaving angle information and imaging density information. In practical applications, the fabric simulation program can include, but is not limited to, simulation software. The fabric simulation program can determine the rendering parameters based on the simulation parameters and render the simulation image according to the rendering parameters.
[0073] Among them, the weaving simulation image can refer to the image output by the fabric simulation program based on information such as the weaving motion model, weaving angle information and imaging density information. In practical applications, the weaving simulation image can represent the weaving effect of the fabric when the weaving device weaves yarn according to the motion mode of the weaving device represented by the weaving motion model, and the inclination of the yarn pattern formed during the weaving process is the angle corresponding to the weaving angle information.
[0074] As an example, each weaving method has a pre-set corresponding weaving motion model. The weaving motion model can be obtained by pre-analyzing the correspondence between the motion mode of the weaving device and the texture of the woven fabric under different weaving methods. Therefore, when performing weaving simulation, the terminal can obtain the weaving motion model corresponding to the weaving method information and input the weaving motion model, weaving angle information and imaging density information as simulation parameters into the pre-compiled fabric simulation program to obtain the weaving simulation image. In practical applications, the fabric simulation program can determine the rendering parameters according to the weaving motion model, weaving angle information and imaging density information, and render the weaving simulation image according to the rendering parameters.
[0075] In the aforementioned method for generating knitting simulation images, the simulation tightness information, yarn diameter information, knitting method information, and the number of yarns threaded corresponding to the knitting method information are obtained from the input of the knitting simulation command. The simulation tightness information represents the tightness of the yarn in the simulation image. This allows for timely response to the simulation command and accurate acquisition of simulation parameters such as simulation tightness, yarn diameter, knitting method, and the number of yarns threaded corresponding to the knitting method. Based on the simulation tightness information, yarn diameter information, knitting method information, and the number of yarns threaded information, the theoretical spindle length information is determined. This allows for accurate calculation of the theoretical spindle length based on the simulation tightness, yarn diameter, knitting method, and the number of yarns threaded corresponding to the knitting method. Finally, based on the theoretical spindle length information and the knitting method information, the knitting angle information is determined, and based on the knitting method information, the knitting curve is determined. The system generates a fabric simulation image by using density information to accurately calculate the weaving angle and imaging density information based on the theoretical spindle length and weaving method. It also acquires the weaving motion model corresponding to the weaving method information and inputs the weaving motion model, weaving angle information, and imaging density information as simulation parameters into a pre-compiled fabric simulation program. The weaving motion model characterizes the correspondence between the motion mode of the weaving device and the texture of the woven fabric. Therefore, the fabric simulation program generates an accurate weaving simulation image based on the weaving motion model corresponding to the weaving method, as well as the weaving angle and imaging density. This eliminates the need for actual production of woven fabric samples. By generating a weaving simulation image, users can perceive the weaving effect, avoiding the increased costs associated with producing woven fabric samples and thus reducing the cost of obtaining the weaving effect.
[0076] In an exemplary embodiment, the method further includes: determining imaging width information based on weaving method information; and inputting the weaving motion model, weaving angle information, imaging density information, and imaging width information as simulation parameters into a fabric simulation program to obtain a weaving simulation image.
[0077] Among them, the imaging width information can refer to the information that characterizes the size of the woven simulation image. In practical applications, the imaging width information can include length a and height b.
[0078] As an example, since weaving method information can characterize the movement of each spindle during the weaving process, and the movement of each spindle during the weaving process can determine the texture in the weaving, the terminal can calculate the imaging width information according to the pre-set imaging width calculation expression corresponding to the weaving method information. Then, the terminal can input the weaving motion model, weaving angle information, imaging density information, and imaging width information as simulation parameters into the pre-compiled fabric simulation program. The fabric simulation program can determine the rendering parameters according to the weaving motion model, weaving angle information, and imaging density information. The fabric simulation program can also crop the image rendered according to the rendering parameters based on the imaging width information to obtain the weaving simulation image.
[0079] In this embodiment, the imaging width information is determined based on the weaving method information; the weaving motion model, weaving angle information, imaging density information, and imaging width information are input as simulation parameters into the fabric simulation program to obtain a weaving simulation image. The imaging width can be accurately obtained based on the weaving method, and the fabric simulation program can be used to combine the weaving motion model, weaving angle, imaging density, and imaging width to generate an accurate weaving simulation image, thereby improving the accuracy of the weaving simulation image.
[0080] In some embodiments, the knitting motion model, knitting angle information, imaging density information, and imaging width information are input as simulation parameters into a fabric simulation program to obtain a knitting simulation image. This includes: adjusting the knitting motion model according to the knitting angle information using the fabric simulation program to obtain an adjusted knitting motion model; generating an initial simulation image using the fabric simulation program based on the adjusted knitting motion model and imaging density information; rotating the initial simulation image according to the knitting angle information using the fabric simulation program to obtain a rotated simulation image; and cropping the rotated simulation image according to the imaging width information using the fabric simulation program to obtain the knitting simulation image.
[0081] The adjusted knitting motion model can refer to the knitting motion model obtained by adjusting the knitting motion model according to the knitting angle information (such as adjusting the correspondence between the knitting device's motion mode and the knitted fabric's texture). In practical applications, different knitting angles will affect the direction of movement of the spindles in the knitting device. Therefore, the terminal can adjust the correspondence between the knitting device's motion mode and the knitted fabric's texture as represented by the knitting motion model according to the knitting angle information to obtain the adjusted knitting motion model.
[0082] The initial simulation image can refer to the image generated by the fabric simulation program based on the adjusted weaving motion model and imaging density information, and rendered according to the rendering parameters. In practical applications, the initial simulation image can serve as a basic texture map.
[0083] Among them, the rotated simulation image can refer to the image obtained by rotating the initial simulation image according to the weaving angle information.
[0084] As an example, after the terminal inputs the weaving motion model, weaving angle information, imaging density information, and imaging width information as simulation parameters into the fabric simulation program, the fabric simulation program can adjust the weaving motion model according to the weaving angle information to obtain the adjusted weaving motion model. Then, the fabric simulation program can generate rendering parameters based on the adjusted weaving motion model and imaging density information, and perform image rendering based on the rendering parameters to obtain an initial simulation image. Then, the fabric simulation program can rotate the initial simulation image according to the weaving angle information to obtain a rotated simulation image. Finally, the fabric simulation program can crop an image that can be used as the weaving simulation image from the rotated simulation image according to the imaging width information.
[0085] In this embodiment, the weaving motion model is adjusted based on the weaving angle information using a fabric simulation program to obtain an adjusted weaving motion model. An initial simulation image is generated based on the adjusted weaving motion model and imaging density information using the fabric simulation program. The initial simulation image is then rotated based on the weaving angle information using the fabric simulation program to obtain a rotated simulation image. Finally, the rotated simulation image is cropped based on the imaging width information using the fabric simulation program to obtain an accurate weaving simulation image, thereby improving the accuracy of the weaving simulation image.
[0086] In some embodiments, determining imaging width information based on weaving method information includes: determining weaving angle information based on weaving method information; obtaining preset equipment yarn threading spindle number information, and determining the number of times the spindle appears in a preset projection plane based on the equipment yarn threading spindle number information; and determining imaging width information based on the number of times the spindle appears, theoretical spindle length information, and weaving angle information.
[0087] The number of yarn-threading spindles in the equipment can refer to the number of yarns that can be processed simultaneously on the weaving device. In practical applications, the number of yarn-threading spindles can include the sum of the number of yarns passing through each spindle of the weaving device.
[0088] Among them, the spindle can refer to one of the main components of the spinning machine in the weaving device, which is an assembly with a slender rotating shaft supported at two points as the main body.
[0089] The occurrence count information can refer to the number of times each spindle of the weaving device appears in the preset projection surface. In practical applications, the preset projection surface may include, but is not limited to, the orthographic projection surface.
[0090] As an example, since weaving method information can characterize the movement of each spindle during the weaving process, and the movement of each spindle during weaving determines the texture in the fabric, the terminal can combine theoretical spindle length information and weaving method information to calculate the weaving angle information according to a pre-set weaving angle calculation expression corresponding to the weaving method information. Then, the terminal can obtain the preset number of spinning spindles on the equipment and, based on the number of spinning spindles and pre-set calculation parameters, calculate the number of times the spindle appears in the preset projection plane according to the preset expression. Afterward, the terminal can determine the imaging width information based on the number of times the spindle appears in the preset projection plane, the theoretical spindle length information, and the weaving angle information. In practical applications, the number of spinning spindles on the equipment can be represented as N, the number of times the spindle appears in the preset projection plane can be represented as n, the theoretical spindle length information can be represented as C1, and the weaving angle information can be represented as ∠P. Then, the height b in the imaging width information can be represented as b = SQRT(C1 / N). 2 *( tan∠P) 2 / ( tan∠P) 2 +1)), where C=C1*n*2, n=N / 8, SQRT() can be a square root function, the length a in the imaging width information can be expressed as a=b / tan∠P, the ratio k between the number of yarn-threading spindles N and the number of times the spindle appears in the preset projection plane can be a parameter obtained from pre-analysis. In actual applications, this ratio k can be flexibly adjusted based on actual production needs, and K can be including but not limited to 8.
[0091] In this embodiment, the weaving angle information is determined based on the weaving method information; the preset number of spindles for yarn threading is obtained, and the number of times the spindle appears in the preset projection plane is determined based on the number of spindles for yarn threading; the imaging width information is determined based on the number of times the spindle appears, the theoretical spindle length information, and the weaving angle information. This allows for accurate analysis of the number of times the spindle appears in the preset projection plane based on the number of spindles for yarn threading, and accurate calculation of the imaging width by combining the number of times the spindle appears, the theoretical spindle length, and the weaving angle. Thus, an accurate weaving simulation image is obtained based on the imaging width, improving the accuracy of the weaving simulation image.
[0092] In some embodiments, the theoretical spindle length information is determined based on the simulation tightness information, yarn diameter information, weaving method information, and yarn threading quantity information, including: determining the calculation coefficient based on the weaving method information; and determining the theoretical spindle length information based on the product between the simulation tightness information, yarn diameter information, and yarn threading quantity information and the product between the calculation coefficient.
[0093] Among them, the calculation coefficient can refer to the coefficient used to calculate the theoretical spindle length information. In practical applications, the calculation coefficient can include the conversion relationship / proportional relationship between the product of the simulation density information, yarn diameter information and yarn threading quantity information and the theoretical spindle length information.
[0094] As an example, different weaving methods have corresponding calculation coefficients, which can be used to calculate theoretical spindle length information. For instance, the calculation coefficient can be 2 when the weaving method is single-spindle weaving, and 1 when the weaving method is double-spindle weaving. Therefore, to calculate the theoretical spindle length information, the terminal can first determine the calculation coefficient corresponding to the weaving method information. Then, the terminal can first calculate the product between the simulated tightness information, yarn diameter information, and yarn threading number information, and then calculate the product between the product of the simulated tightness information, yarn diameter information, and yarn threading number information and the calculation coefficient to obtain the theoretical spindle length information.
[0095] In this embodiment, the calculation coefficient is determined based on the weaving method information; the theoretical spindle length information is determined by multiplying the product of the simulated tightness information, yarn diameter information, and yarn threading quantity information with the calculation coefficient. This allows for the determination of the calculation coefficient based on the weaving method first, followed by the calculation of the product of the simulated tightness information, yarn diameter information, and yarn threading quantity information with the calculation coefficient, thus obtaining accurate theoretical spindle length information.
[0096] In some embodiments, determining the weaving angle information based on theoretical spindle length information and weaving method information includes: determining first length information and second length information based on theoretical spindle length information and weaving method information; the first length information represents the length of the adjacent side of the angle whose angle is the weaving angle information; the second length information represents the length of the opposite side of the angle whose angle is the weaving angle information; and determining the weaving angle information based on the ratio between the second length information and the first length information.
[0097] The first length information can refer to the length of the adjacent side of the angle in the right triangle whose angle is the weaving angle. In practical applications, the right triangle required to determine the first length information can be a right triangle whose hypotenuse is the theoretical spindle length.
[0098] The second length information can refer to the length of the side opposite the angle of the right triangle whose angle is the weaving angle. In practical applications, the right triangle required to determine the second length information can be a right triangle whose hypotenuse is the theoretical spindle length.
[0099] As an example, different weaving methods will result in different textures of the woven fabric (such as the positional relationship between different colored blocks in the woven fabric). Therefore, the terminal can calculate the first length information and the second length information according to the theoretical spindle length information and the weaving method information, according to the preset length calculation expression. The first length information can be the length of the adjacent side of the angle with the weaving angle information, and the second length information can be the length of the opposite side of the angle with the weaving angle information. Then the terminal can calculate the ratio between the second length information and the first length information, and use the arctangent function arctan(x) to calculate the weaving angle information.
[0100] In this embodiment, first length information and second length information are determined based on theoretical spindle length information and weaving method information. The first length information represents the length of the adjacent side of the angle with the weaving angle information. The second length information represents the length of the opposite side of the angle with the weaving angle information. The weaving angle information is determined based on the ratio between the second length information and the first length information. This allows for the determination of the lengths of the adjacent and opposite sides of the right triangle containing the weaving angle based on the theoretical spindle length and the weaving method, thereby accurately calculating the weaving angle information and obtaining accurate weaving angle information.
[0101] In some embodiments, to simulate the weaving effect of a woven fabric, the terminal can first acquire weaving motion models corresponding to different weaving methods. These weaving motion models can be obtained by pre-analyzing the weaving process of the fabric. The weaving process analysis may include converting the figure-eight rotational motion of the spindle on the weaving tooth holder in the weaving device into linear motion. In this case, the basic motion unit of the weaving simulation can be decomposed into left oblique motion and right oblique motion, such as... Figure 4As shown, a schematic diagram for analyzing weaving motion is provided. One fixed gear on the weaving gear seat drives the red spindle from position 1 to position 2, and another fixed gear seat drives the green spindle from position 3 to position 4. Both movements are in a figure-eight arc. Simultaneously, the yarn on these spindles is tightened at position 0 above the weaving gear seat. During the figure-eight arc motion from position 1 to position 2 and from position 3 to position 4, from the perspective of work done, the yarn of these two spindles only completes one left-slant and one right-slant crossing. Based on the above observation and analysis, the motion of the weaving simulation is decomposed into two basic motion units: left-slant and right-slant. The weaving gear seat can refer to the track gear that performs the figure-eight motion, the fixed gear seat can refer to the gear seat connected to the weaving gear seat for fixing the spindle, and the spindle can refer to the tube inserted into the fixed gear seat. The terminal can define the motion of the red spindle of the weaving device as left-slant motion, the motion of the green spindle of the weaving device as right-slant motion, and define the left-slant motion as the front of the woven fabric and the right-slant motion as the bottom of the woven fabric. The terminal can use the number of red spindles as the left slope value and the number of green spindles as the right slope value, and calculate the number of movements of each according to the weaving method, such as the threading method of red and green spindles and the number of threaded yarns, so as to construct a weaving motion model and determine the rendering method and rendering parameters of the weaving simulation image.
[0102] In practical applications, different weaving methods can be considered as different processes. The correspondence between the motion mode of the weaving device and the texture of the woven fabric, represented by the weaving motion model of different processes, can be as follows: the total number of yarns threaded by red spindles is the number of left diagonal columns, and the total number of yarns threaded by green spindles is the number of right diagonal columns. The correspondence between the motion mode of the weaving device and the texture of the woven fabric, represented by the weaving motion model of different processes, can also be as follows: the colors of the left diagonal in the motion model are arranged according to the yarn color of the red spindles, and the colors of the right diagonal in the motion model are arranged according to the yarn color of the green spindles. In specific implementations, the weaving motion models corresponding to single-spindle weaving methods implemented using different numbers of spindles can include 16-spindle, 24-spindle, 36-spindle, 39-spindle, and 48-spindle single-spindle models. Similarly, the weaving motion models corresponding to double-spindle weaving methods implemented using different numbers of spindles can include 16-spindle, 24-spindle, 36-spindle, and 48-spindle double-spindle models. Figure 5 As shown, a schematic diagram of a basic motion model for a single spindle is provided; as Figure 6 As shown, a schematic diagram of a basic motion model of a dual-spindle is provided.
[0103] When a user needs to simulate the weaving effect, the user can input information such as the simulation tightness M, yarn diameter d, weaving method, and the number of yarns X corresponding to the weaving method through the operation terminal. In practical applications, the simulation tightness M can be the information input by the user or the information obtained from pre-experimental analysis. In practice, the calculation methods for theoretical spindle length information differ depending on the weaving method. For example, the calculation expression for the left-side theoretical spindle length C1 of a single-spindle weave can be expressed as C1 = d * M * X2 * 2, and the calculation expression for the right-side theoretical spindle length C2 of a single-spindle weave can be expressed as C2 = d * M * X1 * 2, where the calculation coefficient for the theoretical spindle length information corresponding to the single-spindle weave can be 2. The calculation expression for the left-side theoretical spindle length L of a double-spindle weave can be expressed as L = d * M * X2, and the calculation expression for the right-side theoretical spindle length K of a double-spindle weave can be expressed as K = d * M * X1, where the calculation coefficient for the theoretical spindle length information corresponding to the double-spindle weave can be 1. The yarn diameter information d = 1 ÷ {0.90 × [(yarn count × 840)} 1 / 2 ]}*25.4), X1 can refer to the number of yarns threaded per spindle on the left side, and X2 can refer to the number of yarns threaded per spindle on the right side.
[0104] The terminal can calculate the weaving angle information based on the theoretical spindle length and weaving method information. Since different weaving methods result in different fabric textures, the terminal can calculate an expression based on the parameters corresponding to the weaving method information, calculate the tangent value of the weaving angle based on information such as the theoretical spindle length, and then calculate the weaving angle information based on this tangent value. Specifically, for example... Figure 7 As shown, a schematic diagram for determining the weaving angle is provided. The terminal can first calculate a1 and b1 based on the average number of spindles threaded on the left and right sides of the single-spindle weaving method. Then, the terminal can calculate the weaving angle ∠P corresponding to the single-spindle weaving method based on a1 and b1, which is ∠P = arctan(a1 / b1). Figure 8 As shown, another schematic diagram for determining the weaving angle is provided. The terminal can first calculate the theoretical spindle length L of the left slant and the theoretical spindle length K of the right slant in double-spindle weaving. Then, the terminal can calculate the weaving angle ∠P = arctan(K / L) based on the theoretical spindle lengths L and K. It is understandable that the parameters required to calculate the weaving angle / theoretical spindle length corresponding to different weaving methods can be pre-set parameters, user-input parameters, or parameters calculated using a pre-written simple program based on user-input parameters.
[0105] To determine the imaging width, the terminal can determine the weaving angle information based on the weaving method information. Then, the terminal can obtain the preset number of spindles N and, based on the ratio between the number of spindles N and a preset parameter (e.g., 8), determine the number of times the spindle appears in the preset projection plane, n. Finally, the terminal can determine the imaging width information a and b based on the number of times the spindle appears in the preset projection plane n, the theoretical spindle length C1 corresponding to the weaving method information, and the weaving angle ∠P corresponding to the weaving method information. (Example...) Figure 9 As shown, a schematic diagram for determining the imaging width is provided. The terminal can first calculate b=SQRT(C) 2 *( tan∠P) 2 / ( tan∠P) 2 +1)), where C=C1*n*2, then calculate a= b / tan∠P.
[0106] The terminal can determine a pre-set imaging density calculation expression corresponding to the weaving method information based on the weaving method information, calculate the imaging density information, and obtain the weaving angle information, imaging density information, and imaging width information. After obtaining these, the terminal can input the weaving motion model, weaving angle information, and imaging density information corresponding to the weaving method as simulation parameters into a fabric simulation program (such as weaving software). The fabric simulation program can generate rendering parameters based on the weaving motion model, weaving angle information, and imaging density information, and render the weaving simulation image according to these rendering parameters. In practical applications, the fabric simulation program can transform the weaving motion model according to the weaving angle ∠P, the number of left diagonal columns, and the number of right diagonal columns to obtain an adjusted weaving motion model. The fabric simulation program can obtain an initial simulation image based on the adjusted weaving motion model and imaging density information. Then, the fabric simulation program can rotate the initial simulation image according to the weaving angle information to determine the rotated simulation image. Finally, the fabric simulation program can crop the rotated simulation image according to the imaging width information to obtain the weaving simulation image.
[0107] like Figure 10 The diagram shown illustrates a weaving motion. Figure 10 The weaving motion shown corresponds to the first weaving process, which has 24 spindles, uses a single-spindle weaving method, has a weaving width of 5mm, and uses a spindle threading method where one red spindle threaded with two yarns, and one green spindle threaded with two yarns. The yarn arrangement is that all red spindles are threaded with white yarn; two green spindles are threaded with red yarn, and the others are threaded with white yarn. When the yarn diameter is 32S / 1, the simulation parameters for the first weaving process may include, but are not limited to, the theoretical spindle length: 1.24mm (left and right slant), weaving angle: 45°, imaging density: 32, and theoretical width: 7mm. Figure 11 As shown, this is a schematic diagram of a weaving simulation image for a first weaving process. Figure 12As shown, a schematic diagram of another weaving motion is provided. Figure 12 The weaving motion shown corresponds to the second weaving process, which has 16 spindles, uses a double-spindle weaving method, has a weaving width of 3mm, and uses a spindle threading method where one red spindle threads 5 yarns and one green spindle threads 5 yarns. The yarn arrangement is that both red and green spindles are threaded through light gray yarn, and the yarn diameter is 20S / 1. The simulation parameters for the second weaving process may include, but are not limited to, the theoretical spindle length: 1.96mm (left and right slant), weaving angle: 45°, imaging density: 25, and theoretical width: 3mm. Figure 13 As shown, this is a schematic diagram of a weaving simulation image for a second weaving process.
[0108] In this embodiment, the figure-eight rotational motion on the gear seat of the weaving equipment is decomposed into linear motion, and the rotational motion of the spindle on the fixed gear seat is decomposed into two basic motion units: left oblique motion and right oblique motion. A basic motion model is established according to the weaving process. Simultaneously, for different woven fabrics under orthographic projection, a simulation test model is established to calculate simulation parameters such as the number of left oblique columns, the number of right oblique columns, theoretical spindle length, simulated spindle length, weaving angle, conversion density, simulated density, conversion width, and conversion width. The basic motion model is selected according to the process, and the corresponding weaving motion model is automatically generated by combining the number of left oblique columns, the number of right oblique columns, and yarn arrangement. The weaving motion model is imported into the weaving software, and after inputting weaving process parameters such as imaging density, a basic texture map is generated. The weaving simulation map is automatically generated according to the basic texture map and the calculated parameters. It can simulate actual production conditions to generate simulation effects and supports adjusting the simulation effects by modifying the input parameters. It can simulate the effects obtained in the actual production environment in a virtual environment for testing and modification, reducing the cost and time of woven fabric sample production, thereby reducing the cost of obtaining the weaving effect of the woven fabric.
[0109] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0110] Based on the same inventive concept, this application also provides a knitting simulation image generation apparatus for implementing the knitting simulation image generation method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more embodiments of the knitting simulation image generation apparatus provided below can be found in the limitations of the knitting simulation image generation method described above, and will not be repeated here.
[0111] In one exemplary embodiment, such as Figure 14 As shown, a knitting simulation image generation device is provided, including: a response module 1402, a determination module 1404, a calculation module 1406, and a generation module 1408, wherein:
[0112] The response module 1402 is used to acquire the simulation tightness information, yarn diameter information, weaving method information, and yarn threading quantity information corresponding to the weaving method information input by the weaving simulation command; the simulation tightness information represents the tightness of the yarn in the simulation image.
[0113] The determination module 1404 is used to determine the theoretical spindle length information based on the simulation tightness information, the yarn diameter information, the weaving method information, and the yarn threading quantity information.
[0114] The calculation module 1406 is used to determine the weaving angle information based on the theoretical spindle length information and the weaving method information, and to determine the imaging density information based on the weaving method information.
[0115] The generation module 1408 is used to obtain the weaving motion model corresponding to the weaving method information, and input the weaving motion model, the weaving angle information and the imaging density information as simulation parameters into a pre-compiled fabric simulation program to obtain a weaving simulation image; the weaving motion model represents the correspondence between the motion mode of the weaving device and the texture of the woven fabric.
[0116] In one exemplary embodiment, the device further includes a cutting module, which is specifically used to determine imaging width information based on the weaving method information; and input the weaving motion model, the weaving angle information, the imaging density information and the imaging width information as simulation parameters into the fabric simulation program to obtain the weaving simulation image.
[0117] In one exemplary embodiment, the cutting module is further configured to: adjust the weaving motion model according to the weaving angle information using the fabric simulation program to obtain an adjusted weaving motion model; generate an initial simulation image using the fabric simulation program based on the adjusted weaving motion model and the imaging density information; rotate the initial simulation image according to the weaving angle information using the fabric simulation program to obtain a rotated simulation image; and cut the rotated simulation image according to the imaging width information using the fabric simulation program to obtain the weaving simulation image.
[0118] In one exemplary embodiment, the cutting module is further configured to determine weaving angle information based on the weaving method information; obtain preset equipment yarn threading spindle number information, and determine the number of times the spindle appears in the preset projection plane based on the equipment yarn threading spindle number information; and determine imaging width information based on the number of times the spindle appears, the theoretical spindle length information, and the weaving angle information.
[0119] In one exemplary embodiment, the determining module 1404 is further configured to determine the calculation coefficient based on the weaving method information; and to determine the theoretical spindle length information based on the product of the simulation tightness information, the yarn diameter information, and the yarn threading quantity information and the product of the calculation coefficient.
[0120] In one exemplary embodiment, the calculation module 1406 is further configured to determine first length information and second length information based on the theoretical spindle length information and the weaving method information; the first length information represents the length of the adjacent side of the angle whose angle is the weaving angle information; the second length information represents the length of the opposite side of the angle whose angle is the weaving angle information; and the weaving angle information is determined based on the ratio between the second length information and the first length information.
[0121] Each module in the aforementioned weaving simulation image generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0122] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 15As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a method for generating woven simulation images. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0123] Those skilled in the art will understand that Figure 15 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0124] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0125] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0126] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0127] 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 used for analysis, data stored, data displayed, 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 the relevant data must comply with relevant regulations.
[0128] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. 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), magnetic 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 take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0129] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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, they should be considered to be within the scope of this application.
[0130] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for generating a knitting simulation image, characterized in that, The method includes: The simulation tightness information, yarn diameter information, weaving method information, and yarn threading quantity information corresponding to the weaving method information are obtained from the input of the weaving simulation command; the simulation tightness information represents the tightness of the yarn in the simulation image; The theoretical spindle length is determined based on the simulation tightness information, the yarn diameter information, the weaving method information, and the number of yarns threaded. Based on the theoretical spindle length information and the weaving method information, the weaving angle information is determined, and based on the weaving method information, the imaging density information is determined; The weaving motion model corresponding to the weaving method information is obtained, and the weaving motion model, the weaving angle information, and the imaging density information are input as simulation parameters into a pre-compiled fabric simulation program to obtain a weaving simulation image; the weaving motion model represents the correspondence between the motion mode of the weaving device and the texture of the woven fabric.
2. The method according to claim 1, characterized in that, The method further includes: Based on the weaving method information, determine the imaging width information; The weaving motion model, the weaving angle information, the imaging density information, and the imaging width information are input as simulation parameters into the fabric simulation program to obtain the weaving simulation image.
3. The method according to claim 2, characterized in that, The step of inputting the weaving motion model, the weaving angle information, the imaging density information, and the imaging width information as simulation parameters into the fabric simulation program to obtain the weaving simulation image includes: The fabric simulation program adjusts the weaving motion model based on the weaving angle information to obtain the adjusted weaving motion model. The fabric simulation program generates an initial simulation image based on the adjusted weaving motion model and the imaging density information. The fabric simulation program rotates the initial simulation image according to the weaving angle information to obtain the rotated simulation image. The fabric simulation program crops the rotated simulation image according to the imaging width information to obtain the weaving simulation image.
4. The method according to claim 2, characterized in that, The step of determining the imaging width information based on the weaving method information includes: Based on the weaving method information, determine the weaving angle information; Obtain the preset number of spindles for yarn threading, and determine the number of times the spindle appears in the preset projection plane based on the preset number of spindles for yarn threading. The imaging width information is determined based on the occurrence frequency information, the theoretical spindle length information, and the weaving angle information.
5. The method according to claim 1, characterized in that, The step of determining the theoretical spindle length information based on the simulation tightness information, the yarn diameter information, the weaving method information, and the number of yarns threaded includes: Based on the weaving method information, the calculation coefficient is determined; The theoretical spindle length information is determined by multiplying the product of the simulation tightness information, the yarn diameter information, and the yarn threading quantity information with the product of the calculation coefficient.
6. The method according to claim 1, characterized in that, The step of determining the weaving angle information based on the theoretical spindle length information and the weaving method information includes: Based on the theoretical spindle length information and the weaving method information, first length information and second length information are determined; the first length information represents the length of the adjacent side of the angle with the weaving angle information; the second length information represents the length of the opposite side of the angle with the weaving angle information. The weaving angle information is determined based on the ratio between the second length information and the first length information.
7. A device for generating simulated knitting images, characterized in that, The device includes: The response module is used to acquire simulation density information, yarn diameter information, weaving method information, and yarn threading quantity information corresponding to the weaving method information from the input of the weaving simulation command; the simulation density information represents the density of the yarn in the simulation image. The determination module is used to determine the theoretical spindle length information based on the simulation tightness information, the yarn diameter information, the weaving method information, and the yarn threading quantity information; The calculation module is used to determine the weaving angle information based on the theoretical spindle length information and the weaving method information, and to determine the imaging density information based on the weaving method information; The generation module is used to obtain the weaving motion model corresponding to the weaving method information, and input the weaving motion model, the weaving angle information and the imaging density information as simulation parameters into a pre-compiled fabric simulation program to obtain a weaving simulation image; the weaving motion model represents the correspondence between the motion mode of the weaving device and the texture of the woven fabric.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Simulation model training method and device for colored spun yarn and fabric thereof and storage medium
CN118378529A
System and method for woven product digitized simulation
WO2013120455A1