Clothing multi-code automatic calculation method based on parametric modeling

By using parametric modeling methods, the layout of cut pieces and materials in multi-size garment design is automatically calculated, solving the problem that material layout relies on manual adjustment in existing technologies, and realizing the automation and reliability of multi-size garment design.

CN122020757APending Publication Date: 2026-05-12SHENZHEN JINGZE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN JINGZE TECHNOLOGY CO LTD
Filing Date
2026-02-05
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Existing garment CAD systems only focus on changes in the outline size of cut pieces when calculating multiple sizes, while ignoring the layout of the internal materials of the cut pieces. This results in a high reliance on manual experience to adjust the materials during cross-size calculations, and a lack of a unified and calculable modeling method.

Method used

Using a parametric modeling approach, the standardized parameter data package of the cut pieces is extracted, the scaling factors of the cut pieces in the width and height directions are calculated, and a cut piece scaling model and a positioning frame model are established. Combined with alignment parameters and size grading strategies, the layout of materials under different sizes is automatically calculated.

Benefits of technology

It automates the design of multiple sizes of clothing, reduces manual adjustments, improves the reliability and consistency of multi-size design and production, and ensures that the relative position and size changes of the material layout under different sizes conform to the actual pattern rules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122020757A_ABST
    Figure CN122020757A_ABST
Patent Text Reader

Abstract

The invention provides a parametric modeling-based clothing multi-code automatic calculation method, which comprises the following steps of: analyzing various size version files of clothing, extracting and standardizing size parameters, position parameters and rotation angles of cut-parts in version canvas, and constructing a uniform cut-part parameter data model; on the basis, aiming at the size change relation of the same cutting piece in different sizes, a cutting piece scaling model reflecting the non-equal-proportion change characteristics of the cutting piece is established. Further, positioning frame models associated with the cutting pieces one by one are established on the reference size cutting pieces, and position parameters, size parameters, alignment mode parameters and size code pushing strategy parameters are set for positioning frames; under the target size, the size of the positioning frame is automatically calculated according to the cutting piece scaling model and the positioning frame size code pushing strategy, and after size calculation is completed, the position of the positioning frame in the cutting piece is recalculated in combination with the alignment mode parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer-aided design (CAD) and digital clothing design technology, and in particular to a method for automatic multi-size estimation of clothing based on parametric modeling of fashion design services. Background Technology

[0002] With the rapid development of the fashion design service industry and the increasing demand for flexible production, computer-aided design (CAD) technology has become a core tool in the apparel R&D process. In providing efficient fashion design services, CAD-based pattern design and automatic multi-size calculation are crucial. Existing apparel CAD systems typically support pattern design for single sizes and use preset sizing rules to enlarge or reduce patterns between different sizes, thereby generating multi-size patterns.

[0003] However, in actual garment production, in addition to the pattern itself, garments often require the overlay of various materials such as patterns, text, numbers, and labels. The position, size, and relative relationship of these materials on different pattern pieces usually need to be adjusted synchronously as sizes change. In existing technologies, multi-size estimation often only focuses on the dimensional changes of the pattern outline, while lacking a unified and calculable modeling method for the layout of the internal materials of the pattern pieces. This results in the material layout relying heavily on manual experience for adjustment during cross-size estimation.

[0004] Therefore, we propose an automatic size estimation method for clothing based on parametric modeling; the information disclosed above in the background section is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0005] The purpose of this invention is to address the shortcomings of existing technologies by providing an automatic multi-size estimation method for clothing based on parametric modeling, thereby solving the technical problems mentioned in the background section.

[0006] To achieve the above objectives, the present invention provides the following technical solution: A method for automatic size estimation of clothing based on parametric modeling includes the following steps: S1. Parse all pattern files of a garment and select the base size. For each piece of each size, extract the piece width, piece height, piece coordinate position and piece rotation angle in the pattern canvas, and encapsulate the piece width, piece height, piece coordinate position and piece rotation angle into a standardized piece parameter data package for the corresponding piece. S2. For the same piece of fabric, between the reference size and the target size, calculate the width scaling factor in the width direction and the height scaling factor in the height direction of the fabric piece, respectively. Based on the width scaling factor and the height scaling factor, determine the maximum scaling factor and the minimum scaling factor to characterize the size change characteristics of the fabric piece across sizes, and form a fabric piece scaling model that reflects the non-proportional change relationship of the fabric piece. The fabric piece scaling model is used in the subsequent positioning frame size calculation process. S3. On each piece of fabric under the baseline size, establish at least one positioning frame model bound to the piece of fabric. The positioning frame model shall include at least the position parameters, size parameters, alignment parameters and size grading strategy parameters of the positioning frame in the piece of fabric. The positioning frame model shall be associated with the corresponding piece of fabric in the form of structured parameters. S4. Based on the pattern piece scaling model and the size estimation strategy parameters of the positioning frame, according to the preset size estimation rules, for the target size pattern piece, the width and height of the positioning frame under the reference size are estimated to obtain the size parameters of the positioning frame under the target size. S5. After determining the size parameters of the positioning frame under the target size, according to the alignment parameters of the positioning frame and the cutting parameters of the cutting piece of the target size, the position of the positioning frame is recalculated according to the preset horizontal alignment rules and vertical alignment rules to determine the target coordinate position of the positioning frame under the target size in the cutting piece. S6. Summarize the target size parameters and target coordinate positions of the positioning frames corresponding to each piece of fabric under the target size, generate a positioning frame parameter file that corresponds one-to-one with the target size, and automatically generate the layout results of the multi-size garment materials based on the positioning frame parameter file, thereby completing the automatic calculation of multiple sizes of garments.

[0007] S1 specifically involves: reading and parsing all pattern files corresponding to the garment, identifying the size information corresponding to each pattern file, selecting one size as the base size, and using the remaining sizes as target sizes; for each piece under the base size and each target size, determining the outline range of the piece in the corresponding pattern canvas, and calculating the piece width and height based on the outline range; obtaining the coordinate position of each piece in the canvas coordinate system, and simultaneously obtaining the piece rotation angle relative to the canvas, used to characterize the spatial posture of the piece in the canvas; and uniformly encapsulating the piece width, piece height, piece coordinate position, and piece rotation angle to form a standardized piece parameter data package that corresponds one-to-one with the corresponding piece, used for the subsequent establishment of the piece scaling model and the calculation of the positioning frame.

[0008] S2 specifically involves: For the same fabric piece, reading its standardized fabric piece parameter data package under the baseline size and the standardized fabric piece parameter data package under the target size respectively; calculating the width scaling factor of the fabric piece in the width direction based on the fabric piece width of the corresponding fabric pieces of the baseline size and the target size; and calculating the height scaling factor of the fabric piece in the height direction based on the fabric piece height; comparing the width scaling factor and the height scaling factor, selecting the larger scaling factor as the maximum scaling factor, and selecting the smaller scaling factor as the minimum scaling factor; using the maximum scaling factor and the minimum scaling factor as parameters to describe the non-uniform proportional change relationship of the fabric piece across sizes, constructing the fabric piece scaling model of the corresponding fabric piece for subsequent calculation of the positioning frame size.

[0009] S3 specifically involves: Under the baseline size, for each cut piece, determining at least one positioning frame area within the cut piece area to hold the garment material; setting position parameters and size parameters for each positioning frame within the cut piece, where the position parameters describe the coordinate position of the positioning frame in the cut piece, and the size parameters describe the width and height of the positioning frame; setting alignment parameters and size estimation strategy parameters for each positioning frame, where the alignment parameters indicate the alignment rules of the positioning frame in the cut piece, and the size estimation strategy parameters indicate the size change method of the positioning frame when estimating across sizes; encapsulating the various parameters of the positioning frame in the form of structured parameters, and establishing a one-to-one association with the corresponding cut piece to form a set of positioning frame models under the baseline size.

[0010] S4 specifically involves: For each piece of fabric under the target size, reading the corresponding piece scaling model and the positioning frame model associated with the piece under the base size; determining the size extrapolation rules used by the current positioning frame in the cross-size extrapolation process based on the size extrapolation strategy parameters in the positioning frame model; calculating the width and height of the positioning frame under the base size based on the piece scaling model and according to the size extrapolation rules, obtaining the target width and target height of the positioning frame under the target size; and using the target width and target height as the size parameters of the positioning frame under the target size to provide a size basis for subsequent recalculation of the positioning frame position.

[0011] S5 specifically involves: after determining the size parameters of the positioning frame under the target size, reading the standardized pattern parameter data package corresponding to the pattern piece of the target size; determining the horizontal and vertical alignment rules adopted by the current positioning frame in the pattern piece of the target size based on the alignment parameters in the positioning frame model; recalculating the horizontal and vertical positions of the positioning frame in the pattern piece based on the pattern piece parameters of the target size pattern piece and in combination with the horizontal and vertical alignment rules; and using the horizontal and vertical coordinates obtained from the position recalculation as the target coordinate positions of the positioning frame in the pattern piece under the target size.

[0012] S6 specifically involves: obtaining the target size parameters and target coordinate positions of the corresponding positioning frames for each piece under the target size; summarizing the target size parameters and target coordinate positions of the positioning frames corresponding to all pieces under the same target size to generate a positioning frame parameter file that corresponds one-to-one with the target size; automatically configuring the layout position and size of the garment material in each piece based on the positioning frame parameter file to generate the garment material layout result under the target size; and outputting the garment material layout result to complete the automatic calculation of multiple garment sizes.

[0013] The beneficial effects of this invention are as follows: This invention utilizes unified parametric modeling of pattern piece parameters, pattern piece scaling models, and positioning frame models. After completing the baseline size design, it can automatically calculate the size and position of the positioning frame for the target size, thereby automatically generating material layout results for different sizes. This reduces manual size-by-size adjustments and improves the automation level of multi-size design and production. By calculating the scaling factors of the pattern pieces in the width and height directions respectively and constructing a pattern piece scaling model that includes the maximum and minimum scaling factors, this invention can realistically represent the non-proportional size changes of the pattern pieces during cross-size variations, making the positioning frame size calculation more consistent with the actual pattern change patterns.

[0014] This invention establishes a positioning frame model, one-to-one associated with each base size fabric piece, and explicitly describes the material layout rules through alignment parameters and size estimation strategy parameters. This provides a definite calculation basis for the relative positional relationships and size variations of materials within the fabric pieces for different sizes, effectively avoiding layout inconsistencies caused by differences in human experience. The size estimation process and position recalculation process of the positioning frame are decoupled. First, the size of the positioning frame is calculated based on the fabric piece scaling model and size estimation strategy; then, the position of the positioning frame is recalculated using alignment parameters. This process avoids cumulative errors caused by the coupling between size and position, improving the reliability of multi-size estimation results.

[0015] This invention encapsulates the pattern parameters, pattern scaling model, positioning frame model and their validity markers in a structured manner at each step, and generates a positioning frame parameter file that corresponds one-to-one with the target size. This invention can completely record the key parameters in the multi-size calculation process, ensuring consistent output results under the same input conditions, which is convenient for subsequent verification and reproduction. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of an automatic clothing size estimation method based on parametric modeling according to the present invention. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] Example 1: As Figure 1 As shown, this embodiment provides a method for automatic size estimation of clothing based on parametric modeling, including the following steps: S1. Parse all pattern files of a garment and select the base size. For each piece of each size, extract the piece width, piece height, piece coordinate position and piece rotation angle in the pattern canvas. Then encapsulate the piece width, piece height, piece coordinate position and piece rotation angle into a standardized piece parameter data package for the corresponding piece. S2. For the same piece of fabric, between the reference size and the target size, calculate the width scaling factor in the width direction and the height scaling factor in the height direction of the fabric piece, respectively. Based on the width scaling factor and the height scaling factor, determine the maximum scaling factor and the minimum scaling factor to characterize the size change characteristics of the fabric piece across sizes, and form a fabric piece scaling model that reflects the non-proportional change relationship of the fabric piece. The fabric piece scaling model is used in the subsequent positioning frame size calculation process. S3. On each piece of fabric under the base size, establish at least one positioning frame model bound to the piece of fabric. The positioning frame model shall include at least the position parameters, size parameters, alignment parameters and size grading strategy parameters of the positioning frame in the piece of fabric. The positioning frame model shall be associated with the corresponding piece of fabric in the form of structured parameters. S4. Based on the pattern piece scaling model and the size estimation strategy parameters of the positioning frame, according to the preset size estimation rules, for the target size pattern piece, the width and height of the positioning frame under the reference size are estimated to obtain the size parameters of the positioning frame under the target size. S5. After determining the size parameters of the positioning frame under the target size, according to the alignment parameters of the positioning frame and the cutting parameters of the cutting piece of the target size, the position of the positioning frame is recalculated according to the preset horizontal alignment rules and vertical alignment rules to determine the target coordinate position of the positioning frame under the target size in the cutting piece. S6. Summarize the target size parameters and target coordinate positions of the positioning frames corresponding to each piece of fabric under the target size, generate a positioning frame parameter file that corresponds one-to-one with the target size, and automatically generate the layout results of the multi-size garment materials based on the positioning frame parameter file, thereby completing the automatic calculation of multiple sizes of garments.

[0019] S1 specifically includes the following sub-steps: S110. Read and parse all pattern files corresponding to the garment. The pattern file is an electronic pattern file containing vector data of the cut piece outlines and cut piece identification information. During parsing, at least the following should be read: size identification. Cut piece label The data includes the outer contour of the cut piece (closed curve or closed zigzag), the transformation information of the cut piece in the pattern canvas (including translation and rotation information), and the size information of the pattern canvas (including canvas width and canvas height).

[0020] Based on the size identifier set obtained from the analysis, a baseline size is selected: the preset sample garment size or intermediate size is preferred as the baseline size; when there are multiple candidate sizes, the size with the most complete number of cut pieces and the highest matching degree of cut piece identifiers is selected as the baseline size, and the remaining sizes are all used as target sizes.

[0021] S120. For each piece of fabric under the base size and each target size, determine the outer contour range of the fabric piece. The outer contour range of the fabric piece is the area enclosed by the closed curve of the outer contour of the fabric piece. When the pattern file contains seam allowance, net pattern line or internal structure line at the same time, the net pattern outer contour is selected as the outer contour of the fabric piece.

[0022] The set of points on the outer contour of the fabric piece is represented in the local coordinate system of the fabric piece, where the origin of the local coordinate system is the lower left corner of the bounding rectangle of the fabric piece. The positive X-axis direction is horizontal to the right, and the positive Y-axis direction is vertically upward. Calculate the extreme values ​​of the x-coordinate and y-coordinate of the outer contour point set of the fabric piece, and obtain the fabric piece width and height accordingly. set up The maximum x-coordinate of the set of points on the outer contour of the cut piece. The minimum x-coordinate of the set of points on the outer contour of the cut piece. The maximum value of the ordinate of the outer contour points of the cut piece. If the minimum ordinate of the set of points on the outer contour of the cut piece is given, then... in, For the width of the cut piece, For the height of the cut piece The extreme values ​​of the coordinates of the outer contour point set of the pattern piece in the local coordinate system of the pattern piece.

[0023] S130. Under the pattern canvas coordinate system, obtain the coordinate position and rotation angle of each pattern piece on the canvas, and use them to represent the spatial posture of the pattern pieces on the canvas; wherein the pattern canvas coordinate system satisfies: with the lower left corner of the canvas as the origin. , Axis to the right is positive. The axis is positive upwards, and the unit of measurement is millimeters.

[0024] The coordinate position of the pattern piece is defined as the coordinate of the lower left corner of the bounding rectangle of the pattern piece in the canvas coordinate system. ,in Let x be the x-coordinate of the bottom left corner of the bounding rectangle of the cut piece. The ordinate is the lower left corner of the bounding rectangle of the pattern piece; the bounding rectangle of the pattern piece is determined by the extreme values ​​of the projection of the pattern piece's outer contour points onto the canvas coordinate system.

[0025] The rotation angle of the cut piece is denoted as , Defined as local cropping Axis relative to canvas The rotation angle of the axis is positive when it is counterclockwise, and the unit is degrees. When the angle unit in the template file is inconsistent with "degrees", it will be converted to degrees before packaging.

[0026] S140, Adjust the width of the cut piece Cut piece height Cut piece coordinate position Angle of rotation of the cut piece The data is uniformly packaged to form a standardized pattern piece parameter data package that corresponds one-to-one with the corresponding pattern piece; the standardized pattern piece parameter data package includes at least the field: size identifier. Cut piece label Cut piece width Cut piece height Cut piece coordinate position Cutting piece rotation angle Canvas width With canvas height .

[0027] And based on the cut piece identifier Establish cross-size pattern piece correspondence: have the same pattern piece under different sizes. The cut pieces are determined to be the same cut piece; at the same time, a consistency check is performed, which includes at least: consistency check of the number of cut pieces for each size, and consistency check of the number of cut pieces within the same size. Uniqueness check, outer contour closure check of cut pieces; when cut pieces are missing or duplicated. If the outer contour is not closed, write an exception flag to the corresponding cut piece parameter data packet to ensure that subsequent steps are traceable and feasible.

[0028] S2 specifically includes the following sub-steps: S210. For the same fabric piece, read its standardized fabric piece parameter data package under the base size and the standardized fabric piece parameter data package under the target size respectively; wherein, the same fabric piece is based on the fabric piece identifier. To correspond, that is: only when the same exists under both the base size and the target size. When the data packet containing the cut piece parameters is received, it is determined to be the same cut piece and the scaling factor calculation process is initiated.

[0029] When any size has an abnormal flag in the corresponding pattern parameter data package (including but not limited to missing pattern pieces, within the same size) If the pattern is repeated or the outer contour of the pattern is not closed, the scaling factor of the pattern is determined to be uncalculated, and the pattern scaling model of the pattern is marked as invalid. Subsequent scaling calculations are skipped and an invalid mark is output for subsequent steps to identify.

[0030] S220. Based on the width and height of the cut pieces corresponding to the baseline size and the target size, calculate the width scaling factor and the height scaling factor of the cut piece in the width direction and the height direction, respectively: Assume the width of the cut piece under the baseline size is The height of this cut piece under the standard size is The width of the cut piece for the target size is The height of the cut piece under the target size is Then the width scaling factor With height scaling factor They are respectively in, This is the width scaling factor. This is the height scaling factor; The width of the cut piece is based on the standard size. The height of the cut piece is based on the standard size. The width of the cut piece for the target size. The height of the cut piece for the target size.

[0031] when If the scaling factor is not calculable, the scaling model of the fabric piece is marked as invalid. If the scaling factor is calculable, it is calculated using floating-point numbers and decimal places are retained according to preset precision to ensure the consistency of calculation results across systems.

[0032] S230, Regarding the width scaling factor With height scaling factor Compare and determine the maximum and minimum scaling factors: in, The maximum scaling factor. The minimum scaling factor is used to characterize the non-uniform dimensional changes of the cut piece in different directions.

[0033] S240, Adjust the width scaling factor Height scaling factor Maximum scaling factor With minimum scaling factor As parameters used to describe the non-proportional variation of fabric pieces across sizes, a fabric piece scaling model is constructed for the corresponding fabric piece; the fabric piece scaling model includes at least the following field: fabric piece identifier. Standard size label Target size label Width scaling factor Height scaling factor Maximum scaling factor Minimum scaling factor And validity markers.

[0034] Among them, the pattern scaling model serves as the input parameter for calculating the positioning frame size in subsequent steps, and is used to calculate the positioning frame size of the baseline size under the target size.

[0035] S3 specifically includes the following sub-steps: S310. Under the reference size, for each piece of fabric, at least one positioning frame area for carrying the garment material is established within the fabric area of ​​the piece of fabric. The positioning frame area forms a positioning frame model. The positioning frame model can be generated by selecting on the fabric piece through an interactive editing interface, or automatically generated within the fabric area according to preset rules.

[0036] To ensure the traceability and referenceability of the bounding box model in subsequent steps, a unique bounding box identifier is assigned to each bounding box model. And match the positioning frame mark with the corresponding cut piece mark. Bind and save.

[0037] S320. Set the position and size parameters of each positioning frame model in the cut piece; both position and size parameters are defined in the local coordinate system of the cut piece, wherein the position parameter of the positioning frame uses the coordinates of the lower left corner of the positioning frame. This indicates that the positioning frame size parameter uses the positioning frame width. With the height of the positioning frame Indicates; among which, This represents the x-coordinate of the bottom left corner of the positioning frame in the local coordinate system of the fabric piece. This represents the ordinate of the bottom left corner of the positioning frame in the local coordinate system of the fabric piece. The width of the positioning frame. This is the height of the positioning frame.

[0038] To ensure effective binding between the positioning frame and the fabric piece, the positioning frame model must satisfy preset boundary constraints: Let the width of the fabric piece in its local coordinate system be... The height of the cut piece is The coordinates of the lower left corner of the positioning box With the size of the positioning frame satisfy in, For the width of the cut piece, The height of the cut piece is used to constrain the lower left and upper right corners of the positioning frame to fall within the bounded rectangle of the cut piece.

[0039] S330. Set alignment parameters and size estimation strategy parameters for each positioning frame model; wherein, the alignment parameters are used to indicate the alignment rules of the positioning frame in the cut piece, and the size estimation strategy parameters are used to indicate the size change method of the positioning frame when calculating across sizes.

[0040] The alignment parameters consist of at least a horizontal alignment type and a vertical alignment type: the horizontal alignment type includes at least a fixed left margin, a center margin that varies with scaling, and a fixed right margin; the vertical alignment type includes at least a fixed bottom margin, a center margin that varies with scaling, and a fixed top margin; the horizontal and vertical alignment types are combined to form the alignment parameters, which are used in subsequent steps to recalculate the position of the positioning box according to the horizontal and vertical alignment rules.

[0041] Size push code strategy parameters should include at least the strategy type field. The strategy type field must include at least two strategies: fixed size strategy and scaling strategy. The fixed size strategy means that the positioning frame size under the target size is the same as the positioning frame size under the baseline size. The scaling strategy means that the positioning frame size under the target size is scaled according to the scaling factor in the pattern scaling model, and the maximum scaling factor is indicated by the size push strategy parameter. Minimum scaling factor Width scaling factor or height scaling factor One of them is used as the scaling basis.

[0042] S340. Encapsulate all parameters of the positioning frame model in the form of structured parameters, and establish a one-to-one association with the corresponding pattern pieces to form a set of positioning frame models under the baseline size; the structured parameters shall include at least the following field: baseline size identifier. Cut piece label Positioning frame markings Position parameters Dimensions Alignment parameters and size grading strategy parameters, identified by the cut piece. Establish a one-to-one association between the positioning frame model and the corresponding pattern piece to ensure that subsequent steps can accurately call the positioning frame model of the pattern piece under the baseline size for the corresponding pattern piece under the target size.

[0043] S4 specifically includes the following sub-steps: S410. For each piece of fabric under the target size, read the corresponding piece scaling model and the positioning frame model associated with the piece under the base size, and perform positioning frame size calculation for each positioning frame model associated with the piece.

[0044] When the validity mark of the fabric piece scaling model is invalid, it is determined that the size of the corresponding positioning frame of the fabric piece cannot be calculated. After writing invalid marks for each positioning frame under the fabric piece, the subsequent size calculation process is skipped to ensure that the size calculation process is traceable and implementable.

[0045] S420. Based on the size extrapolation strategy parameters in the positioning frame model, determine the size extrapolation rules used by the current positioning frame in the cross-size extrapolation process; the size extrapolation strategy parameters shall include at least a strategy type field. and scaling based on field ,in Used to indicate whether the size coding rule is a fixed-size strategy or a scaling strategy. Used to indicate the maximum scaling factor to be selected under the scaling strategy. Minimum scaling factor Width scaling factor or height scaling factor Which one should be used as the scaling basis? All of these are derived from the current cut piece scaling model.

[0046] S430. Based on the pattern scaling model and according to the size estimation rules, the width and height of the positioning frame under the baseline size are calculated to obtain the target width and target height of the positioning frame under the target size: Let the width of the positioning frame under the reference size be... Height is The width of the positioning frame calculated based on the target size is Height is ,in All dimensions are derived from the positioning frame model under the baseline size. .

[0047] when When using a fixed-size strategy, execute: when When setting a scaling strategy, first based on Select scaling factor from the current pattern scaling model. ,in Execute again: in, The target width of the positioning frame for the target size. The target height of the positioning frame for the target size. Based on The selected scaling factor.

[0048] S440, Set target width Altitude of the target The dimensions of the positioning frame under the target size are written into the target size positioning frame model, providing a dimensional basis for subsequent recalculation of the positioning frame position; simultaneously, dimension boundary verification is performed: assuming the width of the fabric piece under the target size is... Height is Then it requires in All data are derived from the standardized pattern parameter data package of the pattern piece under the target size; when the above size boundary verification is not met, the corresponding positioning frame is marked as invalid and an invalid mark is output.

[0049] When the dimensional boundary check passes Floating-point calculations are used and decimal places are retained according to preset precision to ensure the consistency and reproducibility of cross-system calculation results.

[0050] S5 specifically includes the following sub-steps: S510. After determining the positioning frame size parameters for the target size, read the standardized pattern piece parameter data packet corresponding to the target size pattern piece, and obtain the pattern piece width for the target size pattern piece based on the target size pattern piece parameter data packet. With the height of the cut piece .

[0051] The target coordinate position is defined as the lower left corner coordinate of the positioning frame of the target size in the local coordinate system of the fabric piece. ,in Position parameters of the positioning frame under the reference size The definition is consistent; when the positioning frame has been marked as invalid in the aforementioned size calculation step, the position is skipped and the invalid mark is retained.

[0052] S520. Based on the alignment parameters in the positioning frame model, determine the horizontal and vertical alignment types used by the current positioning frame in the target size fabric piece; the horizontal alignment type includes at least: fixed left margin, center distance varying with scaling, and fixed right margin; the vertical alignment type includes at least: fixed bottom margin, center distance varying with scaling, and fixed top margin; the horizontal and vertical alignment types together constitute the alignment parameters, which are used to determine the recalculation rules for the horizontal and vertical positions of the positioning frame during subsequent position recalculation.

[0053] S530. Based on the cutting parameters of the target size cutting piece, and in conjunction with the horizontal and vertical alignment types, recalculate the horizontal and vertical positions of the positioning frame in the cutting piece to obtain the coordinates of the lower left corner of the positioning frame under the target size. .

[0054] Assume the width of the cut piece under the baseline size is Height is The coordinates of the lower left corner of the positioning frame under the reference size are: The width of the positioning frame under the base size is Height is The width of the positioning frame for the target size is... Height is And let the width scaling factor in this pattern piece scaling model be... The height scaling factor is .

[0055] First, define a reference distance under the baseline size: baseline left distance. The right side of the reference Horizontal center offset ; Baseline lower edge distance upper margin of the reference Reference vertical center offset .

[0056] Then recalculate the horizontal coordinates based on the horizontal alignment type. : If the horizontal alignment type is fixed left margin, then If the horizontal alignment type is fixed right margin, then If the horizontal alignment type is set to center distance varies with scaling, then the reference horizontal center will be offset. Scaling factor by width Scale the frame while maintaining the offset between the center of the positioning frame and the center of the cut piece to obtain... Then recalculate the vertical coordinates according to the vertical alignment type. : If the vertical alignment type is fixed bottom margin, then If the vertical alignment type is fixed top margin, then If the vertical alignment type is set to center distance varies with scaling, then the reference vertical center will be offset. By height scaling factor Scale the frame while maintaining the offset between the center of the positioning frame and the center of the cut piece to obtain... in, The horizontal coordinate of the bottom left corner of the positioning frame for the target size. The vertical coordinate of the bottom left corner of the positioning frame for the target size.

[0057] S540, The position is recalculated Assign the target size positioning frame to the local coordinate system of the fabric piece, and perform position boundary verification: If the position boundary check is not met, the positioning box is marked as invalid and an invalid flag is output; if the position boundary check is passed, the target coordinate position is... Write the target size positioning frame model, and Floating-point calculations are used and decimal places are retained according to preset precision to ensure the consistency and reproducibility of cross-system location recalculation results.

[0058] S6 specifically includes the following sub-steps: S610. For each piece of fabric under the target size, obtain the target size parameters and target coordinate positions of the corresponding positioning frames: Specifically, for each positioning frame model of each piece of fabric under the target size, read its target size parameters. Target coordinates and validity markers, among which This represents the coordinates of the bottom left corner of the positioning frame in the local coordinate system of the cut piece. The width and height of the positioning frame are defined, and the coordinates and dimensions are consistent with those in the previous steps.

[0059] When the validity marker is invalid, the location box is retained as an invalid record in the summary result and carries the invalid marker to ensure the traceability of subsequent outputs.

[0060] S620. Summarize the target size parameters and target coordinate positions of the positioning frames corresponding to all fabric pieces under the same target size, and generate a positioning frame parameter file that corresponds one-to-one with the target size; the positioning frame parameter file is a structured parameter file that must contain at least the target size identifier. and according to the cut piece label Organizational location box list.

[0061] Each location frame record must contain at least one field: piece identifier. Positioning frame markings Target coordinates Target size parameters Alignment parameters, size grading strategy parameters, and validity markers are included, and optionally, the width of the cut piece for the target size can be included. Cut piece height The canvas size field is provided for downstream validation; the positioning frame parameter file is provided. and As an index key, it ensures a one-to-one correspondence with the target size, target pattern piece, and target positioning frame.

[0062] S630. Based on the positioning frame parameter file, automatically configure the layout position and size of the garment material in each piece of fabric to generate the garment material layout result for the target size; the garment material layout result is a reproducible set of layout instructions or a layout list, which includes at least: for each positioning frame of each piece of fabric under the target size, the target coordinate position of the material to be placed relative to the positioning frame. and target size parameters Establish a correspondence to form a mapping result of "material - cut piece - positioning frame - position size".

[0063] During automatic configuration, it is based on the positioning box parameter file. Position and size the materials; when the validity of the positioning box is marked as invalid, ignore the material layout corresponding to the positioning box and record the exception prompt to ensure the certainty and traceability of the layout result.

[0064] S640 outputs the positioning frame parameter file and the garment material layout result, thereby completing the automatic calculation of multiple garment sizes; both the positioning frame parameter file and the garment material layout result contain the target size identifier. This is to ensure that each size corresponds to the target size.

[0065] To ensure reproducible output results, the positioning frame parameter file and garment material layout results are output in a preset order: first by pattern piece identifier. Sort, then by the positioning box marker Sort the output and... The same preset accuracy retention rules as those in the previous steps are used to ensure cross-system output consistency.

[0066] Here's a specific numerical example: Assume a front panel piece of the base size (M) is 500mm wide, with a logo positioning frame 50mm wide and a bottom-left horizontal coordinate of 100mm. The positioning frame is set to "fixed left horizontal margin." We need to calculate the target size (L), whose corresponding panel width is 550mm. First, calculate the scaling factor: the width scaling factor is 550 / 500 = 1.1. Second, perform the size calculation: if the strategy is "scaling strategy (based on width)," the target positioning frame width is 50 × 1.1 = 55mm. Finally, recalculate the position: according to the "fixed left horizontal margin" rule, the base left horizontal margin is 100mm; therefore, the target horizontal coordinate is 100mm. The results show that on the L-size panel, the logo becomes larger (width becomes 55mm), but its distance from the left side of the panel remains unchanged (still 100mm), which meets the design expectations.

[0067] The above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters and thresholds in the formulas are set by those skilled in the art according to the actual situation.

[0068] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions according to the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., infrared, wireless, microwave, etc.) means. A computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. Available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media. Semiconductor media can be solid-state drives.

[0069] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0070] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0071] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0072] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0073] In addition, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.

[0074] If a function is implemented as a software module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0075] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0076] In conclusion, the above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for automatic size estimation of clothing based on parametric modeling, characterized in that, Includes the following steps: S1. Parse all pattern files of a garment and select the base size. For each piece of each size, extract the piece width, piece height, piece coordinate position and piece rotation angle in the pattern canvas. Encapsulate the piece width, piece height, piece coordinate position and piece rotation angle into a standardized piece parameter data package for the corresponding piece. S2. For the same fabric piece, between the baseline size and the target size, calculate the width scaling factor in the width direction and the height scaling factor in the height direction of the fabric piece respectively. Based on the width scaling factor and the height scaling factor, determine the maximum scaling factor and the minimum scaling factor used to characterize the size change characteristics of the fabric piece across sizes, and form a fabric piece scaling model. S3. On each piece of fabric under the baseline size, establish at least one positioning frame model bound to the piece of fabric. The positioning frame model shall include at least the position parameters, size parameters, alignment parameters and size grading strategy parameters of the positioning frame in the piece of fabric. Establish a one-to-one association between the positioning frame model and the corresponding piece of fabric in the form of structured parameters. S4. Based on the pattern piece scaling model and the size estimation strategy parameters of the positioning frame, according to the preset size estimation rules, for the target size pattern piece, the width and height of the positioning frame under the reference size are estimated to obtain the size parameters of the positioning frame under the target size. S5. After determining the size parameters of the positioning frame under the target size, based on the alignment parameters of the positioning frame and the cutting parameters of the cutting piece of the target size, the position of the positioning frame is recalculated according to the preset horizontal and vertical alignment rules to determine the target coordinate position of the positioning frame under the target size in the cutting piece.

2. The method for automatic multi-size estimation of clothing based on parametric modeling according to claim 1, characterized in that, It also includes S6, which summarizes the target size parameters and target coordinate positions of the positioning frames corresponding to each piece of fabric under the target size, generates a positioning frame parameter file that corresponds one-to-one with the target size, and automatically generates the layout results of multi-size clothing materials based on the positioning frame parameter file, thereby completing the automatic calculation of multiple sizes of clothing.

3. The method for automatic multi-size estimation of clothing based on parametric modeling according to claim 1, characterized in that, S1 specifically refers to: Read and parse all pattern files corresponding to the garment, identify the size information corresponding to each pattern file, and select one size as the base size and the rest as the target size. For each piece of fabric under the base size and each target size, determine the outline range of the piece of fabric in the corresponding pattern canvas, and calculate the width and height of the piece of fabric based on the outline range of the piece of fabric. In the pattern canvas coordinate system, obtain the coordinate position of each piece of fabric in the canvas, and at the same time obtain the rotation angle of the piece of fabric relative to the canvas, which is used to characterize the spatial posture of the piece of fabric in the canvas.

4. The method for automatic size estimation of clothing based on parametric modeling according to claim 3, characterized in that, The width, height, coordinate position, and rotation angle of each piece are uniformly encapsulated to form a standardized piece parameter data package that corresponds one-to-one with the corresponding piece. This data package is used for the subsequent establishment of the piece scaling model and the calculation of the positioning frame.

5. The method for automatic size estimation of clothing based on parametric modeling according to claim 1, characterized in that, S2 specifically refers to: For the same pattern piece, read its standardized pattern piece parameter data package under the baseline size and the standardized pattern piece parameter data package under the target size respectively; Based on the width of the cut pieces corresponding to the baseline size and the target size, calculate the width scaling factor of the cut pieces in the width direction. And calculate the height scaling factor of the cut piece in the height direction based on the cut piece height; Compare the width scaling factor and the height scaling factor, select the larger scaling factor as the maximum scaling factor, and select the smaller scaling factor as the minimum scaling factor; The maximum and minimum scaling factors are used as parameters to describe the non-proportional changes of the pattern pieces across sizes, and a pattern piece scaling model is constructed for the corresponding pattern pieces, which can be called for subsequent calculation of the positioning frame size.

6. The method for automatic size estimation of clothing based on parametric modeling according to claim 1, characterized in that, S3 specifically refers to: Under the baseline size, for each piece of fabric, at least one positioning frame area for holding the garment material is defined within the fabric area of ​​that piece. Set the position parameters and size parameters of each positioning frame in the cut piece. The position parameters describe the coordinate position of the positioning frame in the cut piece, and the size parameters describe the width and height of the positioning frame. Set alignment parameters and size estimation strategy parameters for each positioning frame. The alignment parameters indicate the alignment rules of the positioning frame in the cut piece, and the size estimation strategy parameters indicate the size change method of the positioning frame when calculating across sizes.

7. The method for automatic multi-size estimation of clothing based on parametric modeling according to claim 6, characterized in that, The parameters of the positioning frame are encapsulated in the form of structured parameters and a one-to-one relationship is established with the corresponding pattern pieces to form a set of positioning frame models under the baseline size.

8. The method for automatic size estimation of clothing based on parametric modeling according to claim 1, characterized in that, S4 specifically refers to: For each piece of fabric under the target size, read the corresponding fabric scaling model and the positioning frame model associated with the fabric under the base size; Based on the size extrapolation strategy parameters in the positioning frame model, determine the size extrapolation rules used by the current positioning frame in the cross-size extrapolation process; Based on the pattern scaling model and according to the size estimation rules, the width and height of the positioning frame under the baseline size are calculated to obtain the target width and target height of the positioning frame under the target size. The target width and target height are used as the dimensional parameters of the positioning frame under the target size, providing a dimensional basis for subsequent recalculation of the positioning frame position.

9. The method for automatic size estimation of clothing based on parametric modeling according to claim 1, characterized in that, S5 specifically refers to: After determining the positioning frame size parameters for the target size, read the standardized pattern piece parameter data package corresponding to the target size pattern piece; Based on the alignment parameters in the positioning frame model, determine the horizontal and vertical alignment rules used by the current positioning frame in the target size pattern piece; Based on the cutting parameters of the target size cutting piece, and combined with the horizontal and vertical alignment rules, the horizontal and vertical positions of the positioning frame in the cutting piece are recalculated respectively. The horizontal and vertical coordinates obtained from the recalculated position are used as the target coordinate positions of the positioning frame in the fabric piece for the target size.

10. The method for automatic size estimation of clothing based on parametric modeling according to claim 2, characterized in that, S6 specifically refers to: For each piece of fabric in the target size, obtain the target size parameters and target coordinate positions of the corresponding positioning frame; The target size parameters and target coordinate positions of the positioning frames corresponding to all cut pieces under the same target size are summarized and a positioning frame parameter file corresponding to the target size is generated. Based on the positioning frame parameter file, the layout position and size of the garment material in each piece are automatically configured to generate the garment material layout result for the target size; the garment material layout result is output to complete the automatic calculation of multiple garment sizes.