CN112417739A - Electronic garment tightness detection method and device, storage medium and electronic equipment - Google Patents

Electronic garment tightness detection method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112417739A
CN112417739A CN202011461885.7A CN202011461885A CN112417739A CN 112417739 A CN112417739 A CN 112417739A CN 202011461885 A CN202011461885 A CN 202011461885A CN 112417739 A CN112417739 A CN 112417739A
Authority
CN
China
Prior art keywords
unit
clothing
garment
electronic
coefficient
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.)
Granted
Application number
CN202011461885.7A
Other languages
Chinese (zh)
Other versions
CN112417739B (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 CN202011461885.7A priority Critical patent/CN112417739B/en
Publication of CN112417739A publication Critical patent/CN112417739A/en
Application granted granted Critical
Publication of CN112417739B publication Critical patent/CN112417739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
    • 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
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application provides a method and a device for detecting tightness of electronic clothes, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring a unit change coefficient of each garment-making unit after the electronic garment is simulated on the human body model, wherein the unit change coefficient reflects the deformation degree of the corresponding garment-making unit; and determining corresponding display parameters according to the unit variation coefficients of each clothing unit, and displaying the electronic clothing simulated on the human body model based on the display parameters, wherein the display parameters are used for representing the tightness of the electronic clothing simulated on the human body model. Therefore, the tightness degree of the electronic garment simulation on each part of the human body model can be accurately reflected, the tightness degree of the electronic garment simulation on each part of the human body model can be visually displayed, the electronic garment simulation is convenient for a user to observe, the size improvement of the electronic garment is facilitated, and the nuance of the electronic garment simulation on the human body model with different sizes can be reflected.

Description

Electronic garment tightness detection method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of electronic garment simulation, in particular to a method and a device for detecting tightness of electronic garments, a storage medium and electronic equipment.
Background
In three-dimensional garment simulation, the effect of a garment on a mannequin can be visually seen. However, the tightness of the garment on the mannequin is difficult to visually discern. The tightness of the clothes can be judged only according to some expressions, such as the length of sleeves, the size of clothes and the like, and the improvement of the size of the clothes is not facilitated.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for detecting tightness of an electronic garment, a storage medium, and an electronic device, so as to visually display the tightness of the electronic garment worn on a human body model, so as to facilitate the size improvement of the electronic garment.
In order to achieve the above object, embodiments of the present application are implemented as follows:
in a first aspect, an embodiment of the present application provides a method for detecting tightness of an electronic garment, where the method includes: acquiring a unit change coefficient of each garment-making unit after the electronic garment is simulated on the human body model, wherein the unit change coefficient reflects the deformation degree of the corresponding garment-making unit; and determining corresponding display parameters according to the unit variation coefficients of each clothing unit, and displaying the electronic clothing simulated on the human body model based on the display parameters, wherein the display parameters are used for representing the tightness of the electronic clothing simulated on the human body model.
In the embodiment of the application, the corresponding display parameters are determined by obtaining the unit variation coefficient of each clothing unit after the electronic clothing is simulated on the human body model, and the electronic clothing is displayed based on the display parameters. The unit change coefficient of each clothing unit after the electronic clothing simulation is carried out on the human body model can accurately represent the tightness degree of each part after the electronic clothing simulation is carried out on the human body model. And the display parameters determined based on the unit change coefficients can intuitively display the tightness degree of each part of the electronic garment after the electronic garment is simulated on the human body model, so that the electronic garment is convenient for a user to observe, and is beneficial to improving the size of the electronic garment and embodying the nuances of the electronic garment with different sizes simulated on the human body model. In addition, the method can realize accurate display of the tightness degree of the electronic clothes without consuming too much computing resources, and is real-time and efficient.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the obtaining unit variation coefficients of each clothing unit after the electronic garment is simulated on the human body model includes: acquiring a reference vertex coordinate and a current vertex coordinate of each garment-making unit, wherein the reference vertex coordinate represents a vertex coordinate of the garment-making unit after patterning and before sewing, the current vertex coordinate represents a vertex coordinate of the garment-making unit after sewing, the patterning represents the positioning of a garment sheet where the garment-making unit is located on the periphery of the human body model, and the sewing represents the connection among a plurality of garment-making units; determining a deformation coefficient of the clothing unit according to the reference vertex coordinate and the current vertex coordinate, and determining a stretching coefficient of the clothing unit according to the reference vertex coordinate and the current vertex coordinate, wherein the deformation coefficient represents the area change degree of the clothing unit, and the stretching coefficient represents the vertex space change degree of the clothing unit; and determining the unit change coefficient of the clothing unit according to the deformation coefficient and the stretching coefficient.
In this implementation manner, for each clothing unit, a reference vertex coordinate (a vertex coordinate before sewing after making a plate of the clothing unit) and a current vertex coordinate (a vertex coordinate after sewing the clothing unit) may be obtained, so as to determine a deformation coefficient (an area change degree of the clothing unit) and a stretch coefficient (a vertex pitch change degree of the clothing unit) of the clothing unit, and further determine a unit change coefficient of the clothing unit. In this way, the deformation degree of the garment making unit can be reflected from multiple directions (such as distance change between different vertexes) and levels (such as area change, overall length change and the like), so that the tightness degree of the electronic garment at the part can be accurately displayed.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the determining a deformation coefficient of the clothing-making unit according to the reference vertex coordinate and the current vertex coordinate includes: determining the reference area of the clothing unit according to the reference vertex coordinates; and determining the deformation coefficient of the clothing unit according to the current vertex coordinate and the reference area.
In this implementation, the clothing unit is a triangle (each side has at most 2 triangles to share), and the manner of determining the deformation coefficient of the clothing unit may be: and determining the reference area of the clothing unit according to the reference vertex coordinates, so as to determine the deformation coefficient of the clothing unit according to the current vertex coordinates and the reference area. The deformation coefficient of the clothing unit can be determined efficiently and accurately in such a way.
With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the determining a stretch coefficient of the clothing-making unit according to the reference vertex coordinate and the current vertex coordinate includes: determining the reference side length of the clothing unit according to the reference vertex coordinates; determining the current side length of the clothing unit according to the current vertex coordinate; and determining the tensile coefficient of the clothing unit according to the reference side length and the current side length.
In this implementation, the clothing units are triangles (each side has at most 2 triangles in common), and the manner of determining the stretch coefficient of the clothing units may be: and determining the reference side length of the clothing unit according to the reference vertex coordinate, and determining the current side length of the clothing unit according to the current vertex coordinate, so that the stretching coefficient of the clothing unit is determined according to the reference side length and the current side length. In this way, the stretch coefficient of the garment making unit can be determined efficiently and accurately.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the determining, according to the unit variation coefficient of each clothing-making unit, a corresponding display parameter includes: and determining a threshold interval where a unit variation coefficient of each clothing unit is located, and determining display parameters of the clothing unit according to the unit variation coefficient and a coloring formula corresponding to the threshold interval, wherein the coloring formula is used for determining a gray value or a color value based on the unit variation coefficient.
In this implementation manner, for each clothing unit, a threshold interval in which the unit variation coefficient of the clothing unit is located may be determined, and the display parameter of the clothing unit (for determining the gray value or the color value based on the unit variation coefficient) may be determined according to the unit variation coefficient and the coloring formula corresponding to the threshold interval. The garment making unit can be colored based on the deformation degree of the garment making unit, different colors can be determined according to the garment making units with different deformation degrees, and therefore the tightness degree of each part of the electronic garment simulation on the human body model can be reflected visually and accurately.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the threshold interval includes four intervals, and the coloring formula corresponding to different intervals is different.
In this implementation, in order to more accurately represent the degree of deformation of the garment-making unit by coloring, a plurality of threshold sections, for example, a first section, a second section, a third section, and a fourth section may be set, and different coloring formulas (for example, a first coloring formula, a second coloring formula, a third coloring formula, and a fourth coloring formula) may be determined for the unit variation coefficients in different threshold sections to determine the display parameter, so that the degree of tightness of the garment can be represented more finely by the display parameter.
With reference to the fourth or fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the displaying the electronic garment based on the display parameter includes: for each garment-making unit, coloring the garment-making unit and/or the top point of the garment-making unit according to the display parameters of the garment-making unit; and displaying the colored electronic garment.
In this implementation, the garment making unit and/or the vertex of the garment making unit may be colored according to the display parameters of the garment making unit for each garment making unit, and the colored electronic garment may be displayed. By coloring the garment making units and/or the vertexes of the garment making units, the tightness degree of the electronic garment simulation on the human body model can be expressed efficiently and accurately. And through the colouring to the summit, can also show the part of elasticity gradual change when the electronic clothing simulation is on human model better for the effect is more lifelike, thereby can present the elasticity for the user more directly perceivedly.
In a second aspect, an embodiment of the present application provides an electronic garment tightness detection device, where the device includes: the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a unit change coefficient of each garment-making unit after the electronic garment is simulated on a human body model, and the unit change coefficient reflects the deformation degree of the corresponding garment-making unit; and the processing and displaying module is used for determining corresponding display parameters according to the unit variation coefficient of each clothing-making unit and displaying the electronic clothing based on the display parameters, wherein the display parameters are used for representing the tightness of the electronic clothing when the electronic clothing is simulated on the human body model.
In a third aspect, embodiments of the present application provide a storage medium storing one or more programs, where the one or more programs are executable by one or more processors to implement the electronic garment tightness detection method according to the first aspect or any one of the possible implementation manners of the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory is configured to store information including program instructions, and the processor is configured to control execution of the program instructions, where the program instructions are loaded and executed by the processor, to implement the electronic garment tightness detection method according to the first aspect or any one of possible implementation manners of the first aspect.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used 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 therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of a method for detecting tightness of an electronic garment according to an embodiment of the present application.
Fig. 2 is a comparison of a garment-making unit provided in the examples of the present application before and after sewing.
Fig. 3 is a display effect diagram of the degree of tightness of an electronic garment simulation on a human body model according to an embodiment of the present application.
Fig. 4 is a block diagram of a structure of an electronic clothing tightness detection device according to an embodiment of the present application.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Icon: 10-electronic clothing tightness detection device; 11-an acquisition module; 12-a processing and display module; 20-an electronic device; 21-a memory; 22-a communication module; 23-a bus; 24-a processor.
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.
To facilitate understanding of the present solution, a brief description of the simulation process of the electronic garment on the mannequin is provided here.
The electronic garment can comprise a plurality of garment making units, and the garment making units are connected (sewn) with each other to simulate a three-dimensional electronic garment. The simulation of the electronic garment (three-dimensional) on the human body model (three-dimensional) can be roughly as follows: the garment panel comprising a plurality of garment elements is patterned on the periphery of the manikin, which periphery can be understood as an outer boundary determined on the basis of the manikin, which outer boundary can serve as a basis for positioning the garment panel (and the garment elements comprised by the garment panel), to which outer boundary the garment panel (and the garment elements comprised by the garment panel) can be attached. Patterning represents the positioning of the garment panel in which the garment-making units are located at the periphery of the mannequin, and stitching represents the connection between multiple garment-making units (such connection may cause stretching and deformation to some garment-making units of the electronic garment).
In order to visually display the tightness degree of the electronic garment simulated on the human body model, the embodiment of the application provides the method for detecting the tightness degree of the electronic garment, so that the tightness degree of the electronic garment simulated on the human body model can be accurately and efficiently visually displayed.
Referring to fig. 1, fig. 1 is a flowchart of a method for detecting tightness of an electronic garment according to an embodiment of the present disclosure. In this embodiment, the electronic garment tightness detection method may include step S10 and step S20.
To enable detection of tightness of the electronic garment simulation on the manikin, step S10 may be performed.
Step S10: obtaining a unit variation coefficient of each garment-making unit after the electronic garment is simulated on the human body model, wherein the unit variation coefficient reflects the deformation degree of the corresponding garment-making unit.
In the present embodiment, after the electronic garment is simulated on the human body model, the unit variation coefficient of each garment-making unit (reflecting the degree of deformation of the garment-making unit) can be obtained.
Since the clothing-making unit may be subjected to stretching (a change in the pitch between vertices of the clothing-making unit), deformation (a change in the area of the clothing-making unit), or the like when simulated on the human body model, the unit change coefficient of the clothing-making unit can be comprehensively reflected by the deformation coefficient (representing the degree of change in the area of the clothing-making unit) and the stretch coefficient (representing the degree of change in the pitch between vertices of the clothing-making unit). In addition, since the unit variation coefficient of each clothing unit of the electronic garment can be obtained by the same or similar operation, the description of one clothing unit is taken as an example and should not be taken as a limitation of the present application.
For example, for each clothing unit, a reference vertex coordinate (representing a vertex coordinate before sewing after patterning the clothing unit) and a current vertex coordinate (representing a vertex coordinate after sewing the clothing unit) of the clothing unit may be obtained, a deformation coefficient of the clothing unit may be determined according to the reference vertex coordinate and the current vertex coordinate, a stretch coefficient of the clothing unit may be determined according to the reference vertex coordinate and the current vertex coordinate, and a unit change coefficient of the clothing unit may be determined according to the deformation coefficient and the stretch coefficient. In this way, the deformation degree of the garment making unit can be reflected from multiple directions (such as distance change between different vertexes) and levels (such as area change, overall length change and the like), so that the tightness degree of the electronic garment at the part can be accurately displayed.
Taking a triangle (for example, a manifold triangle, or other types of triangles) as the clothing unit, the reference area of the clothing unit can be determined according to the reference vertex coordinates, and the deformation coefficient of the clothing unit can be further determined according to the current vertex coordinates and the reference area, so that the deformation coefficient of the clothing unit can be efficiently and accurately determined. For example, the deformation coefficient of the garment-making unit can be calculated using the following formula:
Figure BDA0002825183120000071
Figure BDA0002825183120000081
a, B, C Are the three vertices (i.e., reference vertices) of the triangle after printing and before stitching, Are the areas of the triangle ABC (reference area), and Anew、Bnew、CnewThree vertexes of the triangle after stitching (namely the current vertex), KaIs the deformation coefficient.
For example, referring to fig. 2, the triangle at the left part of fig. 2 is the triangle after printing and before sewing, and the area thereof is 0.953; the triangle at the right side of fig. 2 is a stitched triangle having an area of 1.175. After sewing, the area of the garment-making unit is increased.
Similarly, taking a triangle as an example of the clothing unit, the reference side length of the clothing unit can be determined according to the reference vertex coordinate, the current side length of the clothing unit can be determined according to the current vertex coordinate, and therefore the stretching coefficient of the clothing unit can be determined according to the reference side length and the current side length. This allows the stretch coefficient of the garment-making unit to be determined efficiently and accurately. For example, the stretch coefficient of a garment-making unit can be calculated using the following equation:
Figure BDA0002825183120000082
where Ks is the stretch coefficient, len (A, B) represents the spacing between A, B (i.e., the reference length AB), len (A)new,Bnew) Is represented by Anew、BnewThe distance between (i.e. the current side length A)newBnew)。
It should be noted that, A, B is taken as an example to calculate the side length, which is only an example, in some other alternative implementations, the BC side length and the AC side length may also be calculated, or the AB side length, the BC side length and the AC side length may also be calculated at the same time, or a side length with the largest variation may be selected to calculate the stretching coefficient, which is not limited herein.
Referring to fig. 2 again, the triangle at the left side of fig. 2 is the triangle after printing and before sewing; the triangle at the right side in fig. 2 is a triangle after sewing. It can be seen that reference vertex A, reference vertex B and reference vertex C before stitching respectively become current vertex A after stitchingnewCurrent vertex BnewCurrent vertex Cnew. The vertex spacing (side length) also varies.
After the deformation coefficient and the stretch coefficient are determined, the unit change coefficient of the clothing unit can be determined according to the deformation coefficient and the stretch coefficient. For example, the cell change coefficient may be calculated using the following formula:
K=ks*Ka, (4)
where K represents a unit variation coefficient.
It should be noted that this way to determine the unit variation coefficient is merely exemplary, and in other realizable ways, other parameters may be used for calculation, or other calculation formulas may be used. Or, for different shapes of the clothing units, the deformation coefficient and the stretch coefficient may be adaptively adjusted, for example, when the clothing units are quadrilateral or hexagonal, the unit change coefficient of the clothing units may be determined in a similar calculation manner, and this should not be considered as a limitation of the present application.
After the unit variation coefficients of the garment-making units are determined, step S20 may be performed.
Step S20: and determining corresponding display parameters according to the unit variation coefficients of each clothing unit, and displaying the electronic clothing simulated on the human body model based on the display parameters, wherein the display parameters are used for representing the tightness of the electronic clothing simulated on the human body model.
In this embodiment, for each clothing unit, a threshold interval in which the unit variation coefficient of the clothing unit is located may be determined, and the display parameter of the clothing unit may be determined according to the coloring formula (for determining the gray value or the color value based on the unit variation coefficient) corresponding to the unit variation coefficient and the threshold interval. The garment making unit can be colored based on the deformation degree of the garment making unit, different colors can be determined according to the garment making units with different deformation degrees, and therefore the tightness degree of each part of the electronic garment simulation on the human body model can be reflected visually and accurately.
For example, in order to more accurately represent the deformation degree of the clothing unit by coloring, a plurality of threshold intervals may be set. For example, the threshold section may include a first section (corresponding to a first coloring formula), a second section (corresponding to a second coloring formula), a third section (corresponding to a third coloring formula), and a fourth section (corresponding to a fourth coloring formula). Then, a display parameter of the garment-making unit may be determined based on the unit variation coefficient and a corresponding one of the first coloring formula, the second coloring formula, the third coloring formula, and the fourth coloring formula. In this way, different coloring formulas (for example, the first coloring formula, the second coloring formula, the third coloring formula and the fourth coloring formula) can be determined for the cell change coefficients in different threshold value intervals, and the display parameter can be determined, so that the degree of tightness of the garment can be expressed more finely by the display parameter.
Specifically, the display parameters may be determined by the following formula:
Figure BDA0002825183120000101
wherein, Cor represents display parameters, (x, y, z) are display parameters, and the values of x, y, z are all between 0 and 1. And (x, y, z) may be converted into a color value in an RGB color mode (for example, the value of x, y, z is multiplied by 255), or may be converted into a color value in another color mode, which is not limited herein.
The specific conversion may be: the display parameters are converted into corresponding colors, for example, a color with a longer visible wavelength (red) is expressed as a tight color, and a color with a shorter visible wavelength (purple) is expressed as a loose color (equation 5 can follow this mode to determine the display parameters). Of course, the display parameters may also be converted into corresponding gray values, and then, when determining the display parameters, the appropriate coloring formula may be adaptively selected, so that the larger the gray value converted by the display parameters is, the smaller the corresponding unit variation coefficient is, or vice versa, which is not limited herein.
After the display parameters are determined, the electronic garment simulated on the mannequin may be displayed based on the display parameters. For example, the garment making unit and/or the vertex of the garment making unit can be colored according to the display parameters of the garment making unit for each garment making unit so as to display the colored electronic garment.
By coloring the garment making units and/or the vertexes of the garment making units, the tightness degree of the electronic garment simulation on the human body model can be expressed efficiently and accurately. And through the colouring to the summit, can also show the part of elasticity gradual change when the electronic clothing simulation is on human model better for the effect is more lifelike, thereby can present the elasticity for the user more directly perceivedly.
And the coloring process can be as follows: and coloring the clothing units and/or the vertexes of the clothing units according to the display parameters of the clothing units aiming at each clothing unit.
For example, for each clothing unit, the vertex of the clothing unit may be colored based on the color (or gray scale) converted by the display parameter, or the entire area of the clothing unit may be colored, so that the degree of change of each clothing unit can be reflected in a visually distinguishable manner, such as color (or gray scale), so that the degree of tightness of the electronic garment simulated on the mannequin can be visually and intuitively communicated to the user, thereby facilitating the user to intuitively judge the degree of tightness of the electronic garment simulated on the mannequin. In addition, the degree of tightness of each part of the electronic garment can be reflected through the change degree (unit change coefficient) of each garment-making unit, so that the accuracy can be greatly improved, and the nuance of simulation of electronic garments with different sizes on a human body model can be reflected.
And the clothes making unit can be colored by adopting a mode of coloring the clothes making unit, so that the display effect is better. In order to more accurately represent the change of the degree of tightness (particularly, the area with the changed degree of tightness), the gradual change of the color (or the gray scale) of the clothing unit can be filled in the clothing unit according to the color (or the gray scale) of the vertex of the clothing unit, and the closer the area of the clothing unit is to a certain vertex, the closer the color (or the gray scale) is to the color (or the gray scale) of the vertex, so that the effect of the change of the degree of tightness can be better represented.
Referring to fig. 3, fig. 3 is a diagram illustrating an effect of displaying tightness degree of an electronic garment simulation on a human body model according to an embodiment of the present application.
Since the original image represents the tightness of the electronic garment through the color of visible light (red represents tightness, purple represents tightness, and the intermediate color from red to purple is the tightness between tightness and tightness), the original image is difficult to distinguish when displayed in a black-and-white image, but the effectiveness of the scheme is not influenced. The left part of fig. 3 is an effect diagram (not showing tightness degree) of the electronic garment simulated on the human body model, and the right part of fig. 3 is an effect diagram of the tightness degree of the electronic garment simulated on the human body model.
Referring to fig. 4, fig. 4 is a block diagram of an electronic clothing tightness detecting device 10 according to an embodiment of the present disclosure. The electronic garment tightness detection device 10 may include:
the obtaining module 11 is configured to obtain a unit variation coefficient of each clothing unit after the electronic garment is simulated on the human body model, where the unit variation coefficient reflects a deformation degree of the corresponding clothing unit.
And the processing and displaying module 12 is configured to determine a corresponding display parameter according to the unit variation coefficient of each clothing-making unit, and display the electronic clothing simulated on the human body model based on the display parameter, where the display parameter is used to represent the tightness of the electronic clothing when the electronic clothing is simulated on the human body model.
In this embodiment, the obtaining module 11 is specifically configured to obtain, for each clothing unit, a reference vertex coordinate and a current vertex coordinate of the clothing unit, where the reference vertex coordinate represents a vertex coordinate of the clothing unit after patterning before sewing, the current vertex coordinate represents a vertex coordinate of the clothing unit after sewing, the patterning represents a location of a clothing sheet where the clothing unit is located on a periphery of the human body model, and the sewing represents a connection between a plurality of the clothing units; determining a deformation coefficient of the clothing unit according to the reference vertex coordinate and the current vertex coordinate, and determining a stretching coefficient of the clothing unit according to the reference vertex coordinate and the current vertex coordinate, wherein the deformation coefficient represents the area change degree of the clothing unit, and the stretching coefficient represents the vertex space change degree of the clothing unit; and determining the unit change coefficient of the clothing unit according to the deformation coefficient and the stretching coefficient.
In this embodiment, the clothing-making unit is a triangle, and the obtaining module 11 is specifically configured to determine a reference area of the clothing-making unit according to the reference vertex coordinates; and determining the deformation coefficient of the clothing unit according to the current vertex coordinate and the reference area.
In this embodiment, the clothing-making unit is a triangle, and the obtaining module 11 is specifically configured to determine a reference side length of the clothing-making unit according to the reference vertex coordinate; determining the current side length of the clothing unit according to the current vertex coordinate; and determining the tensile coefficient of the clothing unit according to the reference side length and the current side length.
In this embodiment, the processing and displaying module 12 is specifically configured to determine, for each clothing unit, a threshold interval in which a unit variation coefficient of the clothing unit is located, and determine a display parameter of the clothing unit according to the unit variation coefficient and a coloring formula corresponding to the threshold interval, where the coloring formula is used to determine a gray value or a color value based on the unit variation coefficient.
In this embodiment, the threshold interval includes a first interval, a second interval, a third interval and a fourth interval, and the processing and displaying module 12 is specifically configured to determine the display parameter of the clothing-making unit according to the unit variation coefficient and a corresponding one of a first coloring formula, a second coloring formula, a third coloring formula and a fourth coloring formula, where the first coloring formula, the second coloring formula, the third coloring formula and the fourth coloring formula correspond to the first interval, the second interval, the third interval and the fourth interval, respectively.
In this embodiment, the processing and displaying module 12 is specifically configured to, for each clothing unit, color the clothing unit and/or the vertex of the clothing unit according to the display parameters of the clothing unit; and displaying the colored electronic garment.
Referring to fig. 5, fig. 5 is a block diagram of an electronic device 20 according to an embodiment of the present disclosure.
In this embodiment, the electronic device 20 may be a terminal device, such as a personal computer, a notebook computer, etc., and is not limited herein. Of course, the electronic device 20 may also be a server, such as a network server, a cloud server, a server cluster, and the like, which is not limited herein.
Illustratively, the electronic device 20 may include: a communication module 22 connected to the outside world via a network, one or more processors 24 for executing program instructions, a bus 23, a Memory 21 of different form, such as a magnetic disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), or any combination thereof. The memory 21, the communication module 22 and the processor 24 are connected by a bus 23.
Illustratively, the memory 21 has stored therein a program. The processor 24 can call and run these programs from the memory 21, so that the electronic garment tightness detection method can be executed by running the programs to efficiently, accurately and intuitively reveal the tightness of the electronic garment simulation on the human body model.
The embodiment of the present application further provides a storage medium, where one or more programs are stored, and the one or more programs may be executed by one or more processors to implement the electronic garment tightness detection method in the embodiment.
In summary, the embodiments of the present application provide a method and an apparatus for detecting tightness of an electronic garment, a storage medium, and an electronic device, which determine corresponding display parameters by obtaining a unit variation coefficient of each clothing unit after the electronic garment is simulated on a human body model, and display the electronic garment based on the display parameters. The unit change coefficient of each clothing unit after the electronic clothing simulation is carried out on the human body model can accurately represent the tightness degree of each part after the electronic clothing simulation is carried out on the human body model. And the display parameters determined based on the unit change coefficients can intuitively display the tightness degree of each part of the electronic garment after the electronic garment is simulated on the human body model, so that the electronic garment is convenient for a user to observe, and is beneficial to improving the size of the electronic garment and embodying the nuances of the electronic garment with different sizes simulated on the human body model. In addition, the method can realize accurate display of the tightness degree of the electronic clothes without consuming too much computing resources, and is real-time and efficient.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
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 above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for detecting tightness of electronic clothes is characterized by comprising the following steps:
acquiring a unit change coefficient of each garment-making unit after the electronic garment is simulated on the human body model, wherein the unit change coefficient reflects the deformation degree of the corresponding garment-making unit;
and determining corresponding display parameters according to the unit variation coefficients of each clothing unit, and displaying the electronic clothing simulated on the human body model based on the display parameters, wherein the display parameters are used for representing the tightness of the electronic clothing simulated on the human body model.
2. The method for detecting tightness of electronic clothing according to claim 1, wherein the obtaining of unit variation coefficients of each clothing unit after the electronic clothing is simulated on the human body model comprises:
acquiring a reference vertex coordinate and a current vertex coordinate of each garment-making unit, wherein the reference vertex coordinate represents a vertex coordinate of the garment-making unit after patterning and before sewing, the current vertex coordinate represents a vertex coordinate of the garment-making unit after sewing, the patterning represents the positioning of a garment sheet where the garment-making unit is located on the periphery of the human body model, and the sewing represents the connection among a plurality of garment-making units;
determining a deformation coefficient of the clothing unit according to the reference vertex coordinate and the current vertex coordinate, and determining a stretching coefficient of the clothing unit according to the reference vertex coordinate and the current vertex coordinate, wherein the deformation coefficient represents the area change degree of the clothing unit, and the stretching coefficient represents the vertex space change degree of the clothing unit;
and determining the unit change coefficient of the clothing unit according to the deformation coefficient and the stretching coefficient.
3. The method for detecting the tightness of electronic clothing according to claim 2, wherein the clothing unit is triangular, and determining the deformation coefficient of the clothing unit according to the reference vertex coordinates and the current vertex coordinates comprises:
determining the reference area of the clothing unit according to the reference vertex coordinates;
and determining the deformation coefficient of the clothing unit according to the current vertex coordinate and the reference area.
4. The method for detecting tightness of electronic clothing according to claim 2, wherein the clothing unit is triangular, and the determining of the stretch coefficient of the clothing unit according to the reference vertex coordinates and the current vertex coordinates comprises:
determining the reference side length of the clothing unit according to the reference vertex coordinates;
determining the current side length of the clothing unit according to the current vertex coordinate;
and determining the tensile coefficient of the clothing unit according to the reference side length and the current side length.
5. The method for detecting the tightness of electronic clothing according to claim 1, wherein the determining the corresponding display parameters according to the unit variation coefficient of each clothing unit comprises:
and determining a threshold interval where a unit variation coefficient of each clothing unit is located, and determining display parameters of the clothing unit according to the unit variation coefficient and a coloring formula corresponding to the threshold interval, wherein the coloring formula is used for determining a gray value or a color value based on the unit variation coefficient.
6. The method for detecting tightness of electronic clothing according to claim 5, wherein the threshold interval comprises four intervals, and different intervals have different coloring formulas.
7. The method for detecting tightness of electronic clothing according to claim 5 or 6, wherein the displaying the electronic clothing based on the display parameters comprises:
for each garment-making unit, coloring the garment-making unit and/or the top point of the garment-making unit according to the display parameters of the garment-making unit;
and displaying the colored electronic garment.
8. An electronic garment tightness detection device, characterized in that the device comprises:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a unit change coefficient of each garment-making unit after the electronic garment is simulated on a human body model, and the unit change coefficient reflects the deformation degree of the corresponding garment-making unit;
and the processing and displaying module is used for determining corresponding display parameters according to the unit variation coefficient of each clothing unit and displaying the electronic clothing simulated on the human body model based on the display parameters, wherein the display parameters are used for representing the tightness of the electronic clothing simulated on the human body model.
9. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the electronic garment tightness detection method according to any one of claims 1 to 7.
10. An electronic device, comprising a memory for storing information comprising program instructions and a processor for controlling the execution of the program instructions, which when loaded and executed by the processor, implement the electronic garment tightness detection method according to any one of claims 1 to 7.
CN202011461885.7A 2020-12-09 2020-12-09 Electronic clothing tightness detection method and device, storage medium and electronic equipment Active CN112417739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011461885.7A CN112417739B (en) 2020-12-09 2020-12-09 Electronic clothing tightness detection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011461885.7A CN112417739B (en) 2020-12-09 2020-12-09 Electronic clothing tightness detection method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112417739A true CN112417739A (en) 2021-02-26
CN112417739B CN112417739B (en) 2023-12-19

Family

ID=74775523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011461885.7A Active CN112417739B (en) 2020-12-09 2020-12-09 Electronic clothing tightness detection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112417739B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090138377A1 (en) * 2007-11-27 2009-05-28 Uk Oh Clothes fitting service method of providing information about fitting of clothes
CN101650839A (en) * 2009-08-11 2010-02-17 东华大学 Fitting performance evaluation method of three dimensional garment in network environment
CN103678769A (en) * 2013-11-12 2014-03-26 浙江大学 Realistic clothes creating method based on human skeleton and two-dimensional deformation
CN103810607A (en) * 2014-03-03 2014-05-21 郑超 Virtual fitting method
CN105996218A (en) * 2016-07-15 2016-10-12 东华大学 Construction method of functional skinny riding-shorts structure
CN109196561A (en) * 2017-02-15 2019-01-11 斯戴尔米有限公司 System and method for carrying out three dimensional garment distortion of the mesh and layering for fitting visualization

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090138377A1 (en) * 2007-11-27 2009-05-28 Uk Oh Clothes fitting service method of providing information about fitting of clothes
CN101650839A (en) * 2009-08-11 2010-02-17 东华大学 Fitting performance evaluation method of three dimensional garment in network environment
CN103678769A (en) * 2013-11-12 2014-03-26 浙江大学 Realistic clothes creating method based on human skeleton and two-dimensional deformation
CN103810607A (en) * 2014-03-03 2014-05-21 郑超 Virtual fitting method
CN105996218A (en) * 2016-07-15 2016-10-12 东华大学 Construction method of functional skinny riding-shorts structure
CN109196561A (en) * 2017-02-15 2019-01-11 斯戴尔米有限公司 System and method for carrying out three dimensional garment distortion of the mesh and layering for fitting visualization

Also Published As

Publication number Publication date
CN112417739B (en) 2023-12-19

Similar Documents

Publication Publication Date Title
CN111009026B (en) Object rendering method and device, storage medium and electronic device
US9892540B2 (en) Image-based deformation of simulated characters of varied topology
EP4120199A1 (en) Image rendering method and apparatus, and electronic device and storage medium
WO2023185262A1 (en) Illumination rendering method and apparatus, computer device, and storage medium
CN101639767A (en) Method, apparatus, and computer program product for improved graphics performance
CN111583398B (en) Image display method, device, electronic equipment and computer readable storage medium
CN114241151A (en) Three-dimensional model simplification method and device, computer equipment and computer storage medium
CN111383311B (en) Normal map generation method, device, equipment and storage medium
CN113379929B (en) Bone tissue repair virtual reality solution method based on physical simulation
CN108830000B (en) VTK-based carrier rocket structure finite element analysis visualization method
CN112417739A (en) Electronic garment tightness detection method and device, storage medium and electronic equipment
CN109903374B (en) Eyeball simulation method and device for virtual object and storage medium
CN114998504B (en) Two-dimensional image illumination rendering method, device and system and electronic device
CN112396680B (en) Method and device for making hair flow diagram, storage medium and computer equipment
CN112465941B (en) Volume cloud processing method and device, electronic equipment and storage medium
CN114797109A (en) Object editing method and device, electronic equipment and storage medium
CN111681307B (en) Implementation method of dynamic three-dimensional coordinate axis applied to three-dimensional software
CN114092641A (en) Method, device and equipment for generating wiring board drawing and readable storage medium
CN109308703B (en) Intelligent contouring of anatomical structures using structured user click-through points
CN113192188B (en) Method and device for constructing visual characteristic quantitative deformation model of clothing product prototype
JPWO2009084427A1 (en) Knit simulation device and method for correcting twist of yarn in knit simulation
WO2018137454A1 (en) Method of adjusting object shape, and adjustment device
JP2007213437A (en) Information-processing method and information-processing device
CN113470162A (en) Method, device and system for constructing three-dimensional head model and storage medium
CN112581600B (en) Qiu Mao effect generation method, device, storage medium and equipment for electronic clothing

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