CN112446960B - Three-dimensional human model deformation method, three-dimensional human model deformation device, electronic equipment and storage medium - Google Patents

Three-dimensional human model deformation method, three-dimensional human model deformation device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112446960B
CN112446960B CN202011461935.1A CN202011461935A CN112446960B CN 112446960 B CN112446960 B CN 112446960B CN 202011461935 A CN202011461935 A CN 202011461935A CN 112446960 B CN112446960 B CN 112446960B
Authority
CN
China
Prior art keywords
parameter
human body
human
dimensional
deformation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011461935.1A
Other languages
Chinese (zh)
Other versions
CN112446960A (en
Inventor
徐艳霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sheng Vision Technology Co ltd
Original Assignee
Beijing Sheng Vision Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sheng Vision Technology Co ltd filed Critical Beijing Sheng Vision Technology Co ltd
Priority to CN202011461935.1A priority Critical patent/CN112446960B/en
Publication of CN112446960A publication Critical patent/CN112446960A/en
Application granted granted Critical
Publication of CN112446960B publication Critical patent/CN112446960B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Abstract

The application provides a three-dimensional human model deformation method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a target value of a first human body parameter and a first deformation parameter of the current three-dimensional human body model; measuring a first human body parameter of the current three-dimensional human body model to obtain a measured value of the first human body parameter; judging whether the measured value of the first human body parameter is consistent with the target value of the first human body parameter; if not, based on a preset formula, determining a new first deformation parameter according to the measured value of the first human body parameter and the first deformation parameter of the current three-dimensional human body model, and deforming the three-dimensional human body model according to the new first deformation parameter until the measured value of the first human body parameter based on the deformed three-dimensional human body model is consistent with the target value of the first human body parameter, so as to improve the deformation accuracy of the three-dimensional human body model.

Description

Three-dimensional human model deformation method, three-dimensional human model deformation device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer vision, and in particular, to a three-dimensional mannequin deformation method, apparatus, electronic device, and storage medium.
Background
With the continuous development of computer technology, users can select clothes to be tried on through a virtual fitting room without going to an off-line store in person, and the intelligent terminal only needs to select the clothes to be tried on intelligent terminals such as mobile phones, tablet computers and the like, and the intelligent terminal can display the try-on effect on the three-dimensional human body model through the selected clothes. However, the different user sizes are quite different, and the same piece of clothing is worn on users of different sizes, so that the effect is quite different. The existing virtual fitting room can only provide limited three-dimensional human models with different body types for users to choose to try on, so that the problem that fitting requirements of users with different body types cannot be met is caused.
Disclosure of Invention
An object of the embodiments of the present application is to provide a three-dimensional mannequin deformation method, apparatus, electronic device and storage medium, which are used for solving the problem that fitting requirements of users with different body types cannot be met.
In a first aspect, an embodiment of the present invention provides a three-dimensional mannequin deformation method, including: acquiring a target value of a first human body parameter and a first deformation parameter of the current three-dimensional human body model; measuring a first human body parameter of the current three-dimensional human body model to obtain a measured value of the first human body parameter; judging whether the measured value of the first human body parameter is consistent with the target value of the first human body parameter; if not, based on a preset formula, determining a new first deformation parameter according to the measured value of the first human body parameter and the first deformation parameter of the current three-dimensional human body model, and deforming the three-dimensional human body model according to the new first deformation parameter until the measured value of the first human body parameter based on the deformed three-dimensional human body model is consistent with the target value of the first human body parameter.
When the three-dimensional human body model is deformed, whether the measured value of the first human body parameter is consistent with the target value of the first human body parameter is judged continuously, and then the first deformation parameter is adjusted continuously, so that the three-dimensional human body model after final deformation is consistent with the body shape of a user, and the accuracy of the deformation of the three-dimensional human body model is improved.
In an optional embodiment, the three-dimensional mannequin is provided with a plurality of grid vertices, the grid vertices are connected with each other to form a plurality of grid lines, and the measuring the first human parameter of the current three-dimensional mannequin to obtain the measured value of the first human parameter includes: marking measuring lines of the first human body parameters on the three-dimensional human body model, wherein the measuring lines intersect with the grid lines to form a plurality of intersecting points; determining coordinates of a plurality of intersecting points according to the grid vertexes; and calculating the length of the measuring line according to the coordinates of a plurality of intersecting points.
By marking the measuring line and calculating the length of the measuring line, the measured value of the first human parameter can be accurately obtained.
In an alternative embodiment, after the determining, based on the preset formula, a new first deformation parameter according to the target value of the first human body parameter, the measured value of the first human body parameter, and the first deformation parameter of the current three-dimensional human body model, the deforming the three-dimensional human body model according to the new first deformation parameter until the measured value of the first human body parameter based on the deformed three-dimensional human body model is consistent with the target value of the first human body parameter, the method further includes: acquiring a target value of a second human body parameter and a second deformation parameter of the current three-dimensional human body model; measuring a second human parameter of the current three-dimensional human model to obtain a measured value of the second human parameter; judging whether the measured value of the second human body parameter is consistent with the target value of the second human body parameter; if not, based on a preset formula, determining a new second deformation parameter according to the target value of the second human parameter, the measured value of the second human parameter and the second human parameter of the current three-dimensional human model, and deforming the three-dimensional human model according to the new second deformation parameter until the measured value of the second human parameter based on the deformed three-dimensional human model is consistent with the target value of the second human parameter.
In an alternative embodiment, before said obtaining the target value of the second body parameter and the second deformation parameter of the current three-dimensional body model, the method further comprises: and calculating the maximum value and the minimum value of the target value of the second human body parameter under the condition of the target value of the first human body parameter according to a preset fitting equation and the target value of the first human body parameter.
And calculating the maximum value and the minimum value of the target value of the second human body parameter under the condition of the target value of the first human body parameter through a preset fitting equation and the target value of the first human body parameter. The target value of the second human parameter is limited to prevent abnormal body shape.
In an alternative embodiment, the method further comprises: the method comprises the steps of constructing a preset human parameter table, wherein all human parameters are arranged in a preset sequence in the preset human parameter table, the first human parameter and the second human parameter are selected from the preset human parameter table, and the position of the first human parameter in the preset human parameter table is in front of the position of the second human parameter in the preset human parameter table.
By constructing the preset human body parameter table, when the three-dimensional human body model is deformed, the deformation is sequentially carried out according to the sequence of the preset human body parameter table, so that the accuracy of the deformation of the three-dimensional human body model is improved, and the mutual influence among all human body parameters is reduced.
In an alternative embodiment, before the obtaining the target value of the first human parameter and the current deformation parameter of the three-dimensional human model, the method further includes: and establishing the three-dimensional human body model according to the preset value of the human body parameter.
By establishing the three-dimensional human body model according to the preset value of the human body parameter, the body shape of the established three-dimensional human body model is close to the body shape of most users, and the three-dimensional human body model can be smoothly transited to two ends when being deformed, so that the deformation time is shortened, and the user experience is improved.
In an alternative embodiment, the determining, based on a preset formula, a new first deformation parameter according to the target value of the first human parameter, the measured value of the first human parameter, and the current first deformation parameter of the three-dimensional human model includes:
calculating a new first deformation parameter based on newdna= (1+ (target-current)/target) ×currentdna;
wherein currentDNA represents a first deformation parameter of the three-dimensional mannequin, target represents a target value of the first human parameter, current represents a measured value of the first human parameter, newDNA represents a new first deformation parameter.
In a second aspect, an embodiment of the present invention provides a three-dimensional manikin deforming device, the device including: the acquisition module is used for acquiring a target value of a first human body parameter and a first deformation parameter of the current three-dimensional human body model; the measuring module is used for measuring a first human body parameter of the current three-dimensional human body model and obtaining a measured value of the first human body parameter; the judging module is used for judging whether the measured value of the first human body parameter is consistent with the target value of the first human body parameter; and the deformation module is used for determining a new first deformation parameter according to the measured value of the first human body parameter and the current first deformation parameter of the three-dimensional human body model based on a preset formula when the measured value of the first human body parameter is judged to be inconsistent with the target value of the first human body parameter by the judgment module, and deforming the three-dimensional human body model according to the new first deformation parameter until the measured value of the first human body parameter based on the deformed three-dimensional human body model is consistent with the target value of the first human body parameter.
In an optional embodiment, the three-dimensional human body model is provided with a plurality of grid vertices, the grid vertices are connected with each other to form a plurality of grid lines, and the measurement module is used for marking measurement lines of the first human body parameters on the three-dimensional human body model, and the measurement lines intersect with the grid lines to form a plurality of intersecting points; determining coordinates of a plurality of intersecting points according to the grid vertexes; and calculating the length of the measuring line according to the coordinates of a plurality of intersecting points.
In an alternative embodiment, the obtaining module is configured to obtain a target value of a second human parameter and a second deformation parameter of the current three-dimensional human model; the measuring module is used for measuring a second human parameter of the current three-dimensional human model and obtaining a measured value of the second human parameter; the judging module is used for judging whether the measured value of the second human body parameter is consistent with the target value of the second human body parameter; the deformation module is configured to determine a new second deformation parameter according to the measured value of the second human parameter and a current second deformation parameter of the three-dimensional human model based on a preset formula when the determination module determines that the measured value of the second human parameter is inconsistent with the target value of the second human parameter, and deform the three-dimensional human model according to the new second deformation parameter until the measured value of the second human parameter based on the deformed three-dimensional human model is consistent with the target value of the second human parameter.
In an alternative embodiment, the apparatus further comprises a calculation module, configured to calculate, according to a preset fitting equation and the target value of the first human parameter, a maximum value and a minimum value of the target value of the second human parameter in the case of the target value of the first human parameter.
In an optional embodiment, the device further includes a construction module, configured to construct a preset body parameter table, where each body parameter in the preset body parameter table is arranged according to a preset sequence, the first body parameter and the second body parameter are selected from the preset body parameter table, and a position of the first body parameter in the preset body parameter table is in front of a position of the second body parameter in the preset body parameter table.
In an alternative embodiment, the device further comprises a building module for building the three-dimensional mannequin according to preset values of the parameters of the human body.
In an alternative embodiment, the deformation module is configured to calculate a new first deformation parameter based on newdna= (1+ (target-current)/target) ×currentdna; wherein currentDNA represents a first deformation parameter of the three-dimensional mannequin, target represents a target value of the first human parameter, current represents a measured value of the first human parameter, newDNA represents a new first deformation parameter.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory stores computer program instructions that, when read and executed by the processor, perform the steps of the method according to any of the preceding embodiments.
In a fourth aspect, embodiments of the present invention provide a storage medium having stored thereon computer program instructions which, when read and executed by a computer, perform the steps of the method according to any of the preceding embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a three-dimensional mannequin deformation method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of grid vertices, grid lines, and intersections provided in an embodiment of the present application;
FIG. 3 is a block diagram of a three-dimensional manikin deforming device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Icon: 300-a three-dimensional manikin deforming device; 301-an acquisition module; 302-a measurement module; 303-a judging module; 304-a deformation module; 305-a calculation module; 306-build module; 307-set up module; 400-an electronic device; 401-a processor; 402-memory.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
With the continuous development of computer technology, users can select clothes to be tried on through a virtual fitting room without going to an off-line store in person, and the intelligent terminal only needs to select the clothes to be tried on intelligent terminals such as mobile phones, tablet computers and the like, and the intelligent terminal can display the try-on effect on the three-dimensional human body model through the selected clothes. However, the different user sizes are quite different, and the same piece of clothing is worn on users of different sizes, so that the effect is quite different. The existing virtual fitting room can only provide limited three-dimensional human models with different body types for users to choose to try on, so that the problem that fitting requirements of users with different body types cannot be met is caused.
Based on the above, embodiments of the present invention provide a three-dimensional mannequin deforming method, apparatus, electronic device, and computer readable storage medium for solving the above problems.
When virtual fitting is performed, the clothes selected by the user can be displayed on the three-dimensional human body model, so that the user can watch the fitting effect. In order to meet fitting requirements of users of different sizes, body type data of the users can be acquired before fitting, including but not limited to height, arm length, shoulder width, chest circumference, arm circumference, leg length and the like. According to the body type data, the three-dimensional human body model is accurately deformed, so that the deformed three-dimensional human body model is consistent with the body type of a user, and then the user selects clothes to be tried on to be displayed on the three-dimensional human body model, so that fitting requirements of users with different body types are met.
The three-dimensional human model deformation method provided by the embodiment of the invention is described below:
referring to fig. 1, fig. 1 is a flowchart of a three-dimensional mannequin deformation method according to an embodiment of the present application, where the three-dimensional mannequin deformation method may include the following steps:
step S101: and acquiring a target value of the first human body parameter and a first deformation parameter of the current three-dimensional human body model.
Step S102: and measuring a first human body parameter of the current three-dimensional human body model to obtain a measured value of the first human body parameter.
Step S103: judging whether the measured value of the first human body parameter is consistent with the target value of the first human body parameter; if not, based on a preset formula, determining a new first deformation parameter according to the target value of the first human body parameter, the measured value of the first human body parameter and the first deformation parameter of the current three-dimensional human body model, and deforming the three-dimensional human body model according to the new first deformation parameter until the measured value of the first human body parameter based on the deformed three-dimensional human body model is consistent with the target value of the first human body parameter.
The above-described flow will be described in detail with reference to examples.
Step S101: and acquiring a target value of the first human body parameter and a first deformation parameter of the current three-dimensional human body model.
In the embodiment of the present application, in order to deform the three-dimensional mannequin, the parameters of the user's body need to be acquired. Wherein, the human body parameters may include: height, arm circumference, arm length, shoulder width, chest circumference, abdomen, waist circumference, leg spacing, hip circumference, thigh circumference, calf circumference, leg length. The application is not limited thereto, and the human body parameters may also include neck circumference, wrist circumference, etc. according to the type of clothing to be tried on.
It should be noted that, there may be various ways of obtaining the target value of the human parameter of the user, for example, the user manually inputs various human parameter values of the user, for example, the user inputs the human parameter values of 180cm in height and 80cm in shoulder width; or the intelligent tape measure is adopted to collect corresponding human parameter values, and the collected human parameters are directly input into the system, so the application is not limited to the method.
The target value of the first human parameter may be any one of the target values of the human parameters described above.
The deformation parameters are control parameters of the three-dimensional human model when the three-dimensional human model is deformed, and human parameter values of the three-dimensional human model are changed by changing the deformation parameters. It can be understood that the human body parameters are in one-to-one correspondence with the deformation parameters. When the human body parameter is height, a deformation parameter for changing the height is corresponding; when the human body parameter is the shoulder width, a deformation parameter for changing the shoulder width is corresponding. The first deformation parameter corresponds to a first human parameter.
For example, taking the example of adjusting the shoulder width, changing the shoulder width of the three-dimensional mannequin requires driving the left shoulder and the right shoulder of the three-dimensional mannequin to move in the z-axis direction for translation. The adjustment range is mapped to a value of 0 to 1, which is the first deformation parameter. The shoulder width is adjusted by the following formula:
ShoulderPosZ=(DNAshoulder-0.5)×factor
wherein;
ShoulderPosZ is the displacement of bone in the Z-axis direction.
Dnasholder is the first deformation parameter.
factor is the amplification factor.
The shoulder width of the three-dimensional manikin is adjusted by adjusting the first deformation parameters. The amplification factor is a constant value when the three-dimensional manikin is deformed, and is determined according to the range of the actual shoulder width adjustment. The shoulder width is adjustable in a larger range when the magnification is larger, and in a smaller range when the magnification is smaller.
Optionally, before step S101, the method further includes: and establishing a three-dimensional human body model according to the preset value of the human body parameter.
In the embodiment of the application, before the three-dimensional human model is deformed, a three-dimensional human model needs to be created. When the three-dimensional human body model is created, the minimum limit and the maximum limit of each human body parameter of a normal person can be considered, the minimum limit and the maximum limit are taken as intervals, and the average value of the minimum limit and the maximum limit is taken as a preset value of the human body parameter in the intervals to create the three-dimensional human body model.
For example, consider first the height and the maximum limit of fatness and thinness of a normal person, taking the value of the fatst, highest, thinnest and shortest person as the interval, and taking the average value in the interval to create a three-dimensional mannequin, so that when the three-dimensional mannequin is deformed, smooth transition can be made to two ends (the fatst, highest, thinnest and shortest).
By establishing the three-dimensional human body model according to the preset value of the human body parameter, the body shape of the established three-dimensional human body model is close to the body shape of most users, and the three-dimensional human body model can be smoothly transited to two ends when being deformed, so that the deformation time is shortened, and the user experience is improved.
Step S102: and measuring a first human body parameter of the current three-dimensional human body model to obtain a measured value of the first human body parameter.
In this embodiment of the present application, after obtaining the target value of the first human body parameter, the first human body parameter of the current three-dimensional human body model needs to be measured to determine the measured value of the first human body parameter (i.e., the actual value of the first human body parameter) of the current three-dimensional human body model.
Alternatively, the measured value of the first human parameter may be obtained by:
marking a measuring line of a first human body parameter on a three-dimensional human body model, wherein the measuring line and grid lines intersect to form a plurality of intersecting points;
secondly, determining coordinates of a plurality of intersecting points according to the grid vertexes;
and thirdly, calculating the length of the measuring line according to the coordinates of a plurality of intersecting points.
In this embodiment of the present application, a plurality of grid vertices are provided on the three-dimensional mannequin, and a plurality of grid vertices are connected to each other to form a plurality of grid lines. Wherein the coordinates of the respective mesh vertices have been determined at the time of creating the three-dimensional manikin.
In order to measure the dimensions of the relevant body part (i.e. the first body parameter) on the three-dimensional body model, a measurement line corresponding to the first body parameter needs to be marked on the three-dimensional body model.
It will be appreciated that if the measurement line is made up of exactly a plurality of network vertices, the length of the measurement line (i.e. the measured value of the first human parameter) may be obtained by calculating the distance between the network vertices based on the coordinates of the network vertices.
However, due to the irregular grid vertices of the three-dimensional mannequin, the measurement lines may not be entirely composed of grid vertices. At this time, the measuring line intersects the grid lines to form a plurality of intersecting points, the coordinates of the plurality of intersecting points need to be determined according to the coordinates of the grid vertices, and then the length of the measuring line is calculated according to the coordinates of the plurality of intersecting points.
Referring to fig. 2, fig. 2 is a schematic diagram of grid vertices, grid lines, and intersections according to an embodiment of the present application. As shown in FIG. 2, point A, B, C, D, E, F in the drawing represents the network vertices of the three-dimensional mannequin, and the measurement lines intersect the grid lines to form five points G, J, K, L, H.
Wherein, the coordinates of the G point can be expressed as:
G=A+AB×K G ,K G =AG/AB
wherein G represents the coordinates of the point G, A represents the coordinates of the point A, AB is the vector of the line segment AB, K G Is the ratio of the length of the line segment AG to the length of the line segment AB.
It should be noted that, when marking the measurement line, the point location G is determined according to the ratio of the length of the line segment AG to the length of the line segment ABIs arranged, thus K G Is a known value.
Similarly, the coordinate value of J, K, L, H can be obtained. The length of the measurement line is the sum of the distances of the line segments GJ, JK, KL, LH.
Step S103: judging whether the measured value of the first human body parameter is consistent with the target value of the first human body parameter; if not, based on a preset formula, determining a new first deformation parameter according to the target value of the first human body parameter, the measured value of the first human body parameter and the first deformation parameter of the current three-dimensional human body model, and deforming the three-dimensional human body model according to the new first deformation parameter until the measured value of the first human body parameter based on the deformed three-dimensional human body model is consistent with the target value of the first human body parameter.
In this embodiment of the present application, after obtaining the measured value of the first human body parameter and the target value of the first human body parameter, it is determined whether the measured value of the first human body parameter is consistent with the target value of the first human body parameter. If the values of the first parameter and the second parameter are consistent, the first parameter value of the three-dimensional human body model is consistent with the first human body parameter value of the user, and deformation of the first parameter of the three-dimensional human body model is not needed.
If the values of the two parameters are inconsistent, a new first deformation parameter is determined based on a preset formula, and the three-dimensional human model is deformed according to the new first deformation parameter.
And after the deformation is carried out according to the new first deformation parameters, the operation is circulated until the measured value of the first human body parameters based on the deformed three-dimensional human body model is consistent with the target value of the first human body parameters.
Alternatively, the preset formula may be:
newDNA=(1+(target-current)/target)×currentDNA
wherein currentDNA represents a first deformation parameter of the three-dimensional mannequin, target represents a target value of the first human parameter, current represents a measured value of the first human parameter, newDNA represents a new first deformation parameter.
Based on the above formula, the specific implementation manner of step S103 is as follows:
a new first deformation parameter (newDNA) is calculated from the target value (target) of the first human parameter and the measured value (current) of the first human parameter, and then the three-dimensional human model is deformed from the new first deformation parameter (newDNA). The specific modification modes are described in the description of the first modification parameters, and the same or similar parts can be referred to each other, so that the description is concise and will not be repeated herein.
After deformation according to the new first deformation parameter (newDNA) (it can be understood that newDNA becomes currentDNA at this time), the first human parameter of the current three-dimensional human model needs to be measured again, so as to obtain a measured value (current) of the deformed first human parameter (it can be understood that the measured value at this time is the new measured value after deformation). The measured value is then compared to a target value (target) of the first human parameter to determine if it is consistent. If the target value (target) of the first human body parameter is inconsistent with the target value (current), a new first deformation parameter (newDNA) is calculated according to the target value (target) of the current first human body parameter and the measured value (current) of the first human body parameter, and then deformation is carried out. And circulating in this way until the measured value of the first human body parameter based on the deformed three-dimensional human body model is consistent with the target value of the first human body parameter, and completing the deformation of the three-dimensional human body model.
When the three-dimensional human body model is deformed, whether the measured value of the first human body parameter is consistent with the target value of the first human body parameter is judged continuously, and then the first deformation parameter is adjusted continuously, so that the three-dimensional human body model after final deformation is consistent with the body shape of a user, and the accuracy of the deformation of the three-dimensional human body model is improved.
It can be understood that the three-dimensional human body model deformation process is to obtain each human body parameter, then deform each human body parameter, and when each human body parameter value accords with the target value of the human body parameter, the deformation is considered to be completed. For example, change height first, then change circumference, then change arm length, finally change leg length.
Therefore, after the first human parameter is deformed, the second human parameter needs to be deformed. The method further comprises the steps of:
the method comprises the steps of firstly, obtaining a target value of a second human body parameter and a second deformation parameter of a current three-dimensional human body model;
measuring a second human body parameter of the current three-dimensional human body model to obtain a measured value of the second human body parameter;
thirdly, judging whether the measured value of the second human body parameter is consistent with the target value of the second human body parameter;
and a fourth step of determining a new second deformation parameter according to the target value of the second human parameter, the measured value of the second human parameter and the second deformation parameter of the current three-dimensional human model based on a preset formula if not, and deforming the three-dimensional human model according to the new second deformation parameter until the measured value of the second human parameter based on the deformed three-dimensional human model is consistent with the target value of the second human parameter.
It will be appreciated that the deformation of the second body parameter is identical to the deformation of the first body parameter, and the same or similar parts can be referred to each other, so that the description is omitted for brevity.
Optionally, before acquiring the target value of the second human parameter and the second deformation parameter of the current three-dimensional human model, the method further comprises:
and calculating the maximum value and the minimum value of the target value of the second human body parameter under the condition of the target value of the first human body parameter according to a preset fitting equation and the target value of the first human body parameter.
In this embodiment, after the deformation of the first human body parameter is completed, before the subsequent deformation of the three-dimensional human body model, in order to prevent the abnormal body shape, the maximum value and the minimum value of the target value of the second human body parameter under the condition of the target value of the first human body parameter may be calculated through a preset fitting equation and the target value of the first human body parameter. Thereby defining a target value of the second body parameter.
For example, the first body parameter is the chest circumference and the second body parameter is the waist circumference. After the deformation is completed according to the target value of the first human parameter, the range of waistline is limited by the following curve fitting equation:
Y l =-0.001487x 2 +0.5998x+23.71
Y h =0.002106x 2 +0.5371x+29.79
wherein:
Y l is the minimum value of waistline, Y h Is the maximum waistline, and x is the chest circumference.
When the chest circumference is at 61, 83, 95, 126, the waist circumference minimum is 56, 58, 72, 75, and the maximum is 72, 82, 106, 130, respectively. In the actual use process, after the chest circumference is input by the user, if the input waistline value is not in the constraint range, the waistline value is considered to be the malformed waistline value, and a warning can be sent to the user to avoid the deformed three-dimensional human model to be the malformed body.
Further, the three-dimensional manikin is constructed from individual bones, and the three-dimensional manikin is deformed, i.e., the position and size of each bone are deformed. The same bone may affect multiple parameters of the body at the same time. In order to improve the accuracy of the deformation of the three-dimensional mannequin, the interaction between the deformation of the various mannequins is reduced, the method further comprises:
the method comprises the steps of constructing a preset human parameter table, wherein all human parameters are arranged according to a preset sequence in the preset human parameter table, the first human parameter and the second human parameter are selected from the preset human parameter table, and the position of the first human parameter in the preset human parameter table is in front of the position of the second human parameter in the preset human parameter table.
In this embodiment of the present application, the arrangement sequence of each human parameter in the preset human parameter table may be: height, arm circumference, arm length, shoulder width, chest circumference, abdomen, waist circumference, leg spacing, hip circumference, thigh circumference, calf circumference, leg length. When the three-dimensional human body model is deformed, the deformation can be sequentially performed according to the sequence, namely, the position of the first human body parameter in the preset human body parameter table is in front of the position of the second human body parameter in the preset human body parameter table.
By constructing the preset human body parameter table, when the three-dimensional human body model is deformed, the deformation is sequentially carried out according to the sequence of the preset human body parameter table, so that the accuracy of the deformation of the three-dimensional human body model is improved, and the mutual influence among all human body parameters is reduced.
Based on the same inventive concept, the embodiment of the application provides a three-dimensional human model deformation device. Referring to fig. 3, fig. 3 is a block diagram of a three-dimensional mannequin deforming apparatus according to an embodiment of the present invention, where the three-dimensional mannequin deforming apparatus 300 includes:
an obtaining module 301, configured to obtain a target value of a first human parameter and a first deformation parameter of the current three-dimensional human model;
a measurement module 302, configured to measure a first human parameter of the three-dimensional human model, and obtain a measured value of the first human parameter;
a judging module 303, configured to judge whether the measured value of the first human parameter is consistent with the target value of the first human parameter;
and the deformation module 304 is configured to determine a new first deformation parameter according to the measured value of the first human body parameter and the current first deformation parameter of the three-dimensional human body model based on a preset formula when the determination module determines that the measured value of the first human body parameter is inconsistent with the target value of the first human body parameter, and deform the three-dimensional human body model according to the new first deformation parameter until the measured value of the first human body parameter based on the deformed three-dimensional human body model is consistent with the target value of the first human body parameter.
In an alternative embodiment, the three-dimensional human body model is provided with a plurality of grid vertices, the grid vertices are connected with each other to form a plurality of grid lines, and the measurement module 302 is configured to mark a measurement line of the first human body parameter on the three-dimensional human body model, and the measurement line intersects with the grid lines to form a plurality of intersecting points; determining coordinates of a plurality of intersecting points according to the grid vertexes; and calculating the length of the measuring line according to the coordinates of a plurality of intersecting points.
In an alternative embodiment, the obtaining module 301 is configured to obtain a target value of a second human parameter and a second deformation parameter of the current three-dimensional human model; the measurement module 302 is configured to measure a second human parameter of the current three-dimensional human model, and obtain a measured value of the second human parameter; the judging module 303 is configured to judge whether the measured value of the second human parameter is consistent with the target value of the second human parameter; the deformation module 304 is configured to determine a new second deformation parameter according to the measured value of the second human parameter and a current second deformation parameter of the three-dimensional human model based on a preset formula when the determination module determines that the measured value of the second human parameter is inconsistent with the target value of the second human parameter, and deform the three-dimensional human model according to the new second deformation parameter until the measured value of the second human parameter based on the deformed three-dimensional human model is consistent with the target value of the second human parameter.
In an alternative embodiment, the apparatus further comprises a calculation module 305, configured to calculate, according to a preset fitting equation and the target value of the first human parameter, a maximum value and a minimum value of the target value of the second human parameter in the case of the target value of the first human parameter.
In an alternative embodiment, the apparatus further includes a construction module 306, configured to construct a preset body parameter table, where the body parameters are arranged in a preset order, the first body parameter and the second body parameter are selected from the preset body parameter table, and a position of the first body parameter in the preset body parameter table is in front of a position of the second body parameter in the preset body parameter table.
In an alternative embodiment, the apparatus further comprises a building module 307 for building the three-dimensional manikin according to preset values of the manikin parameters.
In an alternative embodiment, the deformation module 304 is configured to calculate a new first deformation parameter based on newdna= (1+ (target-current)/target) ×currentdna; wherein currentDNA represents a first deformation parameter of the three-dimensional mannequin, target represents a target value of the first human parameter, current represents a measured value of the first human parameter, newDNA represents a new first deformation parameter.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device 400 according to an embodiment of the present application, where the electronic device 400 may be a personal computer (personal computer, PC), a tablet computer, a smart phone, a personal digital assistant (personal digital assistant, PDA), or the like.
The electronic device 400 may include: a processor 401, a memory 402, and a communication bus for enabling the connection communication of these components.
The Memory 402 is used for storing various data such as computer program instructions corresponding to the three-dimensional mannequin deformation method provided in the embodiments of the present application, where the Memory 402 may be, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), and the like.
The processor 401 is configured to execute the steps of the manikin deformation method provided in the embodiment of the present application when reading and executing the computer program instructions stored in the memory.
The processor 401 may be an integrated circuit chip with signal processing capability. The processor 401 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Furthermore, the embodiment of the present application provides a storage medium, in which a computer program is stored, which when executed on a computer, causes the computer to perform the method provided in any one of the embodiments of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM) random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (8)

1. A method of deforming a three-dimensional manikin, comprising:
acquiring a target value of a first human body parameter and a first deformation parameter of the current three-dimensional human body model;
measuring a first human body parameter of the current three-dimensional human body model to obtain a measured value of the first human body parameter;
judging whether the measured value of the first human body parameter is consistent with the target value of the first human body parameter;
if not, based on a preset formula, determining a new first deformation parameter according to the measured value of the first human body parameter and the first deformation parameter of the current three-dimensional human body model, and deforming the three-dimensional human body model according to the new first deformation parameter until the measured value of the first human body parameter based on the deformed three-dimensional human body model is consistent with the target value of the first human body parameter;
calculating the maximum value and the minimum value of the target value of the second human body parameter under the condition of the target value of the first human body parameter according to a preset fitting equation and the target value of the first human body parameter;
the determining, based on a preset formula, a new first deformation parameter according to the target value of the first human parameter, the measured value of the first human parameter and the first deformation parameter of the current three-dimensional human model includes:
calculating a new first deformation parameter based on newdna= (1+ (target-current)/target) ×currentdna;
wherein currentDNA represents a first deformation parameter of the three-dimensional mannequin, target represents a target value of the first human parameter, current represents a measured value of the first human parameter, newDNA represents a new first deformation parameter.
2. The method according to claim 1, wherein the three-dimensional human model is provided with a plurality of grid vertices, the grid vertices are connected with each other to form a plurality of grid lines, the measuring a first human parameter of the current three-dimensional human model, and obtaining the measured value of the first human parameter includes:
marking measuring lines of the first human body parameters on the three-dimensional human body model, wherein the measuring lines intersect with the grid lines to form a plurality of intersecting points;
determining coordinates of a plurality of intersecting points according to the grid vertexes;
and calculating the length of the measuring line according to the coordinates of a plurality of intersecting points.
3. The method according to claim 1, wherein after calculating the maximum and minimum values of the target value of the second human parameter in the case of the target value of the first human parameter according to a preset fitting equation and the target value of the first human parameter, the method further comprises:
acquiring a target value of a second human body parameter and a second deformation parameter of the current three-dimensional human body model;
measuring a second human parameter of the current three-dimensional human model to obtain a measured value of the second human parameter;
judging whether the measured value of the second human body parameter is consistent with the target value of the second human body parameter;
if not, based on a preset formula, determining a new second deformation parameter according to the target value of the second human body parameter, the measured value of the second human body parameter and the second deformation parameter of the current three-dimensional human body model, and deforming the three-dimensional human body model according to the new second deformation parameter until the measured value of the second human body parameter based on the deformed three-dimensional human body model is consistent with the target value of the second human body parameter.
4. A method according to claim 3, characterized in that the method further comprises:
the method comprises the steps of constructing a preset human parameter table, wherein all human parameters are arranged in a preset sequence in the preset human parameter table, the first human parameter and the second human parameter are selected from the preset human parameter table, and the position of the first human parameter in the preset human parameter table is in front of the position of the second human parameter in the preset human parameter table.
5. The method of claim 1, wherein prior to the obtaining the target value of the first human parameter and the current deformation parameter of the three-dimensional human model, the method further comprises:
and establishing the three-dimensional human body model according to the preset value of the human body parameter.
6. A three-dimensional manikin deformation apparatus, the apparatus comprising:
the acquisition module is used for acquiring a target value of a first human body parameter and a first deformation parameter of the current three-dimensional human body model;
the measuring module is used for measuring a first human body parameter of the current three-dimensional human body model and obtaining a measured value of the first human body parameter;
the judging module is used for judging whether the measured value of the first human body parameter is consistent with the target value of the first human body parameter;
the deformation module is used for determining a new first deformation parameter according to the measured value of the first human body parameter and the first deformation parameter of the current three-dimensional human body model based on a preset formula when the measured value of the first human body parameter is judged to be inconsistent with the target value of the first human body parameter by the judgment module, and deforming the three-dimensional human body model according to the new first deformation parameter until the measured value of the first human body parameter based on the deformed three-dimensional human body model is consistent with the target value of the first human body parameter; calculating a new first deformation parameter based on newdna= (1+ (target-current)/target) ×currentdna; wherein currentDNA represents a first deformation parameter of the three-dimensional mannequin, target represents a target value of the first human parameter, current represents a measured value of the first human parameter, newDNA represents a new first deformation parameter;
and the calculation module is used for calculating the maximum value and the minimum value of the target value of the second human body parameter under the condition of the target value of the first human body parameter according to a preset fitting equation and the target value of the first human body parameter.
7. An electronic device comprising a memory and a processor, the memory having stored therein computer program instructions which, when read and executed by the processor, perform the steps of the method of any of claims 1-5.
8. A storage medium having stored thereon computer program instructions which, when read and executed by a computer, perform the steps of the method according to any of claims 1-5.
CN202011461935.1A 2020-12-09 2020-12-09 Three-dimensional human model deformation method, three-dimensional human model deformation device, electronic equipment and storage medium Active CN112446960B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011461935.1A CN112446960B (en) 2020-12-09 2020-12-09 Three-dimensional human model deformation method, three-dimensional human model deformation device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011461935.1A CN112446960B (en) 2020-12-09 2020-12-09 Three-dimensional human model deformation method, three-dimensional human model deformation device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112446960A CN112446960A (en) 2021-03-05
CN112446960B true CN112446960B (en) 2023-07-14

Family

ID=74740590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011461935.1A Active CN112446960B (en) 2020-12-09 2020-12-09 Three-dimensional human model deformation method, three-dimensional human model deformation device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112446960B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117523154B (en) * 2024-01-08 2024-03-19 天津市肿瘤医院(天津医科大学肿瘤医院) Human body three-dimensional model calibration method, system and storage medium based on sign data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5159361A (en) * 1989-03-09 1992-10-27 Par Technology Corporation Method and apparatus for obtaining the topography of an object
WO2013120851A1 (en) * 2012-02-13 2013-08-22 Mach-3D Sàrl Method for sharing emotions through the creation of three-dimensional avatars and their interaction through a cloud-based platform
CN103714221A (en) * 2014-01-08 2014-04-09 上海明穆电子科技有限公司 Method for adjusting deformation of three-dimensional human body by using human body morphological parameters
CN103810750A (en) * 2014-01-16 2014-05-21 北京航空航天大学 Human body section ring based parametric deformation method
CN106372344A (en) * 2016-09-05 2017-02-01 中山大学 Three-dimensional clothes transformation method based on feature size constrain and system thereof
CN106447713A (en) * 2016-08-31 2017-02-22 北京维盛视通科技有限公司 Automatic measurement method and device based on point cloud human body model

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10152827B2 (en) * 2014-08-22 2018-12-11 Htc Corporation Three-dimensional modeling method and electronic apparatus thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5159361A (en) * 1989-03-09 1992-10-27 Par Technology Corporation Method and apparatus for obtaining the topography of an object
WO2013120851A1 (en) * 2012-02-13 2013-08-22 Mach-3D Sàrl Method for sharing emotions through the creation of three-dimensional avatars and their interaction through a cloud-based platform
CN103714221A (en) * 2014-01-08 2014-04-09 上海明穆电子科技有限公司 Method for adjusting deformation of three-dimensional human body by using human body morphological parameters
CN103810750A (en) * 2014-01-16 2014-05-21 北京航空航天大学 Human body section ring based parametric deformation method
CN106447713A (en) * 2016-08-31 2017-02-22 北京维盛视通科技有限公司 Automatic measurement method and device based on point cloud human body model
CN106372344A (en) * 2016-09-05 2017-02-01 中山大学 Three-dimensional clothes transformation method based on feature size constrain and system thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Model-based 3D human shape estimation from silhouettes for virtual fitting;Shunta Saito等;Three-Dimensional Image Processing, Measurement (3DIPM), and Applications 2014;第9013卷;第1-11页 *
基于服装参数的虚拟服装试穿模拟;陈青青;;莆田学院学报(第02期);第54-58页 *

Also Published As

Publication number Publication date
CN112446960A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN107728790B (en) Screen display method and device, mobile terminal and storage medium
CN107274472A (en) A kind of method and apparatus of raising VR play frame rate
CN107480315B (en) Method and system for parametric template design
CN112446960B (en) Three-dimensional human model deformation method, three-dimensional human model deformation device, electronic equipment and storage medium
CN109389640A (en) Image processing method and device
CN110264574B (en) Virtual fitting method and device, intelligent terminal and storage medium
CN108805859A (en) A kind of image detecting method, image detection device and terminal device
TWI790369B (en) Dimensional system
CN110348936A (en) A kind of glasses recommended method, device, system and storage medium
CN106910180B (en) A kind of image quality measure method and device
CN105303192B (en) A kind of shape matching method and system based on mix description
KR20210084347A (en) Image processing method and apparatus, image processing apparatus and storage medium
US20220270387A1 (en) Modeling method and modeling device for human body model, electronic device, and storage medium
CN109785422A (en) The construction method and device of three-dimensional power grid scene
CN110652060A (en) Automatic code-placing method, system and terminal equipment
CN112801435B (en) Substation fireproof verification method and device, equipment and storage medium
KR20210004824A (en) Apparatus and method for measuring body size
CN108573218A (en) Human face data acquisition method and terminal device
CN115156087B (en) Denture sorting assisting method and device, computer equipment and readable storage medium
CN109685040B (en) Method and device for measuring body data and computer readable storage medium
CN116168034A (en) Method, device, equipment and storage medium for detecting defect of knitted fabric
CN110487194A (en) A kind of 3 D deformation optical measurement method and device based on single camera
CN109766464B (en) Method and device for generating body type sample database and computer readable storage medium
CN109753489B (en) Method and device for generating body type sample database and computer readable storage medium
CN114036721A (en) Method and device for constructing three-dimensional temperature cloud field of micro-module

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant