Disclosure of Invention
The invention aims to overcome the defects and shortcomings of the prior art and provides a clothing pressure measurement method and system based on a virtual human model.
The aim of the invention is achieved by the following technical scheme:
the invention provides a clothing pressure measurement method based on a virtual human model, which comprises the following steps:
constructing a virtual human model with the same size as the physical human model, and outputting a color chart of the virtual clothing compression condition;
processing the color map, and obtaining virtual clothing pressure values of specific parts according to the map mapping function;
obtaining a real clothing compression value of a physical mannequin;
carrying out correlation analysis on the real clothing pressure value and the virtual clothing pressure value and verifying that the real clothing pressure value and the virtual clothing pressure value are in a linear change relation;
carrying out regression analysis on the real clothing pressure value and the virtual clothing pressure value, and establishing a regression relation equation of the real clothing pressure value and the virtual clothing pressure value;
and obtaining the virtual clothing parameters and the virtual human model parameters to be detected, and outputting clothing pressure measurement values.
As an optimal technical scheme, the entity mannequin adopts an intelligent pressure test mannequin for real people or simulating the softness of human bodies.
As an preferable technical scheme, the real clothing pressure measurement part of the solid mannequin includes: lower abdomen, thigh root, crotch, thigh lower part, knee, ankle, hip.
As an optimal technical scheme, the method for acquiring the real clothing pressure value of the solid mannequin adopts an air bag type clothing pressure measurement method to acquire the real clothing pressure value of the solid mannequin, an air bag with the thickness smaller than 3mm is placed at a position to be measured, and the dynamic clothing pressure in the state of being assembled is measured through the resistance change of a semiconductor pressure sensor connected with the air bag.
As a preferred technical scheme, the method for performing the correlation analysis of the real clothing pressure value and the virtual clothing pressure value adopts any one or more of a rank correlation test, a KENDALL correlation test, a pearson correlation test or a typical correlation analysis method.
As an preferable technical scheme, the typical correlation analysis method correspondingly analyzes the measured values of each part of the real clothing pressure measurement and each part of the virtual human model.
As an optimal technical scheme, the method for analyzing the correlation between the real clothing pressure value and the virtual clothing pressure value and verifying the correlation between the real clothing pressure value and the virtual clothing pressure value is a linear change relation, and the specifically adopted analysis method is any one of a t-test method, an F-test method and a correlation coefficient test method.
As an preferable technical scheme, the establishing a regression relation equation of the real clothing pressure value and the virtual clothing pressure value specifically includes:
Y=μ(x)+ε
wherein x represents the independent variable virtual clothing pressure value, Y represents the dependent variable real clothing pressure value, epsilon is a random error, and is the sum of various factors which have influence on Y except the independent variable.
The invention also provides a clothing pressure measurement system based on the virtual human model, which is characterized by comprising:
the system comprises a virtual human model construction module, a color map processing module, a real clothing pressure value acquisition module, a correlation analysis and verification module, a regression analysis module and a clothing pressure measured value output module;
the virtual human model construction module is used for constructing a virtual human model with the same size as the physical human model and deriving a color chart of the virtual clothing compression condition;
the color map processing module is used for processing the color map and obtaining virtual clothing pressure values of specific parts according to the map mapping function;
the real clothing pressure value acquisition module is used for acquiring real clothing pressure values of the entity human model;
the correlation analysis and verification module is used for carrying out correlation analysis on the real clothing pressure value and the virtual clothing pressure value and verifying that the real clothing pressure value and the virtual clothing pressure value are in a linear change relation;
the regression analysis module is used for carrying out regression analysis on the real clothing pressure value and the virtual clothing pressure value, and establishing a regression relation equation of the real clothing pressure value and the virtual clothing pressure value;
the clothing pressure measured value output module is used for obtaining virtual clothing parameters to be detected and virtual human model parameters and outputting clothing pressure measured values.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. according to the invention, the fuzzy pressure distribution condition is quantized into the accurate numerical value applicable to industrial production design, and the test method has small calculated amount and low complexity.
2. According to the invention, by establishing the virtual human model, the clothing pressure corresponding to the clothing parameters can be measured without actually putting on or taking off the clothing, so that the detection efficiency is greatly improved.
Detailed Description
For a better understanding of the technical solution of the present invention, examples provided by the present invention are described in detail below with reference to the accompanying drawings, but embodiments of the present invention are not limited thereto.
Examples
As shown in fig. 1, the present embodiment provides a clothing pressure measurement method based on a virtual human model, which includes the following steps:
s1, constructing a virtual human model with the same size as the physical human model, and deriving a virtual clothing pressure condition color chart;
s2, processing the color map, and obtaining a virtual clothing pressure value of a specific part according to the map mapping function;
constructing a palette construction function in the palette class, and initializing two variables in the function, the two variables defining a foreground color and a background color of the palette;
grabbing numerical values: firstly, the different colors of the pictures are an image number formed by three groups of RGB (yellow, green and red) of colors represented by a computer, a mouse obtains a specific RGB value of the image number, then a virtual clothing pressure value which is closer to the real clothing pressure is calculated through the conversion of the RGB value and the virtual clothing pressure according to the proportion according to a virtual clothing pressure value (the value can be grabbed in a picture derived by a third-party program) corresponding to the RGB value defined by the pictures, and then the virtual clothing pressure value of a specific part is calculated through a formula Y=9.4024+4.4852X;
s3, obtaining a real clothing compression value of the entity human model;
the entity person model is a true person, and the measuring part comprises:
as shown in fig. 2 (a), the measuring site is front-side:
(1) lower abdomen: the lower abdomen is formed by fat accumulation in the abdomen, where the garment pressure is very important in relation to the comfort of the garment after wear. And the clothing is pressed greatly because the subcutaneous fat is thicker.
(2) Thigh root: here, the joint movement point, the combination of the characteristics of bones and factors such as muscle fat, determines that the point is a test point of the clothing pressure of the underwear.
(3) Crotch part: the clothing pressure in the crotch should be relatively large because of the large fat accumulation inside the thighs, and here the beginning of the separation of the legs of the pant, the size of the rail being the leg circumference and the dividing line of the free zone, so the clothing pressure here has a very important role in the study.
(4) Thigh: the quadriceps of the thigh here are developed muscles of the human body. Because the sample clothes for the test are close-fitting briefs, the trousers are tightly attached to the upper parts of thighs, so that the fruit abdomen at the thighs is relatively tight, and the clothes pressure can reach a great value at the positions.
(5) Thigh lower part: from the perceptual knowledge, it is found that the garment of the pants is pressed at a lower portion thereof gradually decreases.
(6) Knee: is the joint of thigh and shank.
(7) Ankle: this point is the reference point for measuring the pant length.
As shown in fig. 2 (b), the side of the measuring part is provided with test points along the side seam line of the trousers, and the positions of the test points correspond to the front test positions;
as shown in fig. 2 (c), the back of the measuring part is 2 to 7 points, and thepoints 2, 4, 5, 6 and 7 are corresponding to the front test points, and the test points are paved along the rear center line of the trousers;
buttocks convex points: the gluteus maximus is attached to the pelvic bone and fat forms a remarkable protruding part of the human body, which is a main reason that the female body shape is in an S shape, the clothing pressure plays a very important role in research, and the clothing pressure can reflect the fit degree of the trousers and also can indicate the comfort degree of the trousers;
the real clothing pressure value of the entity human model is obtained through an air bag type clothing pressure measuring method, an air bag with the thickness smaller than 3mm is placed at a position to be measured, the dynamic clothing pressure in the state of the clothing is measured through the resistance change of a semiconductor pressure sensor connected with the air bag, and an AMI3037 AMI7062 model is selected as an air bag type clothing pressure measuring instrument, and the technical indexes are as follows: sensor range: 0-35kPa, precision + -1.0 kPa, specification
Main unit measurement point: 10 points; measuring range is 0-34kPa; the output voltage is 0-3.4V; accuracy + -0.2-0.45 kPa;
the clothing pressures measured by the grey cloth body-attached trousers/relatively body-attached trousers and the transverse elastic cotton cloth body-attached trousers/body-attached trousers (negative loose quantity) are measured at each part for about 1 minute in the front middle, side seams and back middle, and the mode is the clothing pressure of a certain part, so that 80 real clothing pressure data can be obtained because the mode is the number with the highest occurrence frequency and can be represented at a certain part to a great extent.
Through the above measurement, a garment pressure value table of the front middle part of the gray fabric compared with the body-attached plate type is obtained, as shown in the following table 1:
table 1 white grey cloth is compared with the body-attached plate type front middle clothing compression value table unit: v (V)
The following table 2 is obtained from the data of table 1 by the following process:
(1) True clothing pressure mode: the clothing pressures measured by the front middle side seam, the rear middle side seam (the position corresponding to the buttock) and the positions of the white grey cloth body trousers/the relatively body trousers and the transverse elastic cotton cloth body trousers/the body trousers (negative loose quantity) are summarized for about 1 minute, and the clothing pressures of a certain position are determined to be taken by analyzing the parameters of the table, so that the mode is the number with the highest occurrence frequency, the clothing pressures of the certain position can be represented to a great extent, and 80 real clothing pressure data are obtained.
(2) Virtual garment press: and extracting the corresponding 80 virtual clothing pressure values by using clothing pressure data software.
(3) Unified unit: converting real clothing pressure units into units g/cm consistent with virtual clothing pressures2 . The unit conversion is performed according to the following formula.
True clothing pressure measured by instrument 10=true clothing pressure (unit kpa)
Real garment pressure (unit kpa) ·10·2=real garment pressure (unit g/cm)2 )
Table 2 white grey cloth is compared with the body-fitting plate type front middle clothing compression value conversion table unit: v (V)
The obtained real garment pressure and virtual garment pressure values are shown in table 3 below:
table 3 real garment pressure and virtual garment pressure value table
S4, analyzing the correlation between the real clothing pressure value and the virtual clothing pressure value and verifying that the real clothing pressure value and the virtual clothing pressure value are in a linear change relation;
in the embodiment, a pearson correlation test method is selected to be matched with a typical correlation analysis method to verify correlation so as to improve the test reliability;
s4.1, a Pelson correlation test method, wherein the calculation and the test of a correlation coefficient are carried out through a function cor.test (X, Y) function in R language, a real clothing pressure value X and a virtual clothing pressure value Y in a table 3 are input, and the correlation coefficient is output as 0.7912356; wherein the P value is also 2.2e-16< <0.05, rejecting the original assumption that the variable X is considered to be positively correlated with the variable Y, i.e. the real clothing pressure is positively correlated with the virtual clothing pressure, and from the interval point of view, the calculated interval is (0.69,0.86), and it can also be seen that X and Y are largely positively correlated.
S4.2, exemplary correlation analysis
(1) Principle of typical correlation analysis: the above analysis methods all consider real clothing pressure and virtual clothing pressure as two sets of data corresponding to each other one by one, and analyze the correlation of the two. Next, we sub-divide the two sets of data into six sets of data, two pairs (real and virtual pressure) according to heel, knee, above knee, mid thigh (crotch is not typically relevant due to missing data in lateral positions), mid thigh circumference, mid/mid front, six locations, and introduce new parameters for typical correlation analysis.
A typical correlation analysis (canonical correlation analysis) is a statistical method for analyzing the degree of correlation between two random variables, which effectively interprets the correlation between two random variables and another part of the variables. Taking this data as an example, the actual garment pressure at six positions of heel, knee, above knee, mid thigh, thigh circumference, front middle/rear middle garment pressure is (X)1 ,X2 ,...X6 ) The corresponding virtual garment pressure is (Y1 ,Y2 ,...Y6 )。
In general, it is assumed that there are two sets of random variables X1 ,X2 ,...X6 And Y1 ,Y2 ,...Yq Study of their correlation, when p=q=1, it is usually the correlation of two variables X and Y; when p > 1 and q > 1, a method similar to principal component analysis is used to find the linear combination U of the 1 st group variable and the linear combination V of the 2 nd group variable, namely
U=a1 X1 +a2 X2 +...+ap Xp ,
V=b1 Y1 +b2 Y2 +...+bq Yq ,
The correlation problem of the two variables is then transformed into a correlation problem of the two variables, and the corresponding coefficients a, b can be adjusted appropriately so that the correlation of the variables U and V is maximized, known as such a correlation canonical correlation, and an analysis method based on this principle is known as a canonical correlation analysis. In this example, p=6 and q=6, and the correlation problem of two groups of variables was converted into a correlation problem of two variables by using a typical correlation analysis method, and the number of samples was 12.
Let x= (X)1 ,X2 ,...,Xp )T ,Y=(Y1 ,Y2 ,...,Yq )T As a random vector, a linear combination a of X and Y is usedT X and bT Correlation between Y to study the correlation between X and Y and hope to find a and b, ρ (aT X,bT Y) is maximum.
By the definition of the correlation coefficient(s),
for any of α, β and c, d, there are
ρ(α(aT X)+β,c(bT Y)+d)=ρ(aT X,bT Y)。
The above description maximizes a of the correlation coefficientT X and bT Y is not unique. Thus, in integrating variables, one can define
var(aT X)=1,var(bT Y)=1
Let x= (X)
1 ,X
2 ,...,X
p )
T ,T=(Y
1 ,Y
2 ,...,Y
p )
T P+q-dimensional random vector
The mean value of (2) is 0 and the covariance matrix Σ is positive. If a is present
1 =(a
11 ,a
12 ,...,a
1p )
T And b
1 =(b
11 ,b
12 ,...,b
1q )
T Make->
Is a constraint problem
maxρ(aT X,bT Y)
s.t.var(aT X)=1
var(bT Y)=1
The maximum of the objective function, called,
the first pair (set) of typical variables (canomical variates) being X, Y, is called the correlation coefficient ρ (U)
1 ,V
1 ) Is a first typical correlation coefficient (canonical correlation).
If a is presentk =(ak1 ,ak2 ,...,akp )T And bk =(bk1 ,bk2 ,...,bkq )T Such that:
(a)
and k-1 above is not related to the typical variable;
(c)
and->
The correlation coefficient is the largest.
Then call for
The k-th pair (group) of typical variables of X, Y is called the correlation coefficient ρ (U)
k ,V
k ) For k (k=2, 3., min { p, q }) typical correlation coefficients.
(2) Typical correlation analysis of real and virtual garment pressure R software: the real garment pressure and the virtual garment pressure are analyzed for correlation using typical correlation coefficients, wherein the garment pressures are divided into 6 groups of heel, knee, upper knee, mid thigh, thigh circumference, front middle/rear middle for corresponding analysis. Specific programming languages and test results are shown in the appendix:
(3) Typical correlation analysis results of real and virtual garment pressure R software: where cor is a typical correlation coefficient, it is known that the typical correlation coefficient of real clothing pressure and virtual clothing pressure is 1, that is to say very typically correlated, xcoef is a coefficient corresponding to data X, also referred to as typical load (canonical loadings) for data X, that is to say the transpose of the coefficient matrix a of the sample typical variable U; ycoef is a coefficient corresponding to data Y, also referred to as a typical load for data Y, i.e. a transpose of the coefficient matrix B of sample typical variables V; the $ xcenter is the center of the data X, i.e. the sample mean of the data X
Ycenter is the center of data Y, i.e. the sample mean of data Y +.>
Since the data has been normalized, the sample mean calculated here is 0.
For real and virtual garment pressure data, the mathematical meaning corresponding to the calculation result is:
wherein the method comprises the steps of
i=1, 2,3 is normalized data, and the corresponding correlation coefficients are:
ρ(U1 ,V1 )=0.796,ρ(U2 ,V2 )=0.201,ρ(U3 ,V3 )=0.0726
it will be appreciated that the coefficients are not unique and may be any multiple of them.
The number of samples is calculated below based on the scores under the typical variables. Since u=ax, v=by, the R procedure for calculating the score is:
U<-as.matrix(test[,1:6])%*%ca$xcoef
>V<-as.matrix(test[,7:12])%*%ca$ycoef
the above formula is to calculate the number of samples according to the scores under the typical variables, and the embodiment draws the related variables U1 ,V1 And U3, V3 A data scatter plot of coordinates, as shown in fig. 3, the plot representing a first representative variable; as shown in fig. 4, a scatter plot of coordinates in the figure represents a third exemplary variable;
as can be seen from the two graphs, the first exemplary variable is that the points in the coordinate scatter diagram are all on a straight line (the corresponding cor exemplary correlation coefficient is 1.0000), while the third exemplary variable is that the points in the coordinate scatter diagram are relatively scattered (the corresponding cor exemplary correlation coefficient is 0.9608820), but are basically near a straight line, so that the exemplary correlation of the real and virtual clothing pressures can be more judged to be very remarkable.
The correlation between the values of the real clothing pressure and the virtual clothing pressure is checked by the method for checking the correlation to be consistent, which shows that the two values have very obvious correlation, so that the next operation can be performed, the two sets of numbers are linearly regressed, the linear relation between the two numbers is analyzed, a linear regression relation is obtained, and the obvious effect of the relation is checked.
The present embodiment verifies that the two are in a linear change relationship by a correlation coefficient test method:
s4.3, let beta1 Representing the rate of change of E (Y) with X in linear fashion, if beta1 E (Y) does not actually vary linearly with X, only when beta1 Not 0, E (Y) varies linearly with X, and only then does the unified linear regression equation make sense. Thus assume that test is
H0 :β1 =0,H1 :β1 ≠0
Recording device
Referring to R as a sample correlation coefficient, for a given significance level alpha, looking up a correlation coefficient threshold table to obtain R
α (n-2), the reject field of the test is
|R|>rα (n-2)
When rejecting H0 When linear regression equations are considered significant.
(2) Linear regression analysis of real and virtual garment pressure R software: the R software is used for analyzing the program language of the unitary linear regression relation between the real clothing pressure and the virtual clothing pressure and the result is shown in the annex.
(3) Linear regression analysis results of real and virtual garment pressure R software: the formula of the corresponding regression model is listed in the first part (call) of the calculation result: lm (formula=y to 1+x). The second step (residues:) lists the minimum point of the residual-28.954, 1/4 quantile-7.091, the number of bits 3.825, 3/4 quantile 3.825, and the maximum point 51.108.
In the third part of the calculation (coeffients:), estime represents the regression equation parameters, i.e
(standard deviation) means the standard deviation of regression parameters, i.e.>
value is the value of t, namely:
pr (> |t|) represents the P value, i.e., the probability value P { T > |T ]zhi I. There are significant labels, where "/indicates extremely significant,"/indicates highly significant, "/indicates less significant, and no label is given asIs not significant. The data test result shows that the data is very significant, namely the test shows that the regression relationship between the real clothing pressure and the virtual clothing pressure is significant.
In the fourth part of the calculation, residual standard error represents the standard deviation of the residual, i.e
The degree of freedom is n-2.Multiple R-Squared is the square of the correlation coefficient, i.e. +.>
The R-Squared test shows that the regression relationship between the real and virtual clothing pressures is obvious, and the correlation test is passed.
F-statics represents the F statistic, i.e. by correlation checking
The degree of freedom of the data in this paper is (1, 78), and the result obtained by F test is 130.2, namely
F≥F0.99 (1,78)
In the check rejection domain with the significance level of 99%, the check shows that the regression relationship between the real clothing pressure and the virtual clothing pressure is obvious.
The P-value is the value P, i.e. the probability value P { F > |Fzhi I, pass the correlation check. From the calculation results, it can be seen that the regression equation passes the inspection of the regression parameters and the inspection of the regression equation.
S5, carrying out regression analysis on the real clothing pressure value and the virtual clothing pressure value, establishing a regression relation equation of the real clothing pressure value and the virtual clothing pressure value, and writing the equation into software;
the equation for establishing the regression relation between the real clothing pressure value and the virtual clothing pressure value is as follows:
Y=μ(x)+ε
wherein x represents an independent variable virtual clothing pressure value; y represents the real clothing pressure value of the dependent variable; epsilon is a random error, which is the sum of various factors that have an influence on Y except for an independent variable; the regression equation is obtained after the real clothing pressure value and the virtual clothing pressure value are brought into Y=9.4024+4.4852X.
S6, importing the virtual clothing parameters to be detected and the virtual human model parameters to obtain clothing pressure measurement values.
The embodiment also provides a clothing pressure measurement system based on the virtual human model, which is based on 3DRaways software and comprises: the system comprises a virtual human model construction module, a color map processing module, a real clothing pressure value acquisition module, a correlation analysis and verification module, a regression analysis module and a clothing pressure measured value output module;
in this embodiment, the virtual mannequin construction module is configured to construct a virtual mannequin having the same size as the physical mannequin, and derive a color chart of the virtual clothing compression condition;
in this embodiment, the color map processing module is configured to process a color map, and obtain a virtual clothing pressure value of a specific location according to a map mapping function;
in this embodiment, the real clothing compression value obtaining module is configured to obtain a real clothing compression value of the physical mannequin;
in this embodiment, the correlation analysis and verification module is configured to perform correlation analysis on a real clothing pressure value and a virtual clothing pressure value and verify that the real clothing pressure value and the virtual clothing pressure value are in a linear change relationship;
in this embodiment, the regression analysis module is configured to perform regression analysis on the real clothing pressure value and the virtual clothing pressure value, and establish a regression relation equation between the real clothing pressure value and the virtual clothing pressure value;
in this embodiment, the clothing pressure measurement value output module is configured to obtain a virtual clothing parameter to be detected and a virtual human model parameter, and output a clothing pressure measurement value.
As shown in fig. 5, the virtual garment pressure module of 3 drawax shows the approximate distribution of garment pressures. The right side of the picture is provided with a scale which displays the range of the virtual clothing pressure (101.8 g/cm 2-0.3 g/cm 2), the scale is red to blue from top to bottom, and the red represents the maximum pressure (101.8 g/cm)2 ) The blue color represents the minimum pressure (-0.3 g/cm)2 ) The middle color is changed from red to blue, and the corresponding clothing pressure is from 101.8g/cm2 ~-0.3g/cm2 But not specifically. Virtual garment with virtual wearing back trousersThe pressing and the color of the ruler mark are in one-to-one correspondence.
Through testing of 10 pictures (including clothing pressure in different ranges of trousers, knitwear, evening wear, business wear and the like), the software processes the picture information, so that the accuracy of obtaining the virtual clothing pressure value reaches more than 95%, the sensitivity is very good, the requirement of extracting the virtual clothing pressure value can be met, and the software can be used for paper research and industrial production design. As shown in fig. 6, the virtual garment pressure display interface is shown, when The mouse is moved to The position where The garment pressure is required to be displayed, the virtual garment pressure specific value of The corresponding scale of The point is displayed in The pressure of The color dialog box, and as shown in fig. 7, the garment pressure value of The point is 48.34g/cm2 。
The embodiment quantifies the fuzzy pressure distribution condition into an accurate numerical value applicable to industrial production design based on the existing 3DRaways virtual clothing pressure module, and the testing method has small calculated amount and low complexity.
The above examples are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above examples, and any other changes, modifications, substitutions, combinations, and simplifications that do not depart from the spirit and principle of the present invention should be made in the equivalent manner, and the embodiments are included in the protection scope of the present invention.