Methods, devices, garment manufacturing equipment, and media for generating sewing tracks.
By automatically generating sewing trajectories through coordinate transformation, the problem of low efficiency and high cost caused by manually determining sewing trajectories in garment manufacturing is solved, thus realizing automated production.
Patent Information
- Application Number
- CN202310851526.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-12
- Publication Date
- 2026-03-06
- Estimated Expiration
- 2043-07-12
AI Technical Summary
In existing technologies, the sewing path needs to be manually determined during the garment manufacturing process, resulting in low production efficiency and high labor costs.
By acquiring the image and file of the actual cut piece, coordinate transformation is used to unify the first contour of the actual cut piece and the second contour of the cut piece graphic into the same coordinate system, and the sewing trajectory is automatically generated.
The sewing path can be determined manually, which improves production efficiency and reduces labor costs.
Smart Images

Figure CN116876156B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of garment manufacturing technology, and in particular to a method, device, garment manufacturing equipment, and storage medium for generating sewing tracks. Background Technology
[0002] In garment manufacturing, two pieces of fabric need to be sewn together, so the sewing path on the fabric pieces needs to be determined during the design phase. In related technologies, operators manually determine the sewing path on the fabric pieces, which leads to low production efficiency and high labor costs. Summary of the Invention
[0003] The present invention provides a method, apparatus, garment manufacturing equipment, and storage medium for generating sewing tracks to solve at least one of the aforementioned technical problems.
[0004] A method for generating a sewing trajectory according to an embodiment of the present invention includes:
[0005] Obtain an image of the actual cut piece, and obtain the first outline of the actual cut piece based on the image of the actual cut piece;
[0006] Obtain a cut piece file, the cut piece file including a cut piece graphic, and obtain a second outline of the cut piece graphic based on the cut piece file;
[0007] Transform the first contour and the second contour to the same coordinate system;
[0008] After coordinate transformation, the second contour is used as the sewing trajectory of the actual cut piece.
[0009] In the above method for generating sewing trajectories, coordinate transformation can be used to unify the first contour of the actual cut piece and the second contour of the cut piece graphic into the same coordinate system, and the second contour after coordinate transformation can be used as the sewing trajectory of the actual cut piece. Therefore, there is no need to manually determine the sewing trajectory, which improves production efficiency and reduces labor costs.
[0010] In some implementations, acquiring an image of the actual cut piece and obtaining a first outline of the actual cut piece based on the image of the actual cut piece includes:
[0011] Based on the image of the actual cut piece, obtain the first contour and multiple first feature points of the first contour;
[0012] Obtaining a cut piece file, the cut piece file including a cut piece graphic, and obtaining a second outline of the cut piece graphic based on the cut piece file includes:
[0013] Based on the cut-out file, obtain the second contour and multiple second feature points of the second contour;
[0014] Transforming the first contour and the second contour to the same coordinate system includes:
[0015] Using the plurality of first feature points, determine the first reference point of the first contour;
[0016] Using the plurality of second feature points, determine the second reference point of the second contour;
[0017] Based on the relative positions of the first reference point and the second reference point, the coordinates of the first contour and the second contour are transformed to the same coordinate system.
[0018] In some implementations, the cutout file includes layers, and the layers include tiles;
[0019] Based on the cut-out file, obtaining the second contour and multiple second feature points of the second contour includes:
[0020] The layer and the tile are parsed to obtain the second contour;
[0021] Based on the second contour, the plurality of second feature points are obtained.
[0022] In some embodiments, the plurality of first feature points include a first pair of first feature points symmetrically arranged along the central axis of the image of the actual cut piece, and a second pair of first feature points symmetrically arranged along the central axis of the image of the actual cut piece;
[0023] Determining the first reference point of the first contour using the plurality of first feature points includes:
[0024] The equation of the first straight line is determined based on one of the first feature points of the first pair of first feature points and one of the first feature points of the second pair of first feature points;
[0025] Determine the equation of the second straight line based on another first feature point of the first pair of first feature points and another first feature point of the second pair of first feature points;
[0026] The first reference point is determined using the first line equation and the second line equation.
[0027] In some embodiments, the plurality of second feature points include a first pair of second feature points symmetrically arranged along the central axis of the cut pattern, and a second pair of second feature points symmetrically arranged along the central axis of the cut pattern;
[0028] Using the plurality of second feature points, the second reference point for determining the second contour includes:
[0029] The equation of the third line is determined based on one of the second feature points of the first pair of second feature points and one of the second feature points of the second pair of second feature points;
[0030] The equation of the fourth line is determined based on another second feature point of the first pair of second feature points and another second feature point of the second pair of second feature points.
[0031] The second reference point is determined using the equations of the third and fourth lines.
[0032] In some embodiments, transforming the first contour and the second contour to the same coordinate system based on the relative positions of the first reference point and the second reference point includes:
[0033] One of the first reference point and the second reference point is used as the final reference point, and the other is used as the transformation reference point;
[0034] Using the coordinate system where the final reference point is located as a reference, the coordinate system where the transformation reference point is located is transformed into the coordinate system where the final reference point is located by moving and / or rotating the coordinate system where the transformation reference point is located.
[0035] In some implementations, the size of the first contour is larger than the size of the second contour.
[0036] A sewing trajectory generation apparatus according to an embodiment of the present invention includes a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements the steps of the sewing trajectory generation method of any of the above embodiments.
[0037] An embodiment of the present invention provides a garment manufacturing device including the sewing trajectory generation device described in the above embodiment.
[0038] The present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the sewing trajectory generation method of any of the above embodiments.
[0039] In the aforementioned sewing trajectory generation device, garment manufacturing equipment, and computer-readable storage medium, coordinate transformation can be used to unify the coordinate points of the first contour of the actual cut piece and the coordinate points of the second contour of the cut piece graphic into the same coordinate system, and the sewing trajectory can be generated based on the coordinate points of the first and second contours after coordinate transformation. Therefore, there is no need to manually determine the sewing trajectory, which improves production efficiency and reduces labor costs.
[0040] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0041] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0042] Figure 1 This is a flowchart illustrating the method for generating sewing tracks according to an embodiment of the present invention;
[0043] Figure 2 This is a schematic diagram of the actual cut piece of the front panel according to an embodiment of the present invention;
[0044] Figure 3 This is a schematic diagram of the cut pattern of the back piece according to an embodiment of the present invention;
[0045] Figure 4 This is a flowchart illustrating the method for generating a sewing trajectory according to an embodiment of the present invention.
[0046] Figures 5 to 7 This is a schematic diagram illustrating the coordinate transformation process between the actual cut piece image and the cut piece graphic in an embodiment of the present invention;
[0047] Figures 8 to 10 This is a schematic diagram illustrating another process of coordinate transformation between the actual cut piece image and the cut piece graphic in an embodiment of the present invention;
[0048] Figure 11 This is a schematic diagram of the modules of the garment manufacturing equipment according to an embodiment of the present invention.
[0049] Explanation of key component symbols:
[0050] The sewing trajectory generation device 100, garment manufacturing equipment 200, sewing device 300, actual cut piece image 12, first outline 14, cut piece graphic 16, second outline 18, left lower hem 20, left armpit 22, left shoulder 24, left collar 26, right collar 28, right shoulder 30, right armpit 32, right lower hem 34, first reference point 36, second reference point 38, processor 52, memory 54. Detailed Implementation
[0051] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present invention, and should not be construed as limiting the embodiments of the present invention.
[0052] Please refer to Figures 1 to 3 The present invention provides a method for generating a sewing trajectory, comprising:
[0053] Step 101: Obtain image 12 of the actual cut piece, and obtain the first outline 14 of the actual cut piece based on image 12;
[0054] Step 103: Obtain the cut piece file, which includes the cut piece graphic 16. Obtain the second outline 18 of the cut piece graphic 16 based on the cut piece file.
[0055] Step 105: Transform the coordinates of the first contour 14 and the second contour 18 to the same coordinate system;
[0056] Step 107: After coordinate transformation, the second contour 18 is used as the sewing trajectory of the actual cut piece.
[0057] In the above method for generating sewing trajectories, the first contour 14 of the actual cut piece and the second contour 18 of the cut piece graphic 16 can be unified into the same coordinate system through coordinate transformation, and the second contour 18 after coordinate transformation is used as the sewing trajectory of the actual cut piece. Therefore, there is no need to manually determine the sewing trajectory, which improves production efficiency and reduces labor costs.
[0058] Specifically, image 12 of the actual cut piece can be captured by a camera. During the capture, the actual cut piece can be laid flat on a support, and the camera can capture the image 12 from directly above it. The actual cut piece can be available in various sizes, including but not limited to 2XS, XS, S, M, L, XL, 2XL, 3XL, and 4XL. The types of cut pieces include, but are not limited to, front pieces, back neck covers, collars, and sleeves. Please refer to... Figure 2 and Figure 3 The embodiments of the present invention will be described using a back piece as an example.
[0059] This invention does not specifically limit the format of the pattern file. In one embodiment, the pattern file can be a DXF (Drawing Exchange Format) file. The pattern file can be provided by relevant engineers of the garment company and can be uploaded to a personal computer, server, or database. The required pattern file can be obtained from a personal computer, server, or database. The pattern file includes data on the pattern pieces required for garment production, such as pattern type, size type, and coordinate points of the second outline 18 constituting the pattern pattern 16. Pattern types may include, but are not limited to, front piece, back piece, back neck cover, collar, sleeve, etc. Size types include, but are not limited to, 2XS, XS, S, M, L, XL, 2XL, 3XL, 4XL. In this embodiment of the invention, when determining the sewing trajectory, the actual pattern piece type and size are the same as the pattern piece type and size of the pattern pattern 16. For example, if the actual pattern piece is a 2XS back piece, the pattern pattern 16 is also a 2XS back piece.
[0060] Image recognition techniques can be used to process the image 12 of the actual cut piece to obtain the first contour 14 of the actual cut piece. In one embodiment, a foreground segmentation algorithm is used to process the image 12 of the actual cut piece to extract the first contour 14 of the actual cut piece.
[0061] The pattern file can be parsed to obtain the second outline 18 of the pattern graphic 16. Specifically, the data in the pattern file includes the coordinate points of the second outline 18 of the pattern graphic 16. By extracting the coordinate point data of the second outline 18, the second outline 18 of the pattern graphic 16 can be obtained.
[0062] Image 12 of the actual cut piece is captured by a camera. The coordinate system of image 12 is related to the camera settings. The coordinate system of image 12 is different from that of pattern 16. By transforming the first contour 14 and the second contour 18 to the same coordinate system, the coordinate system of image 12 can be made the same as that of pattern 16. After the coordinate transformation, the second contour 18 can be used as the sewing trajectory of the actual cut piece. Therefore, the sewing trajectory does not need to be manually drawn on the actual cut piece. The sewing trajectory can be used by the subsequent sewing device to cut off the excess part of the actual cut piece compared to pattern 16.
[0063] In some implementations, please refer to Figure 4 Step 101 includes:
[0064] Step 1011: Based on the image 12 of the actual cut piece, obtain the first contour 14 and multiple first feature points of the first contour 14;
[0065] Step 103 includes:
[0066] Step 1031: Based on the cut-out file, obtain the second contour 18 and multiple second feature points of the second contour 18;
[0067] Step 105 includes:
[0068] Step 1051: Using multiple first feature points, determine the first reference point 36 of the first contour 14;
[0069] Step 1053: Using multiple second feature points, determine the second reference point 38 of the second contour 18;
[0070] Step 1055: Based on the relative positions of the first reference point 36 and the second reference point 38, the coordinates of the first contour 14 and the second contour 18 are transformed to the same coordinate system.
[0071] In this way, the first contour 14 and the second contour 18 can be transformed into the same coordinate system.
[0072] Specifically, the feature points of the cut pieces can serve as reference points in the garment design and manufacturing process. These feature points can be used for operations such as joining pieces and sewing. In one example, the cut piece is the back piece; please refer to... Figure 2 and Figure 3 The back piece can include eight feature points. These eight feature points are: lower left hem 20, left armpit 22, left shoulder 24, left collar 26, right collar 28, right shoulder 30, right armpit 32, and lower right hem 34. The first contour 14 of the actual back piece image includes eight first feature points, and the second contour 18 of the back piece graphic includes eight second feature points. After coordinate transformation, the positions of the eight first feature points and the eight second feature points correspond one-to-one and are close to each other, ensuring that the generated sewing trajectory meets the requirements.
[0073] A first reference point 36 can be determined using multiple first feature points, and a second reference point 38 can be determined using multiple second feature points. The first reference point 36 can serve as the origin of the coordinate system (hereinafter referred to as the first coordinate system) where the actual cut piece is located, and the second reference point 38 can serve as the origin of the coordinate system (hereinafter referred to as the second coordinate system) where the cut piece graphic 16 is located. By determining the relative positions of the first reference point 36 and the second reference point 38, the relative positions between the first and second coordinate systems can be determined, such as the relative rotation angle and / or translation distance between the first and second coordinate systems. Therefore, based on the relative positions of the first reference point 36 and the second reference point 38, the coordinates of the first contour 14 and the second contour 18 can be transformed to the same coordinate system.
[0074] In some implementations, the cut-out file includes layers, and the layers include tiles;
[0075] Step 1031 includes:
[0076] Analyze the layers and tiles to obtain the second outline 18;
[0077] Based on the second contour 18, multiple second feature points are obtained.
[0078] In this way, multiple second feature points can be obtained.
[0079] Specifically, in one implementation, the pattern file may include multiple layers, each layer comprising multiple tiles. A layer can be defined as a size type, and a tile as a pattern type within the pattern file.
[0080] For example, the pattern file includes two layers: the 2XS layer and the XS layer. Each layer includes two tiles: a front piece tile and a back piece tile. Parsing the layers yields two more layers: the 2XS layer and the XS layer. Parsing the tiles in each layer yields two more tiles: a front piece tile and a back piece tile. Ultimately, the pattern graphics 16 for the 2XS front piece, XS front piece, 2XS back piece, and XS back piece are obtained.
[0081] Based on the type and size of the actual cut piece, the corresponding layers and blocks can be extracted. For example, if the actual cut piece is size XS and type is a back piece, i.e., the actual cut piece is an actual XS back piece, the image of the actual XS back piece and its first outline 14 can be obtained. The cut piece graphic 16 of the aforementioned XS back piece can then be extracted, and the second outline 18 and multiple second feature points of the XS back piece graphic can be obtained.
[0082] It is understood that in other embodiments, a cutout file may include a layer, and a layer may include a tile, that is, a cutout file includes a cutout graphic 16, which is not specifically limited in this invention.
[0083] In some embodiments, the plurality of first feature points include a first pair of first feature points symmetrically arranged along the central axis of the image 12 of the actual cut piece, and a second pair of first feature points symmetrically arranged along the central axis of the image 12 of the actual cut piece;
[0084] Step 1051 includes:
[0085] The equation of the first line is determined based on one of the first feature points of the first pair of first feature points and one of the first feature points of the second pair of first feature points;
[0086] The equation of the second line is determined based on another first feature point of the first pair of first feature points and another first feature point of the second pair of first feature points.
[0087] The first reference point 36 is determined using the equations of the first and second lines.
[0088] In this way, the first reference point 36 can be determined efficiently.
[0089] Specifically, the actual cut image 12 has a central axis (hereinafter referred to as the first central axis L1), and multiple first feature points can be symmetrically arranged along the first central axis L1. One of the first feature points of the first pair of first feature points and one of the first feature points of the second pair of first feature points are located on the same side of the first central axis L1, and the other first feature point of the first pair of first feature points and the other first feature point of the second pair of first feature points are located on the other side of the first central axis L1.
[0090] The equation of the first straight line can be determined using the coordinates of one of the first feature points in the first pair and the coordinates of one of the first feature points in the second pair. The equation of the second straight line can be determined using the coordinates of the other first feature point in the first pair and the other first feature point in the second pair. The first reference point 36 is calculated by combining the first and second straight line equations. In one example, the first reference point 36 can be the center point of the actual cut image 12.
[0091] Since multiple first feature points can be identified from the actual cut image 12 through image recognition processing, the first straight line equation and the second straight line equation can be obtained quickly, and the first reference point 36 can be calculated efficiently.
[0092] exist Figure 2 In the actual image of the back piece, there are eight first feature points: left lower hem 20, left armpit 22, left shoulder 24, left collar 26, right collar 28, right shoulder 30, right armpit 32, and right lower hem 34. The left lower hem 20 and right lower hem 34 are symmetrically arranged along the first central axis L1, the left armpit 22 and right armpit 32 are symmetrically arranged along the first central axis L1, the left shoulder 24 and right shoulder 30 are symmetrically arranged along the first central axis L1, and the left collar 26 and right collar 28 are symmetrically arranged along the first central axis L1.
[0093] In one embodiment, the left collar 26 and right collar 28 can be used as the first pair of first feature points, and the left hem 20 and right hem 34 can be used as the second pair of first feature points. The first straight line equation is determined using the coordinates of the left collar 26 and the right hem 34, and the second straight line equation is determined using the coordinates of the right collar 28 and the left hem 20. The first reference point 36 is calculated by combining the first and second straight line equations. It is understood that in other embodiments, other first feature points can be selected as the first pair of first feature points and the second pair of first feature points, and are not limited to the left hem 20 and right hem 34, or the left collar 26 and right collar 28.
[0094] In some embodiments, the plurality of second feature points include a first pair of second feature points symmetrically arranged along the central axis of the cut pattern 16, and a second pair of second feature points symmetrically arranged along the central axis of the cut pattern 16.
[0095] Step 1053 includes:
[0096] The equation of the third line is determined based on one of the second feature points of the first pair of second feature points and one of the second feature points of the second pair of second feature points.
[0097] The equation of the fourth line is determined based on another second feature point of the first pair of second feature points and another second feature point of the second pair of second feature points.
[0098] The second reference point 38 is determined using the equations of the third and fourth lines.
[0099] In this way, the second reference point 38 can be determined efficiently.
[0100] Specifically, the pattern 16 has a central axis (hereinafter referred to as the second central axis L2), and multiple second feature points can be symmetrically arranged along the second central axis L2. One of the second feature points of the first pair of second feature points and one of the second feature points of the second pair of second feature points are located on the same side of the second central axis L2, and the other second feature point of the first pair of second feature points and the other second feature point of the second pair of second feature points are located on the other side of the second central axis L2.
[0101] The equation of the third line can be determined using the coordinates of one of the second feature points in the first pair and the coordinates of one of the second feature points in the second pair. The equation of the fourth line can be determined using the coordinates of the other second feature point in the first pair and the other second feature point in the second pair. The second reference point 38 is calculated by combining the third and fourth line equations. In one example, the second reference point 38 could be the center point of the pattern piece 16.
[0102] Since multiple second feature points can be directly extracted from the data of the pattern 16, the equations of the third and fourth straight lines can be obtained quickly, and the second reference point 38 can be calculated efficiently.
[0103] exist Figure 3The back panel graphic includes eight secondary feature points: left hem 20, left armpit 22, left shoulder 24, left collar 26, right collar 28, right shoulder 30, right armpit 32, and right hem 34. Left hem 20 and right hem 34 are symmetrically arranged along the second central axis L2; left armpit 22 and right armpit 32 are symmetrically arranged along the second central axis L2; left shoulder 24 and right shoulder 30 are symmetrically arranged along the second central axis L2; and left collar 26 and right collar 28 are symmetrically arranged along the second central axis L2.
[0104] In one embodiment, the left collar 26 and right collar 28 can be used as the first pair of second feature points, and the left hem 20 and right hem 34 can be used as the second pair of second feature points. The coordinates of the left collar 26 and right hem 34 are used to determine the third straight line equation, and the coordinates of the right collar 28 and left hem 20 are used to determine the fourth straight line equation. The second reference point 38 is calculated by combining the third and fourth straight line equations. It is understood that in other embodiments, other second feature points can be selected as the first pair of second feature points and the second pair of second feature points, and are not limited to the left collar 26 and right collar 28, or the left hem 20 and right hem 34.
[0105] In some implementations, step 1055 includes:
[0106] One of the first reference point 36 and the second reference point 38 is used as the final reference point, and the other is used as the transformation reference point;
[0107] Using the coordinate system of the final reference point as a reference, the coordinate system of the reference point is transformed by moving and / or rotating, so that the coordinate system of the transformed reference point is transformed into the coordinate system of the final reference point.
[0108] In this way, the coordinate system of the actual cut piece image 12 and the coordinate system of the cut piece graphic 16 can be transformed to the same coordinate system through movement and / or rotation operations.
[0109] Specifically, in one embodiment, the coordinate system of the actual cut piece image 12 (hereinafter referred to as the first coordinate system) can be based on the first reference point 36 as the origin, with the ray parallel to the hemline (the line connecting the lower left hem 20 and the lower right hem 34 of the actual cut piece image 12) as the X-axis, and the Y-axis being a coordinate system perpendicular to the X-axis and positive in the direction of the collar. The coordinate system of the cut piece graphic 16 (hereinafter referred to as the second coordinate system) can be based on the second reference point 38 as the origin, with the ray parallel to the hemline (the line connecting the lower left hem 20 and the lower right hem 34 of the cut piece graphic 16) as the X-axis, and the Y-axis being a coordinate system perpendicular to the X-axis and positive in the direction of the collar.
[0110] In one implementation, the first reference point 36 is used as the final reference point, the second reference point 38 is used as the transformation reference point, and the first coordinate system is used as a reference. By moving and / or rotating the second coordinate system, the second coordinate system is transformed into the first coordinate system, thereby realizing that the coordinate system where the actual cut piece is located and the coordinate system where the cut piece graphic 16 is located are transformed into the same coordinate system: the first coordinate system.
[0111] In one implementation, the second reference point 38 is used as the final reference point, the first reference point 36 is used as the transformation reference point, and the second coordinate system is used as a reference. By moving and / or rotating the first coordinate system, the first coordinate system is transformed into the second coordinate system, thereby realizing the transformation of the coordinate system where the actual cut piece is located and the coordinate system where the cut piece graphic 16 is located into the same coordinate system: the second coordinate system.
[0112] In one implementation, please refer to Figures 5 to 7 When the X-axis of the coordinate system where the transformation reference point is located is parallel to the X-axis of the coordinate system where the final reference point is located, or in other words, when the Y-axis of the coordinate system where the transformation reference point is located is parallel to the Y-axis of the coordinate system where the final reference point is located, the coordinates of the transformation reference point in the coordinate system where the final reference point is located are (X1, Y1). This indicates that the transformation reference point has an offset of X1 on the X-axis and an offset of Y1 on the Y-axis relative to the final reference point. By moving the transformation reference point in the opposite direction along the X-axis and the opposite direction along the Y-axis of the coordinate system where the final reference point is located, the offsets X1 and Y1 are eliminated, making the transformation reference point coincide with the final reference point. The X-axis and Y-axis of the two coordinate systems coincide, thereby transforming the coordinate system where the transformation reference point is located to the coordinate system where the final reference point is located.
[0113] In one implementation, please refer to Figures 8 to 10 When the Y-axis of the coordinate system where the transformation reference point is located is not parallel to the Y-axis of the coordinate system where the final reference point is located, and the angle between the Y-axis of the coordinate system where the transformation reference point is located and the Y-axis of the coordinate system where the final reference point is located is A, the coordinates of the transformation reference point in the coordinate system where the final reference point is located are (X1, Y1). This indicates that the transformation reference point has an offset X1 on the X-axis and an offset Y1 on the Y-axis relative to the final reference point, and the line connecting the transformation reference point and the final reference point has an angular offset A with the Y-axis of the coordinate system where the final reference point is located. By moving the transformation reference point in the opposite direction along the X-axis of the coordinate system where the final reference point is located, and by moving the transformation reference point in the opposite direction along the Y-axis of the coordinate system where the final reference point is located, the above offsets X1 and Y1 can be eliminated. By rotating the coordinate system where the transformation reference point is located around the transformation reference point, the above angular offset A can be eliminated, so that the transformation reference point and the final reference point coincide, the X-axis of the two coordinate systems coincide, and the Y-axis coincide, thereby transforming the coordinate system where the transformation reference point is located to the coordinate system where the final reference point is located.
[0114] It is understood that in other implementations, the Y-axis of the coordinate system where the transformation reference point is located is not parallel to the Y-axis of the coordinate system where the final reference point is located, but the transformation reference point coincides with the final reference point. That is, the two coordinate systems can be transformed to the same coordinate system through rotation operations.
[0115] The size of the first contour 14 is larger than the size of the second contour 18. During sewing, the second contour 18 is used as the sewing path of the sewing needle on the sewing machine.
[0116] Specifically, in one embodiment, the pattern 16 can serve as a reference template for processing the actual pattern piece. The actual pattern piece before processing will be larger than the actual pattern piece after processing because the edges of the actual pattern piece may exhibit some tilting or unevenness during manufacturing, especially for pattern pieces formed by hand cutting. Furthermore, the deviation between the outline of the actual pattern piece before processing and the outline of the pattern 16 is uncertain. Therefore, after transforming the coordinate system of the actual pattern piece image 12 and the coordinate system of the pattern 16 to the same coordinate system, the second outline 18 is used as the sewing trajectory of the actual pattern piece.
[0117] Please refer to Figure 11 A sewing trajectory generation apparatus 100 according to an embodiment of the present invention includes a processor 52 and a memory 54. The memory 54 stores a computer program. When the computer program is executed by the processor 52, it implements the steps of the sewing trajectory generation method of any of the above embodiments.
[0118] A garment manufacturing device 200 according to an embodiment of the present invention includes a sewing trajectory generation device 100 as described in the above embodiment.
[0119] Specifically, in one embodiment, the sewing trajectory generation device 100 may include at least one of a personal computer and a server. The garment manufacturing equipment 200 also includes a sewing device 300, the sewing trajectory generation device 100 being electrically connected to the sewing device 300, the sewing trajectory generation device 100 outputting the generated sewing trajectory to the sewing device 300, and the sewing device 300 using the generated sewing trajectory to perform sewing operations on the actual cut pieces.
[0120] The present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor 52, implements the steps of the sewing trajectory generation method of any of the above embodiments.
[0121] In one implementation, the method for generating a sewing trajectory, implemented when a computer program is executed by a processor, includes:
[0122] Step 101: Obtain image 12 of the actual cut piece, and obtain the first outline 14 of the actual cut piece based on image 12;
[0123] Step 103: Obtain the cut piece file, which includes the cut piece graphic 16. Obtain the second outline 18 of the cut piece graphic 16 based on the cut piece file.
[0124] Step 105: Transform the coordinates of the first contour 14 and the second contour 18 to the same coordinate system;
[0125] Step 107: After coordinate transformation, the second contour 18 is used as the sewing trajectory of the actual cut piece.
[0126] In the aforementioned sewing trajectory generation device, garment manufacturing equipment, and computer-readable storage medium, coordinate transformation can be used to unify the first contour 14 of the actual cut piece and the second contour 18 of the cut piece graphic 16 into the same coordinate system, and the second contour 18 after coordinate transformation is used as the sewing trajectory of the actual cut piece. Therefore, there is no need to manually determine the sewing trajectory, which improves production efficiency and reduces labor costs.
[0127] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0128] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more steps for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0129] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, combinations, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method of generating a sewing trajectory, characterized by, The method comprises: acquiring an image of an actual cutting piece, and acquiring a first contour of the actual cutting piece according to the image of the actual cutting piece; acquiring a cutting piece file, the cutting piece file comprising a cutting piece pattern, and acquiring a second contour of the cutting piece pattern according to the cutting piece file; performing coordinate conversion on the first contour and the second contour to the same coordinate system; after the coordinate conversion, taking the second contour as a sewing track of the actual cutting piece; wherein the acquiring of the image of the actual cutting piece and the acquiring of the first contour according to the image of the actual cutting piece comprises: acquiring the first contour and a plurality of first feature points of the first contour according to the image of the actual cutting piece; the acquiring of the cutting piece file, the cutting piece file comprising the cutting piece pattern, and the acquiring of the second contour according to the cutting piece file comprises: acquiring the second contour and a plurality of second feature points of the second contour according to the cutting piece file; the performing of the coordinate conversion on the first contour and the second contour to the same coordinate system comprises: determining a first reference point of the first contour by using the plurality of first feature points; determining a second reference point of the second contour by using the plurality of second feature points; performing the coordinate conversion on the first contour and the second contour to the same coordinate system according to the relative positions of the first reference point and the second reference point.
2. The method of claim 1, wherein, the cutting piece file comprises a layer, and the layer comprises a tile; the acquiring of the second contour and the plurality of second feature points of the second contour according to the cutting piece file comprises: analyzing the layer and the tile to acquire the second contour; acquiring the plurality of second feature points according to the second contour.
3. The method of generating a sewing trajectory according to claim 1, wherein, the plurality of first feature points comprise a first pair of first feature points arranged symmetrically along an axis in the image of the actual cutting piece, and a second pair of first feature points arranged symmetrically along the axis in the image of the actual cutting piece; the determining of the first reference point of the first contour by using the plurality of first feature points comprises: determining a first straight line equation according to one of the first feature points of the first pair of first feature points and one of the first feature points of the second pair of first feature points; determining a second straight line equation according to the other of the first feature points of the first pair of first feature points and the other of the first feature points of the second pair of first feature points; determining the first reference point by using the first straight line equation and the second straight line direction.
4. The method of generating a sewing trajectory according to claim 1, wherein, the plurality of second feature points comprise a first pair of second feature points arranged symmetrically along an axis in the cutting piece pattern, and a second pair of second feature points arranged symmetrically along the axis in the cutting piece pattern; the determining of the second reference point of the second contour by using the plurality of second feature points comprises: determining a third straight line equation according to one of the second feature points of the first pair of second feature points and one of the second feature points of the second pair of second feature points; determining a fourth straight line equation according to the other of the second feature points of the first pair of second feature points and the other of the second feature points of the second pair of second feature points; determining the second reference point by using the third straight line equation and the fourth straight line equation.
5. The method of generating a sewing trajectory according to claim 1, wherein, The coordinate transformation of the first contour and the second contour to the same coordinate system according to the relative positions of the first reference point and the second reference point comprises: taking one of the first reference point and the second reference point as a final reference point and the other as a transformation reference point; taking the coordinate system in which the final reference point is located as a reference, moving and / or rotating the coordinate system in which the transformation reference point is located to transform the coordinate system in which the transformation reference point is located into the coordinate system in which the final reference point is located.
6. The method of generating a sewing trajectory according to claim 1, wherein, The size of the first contour is greater than the size of the second contour.
7. A sewing track generating device characterized by comprising: The device comprises a processor and a memory, and the memory stores a computer program, which, when executed by the processor, implements the steps of the sewing trajectory generation method according to any one of claims 1-6.
8. A garment manufacturing apparatus characterized by, The device comprises the sewing trajectory generation device according to claim 7.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that The computer program, when executed by the processor, implements the steps of the sewing trajectory generation method according to any one of claims 1-6.
Citation Information
Patent Citations
Vision correction method and system used for sewing
CN103993431A