Knitting simulation image generation method and device, computer equipment and storage medium
Through the weaving simulation image generation method, the theoretical spindle length, weaving angle and imaging density are calculated using the information of simulation tightness, yarn diameter, weaving method and number of yarns, and combined with the weaving motion model to generate weaving simulation images, solving the problem of high cost of obtaining knitting effects in traditional technology, and achieving efficient and accurate weaving simulation effects.
Patent Information
- Application Number
- CN202510128035.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-05
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2045-02-05
AI Technical Summary
Traditional technology requires actual production of braided fabric samples when determining the braiding effect of braiding, resulting in high labor costs and it is difficult to reduce the cost of obtaining braiding effect.
A method for generating knitting simulation image is provided, by obtaining simulation tightness information, yarn diameter information, weaving method information and yarn number information, calculating theoretical spindle length, weaving angle and imaging density, and combining the weaving motion model to generate a weaving simulation image.
Accurate weaving simulation images can be generated without real production of braided samples, reducing the cost of obtaining braided effects and improving the accuracy of simulation effects.
Smart Images

Figure CN120032003A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of textiles, and in particular to a method, device, computer equipment, computer-readable storage medium and computer program product for generating a weaving simulation image. Background Art
[0002] With the popularity of digital clothing and accessories, simulation technology is being used more and more in textiles and clothing, and the requirements for simulation effects are getting higher and higher. In order to achieve a more realistic visual effect, it is necessary to simulate the texture and flow effects of fabrics and accessories more realistically. More realistic virtual samples and simulation effects can be provided to help consumers better understand the texture and details of clothing.
[0003] Traditional technology for determining the knitting effect of a woven fabric requires the actual production of corresponding woven fabric samples, which consumes a lot of manpower costs and is not conducive to reducing the cost of obtaining the knitting effect of the woven fabric. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for generating a knitting simulation image that can reduce the cost of obtaining the knitting effect of a knitted fabric in order to solve the above technical problems.
[0005] In a first aspect, the present application provides a method for generating a weaving simulation image, comprising:
[0006] Acquire the simulation tightness information, yarn diameter information, weaving method information and the threading quantity information corresponding to the weaving method information input by the weaving simulation instruction; the simulation tightness information represents the tightness of the yarn in the simulation image;
[0007] Determine theoretical spindle length information according to the simulation tightness information, the yarn diameter information, the weaving method information and the yarn threading quantity information;
[0008] Determining weaving angle information according to the theoretical spindle length information and the weaving mode information, and determining imaging density information according to the weaving mode information;
[0009] A 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 characterizes the correspondence between the motion pattern of the weaving device and the texture of the woven fabric.
[0010] In one embodiment, the method further comprises:
[0011] Determining imaging width information according to the weaving mode information;
[0012] The weaving motion model, the weaving angle information, the imaging density information and the imaging width information are input into the fabric simulation program as simulation parameters to obtain the weaving simulation image.
[0013] In one embodiment, 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, including:
[0014] Adjusting the weaving motion model according to the weaving angle information by the fabric simulation program to obtain an adjusted weaving motion model;
[0015] Generate an initial simulation image through the fabric simulation program according to the adjusted weaving motion model and the imaging density information;
[0016] Rotating the initial simulation image according to the weaving angle information by the fabric simulation program to obtain a rotated simulation image;
[0017] The rotated simulation image is cropped according to the imaging width information by the fabric simulation program to obtain the weaving simulation image.
[0018] In one embodiment, determining the imaging width information according to the weaving mode information includes:
[0019] Determining weaving angle information according to the weaving method information;
[0020] Obtaining preset device threading spindle number information, and determining the number of times the spindle appears in the preset projection surface according to the device threading spindle number information;
[0021] The imaging width information is determined according to the occurrence number information, the theoretical spindle length information and the weaving angle information.
[0022] In one embodiment, determining the theoretical spindle length information according to the simulation tightness information, the yarn diameter information, the weaving method information and the yarn threading quantity information includes:
[0023] Determining a calculation coefficient according to the knitting method information;
[0024] The theoretical spindle length information is determined based on the product of the simulation tightness information, the yarn diameter information and the yarn threading quantity information and the product of the measurement coefficients.
[0025] In one embodiment, determining the braiding angle information according to the theoretical spindle length information and the braiding mode information includes:
[0026] Determine first length information and second length information according to the theoretical spindle length information and the weaving mode 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;
[0027] The braiding angle information is determined according to the ratio between the second length information and the first length information.
[0028] In a second aspect, the present application also provides a weaving simulation image generating device, comprising:
[0029] A response module, used for obtaining the simulation tightness information, yarn diameter information, weaving method information and the threading quantity information corresponding to the weaving method information input by the weaving simulation instruction; the simulation tightness information represents the tightness of the yarn in the simulation image;
[0030] A determination module, used to determine theoretical spindle length information according to the simulation tightness information, the yarn diameter information, the weaving method information and the yarn threading quantity information;
[0031] A calculation module, used to determine the weaving angle information according to the theoretical ingot length information and the weaving mode information, and to determine the imaging density information according to the weaving mode information;
[0032] A generation module is used to obtain a weaving motion model corresponding to the weaving mode 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 characterizes the correspondence between the motion pattern of the weaving device and the texture of the woven fabric.
[0033] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above method are implemented.
[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0035] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0036] The above-mentioned weaving simulation image generation method, device, computer equipment, computer-readable storage medium and computer program product obtain the simulation tightness information, yarn diameter information, weaving method information and the number of yarn threadings corresponding to the weaving method information input by the weaving simulation instruction; the simulation tightness information represents the tightness of the yarn in the simulation image; thereby timely responding to the simulation instruction to accurately obtain simulation parameters such as simulation tightness, yarn diameter, weaving method and the number of yarn threadings corresponding to the weaving method; according to the simulation tightness information, yarn diameter information, weaving method information and the number of yarn threadings information, the theoretical spindle length information is determined; thereby the theoretical spindle length is accurately calculated based on the simulation tightness, yarn diameter, weaving method and the number of yarn threadings corresponding to the weaving method; according to the theoretical spindle length information and the weaving method information, the weaving angle information is determined. and determining imaging density information according to the weaving method information; thereby accurately calculating the weaving angle based on the theoretical spindle length and the weaving method and accurately calculating the imaging density information based on the weaving method; obtaining a weaving motion model corresponding to the weaving method information, and inputting 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 pattern of the weaving device and the texture of the woven fabric, thereby utilizing 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, and enabling users to perceive the weaving effect by generating a weaving simulation image, thereby avoiding the cost increase caused by producing woven fabric samples, and thus reducing the cost of obtaining the woven fabric weaving effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A diagram showing an application environment of a method for generating a weaving simulation image in an embodiment;
[0039] Figure 2 A schematic diagram of a process of generating a weaving simulation image in an embodiment;
[0040] Figure 3 A schematic diagram of an ingot length in one embodiment;
[0041] Figure 4 A schematic diagram of analyzing a knitting motion in one embodiment;
[0042] Figure 5 is a schematic diagram of a basic motion model of a single spindle in one embodiment;
[0043] Figure 6 is a schematic diagram of a dual-spindle basic motion model in one embodiment;
[0044] Figure 7 is a schematic diagram of determining a braiding angle in one embodiment;
[0045] Figure 8 is a schematic diagram of another method for determining a braiding angle in one embodiment;
[0046] Fig. 9 is a schematic diagram of determining an imaging width in an embodiment;
[0047] Fig.10 is a schematic diagram of a weaving motion in one embodiment;
[0048] Fig.11 is a schematic diagram of a weaving simulation image in one embodiment;
[0049] Fig.12 is a schematic diagram of another weaving motion in one embodiment;
[0050] Fig.13 is a schematic diagram of another weaving simulation image in one embodiment;
[0051] Fig.14 is a structural block diagram of a weaving simulation image generating device in one embodiment;
[0052] Fig.15 The figure is a diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with 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.
[0054] The weaving simulation image generation method provided in the embodiment of the present application can be applied to 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 it can be placed on the cloud or other network servers. The terminal 102 obtains the simulation tightness information, yarn diameter information, weaving method information and the threading number information corresponding to the weaving method information input by the weaving simulation instruction; the simulation tightness information represents the tightness of the yarn in the simulation image; the terminal 102 determines the theoretical spindle length information according to the simulation tightness information, yarn diameter information, weaving method information and the threading number information; the terminal 102 determines the weaving angle information according to the theoretical spindle length information and the weaving method information, and determines the imaging density information according to the weaving method information; the terminal 102 obtains 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 the pre-compiled fabric simulation program to obtain a weaving simulation image; the weaving motion model represents the corresponding relationship between the motion mode of the weaving device and the texture of the woven fabric. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The server 104 may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.
[0055] In an exemplary embodiment, Figure 2 As shown, a method for generating a weaving simulation image is provided, and the method is applied to diagnosis as an example for explanation, including the following steps S202 to S208. Among them:
[0056] Step S202, obtaining 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 instruction; the simulation tightness information represents the tightness of the yarn in the simulation image.
[0057] Among them, the knitting simulation instruction may refer to an instruction for controlling the terminal to generate a knitting simulation image of a knitted fabric. In actual applications, the knitting simulation instruction may be triggered by a user by clicking a preset button in a display interface of the terminal.
[0058] The simulated tightness information may refer to information characterizing the tightness of the yarn in the simulated image. In practical applications, the simulated tightness information may include but is not limited to information such as the distance between the yarns.
[0059] The yarn diameter information may refer to information representing the diameter of the yarn used for weaving a woven fabric.
[0060] The weaving method information may refer to information characterizing the weaving method of the woven fabric. In practical applications, the weaving method may include but is not limited to single-spindle weaving, double-spindle weaving, yarn threading method, etc.
[0061] The yarn threading quantity information may refer to the number of yarns that can be processed simultaneously on each spinning machine spindle. In practical applications, the yarn threading quantity information may include information on the number of yarns passed through each spinning machine spindle.
[0062] As an example, when a user needs to simulate the weaving effect of a woven fabric generated / woven under actual simulated production conditions, the user can input simulation tightness information, yarn diameter information, weaving method information, and yarn threading quantity information corresponding to the weaving method information through the operation terminal, and click the "Simulation" button in the display interface of the terminal to trigger the weaving simulation instruction. The terminal can respond to the weaving simulation instruction and obtain 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 instruction.
[0063] Step S204, determining theoretical spindle length information according to simulation density information, yarn diameter information, weaving method information and yarn threading quantity information.
[0064] The theoretical spindle length information may refer to information characterizing the length of a spindle yarn separated by other spindle yarns. It can be understood that the theoretical spindle length information may include the spindle length in the simulation image, such as Figure 3 As shown, a schematic diagram of ingot length is provided.
[0065] As an example, since the weaving method information can characterize the movement of each spindle in the weaving process of the woven fabric, and the movement of each spindle in the weaving process can determine the texture of the woven fabric, the terminal can combine the simulation tightness information, yarn diameter information, weaving method information and yarn threading quantity information, and use the pre-set spindle length calculation expression corresponding to the weaving method information to calculate the theoretical spindle length information.
[0066] Step S206, determining the weaving angle information according to the theoretical spindle length information and the weaving method information, and determining the imaging density information according to the weaving method information.
[0067] The weaving angle information may refer to information characterizing the degree of inclination of the texture 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] The imaging density information may refer to information representing the number of pixels of a simulated image per unit area. In practical applications, the imaging density information may be used as the resolution of the simulated image.
[0069] As an example, since the weaving method information can characterize the movement mode of each spindle of the woven fabric during the weaving process, and the movement mode of each spindle during the weaving process can determine the texture of the woven fabric, the terminal can combine the theoretical spindle length information and the weaving method information, and calculate the weaving angle information according to the pre-set weaving angle calculation expression corresponding to the weaving method information. Similarly, since the weaving method information can characterize the movement mode of each spindle of the woven fabric during the weaving process, and the movement mode of each spindle during the weaving process can determine the texture of the woven fabric, the terminal can determine the pre-set imaging density calculation expression corresponding to the weaving method information according to the weaving method information, and calculate the imaging density information.
[0070] Step S208, obtaining a weaving motion model corresponding to the weaving method information, and inputting 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 pattern of the weaving device and the texture of the woven fabric.
[0071] The weaving motion model may refer to information characterizing the correspondence between the motion pattern of the weaving device and the texture of the woven fabric.
[0072] Among them, the fabric simulation program may refer to a pre-compiled model for generating a simulated image of a woven fabric based on a weaving motion model, weaving angle information and imaging density information. In actual applications, the fabric simulation program may include but is not limited to simulation software, etc. The fabric simulation program can determine rendering parameters based on the simulation parameters and render a simulated image according to the rendering parameters.
[0073] Among them, a weaving simulation image may refer to an image output by a fabric simulation program based on information such as a weaving motion model, weaving angle information, and imaging density information. In actual applications, the weaving simulation image may represent an image of the weaving effect of the woven fabric obtained when a weaving device weaves yarn according to a motion pattern of the weaving device represented by a weaving motion model, and the inclination of the texture formed by the yarn during the weaving process is the angle corresponding to the weaving angle information.
[0074] As an example, each weaving method is pre-set with a corresponding weaving motion model. The weaving motion model can be obtained by pre-analyzing the correspondence between the motion pattern 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 a pre-compiled fabric simulation program to obtain a weaving simulation image. In actual applications, the fabric simulation program can determine the rendering parameters based on 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 above-mentioned weaving simulation image generation method, the simulation tightness information, yarn diameter information, weaving method information and the threading number information corresponding to the weaving method information are obtained by obtaining the simulation tightness information, yarn diameter information, weaving method information and the threading number information of the weaving simulation instruction input; the simulation tightness information characterizes the tightness of the yarn in the simulation image; thereby timely responding to the simulation instruction to accurately obtain simulation parameters such as simulation tightness, yarn diameter, weaving method and the threading number information corresponding to the weaving method; according to the simulation tightness information, yarn diameter information, weaving method information and the threading number information, the theoretical spindle length information is determined; thereby the theoretical spindle length is accurately calculated based on the simulation tightness, yarn diameter, weaving method and the threading number corresponding to the weaving method; according to the theoretical spindle length information and the weaving method information, the weaving angle information is determined, and according to the weaving method information, the result is determined. image density information; thereby accurately calculating the weaving angle based on the theoretical spindle length and the weaving method, and accurately calculating the imaging density information based on the weaving method; obtaining a weaving motion model corresponding to the weaving method information, and inputting 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 pattern 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, thereby avoiding the cost increase caused by producing woven fabric samples, thereby reducing the cost of obtaining the weaving effect of the woven fabric.
[0076] In an exemplary embodiment, the method further includes: determining imaging width information based on weaving method information; 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] The imaging width information may refer to information characterizing the size of the weaving simulation image. In practical applications, the imaging width information may include a length and a height b.
[0078] As an example, since the weaving method information can characterize the movement mode of each spindle in the weaving process of the woven fabric, and the movement mode of each spindle in the weaving process can determine the texture of the woven fabric, the terminal can calculate the imaging width information according to the weaving method information and the preset imaging width calculation expression corresponding to the weaving method information. After that, the terminal can input the weaving motion model, weaving angle information, imaging density information and imaging width information as simulation parameters into a 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, based on the imaging width information, crop the image rendered according to the rendering parameters to obtain a weaving simulation image.
[0079] In this embodiment, the imaging width information is determined according to the weaving method information; the weaving motion model, weaving angle information, imaging density information and imaging width information are input into the fabric simulation program as simulation parameters to obtain a weaving simulation image, and the imaging width can be accurately obtained based on the weaving method. The fabric simulation program is 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, a weaving motion model, weaving angle information, imaging density information and imaging width information are input as simulation parameters into a fabric simulation program to obtain a weaving simulation image, including: adjusting the weaving motion model according to the weaving angle information through the fabric simulation program to obtain an adjusted weaving motion model; generating an initial simulation image according to the adjusted weaving motion model and imaging density information through the fabric simulation program; rotating the initial simulation image according to the weaving angle information through the fabric simulation program to obtain a rotated simulation image; and cropping the rotated simulation image according to the imaging width information through the fabric simulation program to obtain a weaving simulation image.
[0081] Among them, the adjusted weaving motion model may refer to the weaving motion model obtained after adjusting the weaving motion model according to the weaving angle information (such as adjusting the correspondence between the motion pattern of the weaving device and the texture of the woven fabric, etc.). In actual applications, different weaving angles will affect the movement direction of the spindle in the weaving device. Therefore, the terminal can adjust the correspondence between the motion pattern of the weaving device represented by the weaving motion model and the texture of the woven fabric according to the weaving angle information to obtain the adjusted weaving motion model.
[0082] The initial simulation image may refer to an image rendered by a fabric simulation program according to rendering parameters generated according to the adjusted weaving motion model and imaging density information, and in practical applications, the initial simulation image may be used as a basic texture map.
[0083] The rotated simulation image may refer to an 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 according to the adjusted weaving motion model and imaging density information, and perform image rendering according to 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. Then, the fabric simulation program can cut out an image that can be used as a weaving simulation image from the rotated simulation image according to the imaging width information.
[0085] In this embodiment, the weaving motion model is adjusted according to the weaving angle information by the fabric simulation program to obtain the adjusted weaving motion model; the initial simulation image is generated according to the adjusted weaving motion model and imaging density information by the fabric simulation program; the initial simulation image is rotated according to the weaving angle information by the fabric simulation program to obtain a rotated simulation image; the rotated simulation image is cropped according to the imaging width information by the fabric simulation program to obtain a weaving simulation image. The fabric simulation program can be used to accurately adjust the weaving motion model based on the weaving angle, generate the initial simulation image in combination with the adjusted weaving motion model and imaging density, and crop the rotated simulation image obtained by rotating the initial simulation image according to the weaving angle based on the imaging width to obtain an accurate weaving simulation image, thereby improving the accuracy of the weaving simulation image.
[0086] In some embodiments, imaging width information is determined based on weaving method information, including: determining weaving angle information based on weaving method information; obtaining preset device threading spindle number information, and determining the number of times the spindle appears in a preset projection surface based on the device threading spindle number information; determining imaging width information based on the number of occurrences information, theoretical spindle length information and weaving angle information.
[0087] The device threading spindle number information may refer to the number of yarns that can be processed simultaneously on the weaving device. In practical applications, the device threading spindle number may include the sum of the number of yarns passed through each spindle of the weaving device.
[0088] The spindle may refer to one of the main components for twisting and winding on a spinning machine of a weaving device, and is a component mainly composed of a slender rotating shaft supported at two points.
[0089] The occurrence count information may refer to the occurrence count of each spindle of the weaving device within a preset projection plane. In practical applications, the preset projection plane may include but is not limited to an orthographic projection plane.
[0090] As an example, since the weaving method information can characterize the movement mode of each spindle in the weaving process of the woven fabric, and the movement mode of each spindle in the weaving process can determine the texture of the woven fabric, the terminal can combine the theoretical spindle length information and the weaving method information, and calculate the weaving angle information according to the preset weaving angle calculation expression corresponding to the weaving method information. After that, the terminal can obtain the preset device threading spindle number information, and calculate the number of times the spindle appears in the preset projection surface based on the preset expression according to the device threading spindle number information combined with the preset calculation parameters. After that, the terminal can determine the imaging width information based on the number of times the spindle appears in the preset projection surface, the theoretical spindle length information and the weaving angle information. In practical applications, the device threading spindle number information can be expressed as N, the number of times the spindle appears in the preset projection surface can be expressed as n, and the theoretical spindle length information can be expressed as C. 1 , the weaving angle information can be expressed as ∠P, then the height b in the imaging width information can be expressed as b=SQRT(C 2 *(tan∠P) 2 / (tan∠P) 2 +1)), where C = C 1 *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, and the ratio k between the number of spindles N in the equipment and the number of times the spindles appear in the preset projection surface n can be a parameter obtained in advance by analysis. In practical applications, the ratio k can be flexibly adjusted based on actual production needs, and K can include but is not limited to 8.
[0091] In this embodiment, the weaving angle information is determined according to the weaving method information; the preset device yarn threading spindle number information is obtained, and the number of times the spindle appears in the preset projection surface is determined according to the device yarn threading spindle number information; the imaging width information is determined according to the number of occurrences information, theoretical spindle length information and weaving angle information. It is possible to accurately analyze the number of times the spindle appears in the preset projection surface based on the device yarn threading spindle number, and accurately calculate the imaging width in combination with the number of occurrences, theoretical spindle length and weaving angle, thereby obtaining an accurate weaving simulation image based on the imaging width, thereby improving the accuracy of the weaving simulation image.
[0092] In some embodiments, the theoretical spindle length information is determined based on the simulated tightness information, yarn diameter information, weaving method information and yarn threading quantity information, including: determining the measurement coefficient based on the weaving method information; determining the theoretical spindle length information based on the product of the simulated tightness information, yarn diameter information and yarn threading quantity information and the product of the measurement coefficients.
[0093] Among them, the measurement coefficient may refer to the coefficient used to calculate the theoretical spindle length information. In practical applications, the measurement coefficient may include the conversion relationship / proportional relationship between the product of the simulation tightness information, the yarn diameter information and the 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 example, when the weaving method is a single-spindle weaving method, the calculation coefficient can be 2, and when the weaving method is a double-spindle weaving method, the calculation coefficient can be 1. Therefore, in order to calculate the theoretical spindle length information, the terminal can first determine the calculation coefficient corresponding to the weaving method information according to the weaving method information, and then the terminal can first calculate the product between the simulated tightness information, the yarn diameter information and the threading number information, and then calculate the product between the simulated tightness information, the yarn diameter information and the threading number information and the product between the calculation coefficients to obtain the theoretical spindle length information.
[0095] In this embodiment, the measurement coefficient is determined according to the weaving method information; the theoretical spindle length information is determined according to the product of the simulation tightness information, yarn diameter information and yarn threading quantity information and the product of the measurement coefficients. The measurement coefficient can be determined based on the weaving method first, and then the product of the simulation tightness information, yarn diameter information and yarn threading quantity information and the product of the measurement coefficients are calculated to obtain accurate theoretical spindle length information.
[0096] In some embodiments, the weaving angle information is determined based on theoretical spindle length information and weaving method information, including: 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] Among them, the first length information may refer to information characterizing the length of the adjacent side of the angle in the right triangle whose angle is the weaving angle information. In practical applications, the right triangle required to determine the first length information may be a right triangle whose hypotenuse length is the theoretical ingot length.
[0098] Among them, the second length information may refer to information representing the length of the opposite side of the angle in the right triangle whose angle is the weaving angle information. In practical applications, the right triangle required to determine the second length information may be a right triangle whose hypotenuse length is the theoretical ingot length.
[0099] As an example, different weaving methods will result in different textures of the woven fabric (such as the positional relationship between color blocks of different colors in the woven fabric). Therefore, the terminal can calculate the first length information and the second length information according to the theoretical ingot length information and the weaving method information according to a preset length calculation expression, wherein the first length information can be the length of the adjacent side of the angle whose angle is the weaving angle information, and the second length information can be the length of the opposite side of the angle whose angle is the weaving angle information. The terminal can then calculate the ratio of the second length information to the first length information, and use the inverse tangent function arctan(x) to calculate the weaving angle information.
[0100] In this embodiment, the first length information and the second length information are determined according to 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; the weaving angle information is determined according to the ratio between the second length information and the first length information, and the lengths of the adjacent side and the opposite side in the right triangle where the weaving angle is located can be determined respectively according to 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, in order to simulate the weaving effect of the braided fabric, the terminal may first obtain the weaving motion models corresponding to different weaving methods, wherein the weaving motion model may be obtained by analyzing the weaving process of the braided fabric in advance, and the weaving process analysis of the braided fabric may include: converting the 8-shaped rotational motion of the spindle in the weaving device on the weaving tooth seat into a linear motion, at which time 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. A fixed tooth seat on the weaving tooth seat drives the red spindle from position 1 to position 2, and another fixed tooth seat drives the green spindle from position 3 to position 4. They are all in an 8-shaped arc motion, and the yarns on these spindles are tightened at position 0 above the weaving tooth seat; in the 8-shaped arc motion process from position 1 to position 2 and position 3 to position 4, from the result of work, the yarns of these two spindles only complete one left oblique and right oblique intersection. Based on the above observations and analysis, the motion of weaving simulation is decomposed into two basic motion units, left oblique and right oblique. Among them, the weaving tooth seat can refer to a track gear that makes an 8-shaped motion, the fixed tooth seat can refer to a tooth seat connected to the weaving tooth seat for fixing the spindle, and the spindle can refer to a tube inserted in the fixed tooth seat. The terminal can define the motion of the red spindle of the weaving device as a left oblique motion, the motion of the green spindle of the weaving device as a right oblique motion, and define the left oblique motion as the front of the braided fabric, and the right oblique motion as the bottom of the braided fabric. The terminal can take the number of red spindles as the left-slanted value and the number of green spindles as the right-slanted value, and calculate the number of their respective movements according to the weaving methods, such as the threading method and the number of yarns threading the red and green spindles, so as to construct a weaving motion model in order to determine the rendering method and rendering parameters of the weaving simulation image.
[0102] In practical applications, different weaving methods can be used as different processes, and the correspondence between the motion mode of the weaving device represented by the weaving motion model of different processes and the texture of the woven fabric can be: the total number of yarns threaded by red spindles is the number of left oblique columns, and the total number of yarns threaded by green spindles is the number of right oblique columns. The correspondence between the motion mode of the weaving device represented by the weaving motion model of different processes and the texture of the woven fabric can also be: the left oblique colors in the motion model are arranged according to the yarn threading colors of the red spindles, and the right oblique colors in the motion model are arranged according to the yarn threading colors of the green spindles. In a specific implementation, the weaving motion models corresponding to the single-spindle weaving method implemented using different numbers of spindles may include a 16-spindle single-spindle model, a 24-spindle single-spindle model, a 36-spindle single-spindle model, a 39-spindle single-spindle model, and a 48-spindle single-spindle model. The weaving motion models corresponding to the double-spindle weaving method implemented using different numbers of spindles may include a 16-spindle double-spindle model, a 24-spindle double-spindle model, a 36-spindle double-spindle model, and a 48-spindle double-spindle model. Figure 5 As shown, a schematic diagram of a single spindle basic motion model is provided; Figure 6 As shown, a schematic diagram of a dual-spindle basic motion model is provided.
[0103] When the user needs to simulate the weaving effect, the user can input the simulation tightness information M, yarn diameter information d, weaving method information, and threading quantity information X corresponding to the weaving method information through the operation terminal. In actual application, the simulation tightness information M can be the information input by the user or the information obtained by preliminary experimental analysis. In specific implementation, the calculation method of the theoretical spindle length information corresponding to different weaving methods is different. For example, the left oblique theoretical spindle length C of the single spindle weaving method is 1 The calculation expression can be expressed as C 1 = d*M*X 2 *2, right-slant theoretical spindle length C for single-spindle weaving 2 The calculation expression can be expressed as C 2 = d*M*X 1 *2, where the calculation coefficient of the theoretical spindle length information corresponding to the single-spindle weaving method can be 2, and the calculation expression of the left-slanted theoretical spindle length L of the double-spindle weaving method can be expressed as L= d*M* X 2 The calculation expression of the right-slant theoretical spindle length K of the double-spindle weaving method can be expressed as K= d*M* X 1 , where the calculation coefficient of the theoretical spindle length information corresponding to the double-spindle weaving method can be 1, and the yarn diameter information d=1÷{0.90×[(yarn count×840) 1 / 2 ]}*25.4), X 1 It can refer to the number of threads per spindle on the left side, X 2 It can refer to the number of yarns threaded into each right-slanted spindle.
[0104] The terminal can calculate the weaving angle information according to the theoretical spindle length information and the weaving method information. Since different weaving methods form different woven fabric patterns, the terminal can calculate the tangent value of the weaving angle according to the parameter calculation expression corresponding to the weaving method information, calculate the tangent value of the weaving angle according to the theoretical spindle length and other information, and calculate the weaving angle information according to the tangent value. Specifically, Figure 7 As shown in FIG. 1 , a schematic diagram for determining the weaving angle is provided. The terminal can first calculate a1 and b1 according to the average number of left and right oblique threads in the single-spindle weaving method, and then the terminal can calculate the weaving angle ∠P=arctan(a1 / b1) corresponding to the single-spindle weaving method according to a1 and b1. Figure 8 As shown, another schematic diagram for determining the braiding angle is provided. The terminal can first calculate the left oblique theoretical spindle length L of the double-spindle weaving method and the right oblique theoretical spindle length K of the double-spindle weaving method, and then the terminal can calculate the braiding angle ∠P=arctan(K / L) according to the left oblique theoretical spindle length L and the right oblique theoretical spindle length K. It can be understood that the parameters required to calculate the braiding angle / theoretical spindle length corresponding to different braiding methods can be preset parameters, or parameters input by the user or parameters calculated by a pre-written simple program based on the parameters input by the user.
[0105] In order to determine the imaging width, the terminal can determine the weaving angle information according to the weaving method information, and then the terminal can obtain the preset device threading spindle number information N, and determine the number of spindle appearances n in the preset projection surface according to the ratio between the device threading spindle number information and the preset parameter (such as 8). Then, the terminal can obtain the theoretical spindle length information C corresponding to the number of spindle appearances n in the preset projection surface according to the number of spindle appearances n in the preset projection surface and the weaving method information. 1 The weaving angle information ∠P corresponding to the weaving method information determines the imaging width information a and b. Fig. 9 As shown in the figure, 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 = C 1 *n*2, then calculate a= b / tan∠P.
[0106] The terminal can determine the preset imaging density calculation expression corresponding to the weaving method information according to the weaving method information, calculate the imaging density information, and after obtaining the weaving angle information, the imaging density information and the imaging width information, 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 the rendering parameters. In actual applications, the fabric simulation program can convert the weaving motion model according to the weaving angle ∠P, the number of left oblique columns and the number of right oblique columns to obtain an adjusted weaving motion model. The fabric simulation program can obtain an initial simulation image according to the adjusted weaving motion model and the 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. Then, the fabric simulation program can crop the rotated simulation image according to the imaging width information to obtain the weaving simulation image.
[0107] like Fig.10 As shown, a schematic diagram of a weaving motion is provided. Fig.10 The weaving motion shown can correspond to the first weaving process. The number of spindles in the first weaving process is 24 spindles, the weaving method is single-spindle weaving, the weaving width is 5MM, the spindle threading method is 2 yarns per red spindle, 2 yarns per green spindle, and the yarn arrangement is that all red spindles are threaded with white yarns; 2 green spindles are threaded with red yarns, and the others are threaded with white yarns. When the yarn diameter is 32S / 1, the simulation parameters of the first weaving process may include but are not limited to theoretical spindle length: 1.24MM (left oblique and right oblique), weaving angle: 45°, imaging density: 32, theoretical width: 7MM, such as Fig.11As shown, a schematic diagram of a weaving simulation image of a first weaving process is provided. Fig.12 As shown, another schematic diagram of the weaving motion is provided. Fig.12 The weaving motion shown can correspond to the second weaving process. The number of spindles in the second weaving process is 16 spindles, the weaving method is double-spindle weaving, the weaving width is 3MM, the spindle threading method is 5 yarns per red spindle, and 5 yarns per green spindle. The yarn arrangement is that the red spindles and green spindles are all threaded with light gray. The yarn diameter is 20S / 1. The simulation parameters of the second weaving process may include but are not limited to theoretical spindle length: 1.96MM (left oblique and right oblique), weaving angle: 45°, imaging density: 25, theoretical width: 3MM, such as Fig.13 As shown, a schematic diagram of a weaving simulation image of a second weaving process is provided.
[0108] In this embodiment, the 8-shaped rotational motion on the tooth seat of the weaving equipment is decomposed into linear motion, and the rotational motion of the spindle on the fixed tooth seat is decomposed into two basic motion units: left oblique motion and right oblique motion, and a set of basic motion models is established according to the process of weaving motion; at the same time, the test and analysis of different woven fabrics during the positive projection are carried out to establish a model of simulation test, which is used to measure the simulation parameters such as the number of left oblique columns, the number of right oblique columns, the theoretical spindle length, the simulated spindle length, the weaving angle, the conversion density, the simulation density, the conversion width, and the conversion width. The basic motion model is selected according to the process, and the corresponding weaving motion model is automatically generated in combination with the number of left oblique columns, the number of right oblique columns and the yarn arrangement; the weaving motion model is imported into the shuttle weaving software, and the basic texture map is generated after the weaving process parameters such as the imaging density are input, and the weaving simulation map is automatically generated according to the basic texture map and the measured parameters. The actual production conditions can be simulated to generate simulation effects, and the simulation effect can be adjusted by modifying the input parameters. The effect obtained by simulating the actual production environment in a virtual environment can be tested and modified, reducing the cost and time of making woven fabric samples, thereby reducing the cost of obtaining the weaving effect of the woven fabric.
[0109] 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.
[0110] Based on the same inventive concept, the embodiment of the present application also provides a weaving simulation image generation device for implementing the weaving simulation image generation 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 weaving simulation image generation device embodiments provided below can refer to the limitations of the weaving simulation image generation method above, and will not be repeated here.
[0111] In an exemplary embodiment, Fig.14 As shown, a weaving simulation image generating device is provided, comprising: 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 obtain the simulation tightness information, yarn diameter information, weaving method information and the threading quantity information corresponding to the weaving method information input by the weaving simulation instruction; 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 according to 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 according to the theoretical spindle length information and the weaving method information, and to determine the imaging density information according to 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 characterizes the correspondence between the motion pattern of the weaving device and the texture of the woven fabric.
[0116] In one of the exemplary embodiments, the device also includes a cropping module, which is specifically used to determine the imaging width information based on the weaving method 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.
[0117] In one of the exemplary embodiments, the cropping module is specifically used to adjust the weaving motion model according to the weaving angle information through the fabric simulation program to obtain the adjusted weaving motion model; generate an initial simulation image according to the adjusted weaving motion model and the imaging density information through the fabric simulation program; rotate the initial simulation image according to the weaving angle information through the fabric simulation program to obtain a rotated simulation image; and crop the rotated simulation image according to the imaging width information through the fabric simulation program to obtain the weaving simulation image.
[0118] In one of the exemplary embodiments, the cutting module is specifically used to determine the weaving angle information based on the weaving method information; obtain the preset device threading spindle number information, and determine the number of times the spindle appears in the preset projection surface based on the device threading spindle number information; determine the imaging width information based on the number of occurrences information, the theoretical spindle length information and the weaving angle information.
[0119] In one of the exemplary embodiments, the determination module 1404 is specifically used to determine the calculation coefficient based on the weaving method information; and 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 coefficients.
[0120] In one of the exemplary embodiments, the calculation module 1406 is specifically used to determine the first length information and the second length information based on the theoretical ingot 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; the weaving angle information is determined according to the ratio between the second length information and the first length information.
[0121] Each module in the above-mentioned weaving simulation image generation device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0122] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.15As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. 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 in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for generating a weaving simulation image is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0123] Those skilled in the art will understand that Fig.15 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.
[0124] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0125] 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 steps in the above-mentioned method embodiments are implemented.
[0126] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[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, 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 must comply with relevant regulations.
[0128] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and 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-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0129] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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 above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for generating a weaving simulation image, characterized in that: The method comprises: Acquire the simulation tightness information, yarn diameter information, weaving method information and the threading quantity information corresponding to the weaving method information input by the weaving simulation instruction; the simulation tightness information represents the tightness of the yarn in the simulation image; Determine theoretical spindle length information according to the simulation tightness information, the yarn diameter information, the weaving method information and the yarn threading quantity information; Determining weaving angle information according to the theoretical spindle length information and the weaving mode information, and determining imaging density information according to the weaving mode information; A 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 characterizes the correspondence between the motion pattern of the weaving device and the texture of the woven fabric.
2. The method according to claim 1, characterized in that: The method further comprises: Determining imaging width information according to the weaving mode information; The weaving motion model, the weaving angle information, the imaging density information and the imaging width information are input into the fabric simulation program as simulation parameters 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 comprises: Adjusting the weaving motion model according to the weaving angle information by the fabric simulation program to obtain an adjusted weaving motion model; Generate an initial simulation image through the fabric simulation program according to the adjusted weaving motion model and the imaging density information; Rotating the initial simulation image according to the weaving angle information by the fabric simulation program to obtain a rotated simulation image; The rotated simulation image is cropped according to the imaging width information by the fabric simulation program to obtain the weaving simulation image.
4. The method according to claim 2, characterized in that: Determining imaging width information according to the weaving mode information includes: Determining weaving angle information according to the weaving method information; Obtaining preset device threading spindle number information, and determining the number of times the spindle appears in the preset projection surface according to the device threading spindle number information; The imaging width information is determined according to the occurrence number information, the theoretical spindle length information and the weaving angle information.
5. The method according to claim 1, characterized in that The determining of theoretical spindle length information according to the simulation tightness information, the yarn diameter information, the weaving method information and the yarn threading quantity information includes: Determining a calculation coefficient according to the knitting method information; The theoretical spindle length information is determined based on the product of the simulation tightness information, the yarn diameter information and the yarn threading quantity information and the product of the measurement coefficients.
6. The method according to claim 1, characterized in that The determining of the braiding angle information according to the theoretical spindle length information and the braiding mode information includes: Determine first length information and second length information according to the theoretical spindle length information and the weaving mode 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; The braiding angle information is determined according to the ratio between the second length information and the first length information.
7. A weaving simulation image generating device, characterized in that: The device comprises: A response module, used for obtaining the simulation tightness information, yarn diameter information, weaving method information and the threading quantity information corresponding to the weaving method information input by the weaving simulation instruction; the simulation tightness information represents the tightness of the yarn in the simulation image; A determination module, used to determine theoretical spindle length information according to the simulation tightness information, the yarn diameter information, the weaving method information and the yarn threading quantity information; A calculation module, used to determine the weaving angle information according to the theoretical ingot length information and the weaving mode information, and to determine the imaging density information according to the weaving mode information; A generation module is used to obtain a weaving motion model corresponding to the weaving mode 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 characterizes the correspondence between the motion pattern 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, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, 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 6 are implemented.
10. A computer program product, comprising a computer program, 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 6 are implemented.
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