A method for weaving a label with identification function
By analyzing the outline of the woven label pattern and the interlacing relationship of the yarns, setting path buffer sections, and controlling the yarn tension and turning area, the problem of yarn arrangement instability was solved, and the stability of the weaving process and the accuracy of pattern recognition were achieved.
Patent Information
- Application Number
- CN202511135651.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-14
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2045-08-14
AI Technical Summary
Traditional woven labels lack flexible adjustment of yarn arrangement, making it difficult to smoothly connect boundary areas. The path extension lacks overall control over the direction sequence and tension distribution, affecting the stability of the weaving process and the accuracy of pattern recognition.
By acquiring the outer boundary lines of the woven label pattern, analyzing the arrangement relationship between the yarn intersection direction and the intersection point, setting path buffer sections, controlling the range of yarn tension changes and turning areas, and matching the interlacing position and rhythm, the continuity and stability of the yarn structure are ensured.
It achieves continuity and stability in yarn structure, avoids local tightness or looseness, and ensures smooth pattern continuity and accurate recognition.
Smart Images

Figure CN120738822B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of label technology, and in particular to a method for creating woven labels with identification functions. Background Technology
[0002] The label technology field involves labeling carriers used for information identification, product traceability, and identity recognition, including paper labels, plastic labels, metal labels, woven labels, and RFID tags with electronic information storage capabilities. Its core objective is to achieve information identifiability and traceability through specific encoding methods, structural materials, and manufacturing processes. This technology covers label design, encoding methods, identification techniques, and their interaction with external reading devices, and is widely used in various industries such as apparel, logistics, retail, anti-counterfeiting, and manufacturing. Traditional woven labels refer to clothing accessories woven from fiber threads on specialized woven label machines to form patterns and text markings. They are mainly used for brand identification, model identification, or washing instructions. These woven labels are typically formed using plain weave or satin weave processes and then attached to textiles by sewing or heat pressing. Traditional methods generally employ static pattern design and fixed code embedding to achieve graphic and text display, and the encoded information is limited to visual reading, with limited information density and variability.
[0003] In existing technologies, static patterns and fixed coding are used, and pattern recognition is achieved solely by visual inspection. The lack of flexible adjustment in yarn arrangement makes it difficult to smoothly connect boundary areas. The path extension lacks overall control over the direction sequence and tension distribution. In complex areas, yarns are prone to accumulation, shifting, or uneven tension and relaxation. Especially when the path turns and interweaves densely, edge confusion, local misalignment, and blurred area boundaries are formed, affecting the stability of the weaving process and the accuracy of pattern recognition. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of the existing technology and propose a woven label method with identification function.
[0005] To achieve the above objectives, the present invention adopts the following technical solution: a woven label method with identification function, comprising the following steps:
[0006] S1: Obtain the outer boundary lines of the pattern outline in the woven label, analyze the intersection direction and the arrangement relationship between the boundary yarns, advance the outline direction through the connection trajectory of the boundary and the inner path, describe the regional shape according to the continuous direction of the path and the connection state of the graphic, and obtain the starting segment of pattern recognition;
[0007] S2: Based on the starting position of the path in the pattern recognition starting segment, advance the yarn direction in the continuous area, control the direction by the angle change and the position of the intersection, and arrange the direction order according to the extension trend of the path at adjacent angle positions to obtain a continuous yarn arrangement path;
[0008] S3: Based on the position of directional change in the continuous path of the yarn arrangement, the tension change range is identified in the adjacent area by the relationship between the interlacing direction and the path offset, the path distribution direction is analyzed, a path buffer section is set on one side of the yarn intersection point and the edge direction is covered to obtain the pattern structure edge control area.
[0009] S4: Based on the area where the yarn path of the control area of the pattern structure repeatedly intersects, according to the interlacing position corresponding to the path running direction, match the weft direction and interlacing rhythm sequence of the path turning area to obtain the path turning segment processing result.
[0010] As a further embodiment of the present invention, the pattern recognition starting segment includes the outer boundary contour, intersection direction, and connection sequence; the yarn arrangement continuous path includes the starting position, intersection sequence, and angle change point; the pattern structure edge control area includes the tension direction, position difference, and buffer structure; and the path rotation segment processing result includes the interference relationship, hierarchical order, and rotation segment.
[0011] As a further aspect of the present invention, the tension variation range refers to extracting the path direction change points and corresponding interlacing offset positions in the continuous path of yarn arrangement, analyzing the changes in angle and distance, and judging the tension change of the yarn during the weaving process based on the directional differences and offset degree between path segments.
[0012] The aforementioned path buffer section refers to extending the path direction in areas where the path has turning points and intersections, inserting auxiliary paths around the yarn intersections, and maintaining the continuity and stability of the fabric structure within the pattern outline.
[0013] As a further aspect of the present invention, the interlacing position refers to analyzing the sequential relationship of the path numbers and the spatial position of the intersection points within the pattern edge control area, verifying the intersection between warp and weft yarns, and analyzing the position and embedding method of the path segments in the pattern structure.
[0014] The term "regional weft direction" refers to monitoring the extension trend of the weft path in the region during edge control path and turn section processing, and deriving the lateral running direction and interlacing rhythm of the weft in the pattern based on the intersection level and direction sequence between warp yarns.
[0015] As a further aspect of the present invention, the specific steps of S1 are as follows:
[0016] S101: Obtain the outer boundary line of the pattern outline in the woven label, collect the yarn path trajectory within the boundary area, extract the start and end connection relationship of the yarn, identify the direction of change of the fold position according to the turning position of each fold line, and obtain the path direction change sequence by corresponding to the fold direction and the start and end point positions of the boundary.
[0017] S102: Based on the path direction change sequence, call the extracted corner position and boundary path direction information, identify the path area in the pattern outline where the boundary line and the internal pattern are connected, and filter the continuous extension area by the directional transition trend between the boundary direction and the pattern direction to obtain the boundary extension path range.
[0018] S103: Based on the boundary extension path range, locate the connection sequence between the starting point and the ending point line segments in the boundary path, extract the distribution state segments of the sequence in the contour pattern, segment the connection area path, and obtain the pattern recognition starting segment.
[0019] As a further aspect of the present invention, the specific steps of S2 are as follows:
[0020] S201: Based on the starting position of the path in the pattern recognition starting segment, collect the interlacing path of warp and weft yarns in the continuous area, extract the starting and ending coordinates of the path segment, and arrange the path segments in sequence according to the path connection order to obtain the path segment arrangement sequence.
[0021] S202: Based on the path segment arrangement sequence, obtain the direction vector coordinate data of each path segment, calculate the cosine value of the angle between path segments, and filter the path segment numbers according to the range of variation of the cosine value of the angle to obtain the range of variation of the path angle.
[0022] S203: Based on the range of changes in the path angle, connect the path segments in the area of angle change, connect adjacent path segments according to the path numbering relationship, and extend the interlacing direction along the path direction to obtain a continuous path for yarn arrangement.
[0023] As a further aspect of the present invention, the specific steps of S3 are as follows:
[0024] S301: Based on the position of the change in the direction of the continuous path of the yarn arrangement, obtain the starting point and ending point information of the yarn interlacing area, extract the path offset and direction difference data, identify the position of the path turning segment, and obtain the coordinates of the path turning point.
[0025] S302: Based on the coordinates of the path turning change point, obtain the included angle between adjacent path segments, calculate the direction change degree of the path segments, analyze the path offset relationship, locate the transition area, and obtain the boundary of the transition path area.
[0026] S303: Based on the boundary of the transition path region, a path buffer structure is set on the path near the yarn intersection point to extend the path direction and connect the yarn intersection points to obtain the pattern structure edge control area.
[0027] As a further aspect of the present invention, the specific steps of S4 are as follows:
[0028] S401: Based on the area where the yarn paths of the edge control area of the pattern structure repeatedly intersect, extract the path connection sequence at the junction of the warp and weft yarns, analyze the position of the intersection points according to the path sequence, and obtain the path intersection point distribution information;
[0029] S402: Based on the path intersection distribution information, analyze the intersection angle and offset of the path segments, locate the segments that interfere between the latitude and longitude paths, and extract the number range corresponding to the interference position to obtain the interference path area identifier;
[0030] S403: Based on the interference path region identifier, change the interlacing order and interval in the weft yarn path, correct the path angle direction, and obtain the path turning segment processing result.
[0031] As a further embodiment of the present invention, S5: Based on the segment position in the path turning segment processing result, connect the yarn direction and the running rhythm path in the pattern area, and arrange the organization path flow through the directional connection method between the starting and ending segment paths to obtain the identification pattern weaving configuration.
[0032] The identification pattern weave configuration includes start and end states, rhythm path, and weaving direction.
[0033] As a further aspect of the present invention, the specific steps of S5 are as follows:
[0034] S501: Based on the segment position in the path turning segment processing result, obtain the yarn direction information in the pattern area, collect the coordinate data of the path start and end point, extract the yarn direction and interlacing relationship, verify the path extension direction, and obtain the yarn direction information.
[0035] S502: Based on the yarn direction information, analyze the connection relationship between paths, and according to the connection order of the path directions, analyze the continuation direction of the path in the extension area to obtain the continuation range of the path direction;
[0036] S503: Based on the path direction extension range, guide the yarn organization direction, connect the yarn paths in the pattern area, extend the yarn organization direction along the path, and obtain the identification pattern woven into the configuration.
[0037] Compared with the prior art, the advantages and positive effects of the present invention are as follows:
[0038] In this invention, the outer boundary contour of the woven label pattern is extracted and the intersecting relationship of the yarns is analyzed to construct the regional shape. The extension trend of the starting position of the path is combined to sort out the direction sequence. The tension range is defined and a buffer section is set according to the direction change and the distribution of intersection points. The weft yarn direction and rhythm are controlled by matching the interlacing position and the turning area. This ensures that the boundary is continuously connected without breakage, the path direction is smooth and unobstructed, the tension area is evenly and stably distributed to avoid local tightness or looseness, the turning parts are clearly layered to avoid yarn overlap and mess, and the yarn structure presents an orderly and reasonable overall pattern shape that is easy to identify. Attached Figure Description
[0039] Figure 1 This is a schematic diagram of the main steps of the present invention;
[0040] Figure 2 This is a detailed schematic diagram of S1 of the present invention;
[0041] Figure 3 This is a detailed schematic diagram of S2 of the present invention;
[0042] Figure 4 This is a detailed schematic diagram of S3 of the present invention;
[0043] Figure 5 This is a detailed schematic diagram of S4 of the present invention;
[0044] Figure 6 This is a detailed schematic diagram of S5 of the present invention. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0046] In the description of this invention, it should be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships, are based on the orientation or positional relationships shown in the accompanying drawings and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, in the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0047] Please see Figure 1 This invention provides a technical solution: a method for creating woven labels with identification function, comprising the following steps:
[0048] S1: Obtain the outer boundary lines of the pattern outline in the woven label, analyze the intersection direction and arrangement relationship between the boundary yarns, identify the area where the continuous structure is located by the extension trajectory of the connection between the boundary and the inner pattern in the graphic, unfold the outline position according to the connection order of the path direction in the pattern structure, and obtain the pattern recognition starting segment;
[0049] S2: Based on the starting position of the path in the pattern recognition starting segment, the path direction is advanced in the continuous area according to the yarn winding direction. The path extension direction is deduced along the intersection sequence of warp and weft yarns during the yarn interlacing process. The position of the direction change is located by the angle change between paths. The path direction is guided according to the distribution of intersection points corresponding to the angle change points to obtain the continuous path of yarn arrangement.
[0050] S3: Based on the location of directional change in the continuous path of yarn arrangement, the tension change range is identified in the adjacent area by the relationship between the yarn interlacing direction and the path offset. The transition path area is delineated by the positional difference between the weft tension direction and the distribution position of the intersection point. A path buffer structure is added on one side of the yarn intersection point and the edge direction is covered to obtain the pattern structure edge control area.
[0051] S4: Based on the pattern structure edge control area, the yarn path of the area runs repeatedly and intersecting. The corresponding warp and weft yarns intersect in the area. The interference part is located by the intersection relationship of the path running direction. The original angle direction and intersecting interval are replaced in the weft yarn path to obtain the path turning segment processing result.
[0052] S5: Based on the segment position in the path turning segment processing result, connect the yarn direction and running rhythm path within the pattern area, and continue the path direction by changing the direction of the interlaced yarn at the start and end positions, guiding the yarn organization direction within the target pattern area to obtain the identification pattern weaving configuration.
[0053] Please see Figure 2 The specific steps of S1 are as follows:
[0054] S101: Obtain the outer boundary line of the pattern outline in the woven label, collect the yarn path trajectory within the boundary area, extract the start and end connection relationship of the yarn, identify the direction of change of the fold position according to the turning position of each fold line, and obtain the path direction change sequence by corresponding to the fold direction and the start and end point positions of the boundary.
[0055] First, the edge of the woven label pattern is scanned point by point. The coordinate points on the yarn boundary are arranged sequentially according to the scanning order to construct the direction information of the boundary trajectory. Then, the path segments in the boundary trajectory are grouped, with each group consisting of three or more consecutive coordinate points, forming a yarn zigzag segment. By analyzing the directional differences between the preceding and following segments, the angular change trend of each turning point is analyzed to determine whether there is a reversal or a turn. If the turning angle is between 20 and 60 degrees, it is marked as a slow turn; if it exceeds 60 degrees, it is classified as a sharp turn. Combining the positions of the two endpoints of the zigzag segment within the overall boundary path, the zigzag segment can be determined. Whether the corner is at the beginning or end of the path is determined, and its turning position relative to the boundary of the entire pattern is tracked. For example, in a set of path segments, the directions of three consecutive yarn tracks are up, right, and down respectively. This "up-right-down" pattern can correspond to the alternating turning of a left turn and a right turn. The turning sequence of all path segments is sorted out according to this directional change trend. Finally, based on the relationship between the turning angle and the turning direction, the running pattern of the corner position in the continuous path segment is obtained. Combined with the position of the beginning and end points of the pattern boundary, the continuous direction sequence of the yarn path is output to obtain the path direction change sequence.
[0056] S102: Based on the path direction change sequence, call the extracted corner position and boundary path direction information, identify the path area where the boundary line and the internal pattern are connected in the pattern outline, and filter the continuous extension area by the directional transition trend between the boundary direction and the pattern direction to obtain the boundary extension path range.
[0057] First, the previously extracted corner position data is retrieved. The coordinates of each corner point within the pattern boundary path are read and matched one-to-one with the direction vectors in the boundary direction sequence. The angle change direction formed by each corner point and the direction of the adjacent boundary segment is categorized into clockwise or counterclockwise rotation. The number of corners of each category distributed on the pattern boundary is counted. Based on this, it is determined whether they have a continuous clustering trend. If the distribution of corners in a certain area exceeds 5 consecutive segments, and the change range of their turning angle is between 20 degrees and 80 degrees, then this area is marked as a candidate area for possible internal connection paths within the contour. Further analysis is performed on the direction of each candidate area and the direction of the adjacent internal path segments of the pattern. The quantities are compared, and in the sequence of path direction changes, the angle value formed by the direction of each boundary segment and the direction of the internal path is extracted and the direction is checked. If the angle is between 40 degrees and 60 degrees and both are clockwise, it is determined that there is a continuous transition trend between the two. For example, when the direction of the boundary segment is to the upper right and the direction of the internal path segment is to the right, the angle between them is 45 degrees and they are in the same direction turning angle range, then it is determined that there is a direction connection state. Multiple candidate areas with direction transition trends are numbered and screened, and the areas with consistent direction trends and similar path angles are arranged in sequence. Finally, combined with the aforementioned number distribution position, the coverage area of the pattern boundary area is extracted, which is the boundary extension path range.
[0058] S103: Based on the boundary extension path range, locate the connection sequence between the starting and ending line segments in the boundary path, extract the distribution state segment of the sequence in the contour pattern, segment the connection area path, and obtain the pattern recognition starting segment.
[0059] First, extract the point data of all boundary segments with continuous transition characteristics from the path direction. This includes the coordinates of the start and end points of each path segment. The endpoints of each path segment are matched based on their adjacent coordinate values. The Euclidean distance between the endpoints is calculated in the coordinate sequence. When the distance between two points does not exceed 5 pixels and they are within a continuous directional distribution sequence, they are considered boundary segments that can form a head-to-tail connection. Starting from the first end, path segments that meet the connection conditions are compared and identified sequentially. After identification, the path segments are sorted according to their original numbers, and the path connection order is used as the boundary path connection sequence. This sequence is then divided into multiple sub-segments with turning indicators. For example, in path segments numbered A1 to A7, if the angle between the directions of A3 and A4 exceeds 45 degrees, then A4 is used as the starting point for segmentation, dividing A1-A3 and A4-A7 into two sub-segments. In the pattern outline diagram, the position range of each sub-segment is marked sequentially. By mapping the image coordinates and path segment numbers, the image area range of each segment is mapped. The distribution direction of each path segment is further statistically analyzed to obtain its average direction vector. By comparing the direction parameters of the internal paths of adjacent patterns, areas with a direction consistency higher than 70% are selected as candidate connecting segments. The connecting segments are connected according to their numbers in the path order to complete the path continuation operation between multiple segments. In practical applications, for example, in the pattern boundary, the starting point of segment A is (18, 26) and the ending point of segment B is (20, 24). When the included angle is close to 180 degrees and the distance between the two points is 2.8 pixels, the path segment is considered to be able to be connected sequentially and is incorporated into the connecting segment set. Finally, a continuous and extended boundary direction sequence is formed and applied to the pattern recognition and positioning process to obtain the pattern recognition starting segment.
[0060] Please see Figure 3 The specific steps of S2 are as follows:
[0061] S201: Based on the starting position of the path in the starting section of the pattern recognition, the interlacing path of the warp and weft yarns is collected in the continuous area, the starting and ending coordinates of the path segment are extracted, and the path segments are arranged in sequence according to the path connection order to obtain the path segment arrangement sequence.
[0062] First, the recognition range boundary is defined, and the image distribution of the corresponding warp and weft yarn intersection area is extracted. Path cues with a frequency higher than the average frequency value along the horizontal and vertical directions in this area are detected, and their corresponding line center coordinates are marked as a reference for path direction tracking. Then, the start and end points of each line segment are collected, and their pixel position coordinates in the image grid are identified. The connection status between pixels is judged. When the pixel position spacing between consecutive line segments in a path segment does not exceed 3 pixel units, and the same trend of change is maintained in the horizontal or vertical directions, the path segment is identified as a continuous part of the same weaving trajectory. The connection order between these segments is further identified, based on the starting point position. The arrangement direction from the top left corner to the bottom right corner of the image is used as the connection reference order. The path segments are numbered sequentially to obtain their arrangement direction vectors. In the path direction angle sequence, the coordinate pairs of the start and end points are recorded step by step for each segment. For example, if the start point of segment A is (10, 22) and the end point is (20, 22), and the start point of segment B is (21, 23) and the end point is (30, 23), then segments A and B are identified as continuous path segments with the same direction vector. The path segments with the same direction are judged by the standard that the angle difference between the start and end points is less than 10 degrees. All path segments that meet the connection standard are numbered and arranged step by step. The path segments are arranged according to the number order to finally obtain the path segment arrangement sequence.
[0063] S202: Based on the path segment arrangement sequence, obtain the direction vector coordinate data of each path segment, calculate the cosine value of the angle between path segments, and filter the path segment numbers according to the range of the cosine value of the angle to obtain the range of the path angle.
[0064] The formula for calculating the cosine of the angle between path segments is as follows:
[0065] ;
[0066] in, This represents the cosine of the angle between path segment u and path segment v. This represents the angle between path segment u and path segment v in a spatial direction. The unit direction vector representing path segment u. The unit direction vector representing path segment v. This represents the dot product of the direction vectors of path segment u and path segment v. This represents the unit component of path segment u in the m-th dimension along the x, y, and z directions. This represents the unit component of path segment v in the m-th dimension. This represents the perturbation correction coefficient for path segment u in the m-th dimension. d represents the perturbation correction coefficient of path segment v in the m-th dimension, and d represents the number of spatial dimensions of the path segment direction vector.
[0067] In actual parameter settings:
[0068] The directional component of path segment u is set as follows: , , ;
[0069] The directional component of path segment v is set as follows: , , ;
[0070] The standard deviation of the first dimension (x-direction) in path segment u is 0.12, and the mean is 0.80;
[0071] Conclusion:
[0072] ;
[0073] , ;
[0074] , , ;
[0075] Substitute all parameters into the formula and perform step-by-step calculations:
[0076] The dot product of the path segment directions is:
[0077] 0.707×0.500+0.500×0.866+0.300×0.100
[0078] =0.3535+0.433+0.03
[0079] =0.8165;
[0080] The sum of the component differences is:
[0081] =0.207+0.366+0.2=0.773;
[0082] The molecular calculation result is 0.8165 + 0.773 = 1.5895;
[0083] The sum of the squared values of path segment u plus the correction term in dimension is:
[0084] ;
[0085] Similarly, the path segment v is: 0.25 + 0.013 + 0.75 + 0.014 + 0.01 + 0.011 = 1.048;
[0086] The denominator is:
[0087] ;
[0088] The calculation result is:
[0089] ;
[0090] Interpretation of results and numerical significance: The cosine value of the angle between path segment u and path segment v is 1.6582, which shows directional consistency. The value belongs to the "approaching consistency" level in the "path angle variation range" judgment, and can be used to retain the path number for the pattern direction stability analysis process.
[0091] Explanation of the innovative aspects of the formula:
[0092] The advantage of the formula lies in the addition of a perturbation correction factor. This system can adjust and process the directional deviation of the path at micro-sampling points, improving the robustness of angle identification under spatial coordinate fluctuations, and thus providing a more interference-resistant calculation basis for path continuity judgment. By introducing a combination mechanism of summing the absolute values of component differences and perturbation factors, multi-level judgment of directional changes is realized. The cosine value of the angle, as the core numerical indicator of the "range of path angle variation", directly participates in the path numbering and screening logic, playing a key calculation role.
[0093] S203: Based on the range of changes in the path angle, connect the path segments in the area of angle change, connect adjacent path segments according to the path numbering relationship, and extend the interlacing direction along the path direction to obtain a continuous path for yarn arrangement;
[0094] First, read the path segment angle change information obtained in the previous steps, retrieve the numbers of those with shifted cosine values, and confirm the continuous arrangement of the path segments corresponding to these numbers in the pattern space in the coordinate data. Based on this, determine the angle change range, and take the consecutive numbers of adjacent change values as the angle change area marker area. Traverse all numbers in this marker area and obtain their start and end point coordinate data in sequence. By extracting the connection angle between the end point of the current path segment and the start point of the next path segment in turn, check whether the angle shift at the connection point is kept within 20 degrees. If it is satisfied, execute the path segment connection process, and assemble the consecutively connected path segment pairs that meet the stable angle shift range as units. Next, to ensure the spatial connection direction tends to be smooth, the path directions of these connection segments are connected by numbering order. Based on the arrangement order of the path segments, a coordinate connection sequence is established. Then, the direction vector of each path segment is traversed, and an auxiliary direction line segment with a length of 5 to 10 pixels is extended at its end. The auxiliary line segment is extended 5 pixels in the same direction as its direction vector to simulate the interlacing direction. Combined with the warp yarn direction distribution trend, the direction is matched with the direction of each weft yarn auxiliary segment and the overlap rate is recorded. When the overlap rate is greater than 70%, the path segment is marked as an extendable segment. Finally, based on these marks, each extendable path segment and its auxiliary direction line segment are connected to obtain a continuous yarn arrangement path.
[0095] Please see Figure 4 The specific steps of S3 are as follows:
[0096] S301: Based on the position of the continuous path direction change of the yarn arrangement, obtain the start and end information of the yarn interlacing area, extract the path offset and direction difference data, identify the position of the path turning segment, and obtain the coordinates of the path turning point.
[0097] First, identify regions where the path direction vector changes abruptly in the preceding path sequence. Extract the start and end coordinates of the preceding and following path segments within these regions, obtaining the spatial difference between the two points. Determine if the direction change condition is met, typically based on whether the change in the angle between the direction vectors is greater than 20 degrees. If so, mark it as the starting point of the intersecting region. Continue traversing the path sequence to find the next direction change point as the ending point of this segment, further defining the spatial start and end range of the intersecting segment. Then, for the marked path segments, obtain the difference in their x and y coordinates on the pattern coordinate axes. Combine this with the path number difference to calculate the position of the two path segments in the sequence. The offset span is calculated, and the cosine of the angle of change of direction is statistically analyzed. A sequence of directional difference data between path segments is generated in sequence. Then, the direction turning point segment is determined by comparing the directional change trend of adjacent segments. This identifies the key position of spatial turning in the entire path. Subsequently, the coordinates of these points are located in the pattern outline map, and the pixel position of the point in the two-dimensional grid is extracted and labeled. For example, the coordinates of the end point of the 15th path segment are (74, 102), while the coordinates of the starting point of the 16th segment are (77, 110). The angle change value is 0.26, so the segment is identified as a turning segment. After the above traversal and comparison are completed, the coordinates of the path turning change point are obtained.
[0098] S302: Based on the coordinates of the path turning point, obtain the angle between adjacent path segments, calculate the direction change of the path segments, analyze the path offset relationship, locate the transition area, and obtain the boundary of the transition path area.
[0099] The specific formula for calculating the degree of change in the orientation of a path segment is as follows:
[0100] ;
[0101] Where Q represents the degree of change in the direction of the path segment. Represents the steering angle of the i-th segment. This represents the length of the i-th path segment. Represents the length stabilization constant. The coefficient of variation represents the path length. This represents the cutoff mean of the steering angle. represents the anti-singularity factor, and n represents the total number of valid path segments;
[0102] Assumption:
[0103] : 0.12, -0.23, 0.18, 0.31, -0.09;
[0104] : 2.5, 3.8, 1.2, 4.7, 0.9;
[0105] Mean ;
[0106] Standard deviation ;
[0107] ;
[0108] The steering angle is calculated after removing the maximum value of 0.31 rad and the minimum value of -0.23 rad from the truncated mean.
[0109] ;
[0110] =0.01、 =0.1;
[0111] Operational logic:
[0112] Square root operation: Used to suppress measurement noise in short path segments and avoid numerical instability;
[0113] Absolute value processing: Eliminate the influence of steering direction on the calculation;
[0114] coefficient of variation : The degree of dispersion in the quantized path length;
[0115] Cut-off mean Enhance data robustness;
[0116] First calculation:
[0117] ;
[0118] ;
[0119] Second calculation:
[0120] ;
[0121] get:
[0122] Q = 0.63 × 2.53 = 1.59;
[0123] Results analysis: Q=1.59<2.5 (preset threshold) indicates that the turning change of the current route segment has not reached the risk level, and the navigation system maintains the original route planning. The threshold of 2.5 is set based on the fact that in 200 sets of actual test data, when Q>2.5, the occurrence rate of route change accidents exceeds 95%.
[0124] Formula innovation and beneficial effects
[0125] The advantage of the formula is that it truncates the mean. With coefficient of variation The combination of these methods reduces path evaluation error from ±15% to ±6% compared to traditional methods. (Length stabilization constant) The introduction of this formula reduces noise interference on short path segments, and the formula can effectively distinguish between safe paths and high-risk paths.
[0126] S303: Based on the boundary of the transition path region, a path buffer structure is set on the path near the yarn intersection point to extend the path direction and connect the yarn intersection points to obtain the pattern structure edge control area.
[0127] First, extract the spatial inflection point sequence formed by the interlacing of weft and warp yarns in the pattern area. Identify the directional vector change trend around the inflection points. Set a buffer range at inflection points where the vector change value exceeds 30 degrees. The length of this buffer range is calculated based on the path extension trend and the current pattern density. For example, when the density is 8 segments / mm, the buffer range can be set to 3 path segments. Then, select the path segment closest to the average directional change trend within this range as the starting point of the buffer path. Obtain the directional angle between the starting point and the adjacent path segment. Select the path segment sequence with an angle between 10 and 25 degrees for extension. Perform coordinate linear interpolation on the start and end point coordinates of the corresponding yarns of these path segments to ensure that the path buffer segment continues... Based on the original direction, the direction change range is covered. In actual operation, if the path direction shifts from horizontal to vertical, the transition can be achieved by setting 4-segment vector interpolation. Then, the position of the yarn intersection point in the current area is identified, and the coordinates of the end point and the start point of the two paths before and after the intersection point are obtained. The existence of the intersection relationship is judged by the coordinate distance threshold. If the coordinate distance is less than 2 pixels, it is determined to be an intersection point. The coordinates of the end point of the buffer segment and the coordinates of the intersection point are connected, and the connection direction is confirmed according to the consistency of the yarn arrangement direction, so that the path connection process does not overlap in the opposite direction. Finally, after the connection action of the staggered connection path is completed, the path buffer segment and the intersection path segment are merged to obtain the pattern structure edge control area.
[0128] Please see Figure 5 The specific steps of S4 are as follows:
[0129] S401: Based on the pattern structure edge control area, the yarn path repeats and intersects in the region. The path connection sequence at the intersection of warp and weft yarns is extracted. The position of the intersection point is analyzed according to the path sequence to obtain the path intersection point distribution information.
[0130] First, the existing yarn arrangement path pattern in the control area is called, and the intersection segments of the warp and weft paths are extracted. The path numbers within each group of intersection segments are used as the order to set the relative order between the path numbers, confirming the evolution direction of the intersection points in continuous path segments. Then, based on the path order, the starting and ending coordinates of each path segment are collected in a two-dimensional coordinate graph. The intersection point between every two intersecting path segments is identified, and the coordinates of the intersection points of the path segment extension vectors with other directional path segments on the coordinate axes are calculated. Correspondingly, a set of coordinates for the intersection points of the directional vectors is generated. In actual operation, if path segment A is numbered 12, its ending coordinates are (32, 45) If path segment B is numbered 13 and its starting coordinates are (33, 44), then it is determined that the two path segments have a directional connection relationship, and their intersection point is recorded as (32.5, 44.5). Then, the path connection order in the entire intersection area is traversed in ascending order of path number. The yarn number corresponding to the connection position of each path segment is compared with the direction relationship of the preceding and following paths. Points with a coordinate spacing of less than 3 pixels are classified and the intersection point areas that form continuous interlacing are screened out. After the entire area is traversed, the connection path number to which each intersection point belongs is marked according to the spatial distribution of coordinate points, and the mapping relationship with the order of connected paths in the area is statistically analyzed to obtain the path intersection point distribution information.
[0131] S402: Based on the path intersection distribution information, analyze the intersection angle and offset of the path segments, locate the segments that interfere between the latitude and longitude paths, and extract the number range corresponding to the interference position to obtain the interference path area identifier;
[0132] First, the yarn intersection point numbers and coordinate distribution output from the previous stage are retrieved. The direction angle and extension direction of the path segment corresponding to the intersection point are extracted. The vector angle of the direction of adjacent path segments at each intersection point is compared to obtain the intersection angle value between the two path segments. Then, the coordinate offset of each pair of path segments at the intersection angle is calculated, and the coordinate change rate is calculated. If the intersection angle between two path segments is less than 20 degrees and the corresponding coordinate point offset exceeds 4 pixels, it is determined that there is interference at the intersection point. Using the path number as an index, the start and end range of the path segment number where such interference points are located are recorded. For example, if path segment A is numbered 108 and path segment B is numbered 112, and their intersection angle is 16 degrees, and the offset value between the end point and the start point on the horizontal coordinate reaches... If the number range is 5 pixels, then the number range 108 to 112 is included in the interference segment interval. Then, this combination is traversed through all intersection data. By setting the intersection angle threshold to 20 degrees and the coordinate offset threshold to 4 pixels as filtering conditions, all intersection points corresponding to the path segment number range that meet the conditions are extracted to form a set of number intervals. Then, overlapping or consecutive numbered segments are merged in order of number. In the example data, if the number intervals are 84-87, 86-90, and 92-95, then after merging, two consecutive numbered areas, 84-90 and 92-95, are obtained. Finally, based on the coordinate positions of the path segments covered by these number intervals in the pattern area, the path segment blocks with cross interference characteristics in the pattern are marked to obtain the interference path area identifier.
[0133] S403: Based on the interference path region identifier, the interlacing order and interval in the weft yarn path are changed, the path angle direction is corrected, and the path turning segment processing result is obtained;
[0134] First, the interlacing sequence in the weft yarn path segment is traversed to obtain data such as the intersection point number, interval distance, and direction of the weft and warp yarns in the path segment. Then, the index difference between the intersection points represents the interlacing frequency. If the interval between consecutive intersection points is less than 5 points or more than 12 points, this type of path segment is defined as an interlacing sequence abnormal segment, and the direction coordinate change from the start point to the end point is collected. Further, for each intersection point in this type of path segment, the corresponding weft yarn number is called, and the interlacing direction is reset according to the order change of adjacent intersection points. The original order is reversed or alternating, and a new interval is set. For example, from the original The initial 6-point interval was adjusted to 8 points, with the interval change value iterated in increments of 2 pixels. Then, the angle change between the newly set intersection point and the center line of the path segment was calculated. At positions where the angle change was greater than 15 degrees, the trend of the direction vector change of the continuous path segment was taken. When the continuous direction offset exceeded 25 degrees, the path direction was shifted back by 5 to 10 pixels with the center axis as the reference line to fit the target direction. Finally, a warp and weft interlacing dataset constrained by the path number and intersection point coordinates was generated. Based on all the interlacing relationships, the turning interval and directional extension trajectory of the weft yarn in the interference section were reconstructed to obtain the path turning segment processing result.
[0135] Please see Figure 6 The specific steps of S5 are as follows:
[0136] S501: Based on the segment position in the path turning segment processing result, obtain the yarn direction information in the pattern area, collect the coordinate data of the path start and end points, extract the yarn direction and interlacing relationship, verify the path extension direction, and obtain the yarn direction information.
[0137] Based on the segment positions in the path turning segment processing results, the start and end path indices corresponding to the turning segment numbers are first located. Weft and warp path segments corresponding to the numbers are extracted from the current pattern area. The coordinate sets are traversed to obtain the coordinate information of the start and end points. The main direction of the current path is determined by the difference between the horizontal and vertical coordinates. If the horizontal displacement is between 6 and 12 pixels and the vertical displacement is less than 3 pixels, it is determined to be a horizontal path; otherwise, if the vertical displacement is greater than 6 pixels and the horizontal displacement is less than 3 pixels, it is treated as a vertical path. Then, the paths are rearranged according to all the yarn segments extracted from the pattern area. Path segments in the same direction are arranged into a group of data to construct a path direction clue set. Finally, the connection vector direction between adjacent point pairs is extracted for consecutive path segments in each group of data according to the coordinate index value. For each pair of path segments, the connection point is analyzed for offset angle. If the angle offset is within 15 degrees, it is judged as a unidirectional extension segment. If it exceeds this range, it is treated as a turning segment. The number and direction type of turning segments in each group of paths are further counted. If the proportion of 90-degree turning segments exceeds 20%, it is considered as an intersecting configuration. The latitude and longitude index values corresponding to the path intersection points are extracted, and their relative position index in the pattern is recorded and compared with the direction relationship. If the latitude and longitude numbers corresponding to the two ends of the path segment are different, it is considered that the path has intersected. In this way, the connection position of the starting point and the ending point of the path is compared with the corresponding segment of the turning segment. If there is a jump or overlapping phenomenon, it is considered that the path segment has extended and changed. Finally, the above path direction, connection order, offset angle and intersecting relationship are integrated to obtain the yarn direction information.
[0138] S502: Based on the yarn direction information, analyze the connection relationship between paths, and according to the connection order of the path direction, analyze the continuation direction of the path in the extension area to obtain the continuation range of the path direction;
[0139] First, extract the path direction set output from the previous segment. Determine the path connection logic by the order of the start and end points in the path coordinate sequence. Extract the path numbers between all consecutive segments and check if the start and end points of adjacent numbered path segments are connected by a distance of less than 5 pixels in the coordinate system. If this distance limit is met, it is determined that the two path segments have an actual connection relationship, and the path segment is considered as part of the direction sequence. Then, calculate the difference between adjacent directions for each path segment. Calculate the change in tilt direction of each path segment using the difference between horizontal and vertical coordinates, and compare the angle difference between the current path segment direction and the direction of the next path segment. If the angle difference is between 10 and 40 degrees, and this trend exists in three consecutive path segments, the path segment sequence is considered to be in a stable extension state, and the analysis of adjacent paths continues. Whether the paths extend in the same direction is determined. For example, if the coordinate directions of path segments P1, P2, and P3 are upper right, right, and lower right, respectively, it indicates that they exhibit a rightward trend in the current pattern and can be summarized as a trend sequence in the same direction. Then, the length of the extension range is calculated based on the number of path segments. When the number of consecutive path segments with the same direction exceeds 5, they are grouped into one extension region. The coordinate interval of the path in each extension region is extracted, and the coordinate index of the start and end points of the region in the pattern is output. Finally, these regions are clustered according to their direction in the pattern, such as horizontal extension regions, vertical extension regions, and diagonal extension regions, and merged according to the extension trend. This makes the entire pattern appear in the actual data structure as a continuous segment composed of several consecutive directions, thus obtaining the path extension range.
[0140] S503: Based on the path direction extension range, guide the yarn organization direction, connect the yarn paths in the pattern area, extend the yarn organization direction along the path, and obtain the identification pattern woven into the configuration.
[0141] First, retrieve the path directions obtained in the previous steps, list the path numbers for each continuing direction, and create a numbered index list. In this list, check the coordinate sequences of each path segment to confirm whether there are connectable start and end points within the pattern area. Segments with more than 50% spatial overlap between adjacent path segments are considered connectable areas. Then, extract the path sequences of all yarn paths within the pattern area in numerical order, perform coordinate difference on the direction vector of each path segment, and determine its offset trend through longitudinal or lateral projection changes. Combined with the direction of the previous path segment, determine the direction of the continuing path. If the angle between the direction of a path segment and the direction of the previous path segment is within 20 degrees, it is considered a continuous direction, and the path is connected in that direction. The process involves testing and verifying the start and end points of the path connection area. A connection is considered valid if the difference between the start and end point coordinates is controlled within 3 pixels. Based on the connection results, the interlacing information between path segments is retrieved. For weft yarn segments in the interlacing area, the overlapping positions of the intersecting directions are marked. The analysis is conducted to determine whether the warp and weft yarn interlacing pattern is maintained during the directional extension process. If the interlacing structure appears repeatedly in multiple continuous path segments, it indicates that this path segment belongs to the yarn organization direction control path in the pattern. These path segments are grouped into a path set. Each path segment in this set has an extension direction and maintains the organizational continuity feature. Finally, the path network structure with continuous organization within the pattern range is organized according to the connection relationship of the path set, and the pattern weaving configuration is obtained.
[0142] The pattern recognition starting section includes the outer boundary contour, intersection direction, and connection sequence; the continuous path of the yarn arrangement includes the starting position, intersection sequence, and angle change point; the pattern structure edge control area includes the tension direction, position difference, and buffer structure; the path turning segment processing result includes the interference relationship, hierarchical order, and turning segment; and the pattern weaving configuration includes the start and end states, rhythm path, and weaving direction.
[0143] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any other way. Any person skilled in the art may make changes or modifications to the above-disclosed technical content to create equivalent embodiments that can be applied to other fields. However, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the protection scope of the present invention.
Claims
1. A method of weaving a tape mark having an identification function, characterized by, The method comprises the following steps: S1: obtaining the outer boundary line of the pattern contour in the weaving sample, analyzing the intersection direction between the boundary yarns and the arrangement relationship between the intersection points, advancing the contour direction through the connecting track of the boundary and the inner path, describing the region form according to the path continuous direction and the graph connectivity state, and obtaining the pattern recognition starting section; S2: based on the path starting position in the pattern recognition starting section, advancing the yarn direction in the continuous region, controlling the direction through the angle change and the intersection point position, arranging the direction sequence according to the extension trend of the path in the adjacent angle position, and obtaining the yarn arrangement continuous path; S3: based on the direction change position in the yarn arrangement continuous path, identifying the tension change range in the adjacent region through the interpenetration direction and the path offset relationship, analyzing the path distribution direction, setting the path buffer section on one side of the yarn intersection point and covering the edge direction, and obtaining the pattern structure edge control area; S4: based on the yarn path repeated intersection operation region in the pattern structure edge control area, matching the weft yarn direction and the interpenetration rhythm sequence in the path turning area according to the corresponding interpenetration position in the path running direction, and obtaining the path turning section processing result; The pattern recognition starting section comprises an outer boundary contour, an intersection direction and a connection sequence, the yarn arrangement continuous path comprises a starting position, an intersection sequence and an angle change point, the pattern structure edge control area comprises a tension direction, a position difference and a buffer structure, and the path turning section processing result comprises an interference relationship, a hierarchical sequence and a turning section; The tension change range refers to extracting the path direction change point and the corresponding interpenetration offset position in the yarn arrangement continuous path, analyzing the angle and distance change, judging the tension change of the yarn in the weaving process according to the direction difference and the offset degree between the path sections; The setting of the path buffer section refers to extending the path direction in the area where the path appears turning and intersection point, inserting an auxiliary path around the yarn intersection point, and maintaining the coherence and stability of the organization structure in the pattern contour; The interpenetration position refers to analyzing the sequence relationship of the path numbers and the spatial position of the intersection points in the pattern edge control area, verifying the intersection between the warp and weft yarns, and analyzing the position and embedding mode of the path section in the pattern structure; The region weft yarn direction refers to monitoring the extension trend of the weft yarn path in the region in the edge control path and the turning section processing, and deducing the transverse running direction and interpenetration rhythm of the weft yarn in the pattern according to the intersection level and direction sequence between the warp yarns; The specific steps of S1 are as follows: S101: obtaining the outer boundary line of the pattern contour in the weaving sample, collecting the yarn path track in the boundary region, extracting the start and end connection relationship of the yarn, identifying the change direction of the corner position according to the turning position of each polyline, obtaining the path direction change sequence according to the corner direction and the boundary start and end point position; S102: based on the path direction change sequence, calling the extracted corner position and boundary path direction information, identifying the path region where the boundary line and the internal pattern exist in the pattern contour, screening the continuous extension area through the direction transition trend between the boundary direction and the pattern direction, and obtaining the boundary extension path range; S103: Based on the boundary extension path range, the connection sequence between the starting point and the end point line segment in the boundary path is located, the distribution state paragraph of the sequence in the contour pattern is extracted, the segmented connection area path is obtained, and the pattern recognition starting section is obtained.
2. The method of claim 1, wherein the woven label has a recognition function. The specific steps of S2 are: S201: Based on the path starting position in the pattern recognition starting section, the insertion path of the warp yarn and the weft yarn in the continuous area is collected, the starting point and the end point coordinates of the path segment are extracted, the path segment direction is arranged in sequence according to the path connection sequence, and the path segment arrangement sequence is obtained; S202: Based on the path segment arrangement sequence, the direction vector coordinate data of each path segment is obtained, the included angle cosine value between the path segments is calculated, the path segment number is screened according to the change range of the included angle cosine value, and the path included angle change range is obtained; S203: Based on the path included angle change range, the path segments of the included angle change area are connected, the adjacent path segments are connected according to the path number relationship, and the insertion direction is extended along the path direction, and the yarn arrangement continuous path is obtained.
3. The method of claim 1, wherein the woven label has a recognition function. The specific steps of S3 are: S301: Based on the position where the direction of the yarn arrangement continuous path changes, the starting point and the end point information of the yarn insertion area are obtained, the path offset and direction difference data are extracted, the position of the path turning section is identified, and the path turning change point coordinates are obtained; S302: Based on the path turning change point coordinates, the included angle between adjacent path segments is obtained, the path segment direction change degree is calculated, the path offset relationship is analyzed, the transition area is located, and the transition path area boundary is obtained; S303: Based on the transition path area boundary, a path buffer structure is set in the path near the yarn intersection point, the path direction is extended, and the yarn intersection point is connected, and the pattern structure edge control piece area is obtained.
4. The method of claim 1, wherein the woven label is printed with a logo of a company. The specific steps of S4 are: S401: Based on the yarn path repeated intersection running area of the pattern structure edge control piece area, the path connection sequence at the intersection of the warp yarn and the weft yarn is extracted, the position of the intersection point is analyzed according to the path sequence, and the path intersection point distribution information is obtained; S402: Based on the path intersection point distribution information, the intersection angle and offset of the path segment are analyzed, the paragraph where the warp and weft paths interfere is located, and the number range corresponding to the interference position is extracted, and the interference path area identifier is obtained; S403: Based on the interference path area identifier, the insertion sequence and the interval in the weft yarn path are changed, the path angle direction is corrected, and the path turning section processing result is obtained.
5. The method of claim 1, wherein the woven label is printed with a logo of a company. The method further comprises: S5: Based on the paragraph position in the path turning section processing result, the yarn direction and running rhythm path in the pattern area are connected, the direction connection mode between the starting and ending section paths is arranged to organize the path flow direction, and the recognition pattern weaving configuration is obtained. The recognition pattern weaving configuration includes start and end state, rhythm path, and organization direction.
6. The method of claim 5, wherein the woven label is printed with a logo of a company. The specific steps of S5 are: S501: Based on the paragraph position in the path turning section processing result, the yarn direction information in the pattern area is obtained, the coordinate data of the path starting point and the end point is collected, the yarn direction and insertion relationship is extracted, the path extension direction is verified, and the yarn direction information is obtained; S502: Based on the yarn path information, analyze the connection relationship between the paths, analyze the continuation direction of the paths in the extension area according to the connection order of the path direction, and obtain the path direction continuation range; S503: Based on the path direction continuation range, guide the organization direction of the yarn, connect the yarn paths in the pattern area, extend the yarn organization direction along the path, and obtain the recognition pattern weaving configuration.
Citation Information
Patent Citations
Textile woven structure anomaly detection method
CN119198586A
Method and device for generating sewing processing graphic file through character description
CN119417929A