A fabric layout pattern overlap detection method and system

By reading fabric layout data from CAD files and converting it into vector graphics format, overlapping areas in the fabric layout are detected, solving the problems of detection error and low sensitivity in existing technologies, and achieving high-precision fabric cutting and improved production efficiency.

CN120707524BActive Publication Date: 2026-03-31YYC IND CO LTD CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately detect overlapping of complex outlines or irregular pieces in fabric layout, leading to detection errors and decreased sensitivity.

Method used

The fabric layout data is read from the CAD file, the coordinate information of all the outlines to be cut is obtained, and each outline is assigned a unique number in the order of top to bottom and left to right. The data is converted into vector graphics format. By judging the overlap and intersection of adjacent outlines, an overlap report is generated and displayed in the form of an image for verification and adjustment.

Benefits of technology

It improves the accuracy and efficiency of fabric layout inspection, enabling rapid identification of overlapping areas and reducing production costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120707524B_ABST
    Figure CN120707524B_ABST
Patent Text Reader

Abstract

The application provides a fabric layout pattern overlap detection method and system, which can read fabric layout data from a CAD file, obtain coordinate information of all to-be-cut contours, sequentially assign an increasing unique number to each to-be-cut contour in the order of top to bottom and left to right, convert the fabric layout data into a vector graphics format, select a pair of adjacent to-be-cut contours from all to-be-cut contours for overlap judgment, judge whether the two adjacent to-be-cut contours coincide, record the unique number of the overlapped to-be-cut contours, until all adjacent to-be-cut contours are subjected to overlap judgment, generate an overlap report according to the recorded unique number of the overlapped to-be-cut contours, mark the overlapped to-be-cut contours in the vector graphics format, and display in the form of a picture to further verify and adjust the overlapping area. The application can quickly identify the overlapping area and improve the detection accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of garment processing technology, specifically a method and system for detecting overlapping patterns in fabric layout. Background Technology

[0002] Fabric layout is a crucial process in garment production. Its core lies in the precise cutting of a single piece of fabric into individual cut pieces that meet design requirements. This requires ensuring the overall effect and quality of the garment while maximizing the use of fabric. To guarantee the quality of the cutting, overlap testing is often performed after fabric layout.

[0003] Existing overlap detection methods mainly employ overlap area judgment and minimum bounding box detection. However, the overlap area judgment method is prone to detection errors when dealing with complex contours or irregular cut pieces due to insufficient shape matching accuracy; while the minimum bounding box detection method simplifies calculations by generating rectangular bounding boxes, it struggles to accurately adapt to non-rectangular layout contours, leading to decreased detection sensitivity. Therefore, designing an overlap detection algorithm more adaptable to complex layout features has become an important research direction in overlap detection technology for layout graphics. Summary of the Invention

[0004] This invention provides a method and system for detecting overlapping patterns in fabric layout, in order to solve at least one of the problems mentioned above.

[0005] This invention provides a method for detecting overlapping patterns in fabric layout, the method comprising:

[0006] Read the fabric layout data from the CAD file and obtain the coordinate information of all the outlines to be cut;

[0007] Each outline to be cut is assigned an incrementally unique number in the order of top to bottom and left to right.

[0008] Convert the fabric layout data into a vector graphics format;

[0009] Select one adjacent outline from all the outlines to be clipped and check for overlap. Determine whether the two adjacent outlines to be clipped overlap and record the unique number of the overlapping outlines to be clipped, until all adjacent outlines to be clipped have been checked for overlap.

[0010] Generate an overlap report based on the unique number of the overlapping outlines to be clipped recorded;

[0011] The overlapping outlines to be clipped are annotated in vector graphics format and displayed as images to further verify and adjust the overlapping areas.

[0012] Further, obtain the coordinate information of all contours to be clipped, including the coordinates of the corner points of the contours to be clipped;

[0013] If the outline to be cut contains arc segments, then divide the arc segments at a preset distance to obtain the coordinates of several dividing points;

[0014] The corner coordinates include the coordinates of the intersection point of the two contour lines and the coordinates of the dividing point.

[0015] Furthermore, among all the outlines to be clipped, select one adjacent outline to be clipped for overlap judgment. Determine whether two adjacent outlines to be clipped overlap, and record the unique number of the overlapping outline. Continue until all adjacent outlines to be clipped have passed the overlap judgment. The specific steps are as follows:

[0016] Select one adjacent outline to be cut and determine its overlap, then denote them as the first outline and the second outline.

[0017] Obtain the coordinates of all corner points of the first contour and the second contour respectively;

[0018] Iterate through each corner point of the first contour and determine whether there is a case where it coincides 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 outline to be cut where the corner points are located, and continue to the next step;

[0020] If no overlapping corner points exist, proceed to the next step;

[0021] Obtain the lines connecting all corner points of the first contour and the second contour respectively;

[0022] Traverse each corner line of the first contour and determine whether there is a case where it intersects with the corner line of the second contour.

[0023] If intersecting lines exist, record the coordinates of the two corner points of the intersecting lines and the unique number of the outline to be clipped where the corner points are located;

[0024] If there are no intersecting lines, the judgment of overlapping of adjacent contours to be clipped ends.

[0025] Perform the next pair of adjacent outlines to be clipped to check for overlap, until all adjacent outlines to be clipped have been checked for overlap.

[0026] Furthermore, when determining whether the corner points coincide, if the coordinates of the two corner points are exactly the same, or within a preset tolerance range, then the corner points are determined to coincide.

[0027] Furthermore, when determining whether the corner points intersect, if the two lines intersect in a plane, then the corner points are determined to intersect.

[0028] Furthermore, when determining whether the corner line intersects, if the two lines are parallel within a preset tolerance range and the distance is less than a threshold, they are determined to be overlapping edges.

[0029] If two lines coincide on the same side of a plane, they are not considered to intersect.

[0030] Furthermore, when selecting adjacent outlines to be clipped for overlap judgment, priority is given to selecting the pair of outlines to be clipped that are adjacent by unique number, and then the pair of outlines to be clipped that are spatially adjacent are selected.

[0031] Furthermore, the overlap report includes the coordinates of the overlapping corner points and a unique number of the outline to be clipped where the corner points are located;

[0032] The overlap report also includes the coordinates of the two corner points of the intersecting line and the unique number of the outline 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 fabric layout data from CAD files and obtain the coordinate information of all the outlines to be cut.

[0035] The unique numbering module is used to assign an incrementally unique number to each outline to be cut in the order of top to bottom and left to right.

[0036] A conversion module is used to convert the fabric layout data into a vector graphics format;

[0037] The control module is used to select an adjacent outline to be cut from all the outlines to be cut and to determine whether the two adjacent outlines to be cut overlap. It records the unique number of the overlapping outlines to be cut until all the adjacent outlines to be cut have been determined to overlap.

[0038] The control module is also used to generate an overlap report based on the unique number of the recorded overlapping outlines to be clipped;

[0039] The control module is also used to annotate the overlapping outlines to be clipped in vector graphics format and display them as images for further verification and adjustment of the overlapping areas.

[0040] Furthermore, the control module is also used to select an adjacent outline to be cut and determine its overlap, which is denoted as the first outline and the second outline;

[0041] Obtain the coordinates of all corner points of the first contour and the second contour respectively;

[0042] Iterate through each corner point of the first contour and determine whether there is a case where it coincides 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 outline to be cut where the corner points are located, and continue to the next step;

[0044] If no overlapping corner points exist, proceed to the next step;

[0045] Obtain the lines connecting all corner points of the first contour and the second contour respectively;

[0046] Traverse each corner line of the first contour and determine whether there is a case where it intersects with the corner line of the second contour.

[0047] If intersecting lines exist, record the coordinates of the two corner points of the intersecting lines and the unique number of the outline to be clipped where the corner points are located;

[0048] If there are no intersecting lines, the judgment of overlapping of adjacent contours to be clipped ends.

[0049] Perform the next pair of adjacent outlines to be clipped to check for overlap, until all adjacent outlines to be clipped have been checked for overlap.

[0050] Compared with the prior art, the advantages of the present invention are as follows:

[0051] This invention provides a method and system for detecting overlapping areas in fabric layout graphics. It reads fabric layout data from a CAD file, obtains the coordinate information of all outlines to be cut, and assigns each outline an incrementally unique number in a top-to-bottom, left-to-right order. The fabric layout data is converted into a vector graphic format. Adjacent outlines are selected for overlap detection. The unique number of each overlapping outline is recorded until all adjacent outlines have passed the overlap detection. Based on the recorded unique numbers of the overlapping outlines, an overlap report is generated. The overlapping outlines are marked in vector graphic format and displayed as images for further verification and adjustment of the overlapping areas. This invention can quickly identify overlapping areas and improve detection accuracy, which is of great significance in fabric layout and cutting processes, improving production efficiency and reducing costs.

[0052] Therefore, it is evident that the present invention has outstanding substantive features and significant progress compared with the prior art, and the beneficial effects of its implementation are also obvious. Attached Figure Description

[0053] Figure 1 This is a flowchart illustrating a fabric layout graphic overlap detection method according to the present invention.

[0054] Figure 2 This is a schematic diagram of the overlapping area in one embodiment of the present invention. Detailed Implementation

[0055] To make the technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings.

[0056] Figure 1 This is a flowchart illustrating a fabric layout graphic overlap detection method according to the present invention.

[0057] like Figure 1 As shown, the present invention provides a method for detecting overlapping patterns in fabric layout, the method comprising:

[0058] S1. Read the fabric layout data from the CAD file and obtain the coordinate information of all the outlines to be cut.

[0059] S2. Assign each outline to be cut an incrementally unique number in the order of top to bottom and left to right.

[0060] S3. Convert the fabric layout data into a vector graphic format.

[0061] S4. Select one adjacent outline to be cut from all the outlines to be cut and check for overlap. Determine whether the two adjacent outlines to be cut overlap, and record the unique number of the overlapping outlines to be cut, until all adjacent outlines to be cut have been checked for overlap.

[0062] S5. Generate an overlap report based on the unique number of the recorded overlapping outlines to be clipped.

[0063] S6. Mark the overlapping outlines to be clipped in vector graphics format and display them as images to further verify and adjust the overlapping areas.

[0064] This 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 this application,

[0066] S1. Read the fabric layout data from the CAD file and obtain the coordinate information of all the outlines to be cut.

[0067] It should be noted that after the fabric layout is completed, the fabric layout information should be saved in a CAD file.

[0068] Obtain the coordinate information of all contours to be clipped, including the coordinates of the corner points of the contours to be clipped.

[0069] If the outline to be cut contains arc segments, then the arc segments are divided at a preset distance to obtain the coordinates of several division points.

[0070] The corner coordinates include the coordinates of the intersection point of the two contour lines and the coordinates of the dividing point.

[0071] The specific steps to obtain the coordinates of the dividing point are as follows:

[0072] Iterate through all the points of the contour to be clipped and calculate the local curvature value of each point.

[0073] The system identifies and marks arc-shaped line segment regions 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 segments are evenly divided at a 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 each outline to be cut an incrementally unique number in the order of top to bottom and left to right.

[0077] S3. Convert the fabric layout data into a vector graphic format.

[0078] S4. Select one adjacent outline to be cut from all the outlines to be cut and check for overlap. Determine whether the two adjacent outlines to be cut overlap, and record the unique number of the overlapping outlines to be cut, until all adjacent outlines to be cut have been checked for overlap.

[0079] The specific steps are as follows:

[0080] Select one adjacent contour to be cut and determine its overlap, denoted as the first contour and the second contour.

[0081] Preferably, when selecting adjacent outlines to be cut for overlap judgment, the pair of outlines to be cut with the unique number adjacent is selected first, and then the pair of outlines to be cut that are spatially adjacent is selected.

[0082] Perform the next pair of adjacent outlines to be clipped to check for overlap, until all adjacent outlines to be clipped have been checked for overlap.

[0083] Obtain the coordinates of all corner points of the first contour and the second contour respectively.

[0084] Iterate through each corner point of the first contour and determine whether there is a case where it overlaps with a corner point of the second contour.

[0085] If there are overlapping corner points, record the coordinates of the overlapping corner points and the unique number of the outline to be clipped where the corner points are located, and continue to the next step.

[0086] Preferably, when determining whether the corner points coincide, if the coordinates of the two corner points are exactly the same, or within a preset tolerance range, then the corner points are determined to coincide.

[0087] If no overlapping corner points exist, proceed to the next step.

[0088] Obtain the lines connecting all corner points of the first contour and the second contour respectively.

[0089] Traverse each corner line of the first contour and determine whether there is a case where it intersects with the corner line of the second contour.

[0090] If intersecting lines exist, record the coordinates of the two corner points of the intersecting lines and the unique number of the contour to be clipped where the corner points are located.

[0091] Preferably, when determining whether the corner points intersect, if the two lines intersect in a plane, then the corner points are determined to intersect.

[0092] Preferably, when determining whether the corner lines intersect, if the two lines are parallel within a preset tolerance range and the distance is less than a threshold, they are determined to be overlapping edges.

[0093] If two lines coincide on the same side of a plane, they are not considered to intersect.

[0094] If no intersecting lines exist, the judgment of overlapping adjacent contours to be clipped ends.

[0095] S5. Generate an overlap report based on the unique number of the recorded overlapping outlines to be clipped.

[0096] The overlap report includes the coordinates of the overlapping corner points and a unique number of the outline to be clipped where the corner points are located.

[0097] The overlap report also includes the coordinates of the two corner points of the intersecting line and the unique number of the outline to be clipped where the corner points are located.

[0098] S6. Label the overlapping outlines to be clipped in vector graphics format, such as... Figure 2 As shown, the images are displayed 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 fabric layout data from CAD files and obtain the coordinate information of all the outlines to be cut.

[0101] The unique numbering module is used to assign an incrementally unique number to each outline to be cut, following the order of top to bottom and left to right.

[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 outline to be cut from all the outlines to be cut and to determine whether the two adjacent outlines to be cut overlap. It records the unique number of the overlapping outlines to be cut, until all adjacent outlines to be cut have been determined to overlap.

[0104] The control module is also used to generate an overlap report based on the unique number of the recorded overlapping outlines to be clipped.

[0105] The control module is also used to annotate the overlapping outlines to be clipped in vector graphics format and display them as images for further verification and adjustment of the overlapping areas.

[0106] Furthermore, the control module is also used to select an adjacent outline to be cut and determine its overlap, denoted as the first outline and the second outline.

[0107] Obtain the coordinates of all corner points of the first contour and the second contour respectively.

[0108] Iterate through each corner point of the first contour and determine whether there is a case where it overlaps with a corner point of the second contour.

[0109] If there are overlapping corner points, record the coordinates of the overlapping corner points and the unique number of the outline to be clipped where the corner points are located, and continue to the next step.

[0110] If no overlapping corner points exist, proceed to the next step.

[0111] Obtain the lines connecting all corner points of the first contour and the second contour respectively.

[0112] Traverse each corner line of the first contour and determine whether there is a case where it intersects with the corner line of the second contour.

[0113] If intersecting lines exist, record the coordinates of the two corner points of the intersecting lines and the unique number of the contour to be clipped where the corner points are located.

[0114] If no intersecting lines exist, the judgment of overlapping adjacent contours to be clipped ends.

[0115] Perform the next pair of adjacent outlines to be clipped to check for overlap, until all adjacent outlines to be clipped have been checked for overlap.

[0116] For the same or similar parts among the various embodiments in this specification, please refer to each other.

[0117] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting overlapping patterns in fabric layout, characterized in that, The method comprises: reading fabric layout data from a CAD file to obtain coordinate information of all contours to be cut; sequentially assigning 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 to perform overlap judgment, judging whether the two adjacent contours to be cut overlap, recording the unique number of the overlapping contours to be cut, and repeating the above steps until all adjacent contours to be cut are subjected to overlap judgment; generating an overlap report according to the recorded unique number of the overlapping contours to be cut; annotating the overlapping contours to be cut in the vector graphics format and displaying them in the form of pictures to further verify and adjust the overlapping area; obtaining coordinate information of all contours to be cut, wherein the coordinate information comprises coordinates of corner points of the contours to be cut; if the contour to be cut contains an arc segment, the arc segment is divided at a preset distance to obtain coordinates of a plurality of split points; the corner point coordinates comprise coordinates of intersection points of two contour lines and coordinates of split points; selecting a pair of adjacent contours to be cut to perform overlap judgment, judging whether the two adjacent contours to be cut overlap, recording the unique number of the overlapping contours to be cut, and repeating the above steps until all adjacent contours to be cut are subjected to overlap judgment, wherein the specific steps are as follows: selecting a pair of adjacent contours to be cut to perform overlap judgment, denoted as a first contour and a second contour; obtaining all corner point coordinates of the first contour and the second contour respectively; traversing each corner point of the first contour to determine whether there is a coincident corner point with the second contour; if there is a coincident corner point, recording the coordinates of the coincident corner point and the unique number of the contour to be cut where the corner point is located, and proceeding to the next step; if there is no coincident corner point, proceeding to the next step; obtaining all corner point lines of the first contour and the second contour respectively; traversing each corner point line of the first contour to determine whether there is an intersection with the corner point line of the second contour; if there is an intersecting line, recording the coordinates of the two end corner points of the intersecting line and the unique number of the contour to be cut where the corner points are located; if there is no intersecting line, ending the overlap judgment of the pair of adjacent contours to be cut; proceeding to the overlap judgment of the next pair of adjacent contours to be cut until all adjacent contours to be cut are subjected to overlap judgment.

2. The fabric layout graphic overlap detection method according to claim 1, wherein when judging the corner point overlap, if the coordinates of the two corner points are completely the same or within a preset tolerance range, the corner points are determined to overlap.

3. The fabric layout graphic overlap detection method according to claim 1, wherein when judging the intersection of the corner point lines, if the two lines intersect in the plane, the corner point lines are determined to intersect.

4. The fabric layout graphic overlap detection method according to claim 1, wherein when judging the intersection of the corner point lines, if the two lines are parallel within a preset tolerance range and the distance is less than a threshold value, the edges are determined to overlap. ​ ​ ​ If two lines coincide in the plane, it is not determined to intersect.

5. The fabric layout graph overlap detection method of claim 1, wherein, When selecting a pair of adjacent cutting contours for overlap judgment, the pair of cutting contours with unique numbers is selected first, and then the pair of cutting contours in space is selected.

6. The fabric layout graph overlap detection method of claim 1, wherein, The overlap report includes the coordinates of the coincident corner points and the unique numbers of the cutting contours in which the corner points are located; The overlap report also includes the coordinates of the two end corner points of the intersecting line and the unique numbers of the cutting contours in which the corner points are located.

7. A fabric layout graphic overlap detection system, characterized in that, The system comprises: An information acquisition module for reading fabric layout data from a CAD file and acquiring coordinate information of all cutting contours; A unique number writing module for assigning an increasing unique number to each cutting contour in turn according to the order of top-down and left-right; A conversion module for converting the fabric layout data into a vector graphics format; A control module for selecting a pair of adjacent cutting contours for overlap judgment, judging whether the two adjacent cutting contours coincide, recording the unique numbers of the overlapping cutting contours, and repeating the process until all adjacent cutting contours have been judged for overlap; The control module is also used to generate an overlap report according to the recorded unique numbers of the overlapping cutting contours; The control module is also used to mark the overlapping cutting contours in the vector graphics format and display them in the form of pictures for further verification and adjustment of the overlapping areas; The control module is also used to select a pair of adjacent cutting contours for overlap judgment, denoted as the first contour and the second contour; All corner point coordinates of the first contour and the second contour are acquired respectively; Each corner point of the first contour is traversed to determine whether there is a coincident corner point of the second contour; If there is a coincident corner point, the coordinates of the coincident corner point and the unique number of the cutting contour in which the corner point is located are recorded, and the next step is continued; If there is no coincident corner point, the next step is executed; All corner line of the first contour and the second contour are acquired respectively; Each corner line of the first contour is traversed to determine whether there is an intersecting line with the corner line of the second contour; If there is an intersecting line, the coordinates of the two end corner points of the intersecting line and the unique numbers of the cutting contours in which the corner points are located are recorded; If there is no intersecting line, the overlap judgment of the pair of adjacent cutting contours is ended; The next pair of adjacent cutting contours is judged for overlap until all adjacent cutting contours have been judged for overlap.

Citation Information

Patent Citations

  • Method and apparatus for resolving overlaps in a layout containing possibly overlapping designs

    US6760638B1