Fabric layout pattern overlapping detection method and system
By reading fabric layout data from CAD files and converting it into vector graphics format, numbering and judging overlaps in sequence, and generating overlap reports, the accuracy and efficiency issues of complex contour overlap detection in fabric layout are solved, and overlapping areas can be quickly identified and costs reduced.
Patent Information
- Application Number
- CN202510820852.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-06-19
AI Technical Summary
Existing technologies have difficulty accurately detecting complex contours or the overlap of irregular pieces in fabric layout, resulting in detection errors and reduced sensitivity.
Read fabric layout data from CAD files, assign unique numbers to each contour to be cut, in the order of top to bottom and left to right, convert the data into vector graphics format, and perform overlap checks on all contours to be cut. Generate an overlap report and display it as an image for verification and adjustment.
It improves the accuracy and efficiency of fabric layout detection, can quickly identify overlapping areas, and reduce production costs.
Smart Images

Figure CN120707524A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of garment processing, in particular to a method and system for detecting overlap of fabric layout graphics. Background Art
[0002] Fabric layout is a critical process in garment production. Its core is to precisely cut a single piece of fabric into individual pieces that meet design requirements. This requires ensuring the overall effect and quality of the garment while ensuring the proper use of the fabric. To ensure cutting quality, overlap testing is often required after fabric layout.
[0003] Existing overlap detection methods primarily utilize overlapping area determination and minimum bounding box detection. However, the overlapping area determination method is prone to detection errors when dealing with complex contours or irregular patterns due to insufficient shape matching accuracy. While the minimum bounding box detection method simplifies calculations by generating a rectangular bounding box, it struggles to accurately adapt to non-rectangular layout contours, resulting in reduced detection sensitivity. Therefore, designing an overlap detection algorithm that is more adaptable to complex layout features has become an important research direction in layout pattern overlap detection. Summary of the Invention
[0004] The present invention provides a method and system for detecting overlap of fabric layout patterns to solve at least one of the above problems.
[0005] The present invention provides a method for detecting overlap of fabric layout patterns, the method comprising:
[0006] Read fabric layout data from CAD files and obtain coordinate information of all contours to be cut;
[0007] Assign an increasing unique number to each contour to be cut in the order of top to bottom and left to right;
[0008] Converting the fabric layout data into a vector graphics format;
[0009] Selecting a pair of adjacent contours to be cut from all contours to be cut to perform overlap judgment, judging whether the two adjacent contours to be cut overlap, and recording the unique numbers of the overlapping contours to be cut, until all adjacent contours to be cut have passed the overlap judgment;
[0010] Generate an overlap report based on the unique numbers of the recorded overlapping contours to be cut;
[0011] The overlapping contours to be cropped are marked in vector graphics format and displayed as pictures to further verify and adjust the overlapping areas.
[0012] Furthermore, coordinate information of all the contours to be clipped is obtained, wherein the coordinate information includes the coordinates of the corner points of the contours to be clipped;
[0013] If the contour to be cut contains arc segments, the arc segments are divided according to the preset distance and the coordinates of several division points are obtained;
[0014] The corner point coordinates include the coordinates of the intersection point of two contour lines and the coordinates of the division point.
[0015] Furthermore, a pair of adjacent contours to be cut are selected from all contours to be cut for overlap judgment, and whether the two adjacent contours to be cut coincide with each other is judged, and the unique numbers of the overlapping contours to be cut are recorded until all adjacent contours to be cut have passed the overlap judgment. The specific steps are as follows:
[0016] Select a pair of adjacent contours to be cut for overlap judgment, and record them as the first contour and the second contour;
[0017] Obtain coordinates of all corner points of the first contour and the second contour respectively;
[0018] Traversing each corner point of the first contour to determine whether there is overlap with a corner point of the second contour;
[0019] If there are overlapping corner points, record the coordinates of the overlapping corner points and the unique number of the contour to be cut where the corner points are located, and proceed to the next step;
[0020] If there is no coincident corner point, proceed to the next step;
[0021] Obtain all corner point connection lines of the first contour and the second contour respectively;
[0022] Traversing each corner point line of the first contour to determine whether it intersects with the corner point line of the second contour;
[0023] If there are intersecting lines, record the coordinates of the corner points at both ends of the intersecting lines and the unique number of the contour to be cut where the corner points are located;
[0024] If there is no intersecting line, then the overlap judgment of the adjacent contours to be cut ends;
[0025] The next pair of adjacent contours to be cut are overlapped and judged, until all adjacent contours to be cut have been overlapped and judged.
[0026] Furthermore, when determining whether the corner points coincide, if the coordinates of the two corner points are exactly the same, or are within a preset tolerance range, it is determined that the corner points coincide.
[0027] Furthermore, when determining whether the corner point lines intersect, if the two lines intersect in a plane, it is determined that the corner point lines intersect.
[0028] Furthermore, when determining that the lines connecting the corner points intersect, if the two lines are parallel within a preset tolerance range and the distance between them is less than a threshold, it is determined that the edges coincide;
[0029] If two lines coincide in the plane, they are not considered to intersect.
[0030] Furthermore, when selecting a pair of adjacent contours to be clipped for overlap determination, the pair of contours to be clipped with adjacent unique numbers is selected first, and then the pair of contours to be clipped with adjacent spaces is selected.
[0031] Furthermore, the overlap report includes the coordinates of the overlapping corner points and the unique number of the contour to be cropped where the corner points are located;
[0032] The overlap report also includes the coordinates of the corner points at both ends of the intersecting line and the unique number of the contour to be clipped where the corner points are located.
[0033] On the other hand, the present invention also provides a fabric layout graphic overlap detection system, the system comprising:
[0034] The information acquisition module is used to read the fabric layout data from the CAD file and obtain the coordinate information of all the contours to be cut;
[0035] A unique number writing module is used to assign an increasing unique number to each contour to be cut in the order of top first, bottom second, left first, right second;
[0036] A conversion module, used for converting the fabric layout data into a vector graphics format;
[0037] A control module is used to select an adjacent pair of contours to be cut from all contours to be cut to perform overlap judgment, judge whether the two adjacent contours to be cut overlap, and record the unique number of the overlapping contours to be cut until all adjacent contours to be cut have passed the overlap judgment;
[0038] The control module is further configured to generate an overlap report based on the recorded unique numbers of the overlapping contours to be cut;
[0039] The control module is further used to mark the overlapping contours to be cropped in a vector graphics format and display them in the form of pictures to further verify and adjust the overlapping areas.
[0040] Furthermore, the control module is further configured to select a pair of adjacent contours to be cut for overlap determination, which are recorded as a first contour and a second contour;
[0041] Obtain coordinates of all corner points of the first contour and the second contour respectively;
[0042] Traversing each corner point of the first contour to determine whether there is overlap with a corner point of the second contour;
[0043] If there are overlapping corner points, record the coordinates of the overlapping corner points and the unique number of the contour to be cut where the corner points are located, and proceed to the next step;
[0044] If there is no coincident corner point, proceed to the next step;
[0045] Obtain all corner point connection lines of the first contour and the second contour respectively;
[0046] Traversing each corner point line of the first contour to determine whether it intersects with the corner point line of the second contour;
[0047] If there are intersecting lines, record the coordinates of the corner points at both ends of the intersecting lines and the unique number of the contour to be cut where the corner points are located;
[0048] If there is no intersecting line, then the overlap judgment of the adjacent contours to be cut ends;
[0049] The next pair of adjacent contours to be cut are overlapped and judged, until all adjacent contours to be cut have been overlapped and judged.
[0050] Compared with the prior art, the advantages of the present invention are:
[0051] The present invention provides a method and system for detecting overlap of fabric layout graphics. The method comprises the following steps: reading fabric layout data from a CAD file, obtaining coordinate information of all contours to be cut, assigning each contour to be cut a unique number in ascending order, first up then down, first left then right, converting the fabric layout data into a vector graphics format, selecting a pair of adjacent contours to be cut from all contours to be cut for overlap judgment, judging whether the two adjacent contours to be cut overlap, recording the unique numbers of the overlapping contours to be cut, and performing overlap judgment until all adjacent contours to be cut have undergone overlap judgment. Based on the unique numbers of the recorded overlapping contours to be cut, an overlap report is generated, marking the overlapping contours to be cut in a vector graphics format, and displaying the overlapping contours in the form of an image to further verify and adjust the overlapping area. The method can quickly identify overlapping areas and improve detection accuracy, and is of great significance in the fabric layout and cutting process, and can improve production efficiency and reduce costs.
[0052] It can be seen that compared with the prior art, the present invention has outstanding substantial features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 The present invention is a flowchart of a method for detecting overlap of fabric layout graphics.
[0054] Figure 2 Schematic diagram of overlapping areas in one embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to make the technical solutions and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings.
[0056] Figure 1 The present invention is a flowchart of a method for detecting overlap of fabric layout graphics.
[0057] like Figure 1 As shown, the present invention provides a method for detecting overlapping of fabric layout patterns, the method comprising:
[0058] S1. Read the fabric layout data from the CAD file and obtain the coordinate information of all the contours to be cut.
[0059] S2. Assign an increasing unique number to each contour to be cut in the order of top first, then bottom, and left first, then right.
[0060] S3. Converting the fabric layout data into a vector graphics format.
[0061] S4. Select a pair of adjacent contours to be cut from all contours to be cut to perform overlap judgment, judge whether the two adjacent contours to be cut overlap, and record the unique numbers of the overlapping contours to be cut until all adjacent contours to be cut have passed the overlap judgment.
[0062] S5. Generate an overlap report based on the recorded unique numbers of the overlapping contours to be cut.
[0063] S6. Marking the overlapping contours to be cropped in a vector graphics format and displaying them in the form of an image to further verify and adjust the overlapping areas.
[0064] The present invention can quickly identify overlapping areas and improve detection accuracy, which is of great significance in the fabric layout and cutting process and can improve production efficiency and reduce costs.
[0065] In another embodiment of the present application,
[0066] S1. Read the fabric layout data from the CAD file and obtain the coordinate information of all the contours to be cut.
[0067] It should be noted that after the fabric layout is completed, the fabric layout information is saved in the CAD file.
[0068] Obtain coordinate information of all to-be-cut contours, wherein the coordinate information includes the coordinates of the corner points of the to-be-cut contours.
[0069] If the contour to be cut contains arc segments, the arc segments are divided according to the preset distance to obtain the coordinates of several division points.
[0070] The corner point coordinates include the coordinates of the intersection point of two contour lines and the coordinates of the division point.
[0071] The specific steps to obtain the coordinates of the segmentation points are:
[0072] Traverse all the points of the contour to be clipped and calculate the local curvature value of each point.
[0073] Identify and mark arc segment areas based on a pre-set curvature threshold.
[0074] On the marked arc segment, the length of the arc segment is calculated by integration, and the segment is evenly divided according to the preset distance to obtain the coordinates of several division points.
[0075] It should be noted that the sampling interval is dynamically adjusted according to the local curvature. The greater the curvature, the denser the sampling points.
[0076] S2. Assign an increasing unique number to each contour to be cut in the order of top first, then bottom, and left first, then right.
[0077] S3. Converting the fabric layout data into a vector graphics format.
[0078] S4. Select a pair of adjacent contours to be cut from all contours to be cut to perform overlap judgment, judge whether the two adjacent contours to be cut overlap, and record the unique numbers of the overlapping contours to be cut until all adjacent contours to be cut have passed the overlap judgment.
[0079] The specific steps are:
[0080] A pair of adjacent contours to be cropped are selected for overlap judgment and recorded as the first contour and the second contour.
[0081] Preferably, when selecting a pair of adjacent contours to be clipped for overlap determination, the pair of contours to be clipped with adjacent unique numbers is selected first, and then the pair of contours to be clipped with adjacent spaces is selected.
[0082] The next pair of adjacent contours to be cut are overlapped and judged, until all adjacent contours to be cut have been overlapped and judged.
[0083] The coordinates of all corner points of the first contour and the second contour are obtained respectively.
[0084] Traverse each corner point of the first contour to determine whether it overlaps with a corner point of the second contour.
[0085] If there are overlapping corner points, the coordinates of the overlapping corner points and the unique number of the contour to be clipped where the corner points are located are recorded, and the next step is continued.
[0086] Preferably, when determining whether the corner points coincide, if the coordinates of the two corner points are exactly the same or are within a preset tolerance range, it is determined that the corner points coincide.
[0087] If there are no overlapping corner points, proceed to the next step.
[0088] All corner point connecting lines of the first contour and the second contour are obtained respectively.
[0089] Traverse each corner point line of the first contour to determine whether it intersects with the corner point line of the second contour.
[0090] If there are intersecting lines, the coordinates of the corner points at both ends of the intersecting lines and the unique numbers of the contours to be clipped where the corner points are located are recorded.
[0091] Preferably, when determining whether the corner point lines intersect, if the two lines intersect in a plane, it is determined that the corner point lines intersect.
[0092] Preferably, when determining that the lines connecting the corner points intersect, if the two lines are parallel within a preset tolerance range and the distance between them is less than a threshold, it is determined that the edges coincide.
[0093] If two lines coincide in the plane, they are not considered to intersect.
[0094] If there is no intersecting line, then the overlap judgment of the adjacent contours to be cut ends.
[0095] S5. Generate an overlap report based on the recorded unique numbers of the overlapping contours to be cut.
[0096] The overlap report includes the coordinates of the overlapping corner points and the unique number of the contour to be cropped where the corner points are located.
[0097] The overlap report also includes the coordinates of the corner points at both ends of the intersecting line and the unique number of the contour to be clipped where the corner points are located.
[0098] S6. Mark the overlapping contours to be cut in vector graphics format, such as Figure 2 As shown, they are displayed in the form of pictures to further verify and adjust the overlapping areas.
[0099] On the other hand, the present invention also provides a fabric layout graphic overlap detection system, the system comprising:
[0100] The information acquisition module is used to read the fabric layout data from the CAD file and obtain the coordinate information of all the contours to be cut.
[0101] The unique number writing module is used to assign an increasing unique number to each contour to be cut in the order of top first, bottom second, left first, right second.
[0102] The conversion module is used to convert the fabric layout data into a vector graphics format.
[0103] The control module is used to select an adjacent pair of contours to be cut from all contours to be cut for overlap judgment, judge whether the two adjacent contours to be cut overlap, and record the unique numbers of the overlapping contours to be cut until all adjacent contours to be cut have passed the overlap judgment.
[0104] The control module is further configured to generate an overlap report according to the recorded unique numbers of the overlapping contours to be cut.
[0105] The control module is further used to mark the overlapping contours to be cropped in a vector graphics format and display them in the form of pictures to further verify and adjust the overlapping areas.
[0106] Furthermore, the control module is further configured to select a pair of adjacent contours to be cut for overlap determination, which are recorded as a first contour and a second contour.
[0107] The coordinates of all corner points of the first contour and the second contour are obtained respectively.
[0108] Traverse each corner point of the first contour to determine whether it overlaps with a corner point of the second contour.
[0109] If there are overlapping corner points, the coordinates of the overlapping corner points and the unique number of the contour to be clipped where the corner points are located are recorded, and the next step is continued.
[0110] If there are no overlapping corner points, proceed to the next step.
[0111] All corner point connecting lines of the first contour and the second contour are obtained respectively.
[0112] Traverse each corner point line of the first contour to determine whether it intersects with the corner point line of the second contour.
[0113] If there are intersecting lines, the coordinates of the corner points at both ends of the intersecting lines and the unique numbers of the contours to be clipped where the corner points are located are recorded.
[0114] If there is no intersecting line, then the overlap judgment of the adjacent contours to be cut ends.
[0115] The next pair of adjacent contours to be cut are overlapped and judged, until all adjacent contours to be cut have been overlapped and judged.
[0116] The same and similar parts between the various embodiments in this specification can be referenced to each other.
[0117] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for detecting overlapping of fabric layout patterns, characterized in that: Methods include: Read fabric layout data from CAD files and obtain coordinate information of all contours to be cut; Assign an increasing unique number to each contour to be cut in the order of top to bottom and left to right; Converting the fabric layout data into a vector graphics format; Selecting a pair of adjacent contours to be cut from all contours to be cut to perform overlap judgment, judging whether the two adjacent contours to be cut overlap, and recording the unique numbers of the overlapping contours to be cut, until all adjacent contours to be cut have passed the overlap judgment; Generate an overlap report based on the unique numbers of the recorded overlapping contours to be cut; The overlapping contours to be cropped are marked in vector graphics format and displayed as pictures to further verify and adjust the overlapping areas.
2. The fabric layout pattern overlap detection method according to claim 1, characterized in that: Obtaining coordinate information of all contours to be clipped, wherein the coordinate information includes the coordinates of the corner points of the contours to be clipped; If the contour to be cut contains arc segments, the arc segments are divided according to the preset distance and the coordinates of several division points are obtained; The corner point coordinates include the coordinates of the intersection point of two contour lines and the coordinates of the division point.
3. The fabric layout pattern overlap detection method according to claim 2, characterized in that: Select a pair of adjacent contours to be cut from all contours to be cut for overlap judgment, judge whether the two adjacent contours to be cut overlap, and record the unique number of the overlapping contours to be cut until all adjacent contours to be cut have passed the overlap judgment. The specific steps are as follows: Select a pair of adjacent contours to be cut for overlap judgment, and record them as the first contour and the second contour; Obtain coordinates of all corner points of the first contour and the second contour respectively; Traversing each corner point of the first contour to determine whether there is overlap with a corner point of the second contour; If there are overlapping corner points, record the coordinates of the overlapping corner points and the unique number of the contour to be cut where the corner points are located, and proceed to the next step; If there is no coincident corner point, proceed to the next step; Obtain all corner point connection lines of the first contour and the second contour respectively; Traversing each corner point line of the first contour to determine whether it intersects with the corner point line of the second contour; If there are intersecting lines, record the coordinates of the corner points at both ends of the intersecting lines and the unique number of the contour to be cut where the corner points are located; If there is no intersecting line, then the overlap judgment of the adjacent contours to be cut ends; The next pair of adjacent contours to be cut are overlapped and judged, until all adjacent contours to be cut have been overlapped and judged.
4. The fabric layout pattern overlap detection method according to claim 3, characterized in that: When determining whether the corner points coincide, if the coordinates of the two corner points are exactly the same or are within a preset tolerance range, it is determined that the corner points coincide.
5. The fabric layout pattern overlap detection method according to claim 3, characterized in that: When determining whether the corner point lines intersect, if the two lines intersect in a plane, it is determined that the corner point lines intersect.
6. The fabric layout pattern overlap detection method according to claim 3, characterized in that: When determining that the lines connecting the corner points intersect, if the two lines are parallel within a preset tolerance range and the distance between them is less than a threshold, it is determined that the edges coincide; If two lines coincide in the plane, they are not considered to intersect.
7. The fabric layout pattern overlap detection method according to claim 3, characterized in that: When selecting a pair of adjacent contours to be clipped for overlap judgment, the pair of contours to be clipped with adjacent unique numbers is selected first, and then the pair of contours to be clipped with adjacent spaces is selected.
8. The method for detecting overlapping of fabric layout patterns according to claim 3, characterized in that: The overlap report includes the coordinates of the overlapping corner points and the unique number of the contour to be clipped where the corner points are located; The overlap report also includes the coordinates of the corner points at both ends of the intersecting line and the unique number of the contour to be clipped where the corner points are located.
9. A fabric layout graphic overlap detection system, characterized in that: The system includes: The information acquisition module is used to read the fabric layout data from the CAD file and obtain the coordinate information of all the contours to be cut; A unique number writing module is used to assign an increasing unique number to each contour to be cut in the order of top first, bottom second, left first, right second; A conversion module, used for converting the fabric layout data into a vector graphics format; A control module is used to select an adjacent pair of contours to be cut from all contours to be cut to perform overlap judgment, judge whether the two adjacent contours to be cut overlap, and record the unique number of the overlapping contours to be cut until all adjacent contours to be cut have passed the overlap judgment; The control module is further configured to generate an overlap report based on the recorded unique numbers of the overlapping contours to be cut; The control module is further used to mark the overlapping contours to be cropped in a vector graphics format and display them in the form of pictures to further verify and adjust the overlapping areas.
10. The fabric layout graphic overlap detection system according to claim 9, characterized in that: The control module is further configured to select a pair of adjacent contours to be cut for overlap determination, which are recorded as a first contour and a second contour; Obtain coordinates of all corner points of the first contour and the second contour respectively; Traversing each corner point of the first contour to determine whether there is overlap with a corner point of the second contour; If there are overlapping corner points, record the coordinates of the overlapping corner points and the unique number of the contour to be cut where the corner points are located, and proceed to the next step; If there is no coincident corner point, proceed to the next step; Obtain all corner point connection lines of the first contour and the second contour respectively; Traversing each corner point line of the first contour to determine whether it intersects with the corner point line of the second contour; If there are intersecting lines, record the coordinates of the corner points at both ends of the intersecting lines and the unique number of the contour to be cut where the corner points are located; If there is no intersecting line, then the overlap judgment of the adjacent contours to be cut ends; The next pair of adjacent contours to be cut are overlapped and judged, until all adjacent contours to be cut have been overlapped and judged.
Citation Information
Patent Citations
Image processing apparatus
CN109327645A
Method for fusing overlapped contours based on PLT file
CN113362352A
Contour extraction and generation method, system and device and electronic equipment
CN119205828A
Device for recognizing object position
JP1996271223A
Graphic processing method for drawing an area defined by clipping of a variable shape and apparatus for doing the same
US5287440A