Disclosure of Invention
The invention provides a cloth distribution method, a cloth distribution system and a network side server based on human body three-dimensional data, which are used for solving the problems that in the prior art, a novice designer modifies clothing customization and clothing cloth cutting planning is easy to unreasonable.
The basic scheme of the invention is as follows: the cloth distribution method based on the three-dimensional data of the human body comprises the following steps:
acquiring a human body three-dimensional data set of a user and acquiring cloth performance;
obtaining the maximum motion amplitude of a user according to the three-dimensional human body data set;
calculating the minimum area of the extension area according to the cloth performance and the maximum motion amplitude of the user;
according to the minimum area of the extension area, adjusting a target style model selected by a user to obtain a customized clothing model;
substituting the cloth distribution scheme into the custom-made clothing model to obtain a corresponding cloth disassembly scheme.
The beneficial effects are that: in the scheme, the three-dimensional data of the human body of the user can be imported/input or can be acquired on site. The target style model is directionally changed according to the three-dimensional data of the human body of the user to obtain the customized clothing model, the customized clothing model simulates the effect of wearing the ready-made clothes on the user, the effect of wearing the modified target style clothing by the user is intuitively displayed in a simulation mode, and the design personnel can finely adjust the design again or the user can select the target style again. And (3) obtaining a cloth disassembling scheme according to the reverse pushing of the clothing model, and ensuring that cloth pieces disassembled by the cloth disassembling scheme can be sewn into finished customized clothing corresponding to the customized clothing model.
Therefore, the cloth distribution method of the scheme is friendly to novice designers, the novice designers collect three-dimensional data of human bodies and request clients to select target patterns of users, in the working process, the target patterns selected by the users can be adjusted through feedback of custom-made clothing models, the novice designers can directly check the effect of the target pattern models modified by the novice designers, the cloth distribution scheme is intuitive and effective, and the subsequent designers only need to plan, namely, how the target pattern models are sewn along the lines to obtain a plurality of cloth pieces, and then how the cloth pieces are cut from the cloth pieces corresponds to the cloth disassembly scheme.
Further, the acquiring a three-dimensional data set of the human body of the user specifically includes:
acquiring human body three-dimensional data of a user and corresponding acquisition time;
and screening out all the three-dimensional data of the human body, wherein the three-dimensional data of the human body are collected continuously for a preset time length, and the three-dimensional data are integrated into a three-dimensional data set of the human body.
Further, the obtaining the maximum motion amplitude of the user according to the three-dimensional data set of the human body specifically includes:
acquiring data changes of corresponding joint positions in the human body three-dimensional data set;
calculating the displacement of each joint position according to the data change of the joints;
taking the maximum value of the displacement amount of each joint position as the maximum displacement amount of each joint position; the maximum displacement of all joint positions of the user constitutes the maximum motion amplitude of the user.
Further, the calculating the minimum area of the extension area according to the cloth performance and the maximum movement amplitude of the user specifically includes:
calculating a motion space to be reserved according to the maximum motion amplitude of the user;
and calculating the minimum area of the extension area according to the movement space and the cloth performance, wherein the cloth performance comprises the elasticity coefficient of the cloth.
Further, according to the minimum area of the extension area, the target style model selected by the user is adjusted to obtain a custom-made clothing model, which specifically includes:
acquiring a target style model selected by a user and an adjustment rule corresponding to the target style model;
and according to the adjustment rule, adjusting the target style model by taking the minimum area of the extension area as a target, so as to obtain the customized clothing model.
Further, the custom-made garment model is obtained, specifically including:
and if the adjusted target model can meet the target, the adjusted target model is called a custom-made clothing model, and if the adjusted target model cannot meet the target, the alarm is given.
Further, substituting the cloth distribution scheme into the custom-made clothing model to obtain a corresponding cloth disassembly scheme, specifically including:
substituting a cloth distribution scheme into the custom-made clothing model, and fragmenting the custom-made clothing model into a plurality of target cloth pieces;
and (3) laying all the target cloth pieces on target cloth with preset specifications in a single and non-overlapping manner to obtain a cloth dismantling scheme.
Further, the step of laying all the target cloth pieces on target cloth of a preset specification in a single and non-overlapping manner to obtain a cloth dismantling scheme specifically comprises the following steps:
laying all target cloth pieces on target cloth with preset rules in a single and non-overlapping way to obtain a cloth dismantling area;
when the width of the cloth is a fixed value, calculating the distance between two ends of the cloth disassembling area, screening out the cloth disassembling area with the shortest distance, and taking the target cloth piece laying scheme corresponding to the cloth disassembling area as the cloth disassembling scheme.
The invention also provides a cloth distribution system based on three-dimensional data of human body, comprising:
the user data acquisition module is used for acquiring a human body three-dimensional data set of a user;
the cloth input module is used for acquiring cloth performance;
the first data processing module is used for obtaining the maximum motion amplitude of the user according to the three-dimensional human body data set of the human body sent by the user data acquisition module; calculating the minimum area of the extension area according to the maximum motion amplitude of the user and the cloth performance sent by the cloth input module;
the user selection module is used for selecting a target style model;
the second data processing module is used for adjusting the target style model selected by the user according to the minimum area of the extension area sent by the first data processing module to obtain a customized clothing model; substituting the cloth distribution scheme into the custom-made clothing model to obtain a corresponding cloth disassembly scheme.
The invention also provides a network side service end, which comprises: at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the human three-dimensional data-based cloth distribution methods described above.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the following detailed description of the embodiments of the present invention will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present invention, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the technical solutions claimed in the present application can be implemented without these technical details and with various changes and modifications based on the following embodiments.
First embodiment:
a first embodiment of the present invention provides a cloth distribution method based on three-dimensional data of a human body, including: acquiring a human body three-dimensional data set of a user and acquiring cloth performance; obtaining the maximum motion amplitude of a user according to the three-dimensional human body data set; calculating the minimum area of the extension area according to the cloth performance and the maximum motion amplitude of the user; according to the minimum area of the extension area, adjusting a target style model selected by a user to obtain a customized clothing model; substituting the cloth distribution scheme into the custom-made clothing model to obtain a corresponding cloth disassembly scheme.
The target style model is directionally changed according to the three-dimensional data of the human body of the user to obtain the customized clothing model, the customized clothing model simulates the effect of wearing the ready-made clothes on the user, the effect of wearing the modified target style clothing by the user is intuitively displayed in a simulation mode, and the design personnel can finely adjust the design again or the user can select the target style again. And (3) obtaining a cloth disassembling scheme according to the reverse pushing of the clothing model, and ensuring that cloth pieces disassembled by the cloth disassembling scheme can be sewn into finished customized clothing corresponding to the customized clothing model. In the working process, the target style selected by the user can be adjusted through the feedback of the custom-made clothing model, a novice designer can directly check the effect of the target style model modified by the novice designer, the method is visual and effective, a subsequent designer only needs to plan a cloth distribution scheme, namely, how the target style model is formed by stitching along the lines, a plurality of cloth pieces are obtained, and then how the cloth pieces are cut from the cloth, so that the cloth disassembly scheme corresponds.
The implementation details of the fabric distribution method of the three-dimensional human data of the present embodiment are specifically described below, and the following is only implementation details provided for facilitating understanding, but is not required to implement the present embodiment, and a specific flow of the present embodiment is shown in fig. 1, and the present embodiment is applied to a server side of a network side.
Step 101, acquiring a human body three-dimensional data set of a user and acquiring cloth performance.
Specifically, the acquiring the three-dimensional data set of the human body of the user specifically includes: acquiring human body three-dimensional data of a user and corresponding acquisition time; and screening out all the three-dimensional data of the human body, wherein the three-dimensional data of the human body are collected continuously for a preset time length, and the three-dimensional data are integrated into a three-dimensional data set of the human body. All the three-dimensional data of the human body in the time continuous to the preset time length are directly used as the three-dimensional data set of the human body in the step, the whole of the three-dimensional data of the human body collected during the movement of the user in a period of time is represented, and the motion amplitude required by the user can be calculated subsequently.
The human body three-dimensional data in the human body three-dimensional data set can be manually input by a designer, can be directly collected by a user, can be directly imported after being directly connected with a network communication, and has various sources. Similarly, the cloth properties may be entered directly by the user, entered by the designer, downloaded from a network of communication connections, etc. The three-dimensional data of the human body in the three-dimensional data set of the human body comprises data acquired by each sensing acquisition point and corresponding time, and the cloth performance comprises cloth materials, elasticity of the cloth and the like.
Step 102, obtaining the maximum motion amplitude of the user according to the three-dimensional human body data set.
Specifically, the implementation of step 102 includes the steps of: acquiring data changes of corresponding joint positions in the human body three-dimensional data set; calculating the displacement of each joint position according to the data change of the joints; taking the maximum value of the displacement amount of each joint position as the maximum displacement amount of each joint position; the maximum displacement of all joint positions of the user constitutes the maximum motion amplitude of the user.
The three-dimensional data of the human body comprises data of a plurality of data acquisition points of the user and time acquired by the data acquisition points, the joint positions can be represented by a preset area range, and the data change corresponding to the joint positions is that all the three-dimensional data of the human body are screened, and the data in the preset area range (the joint positions) and the time corresponding to the data are left. And setting the maximum displacement of the joints according to the maximum difference value of the screened corresponding data, wherein the 'maximum displacement' refers to the maximum difference value of the data of each data acquisition point in the joint position within a preset time period (the same as the preset time period in the step 101), and the data acquisition point in each joint position corresponds to one maximum displacement.
And 103, calculating the minimum area of the extension area according to the cloth performance and the maximum motion amplitude of the user.
Specifically, the implementation of step 103 includes the steps of: calculating a motion space to be reserved according to the maximum motion amplitude of the user; and calculating the minimum area of the extension area according to the movement space and the cloth performance, wherein the cloth performance comprises the elasticity coefficient of the cloth.
And 104, adjusting a target style model selected by a user according to the minimum area of the extension area to obtain a custom-made clothing model.
Specifically, the implementation of step 104 includes the steps of: acquiring a target style model selected by a user and an adjustment rule corresponding to the target style model; and according to the adjustment rule, adjusting the target style model by taking the minimum area of the extension area as a target, so as to obtain the customized clothing model. Wherein, obtain the custom-made clothing model, specifically include: and if the adjusted target model can meet the target, the adjusted target model is called a custom-made clothing model, and if the adjusted target model cannot meet the target, the alarm is given.
The adjustment rules are corresponding to the target style, and the adjustment rules corresponding to different styles are also different, and mainly represent the modification rules of the regions allowed to be modified under the condition of not damaging the original version and design concept. The adjustment rules are typically preset, corresponding to the garment style, and do not allow modification by the user and subsequent users.
In the scheme, the fact that the requirement that the minimum area of the extension area is the target corresponding to the motion amplitude of the user is difficult to achieve is considered that the style of part of clothing is limited by the adjustment rule, and at the moment, the alarm is directly given, so that the user is prompted to reselect the target style. The method and the device avoid the waste behavior of the user, which is abandoned by the user, because the user can not meet the movement requirement of the user after the fine adjustment modification of the style selected by the user is performed, and are convenient for a designer (subsequent user) to judge whether the target style selected by the user is feasible or not.
And 105, substituting the cloth distribution scheme into the custom-made clothing model to obtain a corresponding cloth dismantling scheme.
Specifically, substituting a cloth distribution scheme into the custom-made garment model, and fragmenting the custom-made garment model into a plurality of target cloth pieces; and (3) laying all the target cloth pieces on target cloth with preset specifications in a single and non-overlapping manner to obtain a cloth dismantling scheme.
In the scheme, according to the custom-made garment model and the cloth distribution scheme for disassembling the custom-made garment model into a plurality of cloth pieces, the cloth disassembly scheme for the process of cutting the cloth into the cloth pieces is reversely pushed out. It is convenient to know how novice designers cut the cloth to obtain the cloth pieces and how to assemble the cloth pieces to obtain the entity of the custom-made clothing model.
The cloth distribution scheme is input by a designer, can be selected from the existing cloth distribution scheme by the designer, and can be a preset non-changeable rule. The essence of the cloth distribution scheme is: rules for dismantling custom-made garment models. Associated with the cloth dispensing scheme is how the sewing threads in the custom-made garment model are formed. The cloth disassembly scheme is how to cut out pieces of cloth from the cloth that meet the requirements of custom-made garment models. Because a large amount of waste materials can appear in the process of cutting cloth pieces from cloth, how to reduce the generation of the waste materials as much as possible and improve the utilization rate of the cloth is also a concern for many people.
Wherein, lay all target cloth pieces on the target cloth of preset specification singly non-overlapping, obtain the cloth and disassemble the scheme, specifically include: laying all target cloth pieces on target cloth with preset rules in a single and non-overlapping way to obtain a cloth dismantling area; when the width of the cloth is a fixed value, calculating the distance between two ends of the cloth disassembling area, screening out the cloth disassembling area with the shortest distance, and taking the target cloth piece laying scheme corresponding to the cloth disassembling area as the cloth disassembling scheme. The width of the cloth (cloth) is usually fixed, and the scheme is essentially to screen out a cloth distribution scheme (cloth cutting scheme) which is the most economical of cloth.
The above steps of the methods are divided, for clarity of description, and may be combined into one step or split into multiple steps when implemented, so long as they include the same logic relationship, and they are all within the protection scope of this patent; it is within the scope of this patent to add insignificant modifications to the algorithm or flow or introduce insignificant designs, but not to alter the core design of its algorithm and flow.
Second embodiment:
a second embodiment of the present invention provides a cloth dispensing system based on three-dimensional data of a human body, as shown in fig. 2, including:
the user data acquisition module 201 is used for acquiring a human body three-dimensional data set of a user;
the cloth input module 202 is used for acquiring cloth performance;
the first data processing module 203 is configured to obtain a maximum motion amplitude of the user according to the three-dimensional human body data set of the human body sent by the user data acquisition module 201; calculating the minimum area of the extension area according to the maximum motion amplitude of the user and the cloth performance sent by the cloth input module;
a user selection module 204 for selecting a target style model;
a cloth distribution input module 205 for inputting a cloth distribution scheme;
the second data processing module 206 is configured to adjust the target style model sent by the user selection module 204 according to the minimum area of the extension area sent by the first data processing module 203, so as to obtain a custom-made garment model; substituting the cloth distribution scheme sent by the cloth distribution input module 205 into the custom-made clothing model to obtain a corresponding cloth disassembly scheme;
the output module 207 is configured to output the fabric disassembling scheme sent by the second processing module 206.
Further, the third processing module 206 substitutes the cloth distribution scheme sent by the cloth distribution input module 205 into the custom-made garment model to obtain a corresponding cloth disassembly scheme, specifically: substituting the cloth distribution scheme sent by the cloth distribution input module 205 into the custom-made clothing model, and fragmenting the custom-made clothing model into a plurality of target cloth pieces; and (3) laying all the target cloth pieces on target cloth with preset specifications in a single and non-overlapping manner to obtain a cloth dismantling scheme.
Further, the third processing module 206 lays all the target cloth pieces on the target cloth with a preset rule in a single and non-overlapping manner to obtain a cloth disassembling area; when the width of the cloth is a fixed value, calculating the distance between two ends of the cloth disassembling area, screening out the cloth disassembling area with the shortest distance, and taking the target cloth piece laying scheme corresponding to the cloth disassembling area as the cloth disassembling scheme.
It is to be noted that this embodiment is a system example corresponding to the first embodiment, and can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and in order to reduce repetition, a detailed description is omitted here. Accordingly, the related art details mentioned in the present embodiment can also be applied to the first embodiment.
Each module in the present embodiment is a logic module, and in practical application, one logic unit may be one physical unit, or may be a part of one physical unit, or may be implemented by a combination of a plurality of physical units. In addition, in order to highlight the innovative part of the present invention, units that are not so close to solving the technical problem presented by the present invention are not introduced in the present embodiment, but this does not indicate that other units are not present in the present embodiment.
Third embodiment:
the fourth embodiment of the present invention relates to a network server, as shown in fig. 3, including at least one processor 301; and a memory 302 communicatively coupled to the at least one processor 301; the memory 302 stores instructions executable by the at least one processor 301, and the instructions are executed by the at least one processor 301, so that the at least one processor 301 can execute the cloth distribution method based on the three-dimensional data of the human body.
Where the memory 302 and the processor 301 are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors 301 and the memory 302 together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 301 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 301.
The processor 301 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 302 may be used to store data used by processor 301 in performing operations.
The foregoing is merely an embodiment of the present invention, and a specific structure and characteristics of common knowledge in the art, which are well known in the scheme, are not described herein, so that a person of ordinary skill in the art knows all the prior art in the application day or before the priority date of the present invention, and can know all the prior art in the field, and have the capability of applying the conventional experimental means before the date, so that a person of ordinary skill in the art can complete and implement the present embodiment in combination with his own capability in the light of the present application, and some typical known structures or known methods should not be an obstacle for a person of ordinary skill in the art to implement the present application. It should be noted that modifications and improvements can be made by those skilled in the art without departing from the structure of the present invention, and these should also be considered as the scope of the present invention, which does not affect the effect of the implementation of the present invention and the utility of the patent. The protection scope of the present application shall be subject to the content of the claims, and the description of the specific embodiments and the like in the specification can be used for explaining the content of the claims.