Clothing construction method and device, electronic equipment and storage medium

By constructing a freely deformable initial baseline model and a target baseline model, combined with preset constraints and auxiliary material migration, the problem of low modeling efficiency in personalized clothing customization is solved, and an efficient clothing construction process is achieved.

CN121120909APending Publication Date: 2025-12-12LINGDI (ZHEJIANG) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410748434.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

Existing technologies are inefficient in modeling for personalized clothing customization, making it difficult to quickly and efficiently model clothing based on each customer's unique body data.

Method used

By constructing a freely deformable initial benchmark model, adjusting its shape and posture, and forming the original benchmark model and the target benchmark model, the positional relationship of each point of the garment is determined based on these models, the target garment is generated, and the automated garment construction is achieved by combining preset constraints and accessory migration.

Benefits of technology

This greatly improves the efficiency of clothing modeling, reduces the need for independent modeling of each target model, and increases the efficiency of pattern drawing and accessory migration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121120909A_ABST
    Figure CN121120909A_ABST
Patent Text Reader

Abstract

The invention relates to the field of graphic modeling, and discloses a garment construction method and device, electronic equipment and a computer readable storage medium. The clothing construction method comprises the following steps: constructing an initialized reference model capable of freely deforming; adjusting the shape and posture of the initialized reference model to obtain an original reference model and a target reference model; determining a target position relationship between each point of the original garment and each point in the original reference model according to the position relationship between each point of the original garment and each point in the original model; according to the positions of the points in the target reference model and the target position relation, the positions of the points of target clothes are determined, the target clothes are generated, and the points in the target reference model are in one-to-one correspondence with the points in the original reference model. Compared with the prior art, the clothing construction method and device, the electronic equipment and the computer readable storage medium provided by the embodiment of the invention have the advantage of improving the clothing modeling efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of graphic modeling, and in particular, to a garment construction method and device, an electronic device, and a computer readable storage medium. BACKGROUND

[0002] With the improvement of people's living standards and the highlighting of individualized needs, people have higher demands for personalized aesthetics of clothes. Therefore, personalized customization of clothes is increasingly popular, especially for special body type customer groups. Ordinary clothes are mass-produced according to sizes, and it is difficult to obtain well-fitting clothes through direct purchase.

[0003] However, due to the difference in body shape of each person, even the same clothes still need to be independently modeled according to the unique body data of each customer when personalized customization of clothes is performed, and the modeling efficiency is low. SUMMARY

[0004] The purpose of the present disclosure is to provide a garment construction method, device, electronic device, and computer readable storage medium, which can improve the efficiency of garment modeling.

[0005] In a first aspect, the present disclosure provides a garment construction method for constructing a target garment on a target model according to an original garment and an original model. The garment construction method comprises: constructing an initialization reference model capable of free deformation; adjusting the shape and pose of the initialization reference model to obtain an original reference model and a target reference model, the shape and pose of the original reference model being the same as the shape and pose of the original model, and the shape and pose of the target reference model being the same as the shape and pose of the target model; determining a target positional relationship between each point of the original garment and each point of the original reference model according to the positional relationship between each point of the original garment and each point of the original model; determining the position of each point of the target garment according to the position of each point of the target reference model and the target positional relationship, and generating the target garment, each point of the target reference model corresponding to each point of the original reference model one by one.

[0006] Compared with the prior art, in the garment construction method provided by the embodiment of the present disclosure, the shape and posture of the initial reference model are adjusted based on the deformation function of the initial reference model by constructing the initial reference model which can be freely deformed, and the original reference model and the target reference model are formed. Since the shape and posture of the original reference model are the same as the shape and posture of the original model, each point on the original model can find a corresponding point on the original reference model, so that the target position relationship between each point of the original garment and each point of the original reference model can be determined according to the position relationship between each point of the original garment and each point of the original model. Since the original reference model and the target reference model are both obtained by deforming the initial reference model, the original reference model and the target reference model still have the same structure, and each point in the target reference model corresponds to a point in the original reference model. Therefore, according to the position of each point in the target reference model and the target position relationship, the position of each point on the original garment can be restored to obtain the position of each point of the target garment, and the target garment can be obtained by connecting each point of the target garment and performing smoothing processing. The original garment, the original model and the target model are used to construct the target garment, without the need for independent garment modeling for each target model, which greatly improves the garment modeling efficiency.

[0007] In an optional embodiment, the garment construction method further comprises: performing constraint operation on the target garment according to a preset constraint condition to obtain a target panel corresponding to the target garment. According to the preset constraint condition and the target garment, the corresponding target panel is obtained, so that independent panel drawing is not needed for each target model, and the panel drawing efficiency is improved accordingly.

[0008] In an optional embodiment, the preset constraint condition comprises one or more of the following: the angle and the side length of any two corresponding triangles in the target panel and the target garment are the same, the length of any two corresponding line segments in the target panel and the target garment is the same, and the angle of any two corresponding angles in the target panel and the target garment is the same.

[0009] In an optional embodiment, the garment construction method further comprises: determining the relative position relationship between the auxiliary material on the original garment and the auxiliary material on the original panel, and determining the position of the auxiliary material in the target panel according to the relative position relationship and the target panel. The position of the auxiliary material on the target panel is determined according to the relative position relationship between the auxiliary material and the auxiliary material on the original panel, so that automatic auxiliary material migration is realized, and manual addition of each auxiliary material in the target panel is not needed, and the panel making efficiency of the target panel is further improved.

[0010] In an optional embodiment, the determining of the relative position relationship between the auxiliary material on the original garment and the auxiliary material on the original panel comprises: constructing an original panel bounding box of a preset shape according to the original panel, and determining the relative position relationship between the auxiliary material and the original panel bounding box as the relative position relationship between the auxiliary material and the original panel; and constructing a target panel bounding box of the preset shape according to the target panel, and determining the position of the auxiliary material in the target panel according to the relative position relationship and the target panel bounding box. The shapes of the original panel bounding box and the target panel bounding box are both preset shapes, which can reduce the influence of the shape and size difference between the original panel and the target panel on the migration position of the auxiliary material.

[0011] In an optional embodiment, the auxiliary material is a patterned auxiliary material, and the garment construction method further comprises: determining a target size of the auxiliary material on the target garment according to a size ratio of the original panel bounding box and the target panel bounding box and an original size of the auxiliary material on the original garment. For the patterned auxiliary material, the size of the auxiliary material is adjusted according to the size ratio of the original panel bounding box and the target panel bounding box, so as to improve the fitting degree of the size of the auxiliary material migrated into the target panel and the size of the target panel.

[0012] In an optional embodiment, the initialization reference model comprises a surface polygon mesh composed of a plurality of grid units, and the adjusting of the shape and pose of the initialization reference model to obtain an original reference model and a target reference model comprises: adjusting the position, shape and size of each grid unit so that the shape of the surface polygon mesh is the same as the shape and pose of the original model to obtain the original reference model; and adjusting the position, shape and size of each grid unit so that the shape of the surface polygon mesh is the same as the shape and pose of the target model to obtain the target reference model.

[0013] In a second aspect, the embodiments of the present disclosure provide a garment construction device for constructing a target garment on a target model according to an original garment and an original model, the garment construction device comprising: an initialization model construction module, the initialization model construction module being configured to construct an initialization reference model capable of free deformation; a model fitting module, the model fitting module being configured to adjust the shape and pose of the initialization reference model to obtain an original reference model and a target reference model, the shape and pose of the original reference model being the same as the shape and pose of the original model, and the shape and pose of the target reference model being the same as the shape and pose of the target model; a model mapping module, the model mapping module being configured to determine target positional relationships between each point of the original garment and each point of the original reference model according to the positional relationships between each point of the original garment and each point of the original model; and a garment construction module, the garment construction module being configured to determine the positions of each point of the target garment according to the positions of each point of the target reference model and the target positional relationships, and to generate the target garment, each point of the target reference model corresponding to each point of the original reference model.

[0014] Compared with the prior art, in the garment construction device provided by the embodiments of the present disclosure, after the initialization model construction module constructs the initialization reference model capable of free deformation, the model fitting module adjusts the shape and pose of the initialization reference model based on the deformation function of the initialization reference model to form the original reference model and the target reference model. Since the shape and pose of the original reference model are the same as the shape and pose of the original model, each point on the original model can find a corresponding point on the original reference model, so that the model mapping module can determine the target positional relationships between each point of the original garment and each point of the original reference model according to the positional relationships between each point of the original garment and each point of the original model. Since the original reference model and the target reference model are both obtained by deforming the initialization reference model, the original reference model and the target reference model have the same structure, and each point of the target reference model corresponds to each point of the original reference model. Therefore, the garment construction module can restore the positions of each point on the original garment according to the positions of each point of the target reference model and the target positional relationships, obtain the positions of each point of the target garment, connect each point of the target garment, and perform smoothing processing to obtain the target garment, thereby realizing the construction of the target garment according to the original garment, the original model and the target model, without the need for independent garment modeling for each target model, and greatly improving the garment modeling efficiency.

[0015] In a third aspect, the embodiments of the present disclosure provide an electronic device, comprising: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the garment construction method as described above.

[0016] In a fourth aspect, the embodiments of the present disclosure provide a computer readable storage medium, storing a computer program, wherein the computer program is executed by a processor to implement the garment construction method as described above. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some of the embodiments of the present disclosure, and therefore should not be considered as a limitation to the scope. Other related drawings can also be obtained by those of ordinary skill in the art based on these drawings.

[0018] Figure 1 Flowchart of the garment construction method provided by the first embodiment of the present disclosure;

[0019] Figure 2 And Figure 3 Structure diagram of initializing the reference model in the garment construction method provided by the first embodiment of the present disclosure;

[0020] Figure 4 And Figure 5 Mapping diagram of the target reference model and the original reference model in the garment construction method provided by the first embodiment of the present disclosure;

[0021] Figure 6 Flowchart of the garment construction method provided by the second embodiment of the present disclosure;

[0022] Figure 7 Flowchart of the garment construction method provided by the third embodiment of the present disclosure;

[0023] Figure 8 Flowchart of determining the position of the auxiliary material in the target plate in the garment construction method provided by the third embodiment of the present disclosure;

[0024] Figure 9 And Figure 10 Schematic diagram of the original plate bounding box and the target plate bounding box in the garment construction method provided by the third embodiment of the present disclosure;

[0025] Figure 11 Structure diagram of the garment construction device provided by the fourth embodiment of the present disclosure;

[0026] Figure 12 A structural schematic diagram of an electronic device provided by Embodiment Five of the present disclosure. DETAILED DESCRIPTION

[0027] In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. The components of the embodiments of the present disclosure described and shown in the drawings herein can be arranged and designed in various different configurations.

[0028] Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the claimed present disclosure, but only represents selected embodiments of the present disclosure.

[0029] It should be noted that: similar reference numbers and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0030] In addition, if the terms "first", "second", etc. are used, they are only used to distinguish description, and cannot be understood as indicating or implying relative importance.

[0031] It should be noted that: the features in the embodiments of the present disclosure can be combined with each other without conflict.

[0032] Embodiment One of the present disclosure provides a garment construction method for constructing a target garment on a target model according to an original garment and an original model, that is, on the basis of given matching original model and original garment (corresponding to original panel, referred to as original panel), a target garment is constructed according to another target model, so that the shape and garment size of the target garment can match the target model. As shown in Figure 1 The garment construction method comprises:

[0033] Step S101: constructing an initial free-form deformation reference model.

[0034] In some embodiments of the present application, constructing an initial free-form deformation reference model can be specifically: constructing an initial free-form deformation reference model as shown in Figure 2 Figure 3 ​The shown initialization reference model includes a skeleton 10 and a surface polygon mesh 20 covering the skeleton 10, and the polygon mesh 20 is composed of a plurality of polygon mesh units. Among them, the skeleton can include structures such as the spine, upper limbs, lower limbs, etc., and the skeleton can be operated to adjust the length, translation, rotation, etc., to realize the adjustment of the posture of the initialization reference model, and the surface polygon mesh covering the skeleton can be adjusted in related dimensional parameters such as arm circumference, surface relief, length, etc., to realize the adjustment of the shape of the initialization reference model. In addition, in some embodiments of the present disclosure, the skeleton of the initialization reference model can be specifically constructed according to the shapes of the original model and the target model. For example, in the case of only a single upper limb and / or a single lower limb in the original model and the target model, the skeleton of the initialization reference model can also be set to include only a single upper limb and / or a single lower limb structure, which can be specifically set according to the actual structure of the original model and the target model.

[0035] It can be understood that in different embodiments of the present disclosure, the original model, the target model and the initialization reference model can be a human body model, an animal body model, or a body model of a clothing model, which can be flexibly set according to actual needs.

[0036] Among them, the skeleton 10 provided in some embodiments of the present application can be more convenient for adjusting the posture of the initialization reference model. In some other embodiments of the present application, the initialization reference model can also be only a surface polygon mesh, and when it is necessary to adjust the posture of the initialization reference model, the positions, shapes and sizes of each polygon mesh unit in different postures can be calculated and adjusted to realize the effect of adjusting the posture of the initialization reference model.

[0037] Step S102: Adjust the shape and posture of the initialization reference model to obtain the original reference model and the target reference model.

[0038] Specifically, in this step, the shape and pose of the original reference model are the same as the shape and pose of the original model, and the shape and pose of the target reference model are the same as the shape and pose of the target model. It can be understood that, due to the existence of fitting errors, in the embodiments of the present disclosure, the shape and pose of the original reference model being the same as the shape and pose of the original model means that the similarity of the shape and pose of the original reference model to the shape and pose of the original model reaches a preset threshold (which can be set according to actual needs, for example, can be set to 90%, 95%, 98%, etc.), for example, when the similarity of the shape and pose of the original reference model to the shape and pose of the original model reaches 90% / 95% / 98% or above, it is considered that the shape and pose of the original reference model are the same as the shape and pose of the original model. Similarly, the shape and pose of the target reference model being the same as the shape and pose of the target model also means that the similarity of the shape and pose of the target reference model to the shape and pose of the target model reaches a preset threshold.

[0039] In some embodiments of the present application, the shape and pose of the initialized reference model are adjusted to obtain the original reference model, specifically, the positions, shapes and sizes of each of the grid units are adjusted so that the shape and pose of the surface polygonal mesh are the same as the shape and pose of the original model, and the original reference model is obtained. Similarly, the shape and pose of the initialized reference model are adjusted to obtain the target reference model, specifically, the positions, shapes and sizes of each of the grid units are adjusted so that the shape and pose of the surface polygonal mesh are the same as the shape and pose of the target model, and the target reference model is obtained.

[0040] In some other embodiments of the present application, the shape and pose of the initialized reference model are adjusted to obtain the original reference model, specifically, the skeleton is adjusted so that the pose of the initialized reference model is the same as the pose of the original model, and the dimensions of the surface polygonal mesh are constructed according to the dimensions of the original model so that the shape of the initialized reference model is the same as the shape of the original model, and the original reference model is obtained. Similarly, the shape and pose of the initialized reference model are adjusted to obtain the target reference model, specifically, the skeleton is adjusted so that the pose of the initialized reference model is the same as the pose of the target model, and the dimensions of the surface polygonal mesh are constructed according to the dimensions of the target model so that the shape of the initialized reference model is the same as the shape of the target model, and the target reference model is obtained.

[0041] Step S103: According to the position relationship between each point of the original garment and each point in the original model, the target position relationship between each point of the original garment and each point in the original reference model is determined.

[0042] Specifically, in this step, since the shape and orientation of the original reference model are the same as those of the original model, for each point on the original model, a corresponding point on the original reference model can be determined through calculation. Since the original clothing and the original model are known data, the positional relationships between the points on the original clothing and the points in the original model are also known. Based on the positional relationships between the points on the original clothing and the points in the original model, and the correspondence between the points in the original model and the points in the original reference model, the positional relationships between the points on the original clothing and the points in the original reference model can be determined as the target positional relationships. For example, for point F on the original model... A There exists a point F on the original baseline model. S It corresponds uniquely to this, and the point F on the original model is also known. A With the original clothing, point G S The positional relationship between them is T S This allows us to determine point F on the original baseline model. S With the original clothing, point G S The target position relationship between them is also T. S .

[0043] Step S104: Based on the positions of each point in the target baseline model and the relationship between the target and the target positions, determine the positions of each point in the target garment and generate the target garment.

[0044] Specifically, in this step, such as Figure 4 As shown, since both the target reference model Q and the original reference model q are obtained by transforming the initial reference model, the topology of the target reference model and the original reference model are completely consistent. A one-to-one mapping can be formed between each point of the target reference model and each point of the original reference model. That is, for each point of the original reference model, there is a point in the target reference model that corresponds uniquely to it.

[0045] Based on this characteristic, such as Figure 5 As shown, for any point F on the original baseline model S The original clothing has a G-point. S Correspondingly, point F S and point G S There is a target location relationship T S Corresponding to the target baseline model and the target clothing, there exists a point F on the target baseline model. T Point F on the original benchmark model S Correspondingly, based on the same target position relationship T S This allows us to determine the point F on the target garment and the target reference model. T Corresponding point G T After determining all the points on the target garment, smooth the mesh of the target garment to obtain the target garment.

[0046] Compared with the prior art, in the garment construction method provided by the embodiment one of the present disclosure, the initialization reference model capable of free deformation is constructed, the shape and posture of the initialization reference model are adjusted based on the deformation function of the initialization reference model, the original reference model and the target reference model are formed, the shape and posture of the original reference model are the same as the shape and posture of the original model, so that each point on the original model can find the corresponding point on the original reference model, and the target position relationship between each point of the original garment and each point of the original reference model can be determined according to the position relationship between each point of the original garment and each point of the original model, since the original reference model and the target reference model are both obtained by deforming the initialization reference model, the original reference model and the target reference model still have the same structure, and each point of the target reference model corresponds to each point of the original reference model, so the position of each point of the target garment can be restored according to the position of each point of the target reference model and the target position relationship, the target garment is obtained by connecting each point of the target garment and performing smoothing processing, the target garment is constructed according to the original garment, the original model and the target model, independent garment modeling is not needed for each target model, and the garment modeling efficiency is greatly improved.

[0047] The embodiment two of the present disclosure provides a garment construction method, compared with the embodiment one, in the garment construction method provided by the embodiment two of the present disclosure, after the target garment is constructed, the corresponding target panel is obtained according to the target garment, and the specific steps are as shown in Figure 6 The embodiment two of the present disclosure provides a garment construction method, compared with the embodiment one, in the garment construction method provided by the embodiment two of the present disclosure, after the target garment is constructed, the corresponding target panel is obtained according to the target garment, and the specific steps are as shown in

[0048] Step S201: constructing an initialization reference model capable of free deformation.

[0049] Step S202: adjusting the shape and posture of the initialization reference model to obtain an original reference model and a target reference model.

[0050] Step S203: determining the target position relationship between each point of the original garment and each point of the original reference model according to the position relationship between each point of the original garment and each point of the original model.

[0051] Step S204: determining the position of each point of the target garment according to the position of each point of the target reference model and the target position relationship, and generating the target garment.

[0052] It can be understood that the steps S201 to S204 in the embodiment two are substantially the same as the steps S101 to S104 in the aforementioned embodiment one, and the specific description can be referred to the specific description in the aforementioned embodiment, which will not be repeated here.

[0053] Step S205: performing constraint operation on the target garment according to the preset constraint condition to obtain the target panel corresponding to the target garment.

[0054] Specifically, in this step, the constraint operation on the target garment according to the preset constraint condition can specifically be: establishing a constraint equation according to the preset constraint condition, and solving the target garment according to the constraint equation to obtain the target panel corresponding to the target garment under the preset constraint condition.

[0055] The preset constraint condition can specifically be one or more of the following: the angle and the length of the edge of any two corresponding triangles in the target panel and the target garment are the same, the length of any two corresponding line segments in the target panel and the target garment is the same, and the angle of any two corresponding angles in the target panel and the target garment is the same. When the preset constraint condition includes multiple constraint conditions, the constraint equation can be constructed according to the multiple constraint conditions, and the target garment can be solved multiple times to finally obtain the target panel corresponding to the target garment under the multiple constraint conditions.

[0056] Compared with the prior art, the garment construction method provided in Embodiment Two of the present disclosure retains all the technical features of Embodiment One, and therefore has the same technical effects as Embodiment One. In addition, the corresponding target panel is obtained according to the preset constraint condition and the target garment, so that independent panel drawing is not required for each target model, and the drawing efficiency of the panel is improved accordingly.

[0057] Embodiment Three of the present disclosure provides a garment construction method. Compared with Embodiment Two, in the garment construction method provided in Embodiment Three of the present disclosure, after the target panel is constructed, the migration of garment accessories is also performed according to the target panel. The specific steps are as shown in Figure 7 .

[0058] Step S301: constructing an initialization reference model that can freely deform.

[0059] Step S302: adjusting the shape and pose of the initialization reference model to obtain an original reference model and a target reference model.

[0060] Step S303: determining the target position relationship between each point of the original garment and each point of the original reference model according to the position relationship between each point of the original garment and each point of the original model.

[0061] Step S304: determining the position of each point of the target garment according to the position of each point of the target reference model and the target position relationship, and generating the target garment.

[0062] Step S305: performing a constraint operation on the target garment according to a preset constraint condition to obtain a target panel corresponding to the target garment.

[0063] It is understood that steps S301 to S305 in this second embodiment are largely the same as steps S201 to S205 in the first embodiment. For details, please refer to the specific descriptions in the previous embodiments, which will not be repeated here.

[0064] Step S306: Determine the relative positional relationship between the accessories on the original garment and the accessories on the original pattern piece, and determine the position of the accessories in the target pattern piece based on the relative positional relationship of the accessories and the target pattern piece.

[0065] Specifically, in this step, accessories refer to other fabric structures that are fixed or attached to the original garment, such as buttons, zippers, pockets, and artwork or patterns drawn on the original garment. After constructing the target garment and target pattern, the accessories on the original garment and original pattern can be transferred to the target garment and target pattern accordingly.

[0066] In different embodiments of this disclosure, the method for determining the relative positional relationship between the accessories on the original garment and the accessories on the original pattern sheet can vary. For example, in one embodiment of this disclosure, the relative positional relationship of the accessories can be the relative positional relationship between the center point of the accessories on the original garment and a fixed edge on the original pattern sheet. Alternatively, in another embodiment of this disclosure, the relative positional relationship of the accessories can also be the relative positional relationship between the accessories and the surrounding box of the original pattern sheet.

[0067] In an embodiment where the relative positional relationship of the auxiliary materials is the relative positional relationship between the auxiliary materials and the surrounding box of the original plate, determining the position of the auxiliary materials in the target plate can be specifically as follows: Figure 8 As shown, it includes the following steps:

[0068] Step S401: Construct a pre-defined bounding box for the original board based on the original board.

[0069] Specifically, such as Figure 9 As shown, taking a rectangle as an example, the original board bounding box B s Specifically, it can be the smallest rectangle surrounding the original plate. It is understood that the preset shape of rectangle is only an example in some embodiments of this disclosure and does not constitute a limitation. In some other embodiments of this disclosure, the preset shape can also be a circle, a square, or other shapes. It can be flexibly set according to the specific shape of the plate and actual needs.

[0070] Step S402: Determine the relative positional relationship between the auxiliary material and the original board sheet surrounding the box as the relative positional relationship of the auxiliary material.

[0071] Specifically, in this step, we will still take a rectangle as the preset shape as an example, such as... Figure 9 As shown, it is possible to calculate the value of any point on the auxiliary material relative to the original plate surrounding box B. s The lower left corner position scale (range 0-1) coordinate P (Px ,P y ) as the auxiliary material relative position relationship. It can be understood that the foregoing is only an example of the determination method of the auxiliary material relative position relationship in one specific embodiment of the present disclosure, and does not constitute a limitation. In some other embodiments of the present disclosure, any point on the auxiliary material can also be calculated relative to the right lower corner, center point, right upper corner, etc. of the original plate piece bounding box B s , and the position ratio (range 0-1) coordinate P(P x ,P y ) as the auxiliary material relative position relationship; or for a circular original plate piece bounding box, any point on the auxiliary material can be calculated relative to the center of the circular original plate piece bounding box, and the position ratio (range 0-1) coordinate P(P x ,P y ) as the auxiliary material relative position relationship, and the like. The specific settings can be made according to actual needs.

[0072] Step S403: Constructing a target plate piece bounding box of a preset shape according to the target plate piece.

[0073] Specifically, in this step, as shown in Figure 9 , the shape of the target plate piece bounding box B T is the same as that of the original plate piece bounding box B s .

[0074] Step S404: Determining the position of the auxiliary material in the target plate piece according to the auxiliary material relative position relationship and the target plate piece bounding box.

[0075] In this step, as shown in Figure 9 , the position of the auxiliary material in the target plate piece can be determined according to the position of the same reference in the auxiliary material relative position relationship and the target plate piece bounding box, for example, the position of the auxiliary material in the target plate piece is determined according to the left lower corner of the target plate piece bounding box and the auxiliary material relative position relationship P(P x ,P y ).

[0076] In the embodiments of the present disclosure, as shown in the method of Figure 8 , the shapes of the original plate piece bounding box and the target plate piece bounding box are both preset shapes, which can reduce the influence of the shape and size difference between the original plate piece and the target plate piece on the migration position of the auxiliary material.

[0077] Further, in some embodiments of the present disclosure, for patterned auxiliary materials, the size of the patterned auxiliary material can also be migrated. Specifically, the target size of the auxiliary material on the target garment can be determined according to the size ratio of the original plate piece bounding box and the target plate piece bounding box and the original size of the auxiliary material on the original garment. Similarly, taking the rectangular original plate piece bounding box and the target plate piece bounding box as an example, as shown in Figure 10 , for the patterned auxiliary material A, the original plate piece bounding box Bwidth B Sw and height B Sh , relative position relationship P(P x ,P y ) of the patterned accessory A in the original plate sheet, width W S and height H S of the patterned accessory A in the original plate sheet, bounding box B T of the target plate sheet, width B Tw and height B Th of the bounding box B x of the target plate sheet, calculating a new position of the patterned accessory A in the bounding box B y of the target plate sheet according to the relative position relationship P(P t ,P t ) of the patterned accessory A, width W S ×B Tw / B Sw and height H S ×B Th / B Sh of the patterned accessory A in the bounding box B of the target plate sheet.

[0078] In the embodiments of the present disclosure, for the patterned accessory, the accessory is resized according to the size ratio of the original plate sheet bounding box and the target plate sheet bounding box, so as to improve the fitting degree of the size of the accessory migrated to the target plate sheet and the size of the target plate sheet.

[0079] Compared with the prior art, the garment construction method provided in the third embodiment of the present disclosure retains all the technical features of the second embodiment, and therefore has the same technical effects as the second embodiment. In addition, the position of the accessory on the target plate sheet is determined according to the relative position relationship of the accessory and the original plate sheet, so as to realize automatic migration of the accessory and further improve the plate making efficiency of the target plate sheet.

[0080] The fourth embodiment of the present disclosure provides a garment construction device for constructing a target garment on a target model according to an original garment and an original model, as shown in Figure 11 The garment construction device comprises:

[0081] The initialization model construction module 501 is used to construct a freely deformable initialization benchmark model; the model fitting module 502 is used to adjust the shape and orientation of the initialization benchmark model to obtain the original benchmark model and the target benchmark model. The shape and orientation of the original benchmark model are the same as those of the original model, and the shape and orientation of the target benchmark model are the same as those of the target model; the model mapping module 503 is used to determine the target positional relationship between each point of the original garment and each point of the original benchmark model based on the positional relationship between each point of the original garment and each point of the original model; the garment construction module 504 is used to determine the position of each point of the target garment based on the position of each point of the target benchmark model and the target positional relationship, and generate the target garment. Each point of the target benchmark model corresponds one-to-one with each point of the original benchmark model.

[0082] Compared with the prior art, in the garment construction device provided in this embodiment, after the initialization model construction module 501 constructs a freely deformable initial reference model, the model fitting module 502 adjusts the shape and posture of the initial reference model based on the deformation function of the initial reference model to form the original reference model and the target reference model. Since the shape and posture of the original reference model are the same as those of the original model, for each point on the original model, a corresponding point can be found on the original reference model. Thus, the model mapping module 503 can determine the target points of each point in the original garment and each point in the original reference model based on the positional relationship between each point in the original garment and each point in the original model. Regarding positional relationships, since both the original and target baseline models are obtained by deforming the initial baseline model, their structural composition remains the same, and each point in the target baseline model corresponds one-to-one with each point in the original baseline model. Therefore, the clothing construction module 504 can restore the positions of each point on the original clothing based on the positions of each point in the target baseline model and the target positional relationship, thereby obtaining the positions of each point on the target clothing. Connecting the points of the target clothing and smoothing them will yield the target clothing. This allows for the construction of the target clothing based on the original clothing, the original model, and the target model, eliminating the need for independent clothing modeling for each target model and greatly improving clothing modeling efficiency.

[0083] Embodiment 5 of this disclosure relates to an electronic device, such as... Figure 12 As shown, it includes: at least one processor 601; and a memory 602 communicatively connected to at least one processor 601; wherein the memory 602 stores instructions executable by at least one processor 601, the instructions being executed by at least one processor 601 to enable at least one processor 601 to perform the methods in the above embodiments.

[0084] The memory and the processor are connected by a bus. The bus can include any number of interconnecting buses and bridges depending on the specific application of the mobile terminal. The bus connects the various circuits of the memory and the processor together and mediates data communication among different components. The bus can also connect with the peripheral devices such as the peripheral device, voltage stabilizer, and power management circuit, etc. which are well-known in the art, and thus, further description will not be given herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single component or multiple components such as a plurality of receivers and transmitters, which provides a unit for communicating with various other apparatuses on the transmission medium. The data processed by the processor is transmitted through the antenna on the wireless medium, and further, the antenna also receives data and transmits the data to the processor.

[0085] The processor is responsible for managing the bus and general processing, and can also provide various functions including timing, peripheral interface, voltage regulation, power management, and other control functions. The memory can be used to store data used by the processor during execution.

[0086] Embodiment six of the present disclosure relates to a computer readable storage medium storing a computer program. The computer program is executed by the processor to implement the above method embodiments.

[0087] That is, those skilled in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by a program instructing related hardware, the program is stored in a storage medium, and includes a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the various embodiments of the present disclosure. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage media that can store program codes.

[0088] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or replacements within the technical scope disclosed by the present disclosure can be easily conceived by those skilled in the art, and should be covered by the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims

1. A method for constructing clothing, characterized in that, A method for constructing a target garment on a target model based on the original garment and the original model, the garment construction method comprising: Construct a freely deformable initial baseline model; Adjust the shape and orientation of the initial reference model to obtain the original reference model and the target reference model. The shape and orientation of the original reference model are the same as those of the original model, and the shape and orientation of the target reference model are the same as those of the target model. Based on the positional relationship between each point of the original garment and each point of the original model, determine the target positional relationship between each point of the original garment and each point of the original reference model. Based on the positions of each point in the target reference model and the target position relationship, the positions of each point in the target garment are determined, and the target garment is generated. Each point in the target reference model corresponds one-to-one with each point in the original reference model.

2. The garment construction method according to claim 1, characterized in that, The garment construction method also includes: The target garment is subjected to constraint calculations based on preset constraints to obtain the target plate corresponding to the target garment.

3. The garment construction method according to claim 2, characterized in that, The preset constraints include one or more of the following: any two corresponding triangles in the target plate and the target garment have the same angle and side length; any two corresponding line segments in the target plate and the target garment have the same length; and any two corresponding included angles in the target plate and the target garment have the same angle.

4. The garment construction method according to claim 1, characterized in that, The garment construction method also includes: Determine the relative positional relationship between the accessories on the original garment and the accessories on the original pattern piece, and determine the position of the accessories in the target pattern piece based on the relative positional relationship of the accessories and the target pattern piece.

5. The garment construction method according to claim 4, characterized in that, Determining the relative positional relationship between the accessories on the original garment and the accessories on the original pattern piece, and determining the position of the accessories within the target pattern piece based on the relative positional relationship of the accessories and the target pattern piece, includes: Construct a pre-defined enclosure box for the original board based on the original board, and determine the relative positional relationship between the auxiliary material and the enclosure box as the relative positional relationship of the auxiliary material; Construct a target plate enclosure of the preset shape based on the target plate, and determine the position of the auxiliary material in the target plate based on the relative positional relationship of the auxiliary material and the target plate enclosure.

6. The garment construction method according to claim 5, characterized in that, The accessory is a patterned accessory, and the garment construction method further includes: Based on the size ratio of the original panel enclosure and the target panel enclosure and the original size of the accessory on the original garment, the target size of the accessory on the target garment is determined.

7. The garment construction method according to claim 1, characterized in that, The initialization reference model includes a surface polygonal mesh composed of multiple mesh elements. Adjusting the shape and orientation of the initialization reference model to obtain the original reference model and the target reference model includes: The position, shape, and size of each mesh unit are adjusted so that the shape and orientation of the surface polygon mesh are the same as those of the original model, thus obtaining the original reference model; The position, shape, and size of each mesh unit are adjusted so that the shape and orientation of the surface polygon mesh are the same as those of the target model, thus obtaining the target reference model.

8. A garment construction device, characterized in that, The garment construction apparatus is used to construct a target garment on a target model based on the original garment and the original model, the garment construction apparatus comprising: An initialization model building module is used to build a freely deformable initialization baseline model; The model fitting module is used to adjust the shape and orientation of the initial reference model to obtain the original reference model and the target reference model. The shape and orientation of the original reference model are the same as those of the original model, and the shape and orientation of the target reference model are the same as those of the target model. The model mapping module is used to determine the target positional relationship between each point of the original garment and each point of the original reference model based on the positional relationship between each point of the original garment and each point of the original model. The clothing construction module is used to determine the position of each point of the target clothing according to the position of each point in the target reference model and the target position relationship, and generate the target clothing. Each point in the target reference model corresponds one-to-one with each point in the original reference model.

9. An electronic device, characterized in that, include: At least one processor; And, a memory communicatively connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the garment construction method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, The computer program is executed by a processor to implement the garment construction method according to any one of claims 1 to 7.