CN112734936B - Virtual clothing wearing method, wearing proportion calculating method and device and electronic equipment - Google Patents

Virtual clothing wearing method, wearing proportion calculating method and device and electronic equipment Download PDF

Info

Publication number
CN112734936B
CN112734936B CN202011461931.3A CN202011461931A CN112734936B CN 112734936 B CN112734936 B CN 112734936B CN 202011461931 A CN202011461931 A CN 202011461931A CN 112734936 B CN112734936 B CN 112734936B
Authority
CN
China
Prior art keywords
human body
virtual garment
highest point
body model
standard
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
CN202011461931.3A
Other languages
Chinese (zh)
Other versions
CN112734936A (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 CN202011461931.3A priority Critical patent/CN112734936B/en
Publication of CN112734936A publication Critical patent/CN112734936A/en
Application granted granted Critical
Publication of CN112734936B publication Critical patent/CN112734936B/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
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces
    • G06Q30/0643Graphical representation of items or shoppers
    • 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 discloses a virtual garment wearing method, a wearing proportion calculating method and device and electronic equipment, and belongs to the technical field of virtual garment wearing, wherein the wearing method comprises the following steps: obtaining a human body model of a virtual garment to be worn, obtaining a proportion comparison point H ' of the human body model, calculating a highest point L ' of the virtual garment worn on the human body model, and moving the garment along an axis consistent with the height direction of the human body model in a world coordinate system by L ' -L, wherein L ' =H ' ·P; the scheme is used for effectively preventing the cloth entanglement problem when the virtual garment is worn.

Description

Virtual clothing wearing method, wearing proportion calculating method and device and electronic equipment
Technical Field
The application relates to the technical field of virtual clothing wearing, in particular to a virtual clothing wearing method, a wearing proportion calculating method and device and electronic equipment.
Background
With the rapid development of technology, online shopping has become an integral part of the daily life of many people. In the online shopping platform, the variety of clothes is various, diversified choices are provided for users, and in order to solve the problem that the upper body effect of the clothes cannot be determined when the clothes are purchased online, an online virtual fitting system is developed.
In the prior art, the plate of the clothing can be printed and attached to the arrangement points corresponding to the mannequin, and by using the scheme, even if the stature of the mannequin is modified, the clothing plate can change position along with the change of the arrangement points, but if the scheme is directly used, some cloth entanglement phenomenon occurs, and the actual use effect is affected.
Disclosure of Invention
The application provides a virtual garment wearing method, a wearing proportion calculating method and device and electronic equipment, which are used for solving the problem of cloth entanglement.
In a first aspect, an embodiment of the present application provides a method for wearing virtual clothing, including: acquiring a human body model of the three-dimensional garment to be worn; obtaining the personA proportional control point H 'of the body model, wherein H' is the highest point H of the upper body arrangement surface of the human body model up Highest point H of the lower body arrangement surface of' or the manikin down 'A'; calculating the highest point L 'of the virtual garment when the virtual garment is worn on the human body model according to the H' and the P, wherein the L '=H'. P is a preset wearing proportion relation between the virtual garment and a standard human body model; and integrally moving the virtual garment worn on the mannequin by L' -L distance along an axis consistent with the height direction of the mannequin in a world coordinate system, wherein L is the highest point of the virtual garment when the virtual garment is worn on the standard mannequin.
In the application, when the posture of the mannequin is consistent, the same piece of virtual clothing is worn on the mannequin with different heights and different weights, the whole shape of the virtual clothing is basically unchanged, only the fine differences of 'shriveling' and 'full' are only needed, and the heights of the clothing on different mannequins are different, so that the virtual clothing can be worn on the mannequin by translating the clothing up and down according to the clothing posture information obtained by the standard mannequin. Therefore, according to the proportion comparison point H ' of the human body model and the preset wearing proportion relation P between the virtual garment and the standard human body model, the highest point L ' of the virtual garment can be obtained when the virtual garment is worn on the human body model, and the virtual garment can be worn on the human body model by moving the virtual garment by L ' -L along the axis consistent with the height direction of the human body model in the world coordinate system. Through this scheme, can realize wearing virtual clothing on different mannequins fast, the running power is more high-efficient, can not appear the condition that the cloth entangled simultaneously.
With reference to the foregoing technical solution provided in the first aspect, in some possible implementation manners, obtaining a proportional control point H' of a manikin includes: acquiring a proportion comparison point H of a standard human body model for wearing the virtual garment and a layout surface corresponding to the H; determining a proportion comparison point H' according to the arrangement surface corresponding to the H, and when the H is the standard human body model Highest point H of upper body arrangement surface up When H' is H up ' said H up ' is the highest point of the upper body arrangement surface of the human body model, when the H is the highest point H of the upper body arrangement surface of the standard human body model down When H' is H down ' said H down ' is the highest point of the lower body arrangement surface of the manikin.
In this application, the ratio comparison point H ' is key data for determining the position relationship between the virtual garment and the mannequin, and P is the wearing ratio relationship between the virtual garment wearing and the standard mannequin, so that the arrangement surface of the mannequin corresponding to H ' is consistent with the arrangement surface of the standard mannequin corresponding to H, that is, the H ' and the H are both the highest points of the upper body arrangement surfaces of the mannequin corresponding to each other, or the highest points of the lower body arrangement surfaces of the mannequin corresponding to each other.
With reference to the foregoing technical solution provided in the first aspect, in some possible implementation manners, the method further includes resetting a plate of the sleeve of the virtual garment after the moving to a plate-printing state, so that the sleeve fits to an arm of the mannequin.
In the present application, the printing state refers to that the clothing is set into a plurality of clothing panels, and the clothing panels can be automatically attached to the arrangement points corresponding to the mannequin, and the positions of the clothing panels are changed along with the change of the arrangement points. Therefore, the sleeves are reset to the plate state, and the sleeves are reset to a plurality of clothing plates, so that the clothing plates can be automatically attached to the arms of the mannequin, and in this case, the sleeves of the virtual clothing can be attached to the arms of the mannequin even if the angles between the arms and the body of different mannequins are different due to the shoulder width of the mannequin.
In a second aspect, an embodiment of the present application provides a method for calculating a wearing ratio of a virtual garment, including: acquiring the highest point L of a virtual garment worn on a standard human body model; obtaining a proportion comparison point H of a standard human body model, wherein H is the highest point H of an upper body arrangement surface of the human body model up Highest point H of the lower body arrangement surface of' or the manikin down 'A'; and calculating the wearing proportion relation P of the virtual garment and the standard human body model, wherein P=L/H.
In this embodiment of the present application, the highest point L of the virtual garment worn on the standard mannequin and the proportional control point H of the standard mannequin obtain the relative positional relationship between the virtual garment and the standard mannequin on the axis where the height direction of the mannequin is consistent in the world coordinate system, where the positional relationship may be represented by the ratio of the two, i.e., L/H, where L/H is defined as the wearing proportional relationship P between the virtual garment and the standard mannequin, where the wearing proportional relationship P may be applied to other mannequins, so that when the virtual garment is worn on the other mannequin, the wearing position may be conveniently adjusted without fabric entanglement.
With reference to the solution provided in the second aspect, in some possible implementations, before acquiring the highest point L of the virtual garment worn on the standard mannequin, the method further includes: based on the received wearing operation information, wearing the virtual garment on the standard mannequin; and based on the received drag operation information, the virtual clothes are dragged in order.
In this embodiment of the present invention, the virtual garment is worn on the standard mannequin, and the virtual garment is pulled neatly based on the received drag operation information, and the highest point L of the virtual garment obtained from the virtual garment in this state is more accurate.
With reference to the foregoing technical solution provided by the second aspect, in some possible implementation manners, obtaining the highest point L of the virtual garment includes: calculating a bounding box of the virtual garment, and acquiring the highest position L of the virtual garment in a world coordinate system through the upper plane of the bounding box.
In the embodiment of the application, the bounding box of the virtual garment is calculated, so that the virtual garment with a slightly larger volume than the virtual garment is used, but the geometrical body with simple characteristics is used for approximately replacing the complicated virtual garment, and the highest point L of the virtual garment obtained by calculating the bounding box of the virtual garment is simpler and more convenient.
With reference to the foregoing technical solution provided in the second aspect, in some possible implementation manners, obtaining a proportional control point H of the standard manikin includes: acquiring the highest point H of the upper body arrangement surface of the standard human body model up And the highest point H of the lower body arrangement surface down The method comprises the steps of carrying out a first treatment on the surface of the Judging the H up Whether the absolute value of the L difference is smaller than or equal to H down An absolute value of the difference from the L; wherein when the H is up The absolute value of the difference from the L is less than or equal to the H down The absolute value of the difference from the L is that of the H up Is H, when said H up The absolute value of the difference from the L is larger than that of the H down The absolute value of the difference from the L is that of the H down H.
In the embodiment of the present application, the highest point H of the upper body arrangement surface is obtained up And the highest point H of the lower body arrangement surface down The value closest to the highest point L of the virtual garment is used as a proportion comparison point H, so that the calculated wearing proportion relation P can be more accurate, and errors are reduced when the virtual garment is worn by applying the proportion relation P.
With reference to the foregoing technical solution provided in the second aspect, in some possible implementation manners, the method further includes sending the clothing information of the virtual clothing and the wearing proportional relationship P to a fitting system.
In the embodiment of the application, the clothing information of the virtual clothing and the wearing proportion relation P are sent to a fitting system, and the fitting system can rapidly wear the corresponding clothing on other human models according to the information.
In a third aspect, an embodiment of the present application provides a virtual garment wearing device, including an acquisition module, a calculation module, and a wearing module, where the acquisition module is configured to acquire a human body model of a three-dimensional garment to be worn, and a proportion comparison point H 'of the human body model, where H' is a highest point H of an upper body arrangement surface of the human body model up Highest point H of the lower body arrangement surface of' or the manikin down 'A'; the computing module is used for computing a highest point L ' of the virtual garment worn on the human body model, wherein L ' =H '/P is the wearing proportion relation between the virtual garment and the standard human body model; the wearing module is used for wearing the virtual garment on the human body model, and integrally moving the virtual garment by L' -L distance along an axis consistent with the height direction of the human body model in a world coordinate system, so that the virtual garment is worn on the human body model, wherein L is the highest point of the virtual garment worn on a standard human body model.
In a fourth aspect, an embodiment of the present application provides a virtual garment wearing proportion calculating device, including an obtaining module, a calculating module, where the obtaining module is configured to obtain a highest point L of a virtual garment worn on a mannequin, and obtain a proportion comparison point H of a standard mannequin, where the H is configured to determine a positional relationship with the virtual garment; the calculation module is used for calculating the proportional relation P of the virtual garment and the standard human body model, wherein P=L/H.
In a fifth aspect, embodiments of the present application provide an electronic device, including a memory and a processor, where the memory and the processor are connected; the memory is used for storing programs; the processor is configured to invoke a program stored in the memory to perform a method as the above-described first aspect embodiment and/or any possible implementation of the embodiment in combination with the first aspect embodiment, or as the above-described second aspect embodiment and/or any possible implementation of the embodiment in combination with the second aspect embodiment.
In a sixth aspect, the present application provides a storage medium having stored thereon a computer program which, when run, performs a method as in the first aspect example and/or in combination with any of the possible implementations of the first aspect example or as in the second aspect example and/or in combination with any of the possible implementations of the second aspect example.
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 will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram illustrating a method for calculating a virtual garment wearing ratio according to an embodiment of the present application;
FIG. 2 is a schematic illustration of a manikin upper body layout according to an embodiment of the present application;
FIG. 3 is a schematic illustration of a manikin lower body arranging surface according to an embodiment of the present application;
FIG. 4 is a virtual garment wearing method according to an embodiment of the present application;
FIG. 5 is a graph of the effect of the same garment shown in an embodiment of the present application being worn on different mannequins;
FIG. 6 is a diagram showing the effect of a mannequin of the same height and different shoulder widths and the same garment being worn on the mannequin of the same height and different shoulder widths according to one embodiment of the present application;
FIG. 7 is a schematic view of a virtual garment wearing apparatus according to an embodiment of the present disclosure;
FIG. 8 is a schematic structural diagram of a virtual garment wearing ratio calculating device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
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.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Also, relational terms such as "first," "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. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Furthermore, the term "and/or" in this application is merely an association relation describing an association object, and indicates that three relations may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone.
Referring to fig. 1, fig. 1 shows a method for calculating a wearing ratio of a virtual garment according to an embodiment of the present application, and the steps included in the method are described below with reference to fig. 1.
Step S101: the highest point L of a virtual garment worn on a standard mannequin is obtained.
Optionally, before acquiring the highest point L of the virtual garment worn on the standard mannequin, the method further comprises: based on the received wearing operation information, wearing the virtual garment on a standard mannequin; and based on the received drag operation information, the virtual clothes are dragged in order.
For example, the method is applied to a clothing manufacturing system, after the virtual clothing is manufactured, a user can click a wearing button on an interface of the clothing manufacturing system, the virtual clothing is worn on a standard mannequin, if the virtual clothing is worn on the standard mannequin, the user can further input a drag operation on the interface of the clothing manufacturing system, for example, the drag operation is directly performed at the position of the fold, or the drag button is clicked, and then the position with the fold is selected for clicking, so that the input of drag operation information is realized, and the clothing manufacturing system responds to the drag operation information to drag the position with the fold of the virtual clothing in order.
When the virtual garment is worn on the standard mannequin, step S101 may be performed, i.e. the highest point L of the virtual garment worn on the standard mannequin is obtained. Optionally, in one embodiment, step S101 includes: calculating a bounding box of the virtual garment; the highest position L of the virtual garment in the world coordinate system is obtained through the upper plane of the bounding box. For example, an AABB (Axis-aligned bounding box) bounding box of the virtual garment is calculated, the AABB bounding box is defined as a smallest hexahedron containing the virtual garment and having sides parallel to coordinate axes of a world coordinate system in which the virtual garment is located, only six scalar quantities are required to describe the AABB bounding box, and L is a numerical value on an Axis corresponding to a standard mannequin height direction of an upper plane of the AABB bounding box perpendicular to the Axis corresponding to the standard mannequin height direction. In addition, the highest point L of the virtual garment may be determined by calculating a direction bounding box OBB (Oriented bounding box) of the virtual garment, the direction bounding box being defined as a rectangular solid that contains the virtual garment and is arbitrarily smallest with respect to the coordinate axis direction, L being a numerical value of an axis corresponding to the coordinate of the direction bounding box at the highest point in the axis direction that coincides with the standard human model height direction. The highest point L of the virtual garment may also be determined by calculating a fixed direction convex hull FDH (Fixed directions hulls) of the virtual garment, the fixed direction convex hull being defined as a convex hull containing the virtual garment and having its normal vector of all its faces taken from a set of fixed directions (k vectors), L being the value of the axis of the fixed direction convex hull corresponding to the coordinate of the highest point of the fixed direction convex hull in the axis direction consistent with the standard mannequin height direction. The axis consistent with the height direction of the standard human body model can be any one of three direction axes of an X axis, a Y axis and a Z axis. For example, when the axis coincident with the height direction of the standard phantom is the Y axis, the standard phantom is a posture standing on the XOZ plane (a plane formed by the X axis and the Z axis).
Step S102: and obtaining a proportion comparison point H of the current standard human body model.
Wherein H is the highest of the upper body arrangement surface of the standard human body modelPoint H up Or the highest point H of the lower body arrangement surface of the standard manikin down . As shown in fig. 2 and 3, the upper body arrangement surface is a cylinder surrounding the upper body of the mannequin, H up Setting values of axes consistent with the height direction of the standard human body model for the upper body arrangement surface in the upper plane corresponding coordinates of the axis direction consistent with the height direction of the standard human body model; the lower body arrangement surface is a cylinder which surrounds the lower body of the human body model, H down The lower body is arranged with a value corresponding to the upper plane of the surface in the axial direction which coincides with the height direction of the standard manikin.
In one embodiment, step S102 includes: obtaining the highest point H of the upper body arrangement surface of the standard human body model up And the highest point H of the lower body arrangement surface down The method comprises the steps of carrying out a first treatment on the surface of the Judgment of H up Whether the absolute value of the difference from L is less than or equal to H down Absolute value of difference from L; wherein, when H up The absolute value of the difference from L is less than or equal to H down Absolute value of difference from L, i.e. |H up -L|≤|H down -L|,H up Is H, when H up The absolute value of the difference from L is greater than H down Absolute value of difference from L, i.e. |H down -L|≤|H up -L|,H down H. For example, the proportional control point H of garments such as jackets, shirts, etc. is typically H up The proportion comparison point H of trousers and other clothes is usually H down
Alternatively, the clothing information and the arrangement plane information to which H, H belongs may be stored correspondingly, and when the clothing needs to be worn on the mannequin, the arrangement plane to which the proportional control point H 'of the mannequin corresponds to the clothing may be quickly determined through these information, so as to determine the value of H' (this will be described in detail in the following embodiments of the wearing method).
Step S103: and calculating the wearing proportion relation P of the virtual garment and the standard human body model, wherein P=L/H.
Optionally, after the wearing proportion relation P is calculated, the clothing information of the virtual clothing and the wearing proportion relation P may also be sent to the fitting system. The clothing information of the virtual clothing includes, but is not limited to, clothing posture information (for example), arrangement plane information corresponding to the proportional check point H, H, bounding boxes, world coordinate system coordinates of the virtual clothing, world coordinate system coordinates of the standard human model, and the like, which wear the virtual clothing on the standard human model. The fitting system may determine the proportional check point H' of the mannequin of the virtual garment to be worn according to the arrangement plane information corresponding to the proportional check point H (details will be described below).
Referring to fig. 4, a method for wearing virtual clothes according to an embodiment of the present application is described below with reference to fig. 4.
Step S201: a mannequin of the virtual garment to be worn is obtained.
In one embodiment, when a user needs to try on the virtual garment, the fit interface, for example, the fit system inputs his or her stature data, such as height, weight, three-dimension, etc., and the fit system generates a mannequin matching the stature data according to the stature data input by the user, such as height, weight, three-dimensional, etc.
In another possible implementation, a plurality of different mannequins may be preset in the fitting system, and the user may directly select the mannequin that is similar to his own requirements.
After the mannequin of the virtual garment to be worn is obtained in the above manner or otherwise, step S202 may be performed next.
Step S202: and obtaining a proportion comparison point H' of the human body model. H' is the highest point H of the upper body arrangement surface of the human body model up Highest point H of the lower body arrangement surface of' or the manikin down ′。
In one embodiment, a proportion comparison point H of a standard human body model for wearing virtual clothes and an arrangement surface corresponding to the H are obtained; determining a proportion comparison point H' according to the arrangement surface corresponding to H, and when H is the highest point H of the arrangement surface of the upper body of the standard human body model up When H' is H up ′,H up ' is the highest point of the upper body arrangement surface of the human body model, when H is the highest point H of the upper body arrangement surface of the standard human body model down When H' is H down ′,H down ' is the highest point of the lower body arrangement surface of the mannequin.
The information of the proportional control points H and the arrangement surfaces corresponding to the H of the standard mannequin wearing the virtual garment may be sent to the fitting system by the fitting system, or the information may be stored in the fitting system in advance by the fitting engineer and updated periodically. The method for obtaining the proportional check point H by the garment system may refer to the description of step S102.
Step S203: calculating the highest point L ', L ' =p·h ' of the virtual garment. P is a preset wearing proportion relation between the virtual clothing and the standard human body model.
The method for obtaining the wearing proportion relation P between the virtual garment and the standard mannequin may refer to the wearing proportion calculation method, and of course, in actual application, the wearing proportion relation P may also be obtained by other modes, for example, may be preset by a clothing engineer according to experience.
Alternatively, the wearing proportional relationship P may be sent to the fitting system by the fitting system, or may be preset in the fitting system by the fitting engineer.
Step S204: the garment is moved L' -L along an axis coincident with the height of the mannequin. And integrally moving the virtual garment worn on the human body model by L' -L distances along an axis consistent with the height direction of the human body model of a world coordinate system, wherein L is the highest point of the virtual garment when the virtual garment is worn on the standard human body model.
In one embodiment, after the highest point L 'of the virtual garment worn on the mannequin is calculated, the virtual garment is moved in the fitting system by L' -L distance along an axis of the world coordinate system which is consistent with the height direction of the mannequin, so that the virtual garment is worn on the mannequin. The axis consistent with the height direction of the human body model can be any one of three direction axes of an X axis, a Y axis and a Z axis. For example, when the axis coincident with the height direction of the phantom is the Y axis, the phantom is in a posture standing on the XOZ plane (a plane formed by the X axis and the Z axis).
It should be noted that, in order to ensure that the virtual garment can be accurately worn on the mannequin, the height direction of the mannequin in the world coordinate system is the same as the height direction of the standard mannequin in the world coordinate system, meanwhile, one coordinate reference point needs to be set on each of the mannequin and the standard mannequin, the coordinates of the coordinate reference points of different mannequins in the world coordinate system are the same, and the coordinate reference points are located at the same positions of different mannequins, for example, the AABB bounding boxes of the mannequin and the standard mannequin are calculated respectively, and the center point of the lower plane of the calculated bounding box is set as the respective coordinate reference point. Meanwhile, when the virtual garment is worn on the standard human body model, the coordinates of the virtual garment in the world coordinate system are obtained, when the virtual garment is required to be worn on the human body model, the garment information of the virtual garment is imported, the virtual garment information comprises the coordinates of the virtual garment in the world coordinate system when the virtual garment is worn on the standard human body model, and the position of the virtual garment in the world coordinate system of the human body model is determined according to the coordinates. In the world coordinate system where the standard mannequin is located, the virtual garment is in a state of being worn on the standard mannequin, so that in the world coordinate system where the mannequin is located, if the mannequin is the same as the standard mannequin in height, the virtual garment is in a state of being worn on the mannequin, if the mannequin is different from the standard mannequin in height, for example, if the mannequin is higher than the standard mannequin in height, the virtual garment is embedded into the body of the mannequin, the embedded distance is L '-L, L' -L >0, and if the mannequin is lower than the standard mannequin, the virtual garment is higher than the body of the mannequin in the axial direction consistent with the height direction of the mannequin, the distance is L '-L, L' -L <0, and at this time, the virtual garment is moved in the axial direction consistent with the height direction of the mannequin, and the virtual garment is in a state of being worn on the mannequin.
The mannequin is the same as the standard mannequin in the garment system in terms of world coordinates, and the coordinates of the virtual garment before movement are the same as the coordinates of the virtual garment in terms of world coordinates when worn on the standard mannequin. The coordinates of different mannequins can be always consistent with the coordinates of the standard mannequin by setting the lowest point of the lower body arrangement surface of the mannequin as the origin of the world coordinate system.
For easy understanding, please refer to fig. 5, fig. 5 shows a situation that the mannequin of different heights wears a jacket of 175cm in size, wherein the heights of the mannequin are 155cm, 165cm, 175cm, 185cm, 195cm from short to high. As can be seen from the figure, the mannequins of different heights in the same posture have gradually increased heights and weights, but the overall shape of the mannequin is basically unchanged for the clothing. The difference is that when a shorter mannequin, such as a 155cm mannequin, wears 175cm of clothing, the clothing appears to be relatively flat; while a mannequin of 195cm wears a garment of 175cm, the garment looks plump, but overall the appearance of the garment is substantially unchanged, and the overall position and height of the garment are different except for the difference between the plump and the flat. Therefore, when the clothing posture information worn on the standard human body model is possessed, the clothing can be worn on other human body models only by moving the clothing up and down, and therefore, the virtual clothing can be worn on different human body models only by determining the distance of moving the virtual clothing up and down on different human body models. And this distance of translation up and down can be obtained according to the procedure illustrated in fig. 4. Therefore, the virtual clothes can be quickly worn on different human models, the running power is more efficient, and meanwhile, the condition of cloth entanglement can not occur.
In one embodiment, the method further comprises resetting the plate of the sleeve of the virtual garment after movement to a plate-like state to fit the sleeve to the arm of the mannequin. The printing state refers to that the clothing is set into a plurality of clothing plates, and the clothing plates can be automatically attached to the arrangement points corresponding to the mannequin, and the positions of the clothing plates are changed along with the change of the arrangement points.
For ease of understanding, referring to fig. 6, fig. 6 shows a scenario in which a mannequin having the same height and different shoulder widths and the same virtual garment are worn on the mannequin having the same height and different shoulder widths, it can be seen from fig. 6 that even though the heights and postures of the mannequins are the same, the angles between the arms and the body of the mannequin are changed due to the different shoulder widths of the different mannequins, in which case the main body part of the garment can be worn on the mannequin, but the sleeve part may not be worn on the mannequin, so that the sleeves of the virtual garment are reset to the plate state so as to be worn on the arms of the mannequin.
Referring to fig. 7, a virtual garment wearing device 100 according to an embodiment of the present application includes an obtaining module 110, a calculating module 120, and a wearing module 130.
The obtaining module 110 is configured to obtain a mannequin of a three-dimensional garment to be worn, and a proportion comparison point H 'of the mannequin, where H' is a highest point H of an upper body arrangement surface of the mannequin up Highest point H of the lower body arrangement surface of' or the manikin down ′。
The calculating module 120 is configured to calculate a highest point L ' of the virtual garment worn on the mannequin, where L ' =h '/P, and P is a wearing proportional relationship between the virtual garment and a standard mannequin.
The wearing module 130 is configured to wear the virtual garment on the mannequin, and move the virtual garment integrally by L' -L distance along an axis in the world coordinate system consistent with the height direction of the mannequin, so that the three-dimensional garment is worn on the mannequin, where L is the highest point of the virtual garment worn on the standard mannequin.
Optionally, the obtaining module 110 is specifically configured to obtain a proportional control point H of a standard mannequin wearing the virtual garment and an arrangement surface corresponding to the H; determining a proportion comparison point H' according to the arrangement surface corresponding to the H, and when the H is the highest point H of the arrangement surface of the upper body of the standard human body model up When H' is H up ' said H up ' is the highest point of the upper body arrangement surface of the human body model, when the H is the highest point H of the upper body arrangement surface of the standard human body model down When H' is H down ' said H down ' is the highest point of the lower body arrangement surface of the manikin.
Optionally, the wearing module 130 is further configured to reset the plate of the sleeve of the virtual garment after moving to the plate-printing state, so that the sleeve fits to the arm of the mannequin.
Referring to fig. 8, fig. 8 is a schematic diagram of a virtual garment wearing ratio calculating device 300 according to an embodiment of the present application, which includes an obtaining module 310 and a calculating module 320.
The obtaining module 310 is configured to obtain a highest point L of a virtual garment worn on a mannequin, and obtain a proportional control point H of a standard mannequin, where H is the highest point H of an upper body arrangement surface of the mannequin up Highest point H of the lower body arrangement surface of' or the manikin down ′。
The calculating module 320 is configured to calculate a wearing proportional relationship P, p=l/H between the virtual garment and the standard mannequin.
Optionally, the virtual garment wearing proportion calculating device 300 further includes a wearing module, configured to, before acquiring the highest point L of the virtual garment wearing on the standard mannequin, wear the virtual garment on the standard mannequin based on the received wearing operation information, and drag the virtual garment in order based on the received dragging operation information.
Optionally, the obtaining module 310 is specifically configured to calculate a bounding box of the virtual garment, and obtain, through an upper plane of the bounding box, a highest position L of the virtual garment in a world coordinate system.
Optionally, the acquiring module 310 is specifically configured to acquire the highest point H of the upper body arrangement surface of the standard mannequin up And the highest point H of the lower body arrangement surface down The method comprises the steps of carrying out a first treatment on the surface of the Judging the H up Whether the absolute value of the L difference is smaller than or equal to H down An absolute value of the difference from the L; wherein when the H is up The absolute value of the difference from the L is less than or equal to the H down The absolute value of the difference from the L is that of the H up Is H, when said H up The absolute value of the difference from the L is larger than that of the H down And the L isThe absolute value of the difference of H down H.
Optionally, the virtual garment wearing proportion calculating device 300 further includes a sending module, configured to send the garment information of the virtual garment and the wearing proportion relation P to a fitting system.
Please refer to fig. 9, which is an electronic device provided in an embodiment of the present application. The electronic device 200 includes: transceiver 210, memory 220, communication bus 230, processor 240.
The transceiver 210, the memory 220, and the processor 240 are electrically connected directly or indirectly to each other to realize data transmission or interaction. For example, the components may be electrically coupled to each other via one or more communication buses 230 or signal lines. Wherein the transceiver 210 is configured to transmit and receive data. The memory 220 is used to store a computer program, such as the software functional modules shown in fig. 7, i.e. the virtual garment wearing device 100. Wherein the virtual garment wearing device 100 comprises at least one software function module which may be stored in the memory 220 in the form of software or firmware (firmware) or cured in an Operating System (OS) of the electronic device 200. The processor 240 is configured to execute executable modules stored in the memory 220, such as software functional modules or computer programs included in the virtual garment wearing device 100. For example, a mannequin of a three-dimensional garment to be worn is acquired; acquiring a proportion comparison point H 'of the human body model, wherein H' is the highest point H of an upper body arrangement surface of the human body model up Highest point H of the lower body arrangement surface of' or the manikin down 'A'; calculating the highest point L 'of the virtual garment when the virtual garment is worn on the human body model according to the H' and the P, wherein the L '=H'. P is a preset wearing proportion relation between the virtual garment and a standard human body model; and integrally moving the virtual garment worn on the mannequin by L' -L distance along an axis consistent with the height direction of the mannequin in a world coordinate system, wherein L is the highest point of the virtual garment when the virtual garment is worn on the standard mannequin.
Alternatively, the memory 220 stores the data shown in FIG. 8I.e., the virtual garment wearing ratio calculation device 300. Wherein the virtual garment wearing ratio calculating means 300 comprises at least one software function module which may be stored in the memory 220 in the form of software or firmware (firmware) or cured in an Operating System (OS) of the electronic device 200. The processor 240 is configured to execute executable modules stored in the memory 220, such as software functional modules or computer programs included in the virtual garment wear proportion calculation device 300. For example, the highest point L of a virtual garment worn on a standard mannequin is acquired; acquiring a proportion comparison point H of a standard human body model, wherein H is the highest point H of an upper body arrangement surface of the standard human body model up Or the highest point H of the lower body arrangement surface of the standard manikin down The method comprises the steps of carrying out a first treatment on the surface of the And calculating the wearing proportion relation P of the virtual garment and the standard human body model, wherein P=L/H.
The Memory 220 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), etc.
The processor 240 may be an integrated circuit chip with signal processing capabilities. The processor 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 (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field Programmable Gate Array, FPGA) 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 240 may be any conventional processor or the like.
The electronic device 200 includes, but is not limited to, a smart phone, a tablet, a personal computer, a server, etc.
The embodiments of the present application further provide a non-volatile computer readable storage medium (hereinafter referred to as a storage medium) on which a computer program is stored, where the computer program, when executed by a computer such as the electronic device 200 described above, performs the virtual garment wearing method and/or the virtual garment wearing ratio calculating method described above.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
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 notebook computer, a server, or an electronic device, etc.) to perform all or part of the steps of the method 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), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those 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 (11)

1. A method of wearing virtual apparel, comprising:
acquiring a human body model of a virtual garment to be worn;
acquiring a proportion comparison point H 'of the human body model, wherein H' is the highest point H of an upper body arrangement surface of the human body model up Highest point H of the lower body arrangement surface of' or the manikin down ′;
Calculating the highest point L 'of the virtual garment when the virtual garment is worn on the human body model according to the H' and the P, wherein the L '=H'. P is a preset wearing proportion relation between the virtual garment and a standard human body model; wherein p=l/H, L is the highest point of the virtual garment worn on the standard mannequinThe method comprises the steps of carrying out a first treatment on the surface of the H is the proportional control point of the standard human body model, and is the highest point H of the upper body arrangement surface of the standard human body model up Or the highest point H of the lower body arrangement surface of the standard manikin down
And integrally moving the virtual garment worn on the mannequin by L' -L distance along an axis consistent with the height direction of the mannequin in a world coordinate system, wherein L is the highest point of the virtual garment when the virtual garment is worn on the standard mannequin.
2. The method according to claim 1, wherein obtaining a proportional control point H' of the manikin comprises:
Acquiring a proportion comparison point H of a standard human body model for wearing the virtual garment and a layout surface corresponding to the H;
determining a proportion comparison point H' according to the arrangement surface corresponding to the H, and when the H is the highest point H of the arrangement surface of the upper body of the standard human body model up When H' is H up ' said H up ' is the highest point of the upper body arrangement surface of the human body model, when the H is the highest point H of the upper body arrangement surface of the standard human body model down When H' is H down ' said H down ' is the highest point of the lower body arrangement surface of the manikin.
3. The method according to claim 1, wherein the method further comprises:
resetting the plate pieces of the sleeves of the virtual garment after moving to a plate printing state, so that the sleeves are attached to the arms of the human body model.
4. The method of claim 1, wherein prior to said calculating a highest point L 'of the virtual garment when worn on the mannequin from the H' and P, the method further comprises:
acquiring the highest point L of a virtual garment worn on a standard human body model;
obtaining standard human bodyThe proportion of the model is compared with the point H which is the highest point H of the upper body arrangement surface of the standard human body model up Or the highest point H of the lower body arrangement surface of the standard manikin down
And calculating the wearing proportion relation P of the virtual garment and the standard human body model, wherein P=L/H.
5. The method of claim 4, wherein prior to obtaining the highest point L of the virtual garment worn on the standard mannequin, the method further comprises:
based on the received wearing operation information, wearing the virtual garment on the standard mannequin;
and based on the received drag operation information, the virtual clothes are dragged in order.
6. The method of claim 4, wherein obtaining the highest point L of the virtual garment comprises:
calculating a bounding box of the virtual garment, and acquiring the highest position L of the virtual garment in a world coordinate system through the upper plane of the bounding box.
7. The method of claim 4, wherein obtaining a scale control point H for a standard mannequin comprises:
acquiring the highest point H of the upper body arrangement surface of the standard human body model up And the highest point H of the lower body arrangement surface down
Judging the H up Whether the absolute value of the L difference is smaller than or equal to H down An absolute value of the difference from the L;
wherein when the H is up The absolute value of the difference from the L is less than or equal to the H down The absolute value of the difference from the L is that of the H up Is H, when said H up The absolute value of the difference from the L is larger than that of the H down The absolute value of the difference from the L is that of the H down H.
8. The method according to claim 4, wherein the method further comprises:
and transmitting the clothing information of the virtual clothing and the wearing proportion relation P to a fitting system.
9. A virtual garment wearing apparatus, comprising:
the device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a human body model of a virtual garment to be worn and a proportion comparison point H 'of the human body model, and the H' is the highest point H of an upper body arrangement surface of the human body model up Highest point H of the lower body arrangement surface of' or the manikin down ′;
The computing module is used for computing the highest point L ' of the virtual garment worn on the human body model, wherein L ' =H '/P is the wearing proportion relation between the virtual garment and the standard human body model; wherein p=l/H, L being the highest point of the virtual garment worn on the standard mannequin; h is the proportional control point of the standard human body model, and is the highest point H of the upper body arrangement surface of the standard human body model up Or the highest point H of the lower body arrangement surface of the standard manikin down
And the wearing module is used for wearing the virtual garment on the human body model, and integrally moving the virtual garment by L' -L distance along an axis consistent with the height direction of the human body model in a world coordinate system, wherein L is the highest point of the virtual garment on the standard human body model.
10. An electronic device, comprising: the device comprises a memory and a processor, wherein the memory is connected with the processor;
the memory is used for storing programs;
the processor is configured to invoke a program stored in the memory to perform the method of any of claims 1-8.
11. A storage medium having stored thereon a computer program which, when executed by a computer, performs the method of any of claims 1-8.
CN202011461931.3A 2020-12-09 2020-12-09 Virtual clothing wearing method, wearing proportion calculating method and device and electronic equipment Active CN112734936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011461931.3A CN112734936B (en) 2020-12-09 2020-12-09 Virtual clothing wearing method, wearing proportion calculating method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011461931.3A CN112734936B (en) 2020-12-09 2020-12-09 Virtual clothing wearing method, wearing proportion calculating method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112734936A CN112734936A (en) 2021-04-30
CN112734936B true CN112734936B (en) 2023-07-11

Family

ID=75599637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011461931.3A Active CN112734936B (en) 2020-12-09 2020-12-09 Virtual clothing wearing method, wearing proportion calculating method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112734936B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102842089A (en) * 2012-07-18 2012-12-26 上海交通大学 Network virtual fit system based on 3D actual human body model and clothes model
CN105303608A (en) * 2015-11-10 2016-02-03 南京大学 Computer virtual fitting clothing model automatic alignment and size judgment method
CN106251200A (en) * 2016-07-27 2016-12-21 华北电力大学 The virtual fit method of Case-based Reasoning
CN106384381A (en) * 2016-08-31 2017-02-08 北京维盛视通科技有限公司 Two-dimensional clothes gravure three-dimensional method and device
CN107481082A (en) * 2017-06-26 2017-12-15 珠海格力电器股份有限公司 A kind of virtual fit method and its device, electronic equipment and virtual fitting system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9905019B2 (en) * 2015-08-07 2018-02-27 Selfiestyler Inc. Virtual apparel fitting systems and methods

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102842089A (en) * 2012-07-18 2012-12-26 上海交通大学 Network virtual fit system based on 3D actual human body model and clothes model
CN105303608A (en) * 2015-11-10 2016-02-03 南京大学 Computer virtual fitting clothing model automatic alignment and size judgment method
CN106251200A (en) * 2016-07-27 2016-12-21 华北电力大学 The virtual fit method of Case-based Reasoning
CN106384381A (en) * 2016-08-31 2017-02-08 北京维盛视通科技有限公司 Two-dimensional clothes gravure three-dimensional method and device
CN107481082A (en) * 2017-06-26 2017-12-15 珠海格力电器股份有限公司 A kind of virtual fit method and its device, electronic equipment and virtual fitting system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
3D garment modeling-creation of a virtual mannequin of the human body;Agnieszka Cichocka等;《Fibres & textiles in eastern Europe》;123-131 *
基于WEB的三维服装试穿技术的研究;李素芳;《中国优秀硕士学位论文全文数据库 (信息科技辑)》(第8期);I138-193 *

Also Published As

Publication number Publication date
CN112734936A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US11662829B2 (en) Modification of three-dimensional garments using gestures
US8525828B1 (en) Visualization of fit, flow, and texture of clothing items by online consumers
US20220258049A1 (en) System and method for real-time calibration of virtual apparel using stateful neural network inferences and interactive body measurements
WO2015129353A1 (en) Virtual trial-fitting system, virtual trial-fitting program, virtual trial-fitting method, and storage medium in which virtual trial-fitting program is stored
Jimeno-Morenilla et al. Augmented and virtual reality techniques for footwear
CN113129450A (en) Virtual fitting method, device, electronic equipment and medium
TWI790369B (en) Dimensional system
KR20140108451A (en) Avatar 3 dimensional clothes automatically transferring wearing method
KR20220066774A (en) Method and apparatus for online fitting
CN112734936B (en) Virtual clothing wearing method, wearing proportion calculating method and device and electronic equipment
WO2023134709A1 (en) Virtual garment try-on method and apparatus
US10025294B2 (en) Apparel items simulation apparatus and methods
Tisserand et al. Automatic 3D garment positioning based on surface metric
KR20210004824A (en) Apparatus and method for measuring body size
CN112686733B (en) E-commerce product simulation system based on big data
Veneruso et al. V-door: A real-time virtual dressing room application using oculus rift
CN111666963B (en) Method, device and equipment for identifying clothes styles
CN109816492B (en) Method, terminal and medium for realizing virtual fitting room
Chiricota et al. Geometrical modelling of garments
CN110675491A (en) Virtual character image setting-based implementation method and intelligent terminal
CN116228990A (en) Image processing method, device, computer equipment and storage medium
KR20230043341A (en) Method for providing user-customized clothing recommendation service
KR20230043340A (en) Apparatus of providing metaverse curmerce services using virtual fitting services
KR20230043349A (en) Method of providing a virtual character fitting simulation service that reflects the user&#39;s characteristics
KR20230043342A (en) Method for creating a 3D-based virtual fitting avatar in the metaverse commerce service

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