A kind of method and system carrying out dress designing with body-sensing
Technical field
The invention belongs to Computer-aided Design Technology field, particularly relate to a kind of carry out dress designing with body-sensing
Method and system.
Background technique
At present in garment industry, there is Digital human model fitting mode, i.e. people are virtual by the manikin of oneself
Try-on garment, and according to fitting effects, it is determined whether purchase.It is click-through of setting out since most of dress designing is with standard figure
It is capable, and garment marketing in the market, due to the difference of human somatotype, often there is the model designed and human somatotype
Not the problem of not matching, or there is clothes dominant hue and the uncoordinated problem of human body complexion, thus generate following phenomenon:It designs
Satisfied sales volume is not achieved in clothes, and people but often can't buy oneself very fit clothes.Although Digital human model tries
Clothing can help people to select clothes, but customize the solution party of individual character body clothes according to Digital human model without providing
Case.Common dress designing is based on keyboard and mouse interacts design, and the software learning period is long, inconvenient to use.
Therefore, the present inventor needs to conceive a kind of new technology to improve its problem.
Summary of the invention
The present invention is intended to provide a kind of method and system for carrying out dress designing with body-sensing, can greatly simplify clothes and set
The period of meter improves custom made clothing efficiency.
In order to solve the above technical problems, the technical scheme is that:
A method of dress designing being carried out with body-sensing, is included the following steps:
S1:The gesture for identifying operator and its motion profile in real space, wherein the motion profile of the gesture
The position of shape and/or motion profile Chosen Point including motion profile.
S2:Gesture classification and its motion profile are parsed, corresponding operation order is obtained.
S3:According to operational order, the clothing information and real-time perfoming Three-dimensional Display in 3D manikin are edited.
S4:Repeat step S1 to S3 terminates up to editing, and saves edited clothing information.
Further, the step S2 is specifically included:
S21:According to the gesture shape made an appointment, gesture classification is determined.
S22:Quantification treatment is carried out to the motion profile of gesture, obtains trace information.
S23:Corresponding operation order is obtained according to real-time gesture classification and the trace information.
Further, further include:
S5:According to clothing information, clothes version type drawing is calculated and generates, wherein the clothes version type drawing is garment production
Entirety and component home drawing.
Further, the step S1 is specifically included:
S11:Obtain coordinate of all the points in operator's gesture in real space.
S12:By at least one point in gesture as measuring and calculating datum mark, by calculating the measuring and calculating datum mark in motion process
In each position coordinate, to identify motion profile.
Further, the clothing information includes apparel construction line and apparel construction point, and the apparel construction line is that can draw
The garment elements of apparel modeling variation, the general name for the line for outwardly and inwardly needing to suture are played, the apparel construction point is the clothes
The endpoint of assembling structure line.
A kind of system carrying out dress designing with body-sensing, including:
Identification module, the gesture of operator and its motion profile in real space for identification, wherein the gesture
Motion profile include the shape of motion profile and/or the position of motion profile Chosen Point.
Parsing module obtains corresponding operation order for parsing to gesture classification and its motion profile.
Editor module, for editing the clothing information in 3D manikin and real-time perfoming three-dimensional being aobvious according to operational order
Show.
Preserving module, for saving edited clothing information.
Further, the parsing module specifically includes:
Gesture resolution unit, for determining gesture classification according to the gesture shape made an appointment.
Track resolution unit carries out quantification treatment for the motion profile to gesture, obtains trace information.
Operational order map unit, for obtaining corresponding operation life according to real-time gesture classification and the trace information
It enables.
Further, further include:
Clothes version type drawing creation module, for calculating and generating clothes version type drawing according to clothing information, wherein described
Clothes version type drawing is the entirety and component home drawing of garment production.
Further, the identification module specifically includes:
Gesture identification unit, for obtaining coordinate of all the points in operator's gesture in real space.
Track identification unit, for regarding at least one point in gesture as measuring and calculating datum mark, by calculating the measuring and calculating base
On schedule during the motion in the coordinate of each position, to identify motion profile.
Further, the clothing information includes apparel construction line and apparel construction point, and the apparel construction line is that can draw
The garment elements of apparel modeling variation, the general name for the line for outwardly and inwardly needing to suture are played, the apparel construction point is the clothes
The endpoint of assembling structure line.
By adopting the above technical scheme, the present invention includes at least following beneficial effect:
The method and system of the present invention that dress designing is carried out with body-sensing is realized dress designing by body-sensing, is used
Arbitrarily modification takes information in the scene of family in the display device, and clothes version type drawing can be obtained by calculation.The present invention
The somatosensory operation system based on three-dimension gesture of design is detected using three-dimension gesture detection technique in three-dimensional space assistant and body
The various movements of body, to design three-dimension gesture and show the mapping between the apparel construction variation in equipment, it is therefore an objective to make
People executes various three-dimensional gesture actions in realistic space, and the 3D clothes of Three-dimensional Display then carry out corresponding change according to movement.
Its period that can greatly simplify dress designing improves custom made clothing efficiency.
Detailed description of the invention
Fig. 1 is the flow chart of the method for the present invention that dress designing is carried out with body-sensing;
Fig. 2 is the system structure diagram of the present invention that dress designing is carried out with body-sensing.
Specific embodiment
Present invention will be further explained below with reference to the attached drawings and examples.
Embodiment 1
As shown in Figure 1, including the following steps to meet a kind of method for carrying out dress designing with body-sensing of the present embodiment:
S1:The gesture for identifying operator and its motion profile in real space, wherein the motion profile of the gesture
The position of shape and/or motion profile Chosen Point including motion profile.
S2:Gesture classification and its motion profile are parsed, corresponding operation order is obtained.
S3:According to operational order, the clothing information and real-time perfoming Three-dimensional Display in 3D manikin are edited.
S4:Repeat step S1 to S3 terminates up to editing, and saves edited clothing information.Clothing information file is saved to arrive
Memory, or clothing information file is saved to hard disk.
Specifically, the step S1 includes:
S11:Obtain coordinate of all the points in operator's gesture in real space.
S12:By at least one point in gesture as measuring and calculating datum mark, by calculating the measuring and calculating datum mark in motion process
In each position coordinate, to identify motion profile.Such as using a finger finger tip as measuring and calculating datum mark, pass through survey
The measuring and calculating datum mark is calculated during the motion in the coordinate of each position, identifies motion profile.Above-mentioned measuring and calculating coordinate, can be with
Realize which is not described herein again based on stereovision technique.
Further, the step S2 is specifically included:
S21:According to the gesture shape made an appointment, gesture classification is determined.
S22:Quantification treatment is carried out to the motion profile of gesture, obtains trace information.
S23:Corresponding operation order is obtained according to real-time gesture classification and the trace information.
Such as:
Both hands centre of the palm position is measured, the connection both hands centre of the palm is straight line AB.
When straight line AB length end value and initial value difference be greater than preset threshold value, determine that the motion profile is double
Hand is separate.
When straight line AB length initial value and end value difference be greater than preset threshold value, determine that the motion profile is double
Hand is close.
When straight line AB central point moving distance be greater than preset threshold value, determine the motion profile be both hands translate.
The inclination angle between straight line AB and horizontal line is measured, when the difference of inclination angle initial value and end value is greater than preset threshold
Value determines the motion profile for both hands rotation.
Measuring the distance between thumb and index finger is x.
When x initial value is greater than preset threshold value, end value is less than preset threshold value, determines that the motion profile is index finger thumb
Refer to and mediates.
When x initial value is less than preset threshold value, end value is greater than preset threshold value, determines that the motion profile is index finger
Thumb is decontroled.
When x initial value is less than preset threshold value, end value is also to determine that the motion profile is less than preset threshold value
The dragging of index finger thumb.
Corresponding operational order specifically includes:
When the motion profile be both hands far from when, to display equipment in 3D manikin and clothes amplify, i.e.,
Vision zooms out, and field range becomes larger at this time, is applicable in observation overall condition.
When the motion profile be both hands close to when, to display equipment in 3D manikin and clothes reduce, i.e.,
Vision furthers, and field range becomes smaller at this time, is applicable in and observes some details.
When the motion profile is that both hands translate, according to the position of straight line AB central point to the 3D human body in display equipment
Model and clothes are translated, and the other parts of scene are observed suitable for user.
When the motion profile is that both hands rotate, according to the angle of straight line AB rotation to the 3D human mould in display equipment
Type and clothes are rotated, and are suitable for user in any angle and are observed jobbie.
When the motion profile is that index finger thumb is mediated, then clothing information is selected according to the position of index finger finger tip.It is described
Clothing information includes but is not limited to apparel construction line and apparel construction point, and the apparel construction line is that apparel modeling can be caused to change
Garment elements, the line for outwardly and inwardly needing to suture general name, the apparel construction point be the apparel construction line endpoint.
Specifically, index finger thumb mediates apparel construction point:Index finger thumb is mediated, nearest from index finger finger tip in the display device
System point it is chosen, and be highlighted in display equipment.
Index finger thumb drags apparel construction point:Hand is mobile in three-dimensional space, so that chosen system point is in display equipment
In it is mobile with position conveniently, also follow adjustment by the structure lines of endpoint of this system point.
Index finger thumb decontrols apparel construction point:After index finger thumb is decontroled, the change of system point is fixed, and system point is not
It highlights again.
Index finger thumb mediates apparel construction line:Index finger thumb is mediated, in the display device the knot nearest from index finger finger tip
Structure line is chosen, and is highlighted in display equipment.
Index finger thumb drags apparel construction line:Hand is mobile in three-dimensional space in hand so that chosen structure lines shape with
Position conveniently changes.
Index finger thumb decontrols apparel construction line:After index finger thumb is decontroled, the change of structure lines is fixed, and structure lines are not
It highlights again.
In the step S3:
When the gesture instruction amplification identified, 3D manikin and 3D clothes are amplified in the display device.
When the gesture instruction identified is reduced, 3D manikin and 3D clothes are reduced in the display device.
When the gesture instruction translation identified, according to straight line AB central point motion profile by 3D manikin and 3D clothes
It translates in the display device.
When the gesture instruction rotation identified, according to the inclination angle straight line AB by 3D manikin and 3D clothes in display equipment
Middle rotation.
Further, further include:
S5:According to clothing information, clothes version type drawing is calculated and generates, wherein the clothes version type drawing is garment production
Entirety and component home drawing.
It is further preferable that further including step S0 before step S1 described in the present embodiment:
S01:The body gesture for identifying client and its motion profile in real space.
S02:According to the body gesture of client, adjustment shows the posture of 3D manikin in equipment, for checking various bodies
The wears effect of clothes under body posture.
Then operator is modified accordingly according to wears effect, and real time inspection is modified during modification
The wears effect of clothes.It is more scientific and reasonable to guarantee to design with this, the workload of designer is reduced to a certain extent.
The present embodiment realizes dress designing by body-sensing, makes arbitrarily to modify clothes letter in the scene of user in the display device
Breath, and clothes version type drawing can be obtained by calculation.The present invention designs the somatosensory operation system based on three-dimension gesture, utilizes three
Gestures detection technology is tieed up, is detected in the various movements that three-dimensional space is set about with body, to design three-dimension gesture and display
The mapping between apparel construction variation in equipment, it is therefore an objective to it makes one to execute various three-dimensional gesture actions in realistic space, and
The 3D clothes of Three-dimensional Display then carry out corresponding change according to movement.Its period that can greatly simplify dress designing improves clothes
Customize efficiency.
Embodiment 2
As shown in Fig. 2, being specifically included to meet a kind of system for carrying out dress designing with body-sensing of the present embodiment:
Identification module, the gesture of operator and its motion profile in real space for identification, wherein the gesture
Motion profile include the shape of motion profile and/or the position of motion profile Chosen Point.
Parsing module obtains corresponding operation order for parsing to gesture classification and its motion profile.
Editor module, for editing the clothing information in 3D manikin and real-time perfoming three-dimensional being aobvious according to operational order
Show.
Preserving module, for saving edited clothing information.Clothing information file is saved to memory, or saves clothes letter
File is ceased to hard disk.
Further, the identification module specifically includes:
Gesture identification unit, for obtaining coordinate of all the points in operator's gesture in real space.
Track identification unit, for regarding at least one point in gesture as measuring and calculating datum mark, by calculating the measuring and calculating base
On schedule during the motion in the coordinate of each position, to identify motion profile.Such as using a finger finger tip as survey
It calculates datum mark and identifies motion profile by calculating the measuring and calculating datum mark during the motion in the coordinate of each position.It is above-mentioned
Calculate coordinate, can realize which is not described herein again based on stereovision technique.
Further, the parsing module specifically includes:
Gesture resolution unit, for determining gesture classification according to the gesture shape made an appointment.
Track resolution unit carries out quantification treatment for the motion profile to gesture, obtains trace information.
Operational order map unit, for obtaining corresponding operation life according to real-time gesture classification and the trace information
It enables.
Such as:
Both hands centre of the palm position is measured, the connection both hands centre of the palm is straight line AB.
When straight line AB length end value and initial value difference be greater than preset threshold value, determine that the motion profile is double
Hand is separate.
When straight line AB length initial value and end value difference be greater than preset threshold value, determine that the motion profile is double
Hand is close.
When straight line AB central point moving distance be greater than preset threshold value, determine the motion profile be both hands translate.
The inclination angle between straight line AB and horizontal line is measured, when the difference of inclination angle initial value and end value is greater than preset threshold
Value determines the motion profile for both hands rotation.
Measuring the distance between thumb and index finger is x.
When x initial value is greater than preset threshold value, end value is less than preset threshold value, determines that the motion profile is index finger thumb
Refer to and mediates.
When x initial value is less than preset threshold value, end value is greater than preset threshold value, determines that the motion profile is index finger
Thumb is decontroled.
When x initial value is less than preset threshold value, end value is also to determine that the motion profile is less than preset threshold value
The dragging of index finger thumb.
Corresponding operational order specifically includes:
When the motion profile be both hands far from when, to display equipment in 3D manikin and clothes amplify, i.e.,
Vision zooms out, and field range becomes larger at this time, is applicable in observation overall condition.
When the motion profile be both hands close to when, to display equipment in 3D manikin and clothes reduce, i.e.,
Vision furthers, and field range becomes smaller at this time, is applicable in and observes some details.
When the motion profile is that both hands translate, according to the position of straight line AB central point to the 3D human body in display equipment
Model and clothes are translated, and the other parts of scene are observed suitable for user.
When the motion profile is that both hands rotate, according to the angle of straight line AB rotation to the 3D human mould in display equipment
Type and clothes are rotated, and are suitable for user in any angle and are observed jobbie.
When the motion profile is that index finger thumb is mediated, then clothing information is selected according to the position of index finger finger tip.It is described
Clothing information includes but is not limited to apparel construction line and apparel construction point, and the apparel construction line is that apparel modeling can be caused to change
Garment elements, the line for outwardly and inwardly needing to suture general name, the apparel construction point be the apparel construction line endpoint.
Specifically, index finger thumb mediates apparel construction point:Index finger thumb is mediated, nearest from index finger finger tip in the display device
System point it is chosen, and be highlighted in display equipment.
Index finger thumb drags apparel construction point:Hand is mobile in three-dimensional space, so that chosen system point is in display equipment
In it is mobile with position conveniently, also follow adjustment by the structure lines of endpoint of this system point.
Index finger thumb decontrols apparel construction point:After index finger thumb is decontroled, the change of system point is fixed, and system point is not
It highlights again.
Index finger thumb mediates apparel construction line:Index finger thumb is mediated, in the display device the knot nearest from index finger finger tip
Structure line is chosen, and is highlighted in display equipment.
Index finger thumb drags apparel construction line:Hand is mobile in three-dimensional space in hand so that chosen structure lines shape with
Position conveniently changes.
Index finger thumb decontrols apparel construction line:After index finger thumb is decontroled, the change of structure lines is fixed, and structure lines are not
It highlights again.
In the editor module:
When the gesture instruction amplification identified, 3D manikin and 3D clothes are amplified in the display device.
When the gesture instruction identified is reduced, 3D manikin and 3D clothes are reduced in the display device.
When the gesture instruction translation identified, according to straight line AB central point motion profile by 3D manikin and 3D clothes
It translates in the display device.
When the gesture instruction rotation identified, according to the inclination angle straight line AB by 3D manikin and 3D clothes in display equipment
Middle rotation.
Preferably, the present embodiment further includes:
Clothes version type drawing creation module, for calculating and generating clothes version type drawing according to clothing information, wherein described
Clothes version type drawing is the entirety and component home drawing of garment production.
It is further preferable that the present embodiment further includes client identification module, specifically include:
Gesture recognition unit, for identification body gesture of client and its motion profile in real space.
Effect display unit, for the body gesture according to client, adjustment shows the posture of 3D manikin in equipment, uses
In the wears effect for checking clothes under various body gestures.
Then operator is modified according to wears effect accordingly in the display device, and during modification in real time
Check the wears effect of modified clothes.It is more scientific and reasonable to guarantee to design with this, designer is reduced to a certain extent
Workload.
The present embodiment realizes dress designing by body-sensing, makes arbitrarily to modify clothes letter in the scene of user in the display device
Breath, and clothes version type drawing can be obtained by calculation.The present invention designs the somatosensory operation system based on three-dimension gesture, utilizes three
Gestures detection technology is tieed up, is detected in the various movements that three-dimensional space is set about with body, to design three-dimension gesture and display
The mapping between apparel construction variation in equipment, it is therefore an objective to it makes one to execute various three-dimensional gesture actions in realistic space, and
The 3D clothes of Three-dimensional Display then carry out corresponding change according to movement.Its period that can greatly simplify dress designing improves clothes
Customize efficiency.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.