WO2022166805A1 - Virtual fitting method - Google Patents

Virtual fitting method Download PDF

Info

Publication number
WO2022166805A1
WO2022166805A1 PCT/CN2022/074556 CN2022074556W WO2022166805A1 WO 2022166805 A1 WO2022166805 A1 WO 2022166805A1 CN 2022074556 W CN2022074556 W CN 2022074556W WO 2022166805 A1 WO2022166805 A1 WO 2022166805A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
turning
human body
actual
parameter
Prior art date
Application number
PCT/CN2022/074556
Other languages
French (fr)
Chinese (zh)
Inventor
王志强
袁浩宸
孙宏熙
Original Assignee
上海英立视电子有限公司
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 上海英立视电子有限公司 filed Critical 上海英立视电子有限公司
Publication of WO2022166805A1 publication Critical patent/WO2022166805A1/en

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes

Definitions

  • the invention belongs to the technical field of virtual fitting, in particular to a virtual fitting method.
  • the current virtual fitting system generally adopts the effect of virtual fitting by allowing the user to input human body size parameters and then replacing the real human body with a model corresponding to the body type. This method is firstly inconvenient, secondly, there is no sense of reality, and thirdly, the body size parameters input by the user are not necessarily accurate. Therefore, how to solve the above problems is the direction that those skilled in the art need to study.
  • the present invention provides a virtual fitting method, which does not require the customer to input the body size, has a strong sense of reality, and has a good fitting effect.
  • the technical scheme of the present invention is: a virtual fitting method, comprising the following steps:
  • Step S1 acquiring a human body image
  • Step S2 dividing the human body image into a first-side human body image and a second-side human body image with the human body midline as a boundary, and the human body midline refers to the vertical midline of the human body;
  • Step S3 Obtaining clothing image data, the clothing image data includes the clothing image, and the human-clothing connection parameter points and the human body turning parameter points marked on the clothing image; , the intersection point between the contour line of the clothes and the contour line of the model human body; the human body turning parameter point refers to the turning point near the human body joints on the contour line of the model human body;
  • Step S4 Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point A on the first side human body image, and based on the relative positions of the human clothing connection parameter points and the human body turning parameter points, on the first side The corresponding human clothing is marked on the human image to connect to the actual point A;
  • Step S5 obtaining the corresponding symmetrical actual point A' of the human-clothing connection based on the centerline of the human body based on the actual point A of the human-clothing connection;
  • Step S6 Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point B on the human body image on the second side, and based on the relative position of the human clothing connection parameter point and the human body turning parameter point, on the second side The corresponding human clothing is marked on the human image to connect with the actual point B;
  • Step S7 taking the actual point B of the connection between the human body and the clothing and the actual point B of the human body turning as the source point, and taking the corresponding actual point A' of the human clothing connection and the actual point A' of the human body turning as the target point, the second side human body image is deformed;
  • Step S8 take the human clothing connection parameter point and the human body turning parameter point as the source point, and take the corresponding human clothing connecting actual point A, the human body turning actual point A, the human clothing connecting actual point A', and the human body turning actual point A' as the target point to warp and superimpose the image of the clothing onto the image of the human body.
  • the existing virtual fitting system can only fit the clothes according to the human body contour through geometric algorithms.
  • Such parameters are determined for each type of clothes and are not difficult to obtain, and then the human body that clearly exists on the human body is obtained based on the human body turning parameter points. Turn the actual point and then obtain the actual point of the connection between the human body and the clothes, and symmetric the two sides of the human body and the clothes based on the center line of the human body, so that you can not only see the real effect of the clothes on your body during fitting, but will not appear disheveled visual effects , which better solves this problem.
  • step S5 in addition to obtaining the actual point A' of the connection between the clothes and the actual point A' of the body's midline based on the actual point A of the connection of the human body and the actual point A of the turning point of the human body; Obtain its symmetry point based on the midline of the human body only according to the actual human body turning point A, and then obtain the human-clothing connection parameter point A' based on the relative position of the human body turning parameter point and the human-clothing connection parameter point in the clothing image data, Since the sample clothes are symmetrical, the purpose of obtaining the symmetry point A' of the connection parameter point A of the human body based on the midline of the human body can also be achieved.
  • image deformation based on the source point and the target point in the step S7 and the step S8 are commonly used techniques in the art, such as perspective transformation, affine transformation, local image stretching, scaling and rotation, and other source and target-based techniques. Point contour reconstruction scheme, etc.
  • the actual point B connected with all the clothing and the actual point B of all human turning points can be used as source points, and the corresponding human clothing can be connected with the actual point A' and the human body.
  • the actual turning point A' is used as the target point, and the second side human body image is deformed as a whole; it is also possible to use some human clothing to connect with the actual point B and/or part of the human body to turn the actual point B as the source point, and the corresponding human clothing to connect with the actual point A.
  • the second side human body image is partially deformed, such as the human body corresponding to the human body turning parameter points in the clothing image data that are connected to the actual point B that does not overlap with the clothing outline.
  • the turning point B is the source point
  • the corresponding human clothing connection actual point A' and the human body turning actual point A' are taken as the target point, and only the second side human body image is partially deformed.
  • the local deformation area is actually exposed when dressing.
  • the corresponding human body image other than the clothing outline segment will be cleared, so the final effect of this local deformation is the same as the overall deformation.
  • Another example is to locally deform only the human body image corresponding to the segment region of the human body contour line where the bilateral human body images are severely asymmetrical, so that symmetry can be achieved to achieve a better balance between the sense of reality and the sense of neatness.
  • all clothing connection parameter points and human body turning parameter points can be used as source points, and the corresponding human clothing connection actual points and human body turning actual points can be used as target points.
  • the clothing image is completely and accurately deformed; it is also possible to take some human clothing connection parameter points and/or some human body turning parameter points as source points, and take the corresponding human clothing connection actual points and human body turning actual points as target points to locally deform the clothing image.
  • the human body turning parameter points that overlap with the clothing outline in the clothing image data may not be used as the source point of the deformation of the clothing image.
  • the turning parameter points of the head and neck angle belong to the human body turning points that do not overlap with the clothing outline.
  • Parameter point since the clothes contour line is an irregular curve, when the neckline contour line is higher than the neckline and neck connection parameter point, if the head and neck angle turning parameter point higher than the neckline and neck connection parameter point is used as part of the source point, it can be guaranteed that The part of the neckline contour line higher than the neckline and neck connection parameter point can be accurately deformed, but even if the head and neck angle turning parameter point is not selected as the source point, the neckline contour line can be deformed, especially when the neckline contour line is not higher than the neckline neck.
  • the deformation of the clothes image in the step S8 may be based on the overall deformation of the source point and the target point, or may be sequentially deformed based on the source point and the target point by region, such as the first side and then the second side based on the midline of the human body, etc. ; It should be noted that, in order to make the dressing effect more beautiful, the position of the target point can be corrected according to the empirical value, and then the clothing image can be deformed.
  • the step S7 further includes modifying the human body image after the human body image is deformed:
  • Step 7-1 connecting the source points in step S7 in sequence along the human body contour line before the deformation of the second human body image to obtain a human body contour line segment X1;
  • Step 7-2 connecting the target points in step S7 along the deformed human body contour line of the second human body image in sequence to obtain a human body contour line segment X2;
  • Step 7-3 Clear the human body images located inside the human body contour line segment X1 and outside the human body contour line segment X2.
  • the residual human body image other than the human body contour line obtained after the deformation can be removed, so as to ensure a good visual effect.
  • the above-mentioned virtual fitting method further includes step S9, and step S9 is to correct the composite image obtained after the clothes image is superimposed on the human body image:
  • Step 9-1 Connect the actual point where the human clothing is connected in the target point of step S8 and the actual turning point of the human body that overlaps with the clothing outline along the direction of the clothing outline.
  • connecting if the two adjacent points are both If it is the actual point of the human-clothing connection, connect the two points along the outline of the clothing, otherwise, connect the two points along the outline of the human body; obtain the human body area Y1;
  • Step 9-2 Remove the portion of the human body area Y1 that is beyond the area covered by the clothing image after being deformed and superimposed on the human body image.
  • connection parameter points of the human clothing include 2 connection parameter points of the neckline and neck, 2 connection parameters of the outer contour of the cuff and the wrist point, 2 cuff wrist inner contour line connection parameter points, 2 hem waist connection parameter points
  • the human body turning parameter points include 2 head and neck angle turning parameter points, 2 shoulder and neck angle turning parameter points, 2 acromion turning parameter points Parameter points, 2 outer contour elbow turning parameter points, 2 inner contour elbow turning parameter points, 2 outer contour wrist turning parameter points, 2 inner contour wrist turning parameter points, 2 hip turning parameter points ;
  • the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point
  • the relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image including the following steps:
  • the outer contour of the actual point of the connection between the outer contour of the cuff and the wrist relative to the same side of the human body midline is obtained.
  • the inner contour of the cuff wrist inner contour line connecting the actual point on the same side of the human body midline is obtained.
  • the actual point of the hem waist connection is obtained relative to the acromion turning actual point and the hip turning actual point on the same side of the body midline.
  • the human-clothing connection parameter points include 2 neckline and neck connection parameter points, and 2 cuff and upper arm outer contour line connection parameters.
  • the human body turning parameter points include 2 head and neck angle turning parameter points, 2 shoulder and neck angle turning parameter points, 2 acromion turning parameter points Parameter points, 2 outer contour elbow turning parameter points, 2 inner contour elbow turning parameter points, 2 hip turning parameter points;
  • the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point
  • the relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image including the following steps:
  • the actual acromion turning point of the outer contour line of the upper arm of the cuff relative to the same side of the body midline is obtained. point and the position of the actual point where the elbow of the outer contour turns;
  • the actual acromion turning point of the inner contour line of the upper arm of the cuff relative to the same side of the body midline is obtained. point and the position of the actual point where the elbow of the inner contour turns;
  • the actual point of the hem waist connection is obtained relative to the acromion turning actual point and the hip turning actual point on the same side of the body midline.
  • the human-clothing connection parameter points include 2 neckline and neck connection parameter points, 2 neckline and shoulder connection parameter points, 2 upper hem armpit connection parameter points, 2 lower hem waist connection parameter points, the human body turning parameter points include 2 shoulder and neck angle turning parameter points, 2 acromion turning parameter points, and 2 hip turning parameter points;
  • the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point
  • the relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image including the following steps:
  • the actual point of the neckline and neck connection is obtained relative to the shoulder-neck angle turning point and acromion on the same side of the human body midline.
  • the actual acromion turning point and the hip turning point on the same side of the body midline are obtained The position of the actual point of the turning point;
  • the position of the actual point of the hem waist connection relative to the acromion turning point on the same side of the body midline and the actual hip turning point is obtained.
  • the human-clothing connection parameter points include 2 trouser waist and waist connection parameter points, 2 trouser legs and lower leg outer contour line connection parameter points, 2 trouser leg inner contour line connection parameter points
  • the human body turning parameter points include 2 hip turning parameter points, 2 outer contour knee turning parameter points, 2 inner contour knee turning parameter points, 2 outer contours Ankle turning parameter point, 2 inner contour ankle turning parameter points;
  • the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point
  • the relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image including the following steps:
  • the actual point of the waist-waist connection is obtained relative to the hip turning point on the same side of the human body midline and the outer contour knee turning actual point. the position of the point;
  • the actual point of the connection between the outer contour line of the trousers calf and the outer contour knee on the same side of the human body midline is obtained.
  • the actual point of the connection between the inner contour line of the trouser leg and the calf is obtained relative to the inner contour knee on the same side of the human body midline.
  • the position of the actual point of turning and the actual turning point of the inner contour ankle is obtained relative to the inner contour knee on the same side of the human body midline.
  • the human-clothing connection parameter points include 2 trouser waist and waist connection parameter points, 2 trouser legs and thigh outer contour line connection parameter points, 2 There are two trouser leg inner contour line connection parameter points, and the human body turning parameter points include 2 hip turning parameter points, 2 outer contour knee turning parameter points, 2 inner contour knee turning parameter points, and 2 outer contour ankle turning parameter points. External turning parameter points, 2 inner contour ankle turning parameter points;
  • the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point
  • the relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image including the following steps:
  • the actual point of the waist-waist connection is obtained relative to the hip turning point on the same side of the human body midline and the outer contour knee turning actual point. the position of the point;
  • the actual point of the connection between the outer contour line of the trouser leg and the thigh is obtained relative to the outer contour knee on the same side of the human body midline.
  • the actual point of the connection between the inner contour line of the trouser leg and the thigh is obtained relative to the inner contour knee on the same side of the human body midline.
  • the position of the actual point of turning and the actual turning point of the inner contour ankle is obtained relative to the inner contour knee on the same side of the human body midline.
  • the human-clothing connection parameter points include two skirt-waist-waist connection parameter points and two skirt-leg connection parameter points, so
  • the human body turning parameter points include 2 hip turning parameter points and 2 outer contour knee turning parameter points;
  • the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point
  • the relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image including the following steps:
  • the actual point of the connection between the skirt waist and waist is obtained relative to the actual turning point of the hip on the same side of the human body midline and the outer contour knee.
  • the actual point of the connection between the skirt and the leg is obtained relative to the actual hip turning point on the same side of the body midline and the outer contour The location of the actual point of the knee turning.
  • connection point of the human body and the turning point of the human body can be increased or decreased according to the shape characteristics of the clothes, such as the looseness, the height of the collar, and the length of the sleeves.
  • the present invention has the following advantages: by adopting the virtual fitting method of the present invention, the human body image is used instead of the virtual model image, the realism is stronger, the customer does not need to input the personal body size, and the fitting effect is better. Well, more convenient.
  • Fig. 1 is a flow chart of the method of the present invention
  • Fig. 2 is an example diagram of a human body image according to the present invention
  • Fig. 3 is an example diagram of a clothing image according to the present invention
  • the example diagram after the actual point
  • Figure 5 is an example diagram of the human body image after marking the actual point of the human body turning and the actual point of the human body
  • Figure 6 is the virtual fitting effect diagram of Embodiment 1 of the present invention
  • Figure 7 is the implementation of the present invention
  • Fig. 8 is a virtual fitting effect diagram of Example 3 of the present invention
  • Fig. 9 is a virtual fitting effect diagram of Embodiment 4 of the present invention
  • Fig. 10 is a virtual fitting effect diagram of Embodiment 5 of the present invention.
  • Figure 11 is a virtual fitting effect diagram of Embodiment 6 of the present invention.
  • connection parameter point of the neckline and neck 101—the connection parameter point of the outer contour line of the cuff and wrist; 102—the connection parameter point of the inner contour line of the cuff and wrist; 103—the connection parameter point of the hem and waist; 104—the turning parameter point of the head and neck angle; 105—the shoulder Neck angle turning parameter point; 106 - acromion turning parameter point; 107 - outer contour elbow turning parameter point; 108 - inner contour elbow turning parameter point; 109 - outer contour wrist turning parameter point; 110 - inner contour wrist Turning parameter point; 111-armpit turning parameter point; 112-hip turning parameter point; 113- actual turning point of head and neck angle; 114- turning actual point of shoulder and neck angle; 115- actual turning point of acromion; 116-outer contour elbow Turning actual point; 117—Inner contour elbow turning actual point; 118—Outer contour wrist turning actual point; 119—Inner contour wrist turning actual point; 120—Axillary turning
  • the present invention is described based on the virtual fitting process of the long-sleeved top.
  • a virtual fitting method includes the following steps:
  • Step S1 acquiring a human body image
  • the human body image is a human body image obtained by directly photographing a fitting person by a camera device. Specifically, a photographed image or a photographed video of the fitting personnel is obtained through a camera device, and if it is a photographed video, the steps are performed on each frame of the image in the video.
  • the image of the human body part is first cut out through the image recognition technology, which is used as the human body image alone, and the remaining part of the image is used as the background Image, after steps S1-S9 are executed, the synthesized image is embedded on the background image, so as to realize the effect of real mirror fitting.
  • Step S2 dividing the human body image into a first-side human body image and a second-side human body image with the human body midline as a boundary, and the human body midline refers to the vertical midline of the human body;
  • the human body midline is only a virtual dividing line, and it is not necessary to actually divide the human body image into two images.
  • Step S3 Obtaining clothing image data, the clothing image data includes the clothing image, and the human-clothing connection parameter points and the human body turning parameter points marked on the clothing image; , the intersection point of the outline of the clothes and the outline of the model human body, the connection point of the outer outline of the cuff and wrist of the long-sleeved top as shown in Figure 3, the human body turning parameter point refers to the turning point near the human body joints on the outline of the model human body;
  • the human clothing connection parameter points include 2 neckline and neck connection parameter points 100 , 2 cuff wrist outer contour line connection parameter points 101 , 2 cuff wrist inner contour line connection parameter points 102, 2 hem waist connection parameter points 103, the human body turning parameter points include 2 head and neck angle turning parameter points 104, 2 shoulder and neck angle turning parameter points 105, 2 shoulder and neck angle turning parameter points 105 Peak turning parameter points 106, 2 outer contour elbow turning parameter points 107, 2 inner contour elbow turning parameter points 108, 2 outer contour wrist turning parameter points 109, 2 inner contour wrist turning parameter points 110, 2 armpit turning parameter points 111 and 2 hip turning parameter points 112 .
  • the clothes image is taken by wearing the clothes on the model body in advance, and then adding the human-clothing connection parameter points and the human body turning parameter points to the image obtained by shooting, and finally wiping the model body in the image.
  • the required clothing image data can be obtained; the clothing image can also be directly marked with the human-clothing connection parameter points and the human body turning parameter points according to the empirical value to obtain the required clothing image data.
  • Step S4 Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point A on the first side human body image, and based on the relative positions of the human clothing connection parameter points and the human body turning parameter points, on the first side The corresponding human clothing is marked on the human image to connect to the actual point A;
  • the actual human body turning point A marked on the left human body image includes the actual turning point of the head and neck angle.
  • Point 113 actual turning point of shoulder and neck angle 114, actual turning point of acromion 115, actual turning point of outer contour elbow 116, actual turning point of inner contour elbow 117, actual turning point of outer contour wrist 118, turning of inner contour wrist
  • the upper part is connected to the actual point 122
  • the outer contour of the cuff and wrist is connected to the actual point 123
  • the inner contour of the cuff and wrist is connected to the actual point 124
  • the hem waist is connected to the actual point 125 .
  • Step S5 obtaining the corresponding symmetric point of the human-clothing connection actual point A based on the midline of the human body; obtaining the actual human-body transition point A based on the corresponding symmetrical point of the human body midline; the actual human-body transition point A';
  • the actual human body turning point A' marked on the right body image includes the actual turning point 113 of the head and neck angle, the actual turning point 114 of the shoulder and neck angle, the actual turning point 115 of the shoulder peak, the actual turning point 116 of the elbow of the outer contour, and the turning actual point of the elbow of the inner contour.
  • the neckline and neck are connected to the actual point 122
  • the outer contour of the cuff and wrist is connected to the actual point 123
  • the inner contour of the cuff and the wrist is connected to the actual point 124
  • the hem waist is connected to the actual point 125 .
  • Step S6 Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point B on the human body image on the second side, and based on the relative position of the human clothing connection parameter point and the human body turning parameter point, on the second side The corresponding human clothing is marked on the human image to connect with the actual point B;
  • the second human body image is the right human body image, and the marked actual human body turning point B and the mirrored actual human body turning point A' may overlap and some may not.
  • Step S7 taking the actual point B of the connection between the human body and the clothing and the actual point B of the human body turning as the source point, and taking the corresponding actual point A' of the human clothing connection and the actual point A' of the human body turning as the target point, the second side human body image is deformed;
  • the human body image is corrected:
  • Step 7-1 connecting the source points in step S7 in sequence along the human body contour line before the deformation of the second human body image to obtain a human body contour line segment X1;
  • Step 7-2 connecting the target points in step S7 along the deformed human body contour line of the second human body image in sequence to obtain a human body contour line segment X2;
  • Step 7-3 Clear the human body images located inside the human body contour line segment X1 and outside the human body contour line segment X2.
  • the residual human body image other than the human body contour line obtained after the deformation can be removed, so as to ensure a good visual effect.
  • Step S8 take the human clothing connection parameter point and the human body turning parameter point as the source point, and take the corresponding human clothing connecting actual point A, the human body turning actual point A, the human clothing connecting actual point A', and the human body turning actual point A' as the target Click to deform the clothes image, and superimpose the deformed clothes image on the human body image.
  • Step S9 modifying the composite image obtained after the clothes image is superimposed on the human body image:
  • Step 9-1 Connect the actual point where the human clothing is connected in the target point of step S8 and the actual turning point of the human body that overlaps with the clothing outline along the direction of the clothing outline.
  • connecting if the two adjacent points are both If it is the actual point of the human-clothing connection, connect the two points along the outline of the clothing, otherwise, connect the two points along the outline of the human body; obtain the human body area Y1 (the area that should be covered by the clothing);
  • Step 9-2 Remove the portion of the human body area Y1 that is beyond the area covered by the clothing image after being deformed and superimposed on the human body image.
  • the relative positional relationship between the human-clothing connection parameter point and the human body turning parameter point can be obtained through a variety of common position algorithms, for example, the human-clothing connection parameter point can be between two adjacent human body turning parameter points.
  • the relative position of the human body contour line can be obtained.
  • connection point of the outer contour line of the wrist of the cuff of the long-sleeved top can be obtained from the relative position of the body contour line between the elbow point of the outer contour and the wrist point of the outer contour; it can also be obtained by
  • the ordinate of the human-clothing connection parameter point is obtained from the relative position of the ordinate between two adjacent human body turning parameter points, and then its abscissa is obtained based on the horizontal intersection of its ordinate and the adjacent human body outline, or the human-clothing connection is used to obtain its ordinate.
  • the abscissa of the parameter point is obtained from the relative position of the abscissa between two adjacent human body turning parameter points, and then its ordinate is obtained based on the vertical intersection of the abscissa and the adjacent human body contour; it is also possible to connect the parameter points and
  • the relative positions of the ordinate and abscissa between the two adjacent human body turning parameter points can be used to obtain their ordinate and abscissa respectively;
  • the human clothing connection parameter point and the adjacent human body turning parameter point can also be overlapped, as shown in Figure 3
  • the connection point of the outer contour line of the cuff and wrist of the long-sleeved top may overlap with the point of the outer contour of the wrist.
  • the position of the connection parameter point of the clothing is the position of the corresponding adjacent human body turning parameter point; those skilled in the art should know that there are also Other point-to-point or point-to-contour based positional algorithms can be used.
  • the actual point A corresponding to the human body image on the first side of the human body image is obtained based on the relative positions of the human clothing connection parameter point and the human body turning parameter point, or in the step S6 Based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, the corresponding human-clothing connection actual point B of the second-side human body image is obtained, including the following steps:
  • the actual neckline and neck connection point 122 is obtained relative to the head and neck angle turning point on the same side of the human body midline. 113 and the actual position of the shoulder and neck angle turning point 114;
  • the actual point 123 of the connection between the outer contour of the cuff and the wrist is obtained relative to the midline of the human body.
  • the actual point 124 of the cuff wrist inner contour line connecting actual point 124 relative to the human body midline is obtained The relative position of the actual elbow turning point 117 of the inner contour and the actual turning point 119 of the inner contour wrist on the same side;
  • the actual axillary turning point 120 and the hip turning point 125 of the hem waist connecting actual point 125 relative to the same side of the human body midline are obtained.
  • the rest of the human body since the human body is a whole, in addition to the parts of the human body related to the image data of clothes, the rest of the human body also needs to be symmetrically adjusted based on the midline of the human body to achieve better visual effects. Before the clothing starts, the entire human body is adjusted symmetrically based on the midline of the human body and the turning point of the human body, or after the clothes are fitted, the rest of the human body is symmetrically adjusted based on the midline of the human body and the turning point of the rest of the human body.
  • the present invention is described based on the virtual fitting process of the long-sleeved top.
  • a virtual fitting method includes the following steps:
  • Step S1 acquiring a human body image
  • the human body image is a human body image obtained by directly photographing a fitting person by a camera device. Specifically, a photographed image or a photographed video of the fitting personnel is obtained through a camera device, and if it is a photographed video, the steps are performed on each frame of the image in the video.
  • the image of the human body part is first cut out through the image recognition technology, which is used as the human body image alone, and the remaining part of the image is used as the background Image, after steps S1-S9 are executed, the synthesized image is embedded on the background image, so as to realize the effect of real mirror fitting.
  • Step S2 dividing the human body image into a first-side human body image and a second-side human body image with the human body midline as a boundary, and the human body midline refers to the vertical midline of the human body;
  • the human body midline is only a virtual dividing line, and it is not necessary to actually divide the human body image into two images.
  • Step S3 Obtaining clothing image data, the clothing image data includes the clothing image, and the human-clothing connection parameter points and the human body turning parameter points marked on the clothing image; , the intersection point of the outline of the clothes and the outline of the model human body, the connection point of the outer outline of the cuff and wrist of the long-sleeved top as shown in Figure 3, the human body turning parameter point refers to the turning point near the human body joints on the outline of the model human body;
  • the human clothing connection parameter points include 2 neckline and neck connection parameter points 100 , 2 cuff wrist outer contour line connection parameter points 101 , 2 cuff wrist inner contour line connection parameter points 102, 2 hem waist connection parameter points 103, the human body turning parameter points include 2 head and neck angle turning parameter points 104, 2 shoulder and neck angle turning parameter points 105, 2 shoulder and neck angle turning parameter points 105 Peak turning parameter points 106, 2 outer contour elbow turning parameter points 107, 2 inner contour elbow turning parameter points 108, 2 outer contour wrist turning parameter points 109, 2 inner contour wrist turning parameter points 110, 2 armpit turning parameter points 111 and 2 hip turning parameter points 112 .
  • the clothes image is taken by wearing the clothes on the model body in advance, and then adding the human-clothing connection parameter points and the human body turning parameter points to the image obtained by shooting, and finally wiping the model body in the image.
  • the required clothing image data can be obtained; the clothing image can also be directly marked with the human-clothing connection parameter points and the human body turning parameter points according to the empirical value to obtain the required clothing image data.
  • Step S4 Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point A on the first side human body image, and based on the relative positions of the human clothing connection parameter points and the human body turning parameter points, on the first side The corresponding human clothing is marked on the human image to connect to the actual point A;
  • the actual human body turning point A marked on the left human body image includes the actual turning point of the head and neck angle.
  • Point 113 actual turning point of shoulder and neck angle 114, actual turning point of acromion 115, actual turning point of outer contour elbow 116, actual turning point of inner contour elbow 117, actual turning point of outer contour wrist 118, turning of inner contour wrist
  • the upper part is connected to the actual point 122
  • the outer contour of the cuff and wrist is connected to the actual point 123
  • the inner contour of the cuff and wrist is connected to the actual point 124
  • the hem waist is connected to the actual point 125 .
  • Step S5 obtaining the corresponding symmetric point of the human-clothing connection actual point A based on the midline of the human body; obtaining the actual human-body transition point A based on the corresponding symmetrical point of the human body midline; the actual human-body transition point A';
  • the actual human body turning point A' marked on the right body image includes the actual turning point 113 of the head and neck angle, the actual turning point 114 of the shoulder and neck angle, the actual turning point 115 of the shoulder peak, the actual turning point 116 of the elbow of the outer contour, and the turning actual point of the elbow of the inner contour.
  • the neckline and neck are connected to the actual point 122
  • the outer contour of the cuff and wrist is connected to the actual point 123
  • the inner contour of the cuff and the wrist is connected to the actual point 124
  • the hem waist is connected to the actual point 125 .
  • Step S6 Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point B on the human body image on the second side, and based on the relative position of the human clothing connection parameter point and the human body turning parameter point, on the second side The corresponding human clothing is marked on the human image to connect with the actual point B;
  • the second human body image is the right human body image, and the marked actual human body turning point B and the mirrored actual human body turning point A' may overlap and some may not.
  • Step S7 taking the actual point B of the connection between the human body and the clothing and the actual point B of the human body turning as the source point, and taking the corresponding actual point A' of the human clothing connection and the actual point A' of the human body turning as the target point, the second side human body image is deformed;
  • the human body image is corrected:
  • Step 7-1 connecting the source points in step S7 in sequence along the human body contour line before the deformation of the second human body image to obtain a human body contour line segment X1;
  • Step 7-2 connecting the target points in step S7 along the deformed human body contour line of the second human body image in sequence to obtain a human body contour line segment X2;
  • Step 7-3 Clear the human body images located inside the human body contour line segment X1 and outside the human body contour line segment X2.
  • the residual human body image other than the human body contour line obtained after the deformation can be removed, so as to ensure a good visual effect.
  • Step S8 take the human clothing connection parameter point and the human body turning parameter point as the source point, and take the corresponding human clothing connecting actual point A, the human body turning actual point A, the human clothing connecting actual point A', and the human body turning actual point A' as the target Click to deform the clothes image, and superimpose the deformed clothes image on the human body image.
  • Step S9 modifying the composite image obtained after the clothes image is superimposed on the human body image:
  • Step 9-1 Connect the actual point where the human clothing is connected in the target point of step S8 and the actual turning point of the human body that overlaps with the clothing outline along the direction of the clothing outline.
  • connecting if the two adjacent points are both If it is the actual point of the human-clothing connection, connect the two points along the outline of the clothing, otherwise, connect the two points along the outline of the human body; obtain the human body area Y1 (the area that should be covered by the clothing);
  • Step 9-2 Remove the portion of the human body area Y1 that is beyond the area covered by the clothing image after being deformed and superimposed on the human body image.
  • the relative positional relationship between the human-clothing connection parameter point and the human body turning parameter point can be obtained through a variety of common position algorithms, for example, the human-clothing connection parameter point can be between two adjacent human body turning parameter points.
  • the relative position of the human body contour line can be obtained.
  • connection point of the outer contour line of the wrist of the cuff of the long-sleeved top can be obtained from the relative position of the body contour line between the elbow point of the outer contour and the wrist point of the outer contour; it can also be obtained by
  • the ordinate of the human-clothing connection parameter point is obtained from the relative position of the ordinate between two adjacent human body turning parameter points, and then its abscissa is obtained based on the horizontal intersection of its ordinate and the adjacent human body outline, or the human-clothing connection is used to obtain its ordinate.
  • the abscissa of the parameter point is obtained from the relative position of the abscissa between two adjacent human body turning parameter points, and then its ordinate is obtained based on the vertical intersection of the abscissa and the adjacent human body contour; it is also possible to connect the parameter points and
  • the relative positions of the ordinate and abscissa between the two adjacent human body turning parameter points can be used to obtain their ordinate and abscissa respectively;
  • the human clothing connection parameter point and the adjacent human body turning parameter point can also be overlapped, as shown in Figure 3
  • the connection point of the outer contour line of the cuff and wrist of the long-sleeved top may overlap with the point of the outer contour of the wrist.
  • the position of the connection parameter point of the clothing is the position of the corresponding adjacent human body turning parameter point; those skilled in the art should know that there are also Other point-to-point or point-to-contour based positional algorithms can be used.
  • the actual point A corresponding to the human body image on the first side of the human body image is obtained based on the relative positions of the human clothing connection parameter point and the human body turning parameter point, or in the step S6 Based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, obtaining the corresponding human-clothing connection actual point B of the second-side human body image, including the following steps:
  • the actual neckline and neck connection point 122 is obtained relative to the head and neck angle turning point on the same side of the human body midline. 113 and the actual position of the shoulder and neck angle turning point 114;
  • the actual point 123 of the connection between the outer contour of the cuff and the wrist is obtained relative to the midline of the human body.
  • the actual point 124 of the cuff wrist inner contour line connecting actual point 124 relative to the human body midline is obtained The relative position of the actual elbow turning point 117 of the inner contour and the actual turning point 119 of the inner contour wrist on the same side;
  • the actual axillary turning point 120 and the hip turning point 125 of the hem waist connecting actual point 125 relative to the same side of the human body midline are obtained.
  • the rest of the human body since the human body is a whole, in addition to the parts of the human body related to the image data of the clothes, the rest of the human body also needs to be symmetrically adjusted based on the midline of the human body to achieve better visual effects. Before the clothing starts, the entire human body is adjusted symmetrically based on the midline of the human body and the turning point of the human body, or after the clothes are fitted, the rest of the human body is symmetrically adjusted based on the midline of the human body and the turning point of the rest of the human body.
  • the present invention is described based on the virtual fitting process of the short-sleeved top.
  • the human-clothing connection parameter points include two neckline and neck connection parameter points 100, 2 1 cuff upper arm outer contour line connection parameter point 126, 2 cuff upper arm inner contour line connection parameter points 127, 2 hem waist connection parameter points 103, the human body turning parameter points include 2 head and neck angle turning parameter points 104, 2 Shoulder and neck angle turning parameter points 105, 2 acromion turning parameter points 106, 2 outer contour elbow turning parameter points 107, 2 inner contour elbow turning parameter points 108, 2 armpit turning parameter points 111, 2 hip turning parameter points Partial turning parameter point 112;
  • the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point
  • the relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image including the following steps:
  • the actual neckline and neck connection point 122 is obtained relative to the head and neck angle turning point on the same side of the human body midline. 113 and the actual position of the shoulder and neck angle turning point 114;
  • the actual point 128 of the outer contour line of the upper arm of the cuff is obtained relative to the same side of the human body midline. the position of the actual point 115 of the acromion turning and the actual point 116 of the elbow turning of the outer contour;
  • the actual point 155 of the inner contour line of the upper arm of the cuff is obtained relative to the armpit on the same side of the midline of the human body.
  • the position of the actual turning point 120 and the turning actual point 117 of the inner contour elbow; or, based on the position of the connecting parameter point 127 of the inner contour line of the upper arm of the cuff relative to the acromion turning parameter point 106 and the turning parameter point 108 of the inner contour elbow on the same side of the body midline To obtain the position of the actual point 155 where the inner contour line of the upper arm of the cuff connects relative to the actual point 115 of the acromion and the actual point 117 of the elbow of the inner contour on the same side of the human body midline.
  • the actual hem waist connecting point 125 is obtained relative to the axillary turning actual point 120 and the hip turning actual point on the same side of the body midline. 121 location.
  • the part turns to the position of the actual point 121.
  • the present invention is described based on the virtual fitting process of the vest.
  • the human-clothing connection parameter points include 2 neckline and neck connection parameter points 100 and 2 necklines Shoulder connection parameter points 129, 2 upper hem and armpit connection parameter points 130, 2 hem waist connection parameter points 103, the human body turning parameter points include 2 shoulder and neck angle turning parameter points 105, 2 shoulder peak turning parameters Point 106, 2 armpit turning parameter points 111, 2 hip turning parameter points 112;
  • the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point
  • the relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image including the following steps:
  • the actual neckline and neck connection point 122 is obtained relative to the shoulder and neck angle turning point on the same side of the body midline. the position of point 114 and the actual point 115 of the acromion;
  • the actual neckline-shoulder connection point 131 is obtained relative to the shoulder-neck angle turning point on the same side of the body midline. the position of point 114 and the actual point 115 of the acromion;
  • the actual hem waist connecting point 125 is obtained relative to the axillary turning actual point 120 and the hip turning actual point on the same side of the body midline. 121 location.
  • the part turns to the position of the actual point 121.
  • the present invention is described based on the virtual fitting process of trousers.
  • the human-clothing connection parameter points include two trouser waist and waist connection parameter points 133 and two trouser legs.
  • the outer contour line of the calf is connected to parameter points 134, and the two inner contour lines of the trouser leg and the lower leg are connected to the parameter point 135.
  • the human body turning parameter points include two hip turning parameter points 112, two outer contour knee turning parameter points 136, 2 Inner contour knee turning parameter point 137, 2 outer contour ankle turning parameter points 138, 2 inner contour ankle turning parameter points 139;
  • the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point
  • the relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image including the following steps:
  • the actual point 140 of the waist and waist connection is obtained relative to the human body midline.
  • the actual point 142 of the connection between the outer contour of the trouser leg and the calf is obtained relative to the same side of the human body midline.
  • the actual point 144 of the inner contour of the trousers calf connecting to the same side of the human body midline is obtained.
  • the location of the inner contour knee turning actual point 145 and the inner contour ankle turning actual point 146 is obtained.
  • the present invention is described based on the virtual fitting process of shorts.
  • the human-clothing connection parameter points include two trouser waist and waist connection parameter points 133 , and two trouser legs and thighs.
  • the outer contour line connection parameter point 147, the two trouser leg inner thigh contour line connection parameter points 148, the human body turning parameter points include 2 hip turning parameter points 112, 2 outer contour knee turning parameter points 136, 2 inner turning parameter points Contour knee turning parameter point 137, 2 outer contour ankle turning parameter points 138, 2 inner contour ankle turning parameter points 139;
  • the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point
  • the relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image including the following steps:
  • the actual point 140 of the waist and waist connection is obtained relative to the human body midline.
  • the actual point 149 of the outer contour line of the trouser leg and thigh is obtained relative to the same side of the human body midline.
  • the actual point 150 of the inner contour of the trouser leg and the thigh is obtained relative to the same side of the human body midline.
  • the location of the inner contour knee turning actual point 145 and the inner contour ankle turning actual point 146 is obtained relative to the same side of the human body midline.
  • the present invention is described based on the virtual fitting process of the skirt.
  • the difference between this embodiment and Embodiment 1 is that when the clothes in the clothes image are skirts, the human-clothing connection parameter points include two skirt-waist-waist connection parameter points 151 , two skirts Swing leg joint parameter points 152, the human body turning parameter points include 2 hip turning parameter points 112 and 2 outer contour knee turning parameter points 136;
  • the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point
  • the relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image including the following steps:
  • connection parameter point 151 of the skirt, waist and waist Based on the positions of the connection parameter point 151 of the skirt, waist and waist relative to the hip turning parameter point 112 on the same side of the human body midline and the knee turning parameter point 136 of the outer contour, the actual point 153 of the connection between the skirt waist and waist is obtained relative to the actual hip turning point 121 on the same side of the human body midline. and the actual position of the knee turning point 141 of the outer contour;

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Geometry (AREA)
  • Processing Or Creating Images (AREA)
  • Image Analysis (AREA)

Abstract

A virtual fitting method, comprising the following steps: acquiring a human body image; dividing the human body image by a human body midline into a first side human body image and a second side human body image, wherein the human body midline refers to a vertical middle line of a human body; acquiring clothing image data; marking on the first side human body image corresponding actual human body inflection points A and actual human-clothing joining points A; acquiring actual human-clothing joining points A' and actual human body inflection points A' which are symmetrical with respect to the human body midline; marking on the second side human body image actual human body inflection points B and actual human-clothing joining points B; transforming the second side human body image by using actual human body inflection points B and actual human-clothing joining points B as source points and corresponding actual human-clothing joining points A' and actual human body inflection points A' as target points; and transforming the clothing image, and superimposing the transformed clothing image on the human body image. The method does not require a customer to input body size, brings good sense of reality, and provides a good fitting effect.

Description

一种虚拟试衣方法A virtual fitting method 技术领域technical field
本发明属于虚拟试衣技术领域,尤其涉及一种虚拟试衣方法。The invention belongs to the technical field of virtual fitting, in particular to a virtual fitting method.
背景技术Background technique
目前的虚拟试衣系统普遍采用让使用者输入人体尺寸参数后用对应体型的模特替代真实人体来实现虚拟试衣的效果。这种方式第一很不方便,第二没有真实感,第三使用者输入的身体尺寸参数也不一定准确。因此如何解决上述问题,是本领域技术人员需要研究的方向。The current virtual fitting system generally adopts the effect of virtual fitting by allowing the user to input human body size parameters and then replacing the real human body with a model corresponding to the body type. This method is firstly inconvenient, secondly, there is no sense of reality, and thirdly, the body size parameters input by the user are not necessarily accurate. Therefore, how to solve the above problems is the direction that those skilled in the art need to study.
技术解决方案technical solutions
为解决上述技术问题,本发明提供了一种虚拟试衣方法,其不需要顾客输入身体尺寸,真实感强,试衣效果好。In order to solve the above technical problems, the present invention provides a virtual fitting method, which does not require the customer to input the body size, has a strong sense of reality, and has a good fitting effect.
本发明的技术方案为:一种虚拟试衣方法,包括如下步骤:The technical scheme of the present invention is: a virtual fitting method, comprising the following steps:
步骤S1:获取人体图像;Step S1: acquiring a human body image;
步骤S2:以人体中线为界将所述人体图像分为第一侧人体图像和第二侧人体图像,所述人体中线指人体垂直中间线;Step S2: dividing the human body image into a first-side human body image and a second-side human body image with the human body midline as a boundary, and the human body midline refers to the vertical midline of the human body;
步骤S3:获取衣服图像数据,所述衣服图像数据包括衣服图像、以及标记在衣服图像上的人衣衔接参数点和人体转折参数点;所述人衣衔接参数点指衣服穿于样板人体上时,衣服轮廓线与样板人体轮廓线相交点;所述人体转折参数点指所述样板人体轮廓线上人体关节附近的转折点;Step S3: Obtaining clothing image data, the clothing image data includes the clothing image, and the human-clothing connection parameter points and the human body turning parameter points marked on the clothing image; , the intersection point between the contour line of the clothes and the contour line of the model human body; the human body turning parameter point refers to the turning point near the human body joints on the contour line of the model human body;
步骤S4:基于步骤S3所得人体转折参数点,在第一侧人体图像上标记对应的人体转折实际点A,并基于所述人衣衔接参数点和人体转折参数点的相对位置,在第一侧人体图像上标记对应的人衣衔接实际点A;Step S4: Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point A on the first side human body image, and based on the relative positions of the human clothing connection parameter points and the human body turning parameter points, on the first side The corresponding human clothing is marked on the human image to connect to the actual point A;
步骤S5:获取人衣衔接实际点A基于人体中线的相应对称的人衣衔接实际点A';Step S5: obtaining the corresponding symmetrical actual point A' of the human-clothing connection based on the centerline of the human body based on the actual point A of the human-clothing connection;
获取人体转折实际点A基于人体中线的相应对称的人体转折实际点A';Obtain the corresponding symmetrical actual human body turning point A' based on the body midline of the actual human body turning point A;
步骤S6:基于步骤S3所得人体转折参数点,在第二侧人体图像上标记对应的人体转折实际点B,并基于所述人衣衔接参数点和人体转折参数点的相对位置,在第二侧人体图像上标记对应的人衣衔接实际点B;Step S6: Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point B on the human body image on the second side, and based on the relative position of the human clothing connection parameter point and the human body turning parameter point, on the second side The corresponding human clothing is marked on the human image to connect with the actual point B;
步骤S7:以人衣衔接实际点B、人体转折实际点B为源点,以对应的人衣衔接实际点A'和人体转折实际点A'为目标点,将第二侧人体图像变形;Step S7: taking the actual point B of the connection between the human body and the clothing and the actual point B of the human body turning as the source point, and taking the corresponding actual point A' of the human clothing connection and the actual point A' of the human body turning as the target point, the second side human body image is deformed;
步骤S8:以人衣衔接参数点和人体转折参数点为源点,以对应的人衣衔接实际点A、人体转折实际点A、人衣衔接实际点A'、人体转折实际点A'为目标点,将衣服图像变形并叠加到人体图像上。Step S8: take the human clothing connection parameter point and the human body turning parameter point as the source point, and take the corresponding human clothing connecting actual point A, the human body turning actual point A, the human clothing connecting actual point A', and the human body turning actual point A' as the target point to warp and superimpose the image of the clothing onto the image of the human body.
通过采用上述技术方案,其取得如下技术效果:By adopting the above technical solution, the following technical effects are obtained:
由于人体并不完全对称,人体站立的不同姿势习惯更会加剧此种不对称,同时,虚拟试衣时人身上本来就有衣服,需要把所试衣服套到人体原有衣服上,而原有衣服边缘会有各种不对称的皱褶、突出等,这会导致人体中线两侧人体轮廓严重不对称,但是现有虚拟试衣系统只能通过几何算法、根据人体轮廓线贴合衣服,而无法象人正常试衣时通过衣服材质的弹性及对衣服的拉伸把衣服调整到位,因而会导致虚拟试衣贴合到人体后出现衣衫不整的结果,让人没有试衣的兴趣,所以另外一些现有虚拟试衣系统采取让人输入自身形体尺寸后选择相近体型的模特来替代人体,代价巨大且没有真实感,个别虚拟试衣系统虽然能贴合到真实人体上但是要求人一定要穿紧身衣,可操作性较差。本发明通过和衣服相关的人体转折点、人衣衔接点及其相对位置作为衣服参数,此种参数每类衣服都是确定的且不难取得,再基于人体转折参数点获得人体身上显然存在的人体转折实际点并进而获取人衣衔接实际点,并基于人体中线对两侧人体和衣服进行对称,这样在试衣时既能看到衣服在自己身上的真实效果又不会出现衣衫不整的视觉效果,较好地解决了这个问题。Since the human body is not completely symmetrical, the different posture habits of the human body will exacerbate this asymmetry. At the same time, during the virtual fitting, the person already has clothes on the body, and the clothes to be tried on need to be put on the original clothes of the human body, and the original clothes There will be various asymmetric folds, protrusions, etc. on the edge of the clothes, which will lead to serious asymmetry of the human body contour on both sides of the human body midline. However, the existing virtual fitting system can only fit the clothes according to the human body contour through geometric algorithms. It is impossible to adjust the clothes in place through the elasticity of the clothes material and the stretching of the clothes during the normal fitting, which will lead to the result of irregular clothes after the virtual fitting is fitted to the human body, and people have no interest in fitting. Some existing virtual fitting systems use people to input their own body size and then select a model with a similar body shape to replace the human body, which is costly and has no sense of reality. Although some virtual fitting systems can fit the real human body, they require people to wear it. Tights, poor maneuverability. In the present invention, the human body turning point, the connecting point and the relative position of the human body related to the clothes are used as the clothes parameters. Such parameters are determined for each type of clothes and are not difficult to obtain, and then the human body that clearly exists on the human body is obtained based on the human body turning parameter points. Turn the actual point and then obtain the actual point of the connection between the human body and the clothes, and symmetric the two sides of the human body and the clothes based on the center line of the human body, so that you can not only see the real effect of the clothes on your body during fitting, but will not appear disheveled visual effects , which better solves this problem.
需要说明的是,所述步骤S5中除了根据人衣衔接实际点A、人体转折实际点A获取其基于人体中线的对称点人衣衔接实际点A'、人体转折实际点A'外;也可以仅根据人体转折实际点A获取其基于人体中线的对称点人体转折实际点A',再基于衣服图像数据中人体转折参数点和人衣衔接参数点的相对位置获取人衣衔接参数点A',由于样板衣服是对称的,同样可以达到基于人体中线获取人衣衔接参数点A的对称点A'的目的。It should be noted that, in the step S5, in addition to obtaining the actual point A' of the connection between the clothes and the actual point A' of the body's midline based on the actual point A of the connection of the human body and the actual point A of the turning point of the human body; Obtain its symmetry point based on the midline of the human body only according to the actual human body turning point A, and then obtain the human-clothing connection parameter point A' based on the relative position of the human body turning parameter point and the human-clothing connection parameter point in the clothing image data, Since the sample clothes are symmetrical, the purpose of obtaining the symmetry point A' of the connection parameter point A of the human body based on the midline of the human body can also be achieved.
需要说明的是,所述步骤S7和步骤S8中的基于源点和目标点的图像变形为本领域常用技术如透视变换、仿射变换、局部图像拉伸放缩旋转以及其它基于源点和目标点的轮廓线再造方案等。It should be noted that the image deformation based on the source point and the target point in the step S7 and the step S8 are commonly used techniques in the art, such as perspective transformation, affine transformation, local image stretching, scaling and rotation, and other source and target-based techniques. Point contour reconstruction scheme, etc.
需要说明的是,所述步骤S7中的第二侧人体图像变形,可以以所有人衣衔接实际点B和所有人体转折实际点B为源点,以对应的人衣衔接实际点A'和人体转折实际点A'为目标点,将第二侧人体图像整体变形;也可以以部分人衣衔接实际点B和/或部分人体转折实际点B为源点,以对应的人衣衔接实际点A'和人体转折实际点A'为目标点,将第二侧人体图像局部变形,如以全部人衣衔接实际点B加上衣服图像数据中和衣服轮廓线不重叠的人体转折参数点对应的人体转折点B为源点,以对应的人衣衔接实际点A'和人体转折实际点A'为目标点,仅对第二侧人体图像局部变形,此时局部变形区域实际上是穿衣时会露在衣服外面的人体区域,因为在步骤S8衣服图像变形叠加到人体图像以后,会对衣服轮廓线节段以外的对应人体图像进行清除,所以此种局部变形的最终效果和整体变形是一样的,又如仅对双侧人体图像严重不对称的人体轮廓线节段区域的对应人体图像进行局部变形,这样可以实现对称以在真实感和整齐感之间达到更好的平衡。It should be noted that, for the deformation of the second human body image in the step S7, the actual point B connected with all the clothing and the actual point B of all human turning points can be used as source points, and the corresponding human clothing can be connected with the actual point A' and the human body. The actual turning point A' is used as the target point, and the second side human body image is deformed as a whole; it is also possible to use some human clothing to connect with the actual point B and/or part of the human body to turn the actual point B as the source point, and the corresponding human clothing to connect with the actual point A. 'And the actual human body turning point A' is the target point, and the second side human body image is partially deformed, such as the human body corresponding to the human body turning parameter points in the clothing image data that are connected to the actual point B that does not overlap with the clothing outline. The turning point B is the source point, and the corresponding human clothing connection actual point A' and the human body turning actual point A' are taken as the target point, and only the second side human body image is partially deformed. At this time, the local deformation area is actually exposed when dressing. In the human body area outside the clothes, after the clothing image deformation is superimposed on the human body image in step S8, the corresponding human body image other than the clothing outline segment will be cleared, so the final effect of this local deformation is the same as the overall deformation. Another example is to locally deform only the human body image corresponding to the segment region of the human body contour line where the bilateral human body images are severely asymmetrical, so that symmetry can be achieved to achieve a better balance between the sense of reality and the sense of neatness.
需要说明的是,所述步骤S8中的衣服图像变形,可以以所有人衣衔接参数点、人体转折参数点为源点,以对应的人衣衔接实际点和人体转折实际点为目标点,将衣服图像完整精确变形;也可以以部分人衣衔接参数点和/或部分人体转折参数点为源点,以对应的人衣衔接实际点和人体转折实际点为目标点,将衣服图像局部变形,如衣服图像数据中和衣服轮廓线重叠的人体转折参数点,可以不作为衣服图像变形的源点,以长袖上衣为例,其中的头颈角转折参数点属于和衣服轮廓线不重叠的人体转折参数点,由于衣服轮廓线是不规则曲线,当领口轮廓线高于领口颈部衔接参数点时,如果把高于领口颈部衔接参数点的头颈角转折参数点作为源点的一部分,可以保证领口轮廓线高出领口颈部衔接参数点的部分能够精确变形,但是即使不选取头颈角转折参数点作为源点,也可以实现领口轮廓线的变形,特别是当领口轮廓线不高于领口颈部衔接参数点时,还可以实现精确变形,又如仅对双侧人体图像严重不对称的人体轮廓线节段区域所对应的衣服轮廓线节段区域采取此种方法进行衣服图像变形叠加,以在真实感和整齐感之间达到平衡。It should be noted that, for the clothing image deformation in the step S8, all clothing connection parameter points and human body turning parameter points can be used as source points, and the corresponding human clothing connection actual points and human body turning actual points can be used as target points. The clothing image is completely and accurately deformed; it is also possible to take some human clothing connection parameter points and/or some human body turning parameter points as source points, and take the corresponding human clothing connection actual points and human body turning actual points as target points to locally deform the clothing image. For example, the human body turning parameter points that overlap with the clothing outline in the clothing image data may not be used as the source point of the deformation of the clothing image. Taking a long-sleeved top as an example, the turning parameter points of the head and neck angle belong to the human body turning points that do not overlap with the clothing outline. Parameter point, since the clothes contour line is an irregular curve, when the neckline contour line is higher than the neckline and neck connection parameter point, if the head and neck angle turning parameter point higher than the neckline and neck connection parameter point is used as part of the source point, it can be guaranteed that The part of the neckline contour line higher than the neckline and neck connection parameter point can be accurately deformed, but even if the head and neck angle turning parameter point is not selected as the source point, the neckline contour line can be deformed, especially when the neckline contour line is not higher than the neckline neck. When the parameter points are connected to each other, accurate deformation can also be achieved. Another example is that only the clothing outline segment area corresponding to the human body outline segment area with severe asymmetry of the bilateral human body images adopts this method to superimpose the clothing image deformation to achieve Strike a balance between realism and neatness.
需要说明的是,所述步骤S8中的衣服图像变形可以基于源点和目标点整体变形,也可以基于源点和目标点分区域先后进行变形如基于人体中线先第一侧再第二侧等;需要说明的是,为了使穿衣效果更美观,可以对目标点的位置根据经验值进行修正后再对衣服图像变形。It should be noted that the deformation of the clothes image in the step S8 may be based on the overall deformation of the source point and the target point, or may be sequentially deformed based on the source point and the target point by region, such as the first side and then the second side based on the midline of the human body, etc. ; It should be noted that, in order to make the dressing effect more beautiful, the position of the target point can be corrected according to the empirical value, and then the clothing image can be deformed.
优选的是,上述虚拟试衣方法,所述步骤S7还包括在所述人体图像变形后,对人体图像进行修正:Preferably, in the above-mentioned virtual fitting method, the step S7 further includes modifying the human body image after the human body image is deformed:
步骤7-1:将所述步骤S7中的源点沿所述第二侧人体图像变形前的人体轮廓线依次连接,获得人体轮廓线节段X1;Step 7-1: connecting the source points in step S7 in sequence along the human body contour line before the deformation of the second human body image to obtain a human body contour line segment X1;
步骤7-2:将所述步骤S7中的目标点沿所述第二侧人体图像变形后的人体轮廓线依次连接,获得人体轮廓线节段X2;Step 7-2: connecting the target points in step S7 along the deformed human body contour line of the second human body image in sequence to obtain a human body contour line segment X2;
步骤7-3:将位于人体轮廓线节段X1内侧且位于人体轮廓线节段X2外侧的人体图像进行清除。Step 7-3: Clear the human body images located inside the human body contour line segment X1 and outside the human body contour line segment X2.
通过采用上述技术方案,可以将变形后所得人体轮廓线以外的残留人体图像去除,确保好的视觉效果。By adopting the above technical solution, the residual human body image other than the human body contour line obtained after the deformation can be removed, so as to ensure a good visual effect.
优选的是,上述虚拟试衣方法,还包括步骤S9,步骤S9、对衣服图像叠加到人体图像上后得到合成图像进行修正:Preferably, the above-mentioned virtual fitting method further includes step S9, and step S9 is to correct the composite image obtained after the clothes image is superimposed on the human body image:
步骤9-1:沿衣服轮廓线的方向将所述步骤S8目标点中的人衣衔接实际点、和衣服轮廓线重叠的人体转折实际点依次连接,连接时,依次相邻的两点若均为人衣衔接实际点,则将该两点沿衣服轮廓线连接,否则,将该两点沿人体轮廓线连接;获得人体区域Y1;Step 9-1: Connect the actual point where the human clothing is connected in the target point of step S8 and the actual turning point of the human body that overlaps with the clothing outline along the direction of the clothing outline. When connecting, if the two adjacent points are both If it is the actual point of the human-clothing connection, connect the two points along the outline of the clothing, otherwise, connect the two points along the outline of the human body; obtain the human body area Y1;
步骤9-2:将人体区域Y1中超出变形并叠加到人体图像后的衣服图像覆盖区域的部分进行清除。Step 9-2: Remove the portion of the human body area Y1 that is beyond the area covered by the clothing image after being deformed and superimposed on the human body image.
由于衣服轮廓线和人体对应轮廓线并不完全吻合,通过采用上述技术方案,可以避免出现衣服穿在人体内的现象。Since the contour lines of the clothes and the corresponding contour lines of the human body do not completely match, by adopting the above technical solution, the phenomenon that the clothes are worn inside the human body can be avoided.
优选的是,上述虚拟试衣方法,当所述衣服图像中的衣服为长袖上衣时,所述人衣衔接参数点包括2个领口颈部衔接参数点、2个袖口手腕外轮廓线衔接参数点、2个袖口手腕内轮廓线衔接参数点、2个下摆腰部衔接参数点,所述人体转折参数点包括2个头颈角转折参数点、2个肩颈角转折参数点、2个肩峰转折参数点、2个外轮廓肘部转折参数点、2个内轮廓肘部转折参数点、2个外轮廓腕部转折参数点、2个内轮廓腕部转折参数点、2个髋部转折参数点;Preferably, in the above virtual fitting method, when the clothes in the clothes image are long-sleeved tops, the connection parameter points of the human clothing include 2 connection parameter points of the neckline and neck, 2 connection parameters of the outer contour of the cuff and the wrist point, 2 cuff wrist inner contour line connection parameter points, 2 hem waist connection parameter points, the human body turning parameter points include 2 head and neck angle turning parameter points, 2 shoulder and neck angle turning parameter points, 2 acromion turning parameter points Parameter points, 2 outer contour elbow turning parameter points, 2 inner contour elbow turning parameter points, 2 outer contour wrist turning parameter points, 2 inner contour wrist turning parameter points, 2 hip turning parameter points ;
所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
基于领口颈部衔接参数点相对人体中线同侧的头颈角转折参数点和肩颈角转折参数点的位置,获取领口颈部衔接实际点相对人体中线同侧的头颈角转折实际点和肩颈角转折实际点的位置;Based on the positions of the neckline and neck connection parameter points relative to the head-neck angle turning parameter point and the shoulder-neck angle turning parameter point on the same side of the human body midline, obtain the actual head-neck turning point and shoulder-neck angle between the actual neckline and neck connection point relative to the same side of the human body midline The position of the actual point of the turning point;
基于袖口手腕外轮廓线衔接参数点相对人体中线同侧的外轮廓肘部转折参数点和外轮廓腕部转折参数点的位置,获取袖口手腕外轮廓线衔接实际点相对人体中线同侧的外轮廓肘部转折实际点和外轮廓腕部转折实际点的位置;Based on the position of the connection parameter point of the outer contour of the cuff and wrist relative to the elbow turning parameter point of the outer contour and the turning parameter point of the outer contour on the same side of the human body midline, the outer contour of the actual point of the connection between the outer contour of the cuff and the wrist relative to the same side of the human body midline is obtained. The position of the actual elbow turning point and the actual point of the outer contour wrist turning;
基于袖口手腕内轮廓线衔接参数点相对人体中线同侧的内轮廓肘部转折参数点和内轮廓腕部转折参数点的相对位置,获取袖口手腕内轮廓线衔接实际点相对人体中线同侧的内轮廓肘部转折实际点和内轮廓腕部转折实际点的相对位置;Based on the relative position of the cuff wrist inner contour line connection parameter point relative to the inner contour elbow turning parameter point on the same side of the human body midline and the inner contour wrist turning parameter point, the inner contour of the cuff wrist inner contour line connecting the actual point on the same side of the human body midline is obtained. The relative position of the actual point of the contour elbow turning and the actual point of the inner contour wrist turning;
基于下摆腰部衔接参数点相对人体中线同侧的肩峰转折参数点和髋部转折参数点的位置,获取下摆腰部衔接实际点相对人体中线同侧的肩峰转折实际点和髋部转折实际点的位置。Based on the position of the hem waist connection parameter point relative to the acromion turning parameter point and the hip turning parameter point on the same side of the body midline, the actual point of the hem waist connection is obtained relative to the acromion turning actual point and the hip turning actual point on the same side of the body midline. Location.
优选的是,上述虚拟试衣方法,当所述衣服图像中的衣服为短袖上衣时,所述人衣衔接参数点包括2个领口颈部衔接参数点、2个袖口上臂外轮廓线衔接参数点、2个袖口上臂内轮廓线衔接参数点、2个下摆腰部衔接参数点,所述人体转折参数点包括2个头颈角转折参数点、2个肩颈角转折参数点、2个肩峰转折参数点、2个外轮廓肘部转折参数点、2个内轮廓肘部转折参数点、2个髋部转折参数点;Preferably, in the above-mentioned virtual fitting method, when the clothes in the clothes image are short-sleeved tops, the human-clothing connection parameter points include 2 neckline and neck connection parameter points, and 2 cuff and upper arm outer contour line connection parameters. point, 2 cuff upper arm inner contour line connection parameter points, 2 hem waist connection parameter points, the human body turning parameter points include 2 head and neck angle turning parameter points, 2 shoulder and neck angle turning parameter points, 2 acromion turning parameter points Parameter points, 2 outer contour elbow turning parameter points, 2 inner contour elbow turning parameter points, 2 hip turning parameter points;
所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
基于领口颈部衔接参数点相对人体中线同侧的头颈角转折参数点和肩颈角转折参数点的位置,获取领口颈部衔接实际点相对人体中线同侧的头颈角转折实际点和肩颈角转折实际点的位置;Based on the positions of the neckline and neck connection parameter points relative to the head-neck angle turning parameter point and the shoulder-neck angle turning parameter point on the same side of the human body midline, obtain the actual head-neck turning point and shoulder-neck angle between the actual neckline and neck connection point relative to the same side of the human body midline The position of the actual point of the turning point;
基于袖口上臂外轮廓线衔接参数点相对人体中线同侧的肩峰转折参数点和外轮廓肘部转折参数点的位置,获取袖口上臂外轮廓线衔接实际点相对人体中线同侧的肩峰转折实际点和外轮廓肘部转折实际点的位置;Based on the position of the connection parameter point of the outer contour line of the upper arm of the cuff relative to the acromion turning parameter point on the same side of the body midline and the elbow turning parameter point of the outer contour, the actual acromion turning point of the outer contour line of the upper arm of the cuff relative to the same side of the body midline is obtained. point and the position of the actual point where the elbow of the outer contour turns;
基于袖口上臂内轮廓线衔接参数点相对人体中线同侧的肩峰转折参数点和内轮廓肘部转折参数点的位置,获取袖口上臂内轮廓线衔接实际点相对人体中线同侧的肩峰转折实际点和内轮廓肘部转折实际点的位置;Based on the position of the connection parameter point of the inner contour line of the upper arm of the cuff relative to the acromion turning parameter point on the same side of the body midline and the elbow turning parameter point of the inner contour, the actual acromion turning point of the inner contour line of the upper arm of the cuff relative to the same side of the body midline is obtained. point and the position of the actual point where the elbow of the inner contour turns;
基于下摆腰部衔接参数点相对人体中线同侧的肩峰转折参数点和髋部转折参数点的位置,获取下摆腰部衔接实际点相对人体中线同侧的肩峰转折实际点和髋部转折实际点的位置。Based on the position of the hem waist connection parameter point relative to the acromion turning parameter point and the hip turning parameter point on the same side of the body midline, the actual point of the hem waist connection is obtained relative to the acromion turning actual point and the hip turning actual point on the same side of the body midline. Location.
优选的是,上述虚拟试衣方法,当所述衣服图像中的衣服为马甲时,所述人衣衔接参数点包括2个领口颈部衔接参数点、2个领口肩部衔接参数点、2个上摆腋部衔接参数点、2个下摆腰部衔接参数点,所述人体转折参数点包括2个肩颈角转折参数点、2个肩峰转折参数点、2个髋部转折参数点;Preferably, in the above virtual fitting method, when the clothes in the clothes image are vests, the human-clothing connection parameter points include 2 neckline and neck connection parameter points, 2 neckline and shoulder connection parameter points, 2 upper hem armpit connection parameter points, 2 lower hem waist connection parameter points, the human body turning parameter points include 2 shoulder and neck angle turning parameter points, 2 acromion turning parameter points, and 2 hip turning parameter points;
所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
基于领口颈部衔接参数点相对人体中线同侧的肩颈角转折参数点和肩峰转折参数点的位置,获取领口颈部衔接实际点相对人体中线同侧的肩颈角转折实际点和肩峰转折实际点的位置;Based on the position of the neckline and neck connection parameter point relative to the shoulder-neck angle turning parameter point and the acromion turning parameter point on the same side of the human body midline, the actual point of the neckline and neck connection is obtained relative to the shoulder-neck angle turning point and acromion on the same side of the human body midline. The position of the actual point of the turning point;
基于领口肩部衔接参数点相对人体中线同侧的肩颈角转折参数点和肩峰转折参数点的位置,获取领口肩部衔接实际点相对人体中线同侧的肩颈角转折实际点和肩峰转折实际点的位置;Based on the position of the neckline-shoulder connection parameter point relative to the shoulder-neck angle turning parameter point and the acromion turning parameter point on the same side of the human body midline, obtain the actual point of the neckline-shoulder connection relative to the shoulder-neck angle turning parameter point and acromion on the same side of the body midline. The position of the actual point of the turning point;
基于上摆腋部衔接参数点相对人体中线同侧的肩峰转折参数点和髋部转折参数点的位置,获取上摆腋部衔接实际点相对人体中线同侧的肩峰转折实际点和髋部转折实际点的位置;Based on the position of the acromion turning parameter point and the hip turning parameter point on the same side of the body midline, the actual acromion turning point and the hip turning point on the same side of the body midline are obtained The position of the actual point of the turning point;
基于下摆腰部衔接参数点相对人体中线同侧肩峰转折参数点和髋部转折参数点的位置,获取下摆腰部衔接实际点相对人体中线同侧肩峰转折实际点和髋部转折实际点的位置。Based on the position of the hem waist connection parameter point relative to the acromion turning parameter point on the same side of the body midline and the hip turning parameter point, the position of the actual point of the hem waist connection relative to the acromion turning point on the same side of the body midline and the actual hip turning point is obtained.
优选的是,上述虚拟试衣方法,当所述衣服图像中的衣服为长裤时,所述人衣衔接参数点包括2个裤腰腰部衔接参数点、2个裤脚小腿外轮廓线衔接参数点、2个裤脚小腿内轮廓线衔接参数点,所述人体转折参数点包括2个髋部转折参数点、2个外轮廓膝部转折参数点、2个内轮廓膝部转折参数点、2个外轮廓踝部转折参数点、2个内轮廓踝部转折参数点;Preferably, in the above virtual fitting method, when the clothes in the clothes image are trousers, the human-clothing connection parameter points include 2 trouser waist and waist connection parameter points, 2 trouser legs and lower leg outer contour line connection parameter points, 2 trouser leg inner contour line connection parameter points, the human body turning parameter points include 2 hip turning parameter points, 2 outer contour knee turning parameter points, 2 inner contour knee turning parameter points, 2 outer contours Ankle turning parameter point, 2 inner contour ankle turning parameter points;
所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
基于裤腰腰部衔接参数点相对人体中线同侧髋部转折参数点和外轮廓膝部转折参数点的位置,获取裤腰腰部衔接实际点相对人体中线同侧髋部转折实际点和外轮廓膝部转折实际点的位置;Based on the position of the waist-waist connection parameter point relative to the hip turning parameter point on the same side of the body midline and the outer contour knee turning parameter point, the actual point of the waist-waist connection is obtained relative to the hip turning point on the same side of the human body midline and the outer contour knee turning actual point. the position of the point;
基于裤脚小腿外轮廓线衔接参数点相对人体中线同侧外轮廓膝部转折参数点和外轮廓踝部转折参数点的位置,获取裤脚小腿外轮廓线衔接实际点相对人体中线同侧外轮廓膝部转折实际点和外轮廓踝部转折实际点的位置;Based on the position of the connection parameter point of the outer contour line of the trousers calf relative to the knee turning parameter point of the outer contour on the same side of the human body midline and the turning parameter point of the outer contour ankle, the actual point of the connection between the outer contour line of the trousers calf and the outer contour knee on the same side of the human body midline is obtained. The actual point of turning and the position of the actual turning point of the ankle of the outer contour;
基于裤脚小腿内轮廓线衔接参数点相对人体中线同侧内轮廓膝部转折参数点和内轮廓踝部转折参数点的位置,获取裤脚小腿内轮廓线衔接实际点相对人体中线同侧内轮廓膝部转折实际点和内轮廓踝部转折实际点的位置。Based on the position of the connection parameter point of the inner contour line of the trousers calf relative to the knee turning parameter point of the inner contour on the same side of the human body midline and the turning parameter point of the inner contour ankle, the actual point of the connection between the inner contour line of the trouser leg and the calf is obtained relative to the inner contour knee on the same side of the human body midline. The position of the actual point of turning and the actual turning point of the inner contour ankle.
优选的是,上述虚拟试衣方法,当所述衣服图像中的衣服为短裤时,所述人衣衔接参数点包括2个裤腰腰部衔接参数点、2个裤脚大腿外轮廓线衔接参数点、2个裤脚大腿内轮廓线衔接参数点,所述人体转折参数点包括2个髋部转折参数点、2个外轮廓膝部转折参数点、2个内轮廓膝部转折参数点、2个外轮廓踝部转折参数点、2个内轮廓踝部转折参数点;Preferably, in the above virtual fitting method, when the clothes in the clothes image are shorts, the human-clothing connection parameter points include 2 trouser waist and waist connection parameter points, 2 trouser legs and thigh outer contour line connection parameter points, 2 There are two trouser leg inner contour line connection parameter points, and the human body turning parameter points include 2 hip turning parameter points, 2 outer contour knee turning parameter points, 2 inner contour knee turning parameter points, and 2 outer contour ankle turning parameter points. External turning parameter points, 2 inner contour ankle turning parameter points;
所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
基于裤腰腰部衔接参数点相对人体中线同侧髋部转折参数点和外轮廓膝部转折参数点的位置,获取裤腰腰部衔接实际点相对人体中线同侧髋部转折实际点和外轮廓膝部转折实际点的位置;Based on the position of the waist-waist connection parameter point relative to the hip turning parameter point on the same side of the body midline and the outer contour knee turning parameter point, the actual point of the waist-waist connection is obtained relative to the hip turning point on the same side of the human body midline and the outer contour knee turning actual point. the position of the point;
基于裤脚大腿外轮廓线衔接参数点相对人体中线同侧外轮廓膝部转折参数点和外轮廓踝部转折参数点的位置,获取裤脚大腿外轮廓线衔接实际点相对人体中线同侧外轮廓膝部转折实际点和外轮廓踝部转折实际点的位置;Based on the position of the connection parameter point of the outer contour line of the trouser leg relative to the knee turning parameter point of the outer contour on the same side of the human body midline and the turning parameter point of the outer contour ankle, the actual point of the connection between the outer contour line of the trouser leg and the thigh is obtained relative to the outer contour knee on the same side of the human body midline. The actual point of turning and the position of the actual turning point of the ankle of the outer contour;
基于裤脚大腿内轮廓线衔接参数点相对人体中线同侧内轮廓膝部转折参数点和内轮廓踝部转折参数点的位置,获取裤脚大腿内轮廓线衔接实际点相对人体中线同侧内轮廓膝部转折实际点和内轮廓踝部转折实际点的位置。Based on the position of the connection parameter point of the inner contour line of the trouser leg relative to the knee turning parameter point of the inner contour on the same side of the human body midline and the turning parameter point of the inner contour ankle, the actual point of the connection between the inner contour line of the trouser leg and the thigh is obtained relative to the inner contour knee on the same side of the human body midline. The position of the actual point of turning and the actual turning point of the inner contour ankle.
优选的是,上述虚拟试衣方法,当所述衣服图像中的衣服为裙子时,所述人衣衔接参数点包括2个裙腰腰部衔接参数点、2个裙摆腿部衔接参数点,所述人体转折参数点包括2个髋部转折参数点、2个外轮廓膝部转折参数点;Preferably, in the above-mentioned virtual fitting method, when the clothes in the clothes image are skirts, the human-clothing connection parameter points include two skirt-waist-waist connection parameter points and two skirt-leg connection parameter points, so The human body turning parameter points include 2 hip turning parameter points and 2 outer contour knee turning parameter points;
所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
基于裙腰腰部衔接参数点相对人体中线同侧髋部转折参数点和外轮廓膝部转折参数点的位置,获取裙腰腰部衔接实际点相对人体中线同侧髋部转折实际点和外轮廓膝部转折实际点的位置;Based on the position of the connection parameter point of the skirt, waist and waist relative to the hip turning parameter point on the same side of the human body midline and the turning parameter point of the outer contour knee, the actual point of the connection between the skirt waist and waist is obtained relative to the actual turning point of the hip on the same side of the human body midline and the outer contour knee. The position of the actual point of the turning point;
基于裙摆腿部衔接参数点相对人体中线同侧髋部转折参数点和外轮廓膝部转折参数点的位置,获取裙摆腿部衔接实际点相对人体中线同侧髋部转折实际点和外轮廓膝部转折实际点的位置。Based on the position of the connection parameter point of the skirt and leg relative to the hip turning parameter point on the same side of the human body midline and the knee turning parameter point of the outer contour, the actual point of the connection between the skirt and the leg is obtained relative to the actual hip turning point on the same side of the body midline and the outer contour The location of the actual point of the knee turning.
需要说明的是,上述人衣衔接点参数和人体转折点参数,可以根据衣服的形状特点如宽松程度、领子高低、袖子长短等进行增加或减少。It should be noted that the above-mentioned parameters of the connection point of the human body and the turning point of the human body can be increased or decreased according to the shape characteristics of the clothes, such as the looseness, the height of the collar, and the length of the sleeves.
有益效果beneficial effect
本发明与现有技术相比具有以下优点:通过采用本发明所述虚拟试衣方法,使用人体图像代替了虚拟模特图像,真实感更强,也不需要顾客输入个人身体尺寸,试衣效果更好,更方便。Compared with the prior art, the present invention has the following advantages: by adopting the virtual fitting method of the present invention, the human body image is used instead of the virtual model image, the realism is stronger, the customer does not need to input the personal body size, and the fitting effect is better. Well, more convenient.
附图说明Description of drawings
图1为本发明的方法流程图;图2为本发明的人体图像示例图;图3为本发明的衣服图像示例图;图4为本发明第一侧人体图像标注人体转折实际点和人体衔接实际点后的示例图;图5为本发明人体图像标注人体转折实际点和人体衔接实际点后的示例图;图6为本发明实施例1的虚拟试衣效果图;图7为本发明实施例2的虚拟试衣效果图;图8为本发明实施例3的虚拟试衣效果图;图9为本发明实施例4的虚拟试衣效果图;图10为本发明实施例5的虚拟试衣效果图;图11为本发明实施例6的虚拟试衣效果图。Fig. 1 is a flow chart of the method of the present invention; Fig. 2 is an example diagram of a human body image according to the present invention; Fig. 3 is an example diagram of a clothing image according to the present invention; The example diagram after the actual point; Figure 5 is an example diagram of the human body image after marking the actual point of the human body turning and the actual point of the human body; Figure 6 is the virtual fitting effect diagram of Embodiment 1 of the present invention; Figure 7 is the implementation of the present invention Fig. 8 is a virtual fitting effect diagram of Example 3 of the present invention; Fig. 9 is a virtual fitting effect diagram of Embodiment 4 of the present invention; Fig. 10 is a virtual fitting effect diagram of Embodiment 5 of the present invention. Figure 11 is a virtual fitting effect diagram of Embodiment 6 of the present invention.
附图标记说明:Explanation of reference numbers:
100—领口颈部衔接参数点; 101—袖口手腕外轮廓线衔接参数点; 102—袖口手腕内轮廓线衔接参数点; 103—下摆腰部衔接参数点; 104—头颈角转折参数点; 105—肩颈角转折参数点; 106—肩峰转折参数点; 107—外轮廓肘部转折参数点; 108—内轮廓肘部转折参数点; 109—外轮廓腕部转折参数点; 110—内轮廓腕部转折参数点; 111—腋窝转折参数点; 112—髋部转折参数点; 113—头颈角转折实际点; 114—肩颈角转折实际点; 115—肩峰转折实际点; 116—外轮廓肘部转折实际点; 117—内轮廓肘部转折实际点; 118—外轮廓腕部转折实际点; 119—内轮廓腕部转折实际点; 120—腋窝转折实际点; 121—髋部转折实际点; 122—领口颈部衔接实际点; 123—袖口手腕外轮廓线衔接实际点; 124—袖口手腕内轮廓线衔接实际点; 125—下摆腰部衔接实际点; 126—袖口上臂外轮廓线衔接参数点; 127—袖口上臂内轮廓线衔接参数点; 128—袖口上臂外轮廓线衔接实际点; 129—领口肩部衔接参数点; 130—上摆腋部衔接参数点; 131—领口肩部衔接实际点; 132—上摆腋部衔接实际点; 133—裤腰腰部衔接参数点; 134—裤脚小腿外轮廓线衔接参数点; 135—裤脚小腿内轮廓线衔接参数点; 136—外轮廓膝部转折参数点; 137—内轮廓膝部转折参数点; 138—外轮廓踝部转折参数点; 139—内轮廓踝部转折参数点; 140—裤腰腰部衔接实际点; 141—外轮廓膝部转折实际点; 142—裤脚小腿外轮廓线衔接实际点; 143—外轮廓踝部转折实际点; 144—裤脚小腿内轮廓线衔接实际点; 145—内轮廓膝部转折实际点; 146—内轮廓踝部转折实际点; 147—裤脚大腿外轮廓线衔接参数点; 148—裤脚大腿内轮廓线衔接参数点; 149—裤脚大腿外轮廓线衔接实际点; 150—裤脚大腿内轮廓线衔接实际点; 151—裙腰腰部衔接参数点; 152—裙摆腿部衔接参数点; 153—裙腰腰部衔接实际点; 154—裙摆腿部衔接实际点; 155—袖口上臂内轮廓线衔接实际点。100—the connection parameter point of the neckline and neck; 101—the connection parameter point of the outer contour line of the cuff and wrist; 102—the connection parameter point of the inner contour line of the cuff and wrist; 103—the connection parameter point of the hem and waist; 104—the turning parameter point of the head and neck angle; 105—the shoulder Neck angle turning parameter point; 106 - acromion turning parameter point; 107 - outer contour elbow turning parameter point; 108 - inner contour elbow turning parameter point; 109 - outer contour wrist turning parameter point; 110 - inner contour wrist Turning parameter point; 111-armpit turning parameter point; 112-hip turning parameter point; 113- actual turning point of head and neck angle; 114- turning actual point of shoulder and neck angle; 115- actual turning point of acromion; 116-outer contour elbow Turning actual point; 117—Inner contour elbow turning actual point; 118—Outer contour wrist turning actual point; 119—Inner contour wrist turning actual point; 120—Axillary turning actual point; 121—Hip turning actual point; 122 - The actual point of the neckline and neck; 123 - The outer contour of the cuff and wrist is connected to the actual point; 124 - The inner contour of the cuff and wrist is connected to the actual point; 125 - The hem and waist are connected to the actual point; 126 - The outer contour of the cuff and upper arm is connected to the parameter point; 127 - Parameter point for connecting the inner contour of the upper arm of the cuff; 128 - The actual point connecting the outer contour of the upper arm of the cuff; 129 - The connecting parameter point of the neckline and shoulder; 130 - The connecting parameter point of the upper armpit; 131 - The actual point of connecting the neckline and shoulder; 132 —The actual point of the connection between the upper hem and the armpit; 133—The connection parameter point of the waist and waist of the trousers; 134—The connection parameter point of the outer contour line of the trouser leg and calf; 135—The connection parameter point of the inner contour line of the trouser leg and calf; - Inner contour knee turning parameter point; 138 - Outer contour ankle turning parameter point; 139 - Inner contour ankle turning parameter point; 140 - The actual point of the waist and waist connection; 141 - The outer contour knee turning actual point; 142 - The trouser leg The outer contour line of the calf connects the actual point; 143—the actual point of the ankle turning of the outer contour; 144—the inner contour line of the trousers calf connects the actual point; 145—the actual point of the knee turning of the inner contour; 146—the actual turning point of the inner contour ankle; 147 —The connection parameter point of the outer contour line of the trouser leg and thigh; 148—The connection parameter point of the inner contour line of the trouser leg and thigh; 149—The actual point of connection between the outer contour line of the trouser leg and thigh; 150—The actual point of connection between the inner contour line of the trouser leg and thigh; point; 152—parameter point of the connection between the skirt and legs; 153—the actual point of the connection between the waist and waist of the skirt; 154—the actual point of the connection between the skirt and the leg; 155—the actual point of the inner contour line of the upper arm of the cuff.
本发明的最佳实施方式Best Mode for Carrying Out the Invention
本实施例,基于长袖上衣的虚拟试衣过程,对本发明进行说明。In this embodiment, the present invention is described based on the virtual fitting process of the long-sleeved top.
如图1所示,一种虚拟试衣方法,包括如下步骤:As shown in Figure 1, a virtual fitting method includes the following steps:
步骤S1:获取人体图像;Step S1: acquiring a human body image;
人体图像例如图2所示,实际中所述人体图像为摄像设备对试衣人员直接进行拍摄获得的人体图像。具体地,通过摄像设备获取对试衣人员的拍摄图像或拍摄视频,如果是拍摄视频,则对视频中的每一帧图像执行步骤 S1-S9,另外,拍摄图像或拍摄视频中的每一帧图像在进行步骤 S1-S9之前,首先通过图像识别技术,将人体部分的图像抠出,单独作为人体图像,剩余部分的图像作为背景图像,在步骤S1-S9执行之后,将合成的图像嵌入到背景图像上,从而实现真实照镜试衣的效果。An example of a human body image is shown in FIG. 2 . In practice, the human body image is a human body image obtained by directly photographing a fitting person by a camera device. Specifically, a photographed image or a photographed video of the fitting personnel is obtained through a camera device, and if it is a photographed video, the steps are performed on each frame of the image in the video. S1-S9, in addition, before performing steps S1-S9 for each frame of the captured image or captured video, the image of the human body part is first cut out through the image recognition technology, which is used as the human body image alone, and the remaining part of the image is used as the background Image, after steps S1-S9 are executed, the synthesized image is embedded on the background image, so as to realize the effect of real mirror fitting.
步骤S2:以人体中线为界将所述人体图像分为第一侧人体图像和第二侧人体图像,所述人体中线指人体垂直中间线;Step S2: dividing the human body image into a first-side human body image and a second-side human body image with the human body midline as a boundary, and the human body midline refers to the vertical midline of the human body;
需要说明的是,所述人体中线仅为虚拟的分割线,并不需要实际的将所述人体图像分割成两个图像。It should be noted that the human body midline is only a virtual dividing line, and it is not necessary to actually divide the human body image into two images.
步骤S3:获取衣服图像数据,所述衣服图像数据包括衣服图像、以及标记在衣服图像上的人衣衔接参数点和人体转折参数点;所述人衣衔接参数点指衣服穿于样板人体上时,衣服轮廓线与样板人体轮廓线相交点,如图3所示的长袖上衣的袖口手腕外轮廓线衔接点,所述人体转折参数点指所述样板人体轮廓线上人体关节附近的转折点;Step S3: Obtaining clothing image data, the clothing image data includes the clothing image, and the human-clothing connection parameter points and the human body turning parameter points marked on the clothing image; , the intersection point of the outline of the clothes and the outline of the model human body, the connection point of the outer outline of the cuff and wrist of the long-sleeved top as shown in Figure 3, the human body turning parameter point refers to the turning point near the human body joints on the outline of the model human body;
如图3所示,当所述衣服图像中的衣服为长袖上衣时,所述人衣衔接参数点包括2个领口颈部衔接参数点100、2个袖口手腕外轮廓线衔接参数点101、2个袖口手腕内轮廓线衔接参数点102、2个下摆腰部衔接参数点103,所述人体转折参数点包括2个头颈角转折参数点104、2个肩颈角转折参数点105、2个肩峰转折参数点106、2个外轮廓肘部转折参数点107、2个内轮廓肘部转折参数点108、2个外轮廓腕部转折参数点109、2个内轮廓腕部转折参数点110、2个腋窝转折参数点111、2个髋部转折参数点112。As shown in FIG. 3 , when the clothing in the clothing image is a long-sleeved top, the human clothing connection parameter points include 2 neckline and neck connection parameter points 100 , 2 cuff wrist outer contour line connection parameter points 101 , 2 cuff wrist inner contour line connection parameter points 102, 2 hem waist connection parameter points 103, the human body turning parameter points include 2 head and neck angle turning parameter points 104, 2 shoulder and neck angle turning parameter points 105, 2 shoulder and neck angle turning parameter points 105 Peak turning parameter points 106, 2 outer contour elbow turning parameter points 107, 2 inner contour elbow turning parameter points 108, 2 outer contour wrist turning parameter points 109, 2 inner contour wrist turning parameter points 110, 2 armpit turning parameter points 111 and 2 hip turning parameter points 112 .
需要说明的是,所述衣服图像为预先将衣服穿设在样板人体上进行拍摄,然后再在拍摄得到的图像上添加人衣衔接参数点和人体转折参数点,最后将图像中的样板人体抹除,得到所需的衣服图像数据;也可以根据经验值直接对衣服图像进行标注人衣衔接参数点和人体转折参数点,得到所需的衣服图像数据。It should be noted that, the clothes image is taken by wearing the clothes on the model body in advance, and then adding the human-clothing connection parameter points and the human body turning parameter points to the image obtained by shooting, and finally wiping the model body in the image. In addition, the required clothing image data can be obtained; the clothing image can also be directly marked with the human-clothing connection parameter points and the human body turning parameter points according to the empirical value to obtain the required clothing image data.
步骤S4:基于步骤S3所得人体转折参数点,在第一侧人体图像上标记对应的人体转折实际点A,并基于所述人衣衔接参数点和人体转折参数点的相对位置,在第一侧人体图像上标记对应的人衣衔接实际点A;Step S4: Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point A on the first side human body image, and based on the relative positions of the human clothing connection parameter points and the human body turning parameter points, on the first side The corresponding human clothing is marked on the human image to connect to the actual point A;
如图4所示,假设第一侧人体图像为左侧人体图像,当所述衣服图像中的衣服为长袖上衣时,在左侧人体图像上标记的人体转折实际点A包括头颈角转折实际点113、肩颈角转折实际点114、肩峰转折实际点115、外轮廓肘部转折实际点116、内轮廓肘部转折实际点117、外轮廓腕部转折实际点118、内轮廓腕部转折实际点119、腋窝转折实际点120和髋部转折实际点121;再基于这些人体转折实际点A在左侧人体图像上标记对应的人衣衔接实际点A,人衣衔接实际点A包括领口颈部衔接实际点122、袖口手腕外轮廓线衔接实际点123、袖口手腕内轮廓线衔接实际点124和下摆腰部衔接实际点125。As shown in FIG. 4 , assuming that the first human body image is the left human body image, when the clothes in the clothing image are long-sleeved tops, the actual human body turning point A marked on the left human body image includes the actual turning point of the head and neck angle. Point 113, actual turning point of shoulder and neck angle 114, actual turning point of acromion 115, actual turning point of outer contour elbow 116, actual turning point of inner contour elbow 117, actual turning point of outer contour wrist 118, turning of inner contour wrist The actual point 119, the actual point 120 of the armpit turning, and the actual point 121 of the turning of the hip; and then based on these actual turning points A of the human body, the corresponding actual point A of the human clothing connection is marked on the left human body image, and the actual point A of the human clothing connection includes the neckline and neck. The upper part is connected to the actual point 122 , the outer contour of the cuff and wrist is connected to the actual point 123 , the inner contour of the cuff and wrist is connected to the actual point 124 , and the hem waist is connected to the actual point 125 .
步骤S5:获取人衣衔接实际点A基于人体中线的相应对称点人衣衔接实际点A';获取人体转折实际点A基于人体中线的相应对称点人体转折实际点A';Step S5: obtaining the corresponding symmetric point of the human-clothing connection actual point A based on the midline of the human body; obtaining the actual human-body transition point A based on the corresponding symmetrical point of the human body midline; the actual human-body transition point A';
如图5所示,通过人体中线进行对称操作,对右侧人体图像上标记人衣衔接实际点A'和人体转折实际点A',当所述衣服图像中的衣服为长袖上衣时,在右侧人体图像上标记的人体转折实际点A'包括头颈角转折实际点113、肩颈角转折实际点114、肩峰转折实际点115、外轮廓肘部转折实际点116、内轮廓肘部转折实际点117、外轮廓腕部转折实际点118、内轮廓腕部转折实际点119、腋窝转折实际点120和髋部转折实际点121;在右侧人体图像上标记的人体衔接实际点A'包括领口颈部衔接实际点122、袖口手腕外轮廓线衔接实际点123、袖口手腕内轮廓线衔接实际点124和下摆腰部衔接实际点125。As shown in FIG. 5 , by performing a symmetrical operation on the midline of the human body, mark the actual point A' of the human clothing connection and the actual point A' of the human body turning on the right human body image. When the clothing in the clothing image is a long-sleeved top, the The actual human body turning point A' marked on the right body image includes the actual turning point 113 of the head and neck angle, the actual turning point 114 of the shoulder and neck angle, the actual turning point 115 of the shoulder peak, the actual turning point 116 of the elbow of the outer contour, and the turning actual point of the elbow of the inner contour. The actual point 117, the actual point 118 of the wrist turning of the outer contour, the actual turning point of the wrist of the inner contour 119, the actual turning point of the armpit 120, and the actual turning point 121 of the hip; The neckline and neck are connected to the actual point 122 , the outer contour of the cuff and wrist is connected to the actual point 123 , the inner contour of the cuff and the wrist is connected to the actual point 124 , and the hem waist is connected to the actual point 125 .
步骤S6:基于步骤S3所得人体转折参数点,在第二侧人体图像上标记对应的人体转折实际点B,并基于所述人衣衔接参数点和人体转折参数点的相对位置,在第二侧人体图像上标记对应的人衣衔接实际点B;Step S6: Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point B on the human body image on the second side, and based on the relative position of the human clothing connection parameter point and the human body turning parameter point, on the second side The corresponding human clothing is marked on the human image to connect with the actual point B;
如图5所示,第二侧人体图像为右侧人体图像,标记的人体转折实际点B与镜像对称得到的人体转折实际点A'有些会重叠,有些会不重叠。As shown in FIG. 5 , the second human body image is the right human body image, and the marked actual human body turning point B and the mirrored actual human body turning point A' may overlap and some may not.
步骤S7:以人衣衔接实际点B、人体转折实际点B为源点,以对应的人衣衔接实际点A'和人体转折实际点A'为目标点,将第二侧人体图像变形;Step S7: taking the actual point B of the connection between the human body and the clothing and the actual point B of the human body turning as the source point, and taking the corresponding actual point A' of the human clothing connection and the actual point A' of the human body turning as the target point, the second side human body image is deformed;
在所述人体图像变形后,对人体图像进行修正:After the human body image is deformed, the human body image is corrected:
步骤7-1:将所述步骤S7中的源点沿所述第二侧人体图像变形前的人体轮廓线依次连接,获得人体轮廓线节段X1;Step 7-1: connecting the source points in step S7 in sequence along the human body contour line before the deformation of the second human body image to obtain a human body contour line segment X1;
步骤7-2:将所述步骤S7中的目标点沿所述第二侧人体图像变形后的人体轮廓线依次连接,获得人体轮廓线节段X2;Step 7-2: connecting the target points in step S7 along the deformed human body contour line of the second human body image in sequence to obtain a human body contour line segment X2;
步骤7-3:将位于人体轮廓线节段X1内侧且位于人体轮廓线节段X2外侧的人体图像进行清除。Step 7-3: Clear the human body images located inside the human body contour line segment X1 and outside the human body contour line segment X2.
通过采用上述技术方案,可以将变形后所得人体轮廓线以外的残留人体图像去除,确保好的视觉效果。By adopting the above technical solution, the residual human body image other than the human body contour line obtained after the deformation can be removed, so as to ensure a good visual effect.
步骤S8:以人衣衔接参数点和人体转折参数点为源点,以对应的人衣衔接实际点A、人体转折实际点A、人衣衔接实际点A'、人体转折实际点A'为目标点,将衣服图像变形,将变形后的衣服图像叠加到人体图像上。Step S8: take the human clothing connection parameter point and the human body turning parameter point as the source point, and take the corresponding human clothing connecting actual point A, the human body turning actual point A, the human clothing connecting actual point A', and the human body turning actual point A' as the target Click to deform the clothes image, and superimpose the deformed clothes image on the human body image.
步骤S9、对衣服图像叠加到人体图像上后得到合成图像进行修正:Step S9, modifying the composite image obtained after the clothes image is superimposed on the human body image:
步骤9-1:沿衣服轮廓线的方向将所述步骤S8目标点中的人衣衔接实际点、和衣服轮廓线重叠的人体转折实际点依次连接,连接时,依次相邻的两点若均为人衣衔接实际点,则将该两点沿衣服轮廓线连接,否则,将该两点沿人体轮廓线连接;获得人体区域Y1(本应被衣服所覆盖的区域);Step 9-1: Connect the actual point where the human clothing is connected in the target point of step S8 and the actual turning point of the human body that overlaps with the clothing outline along the direction of the clothing outline. When connecting, if the two adjacent points are both If it is the actual point of the human-clothing connection, connect the two points along the outline of the clothing, otherwise, connect the two points along the outline of the human body; obtain the human body area Y1 (the area that should be covered by the clothing);
步骤9-2:将人体区域Y1中超出变形并叠加到人体图像后的衣服图像覆盖区域的部分进行清除。Step 9-2: Remove the portion of the human body area Y1 that is beyond the area covered by the clothing image after being deformed and superimposed on the human body image.
由于衣服轮廓线和人体对应轮廓线并不完全吻合,通过采用上述技术方案,可以避免出现衣服穿在人体内的现象。最终合成后的图像如图 6 所示。Since the contour lines of the clothes and the corresponding contour lines of the human body do not completely match, by adopting the above technical solution, the phenomenon that the clothes are worn inside the human body can be avoided. The final synthesized image is shown in Figure 6.
本实施例中,所述人衣衔接参数点与人体转折参数点之间相对位置关系可以通过多种常用位置算法获取,如可以通过人衣衔接参数点在两个相邻人体转折参数点之间人体轮廓线的相对位置获取,例如图3所示长袖上衣袖口手腕外轮廓线衔接点可以通过其在外轮廓肘部点和外轮廓腕部点之间人体轮廓线的相对位置获取;也可以通过人衣衔接参数点纵坐标在两个相邻人体转折参数点之间纵坐标的相对位置获取其纵坐标、然后基于其纵坐标和相邻人体轮廓线水平相交获取其横坐标或者通过人衣衔接参数点在2个相邻人体转折参数点之间横坐标的相对位置获取其横坐标、然后基于该横坐标和相邻人体轮廓线垂直相交获取其纵坐标;也可以通过人衣衔接参数点和2个相邻人体转折参数点之间纵坐标和横坐标的相对位置来分别获取其纵坐标和横坐标;还可以将人衣衔接参数点和相邻人体转折参数点重叠,如图3所示长袖上衣的袖口手腕外轮廓线衔接点可以和外轮廓腕部点重叠,此时人衣衔接参数点的位置就是对应的相邻人体转折参数点的位置;本领域技术人员应当知道此处还可以使用其它基于点和点或者点和轮廓线之间的位置算法。In this embodiment, the relative positional relationship between the human-clothing connection parameter point and the human body turning parameter point can be obtained through a variety of common position algorithms, for example, the human-clothing connection parameter point can be between two adjacent human body turning parameter points. The relative position of the human body contour line can be obtained. For example, as shown in Figure 3, the connection point of the outer contour line of the wrist of the cuff of the long-sleeved top can be obtained from the relative position of the body contour line between the elbow point of the outer contour and the wrist point of the outer contour; it can also be obtained by The ordinate of the human-clothing connection parameter point is obtained from the relative position of the ordinate between two adjacent human body turning parameter points, and then its abscissa is obtained based on the horizontal intersection of its ordinate and the adjacent human body outline, or the human-clothing connection is used to obtain its ordinate. The abscissa of the parameter point is obtained from the relative position of the abscissa between two adjacent human body turning parameter points, and then its ordinate is obtained based on the vertical intersection of the abscissa and the adjacent human body contour; it is also possible to connect the parameter points and The relative positions of the ordinate and abscissa between the two adjacent human body turning parameter points can be used to obtain their ordinate and abscissa respectively; the human clothing connection parameter point and the adjacent human body turning parameter point can also be overlapped, as shown in Figure 3 The connection point of the outer contour line of the cuff and wrist of the long-sleeved top may overlap with the point of the outer contour of the wrist. At this time, the position of the connection parameter point of the clothing is the position of the corresponding adjacent human body turning parameter point; those skilled in the art should know that there are also Other point-to-point or point-to-contour based positional algorithms can be used.
具体地,对于长袖上衣,所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:Specifically, for a long-sleeved top, in the step S4, the actual point A corresponding to the human body image on the first side of the human body image is obtained based on the relative positions of the human clothing connection parameter point and the human body turning parameter point, or in the step S6 Based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, the corresponding human-clothing connection actual point B of the second-side human body image is obtained, including the following steps:
基于领口颈部衔接参数点100相对人体中线同侧的头颈角转折参数点104和肩颈角转折参数点105的位置,获取领口颈部衔接实际点122相对人体中线同侧的头颈角转折实际点113和肩颈角转折实际点114的位置;Based on the positions of the neckline and neck connection parameter point 100 relative to the head and neck angle turning parameter point 104 and the shoulder-neck angle turning parameter point 105 on the same side of the human body midline, the actual neckline and neck connection point 122 is obtained relative to the head and neck angle turning point on the same side of the human body midline. 113 and the actual position of the shoulder and neck angle turning point 114;
基于袖口手腕外轮廓线衔接参数点101相对人体中线同侧的外轮廓肘部转折参数点107和外轮廓腕部转折参数点109的位置,获取袖口手腕外轮廓线衔接实际点123相对人体中线同侧的外轮廓肘部转折实际点116和外轮廓腕部转折实际点118的位置;Based on the position of the connection parameter point 101 of the outer contour of the cuff wrist relative to the elbow turning parameter point 107 of the outer contour and the turning parameter point 109 of the outer contour wrist on the same side of the human body midline, the actual point 123 of the connection between the outer contour of the cuff and the wrist is obtained relative to the midline of the human body. the position of the outer contour elbow turning actual point 116 and the outer contour wrist turning actual point 118;
基于袖口手腕内轮廓线衔接参数点102相对人体中线同侧的内轮廓肘部转折参数点108和内轮廓腕部转折参数点110的相对位置,获取袖口手腕内轮廓线衔接实际点124相对人体中线同侧的内轮廓肘部转折实际点117和内轮廓腕部转折实际点119的相对位置;Based on the relative positions of the cuff wrist inner contour line connection parameter point 102 relative to the inner contour elbow turning parameter point 108 and inner contour wrist turning parameter point 110 on the same side of the human body midline, the actual point 124 of the cuff wrist inner contour line connecting actual point 124 relative to the human body midline is obtained The relative position of the actual elbow turning point 117 of the inner contour and the actual turning point 119 of the inner contour wrist on the same side;
基于下摆腰部衔接参数点103相对人体中线同侧的腋窝转折参数点111和髋部转折参数点112的位置,获取下摆腰部衔接实际点125相对人体中线同侧的腋窝转折实际点120和髋部转折实际点121的位置。或者,基于下摆腰部衔接参数点103相对人体中线同侧的肩峰转折参数点106和髋部转折参数点112的位置,获取下摆腰部衔接实际点125相对人体中线同侧的肩峰转折实际点115和髋部转折实际点121的位置。Based on the position of the hem waist connection parameter point 103 relative to the armpit turning parameter point 111 and the hip turning parameter point 112 on the same side of the human body midline, the actual axillary turning point 120 and the hip turning point 125 of the hem waist connecting actual point 125 relative to the same side of the human body midline are obtained. The location of the actual point 121. Or, based on the position of the hem waist connection parameter point 103 relative to the acromion turning parameter point 106 and the hip turning parameter point 112 on the same side of the human body midline, obtain the actual acromion turning point 115 of the hem waist connecting actual point 125 relative to the acromion turning parameter point 115 on the same side of the human body midline and the location of the actual point 121 of the hip turning.
需要说明的是,由于人体是一个整体,所以除了和衣服图像数据有关的人体部分外,对人体的其余部分也需要基于人体中线进行对称调整为佳,以实现更好的视觉效果,如在试衣开始前先基于人体中线和人体转折点对整个人体进行对称调整,或者在衣服贴合完后、基于人体中线和人体其余部分的人体转折点,对人体其余部分进行对称调整。It should be noted that since the human body is a whole, in addition to the parts of the human body related to the image data of clothes, the rest of the human body also needs to be symmetrically adjusted based on the midline of the human body to achieve better visual effects. Before the clothing starts, the entire human body is adjusted symmetrically based on the midline of the human body and the turning point of the human body, or after the clothes are fitted, the rest of the human body is symmetrically adjusted based on the midline of the human body and the turning point of the rest of the human body.
本发明的实施方式Embodiments of the present invention
实施例1Example 1
本实施例,基于长袖上衣的虚拟试衣过程,对本发明进行说明。In this embodiment, the present invention is described based on the virtual fitting process of the long-sleeved top.
如图1所示,一种虚拟试衣方法,包括如下步骤:As shown in Figure 1, a virtual fitting method includes the following steps:
步骤S1:获取人体图像;Step S1: acquiring a human body image;
人体图像例如图2所示,实际中所述人体图像为摄像设备对试衣人员直接进行拍摄获得的人体图像。具体地,通过摄像设备获取对试衣人员的拍摄图像或拍摄视频,如果是拍摄视频,则对视频中的每一帧图像执行步骤 S1-S9,另外,拍摄图像或拍摄视频中的每一帧图像在进行步骤 S1-S9之前,首先通过图像识别技术,将人体部分的图像抠出,单独作为人体图像,剩余部分的图像作为背景图像,在步骤S1-S9执行之后,将合成的图像嵌入到背景图像上,从而实现真实照镜试衣的效果。An example of a human body image is shown in FIG. 2 . In practice, the human body image is a human body image obtained by directly photographing a fitting person by a camera device. Specifically, a photographed image or a photographed video of the fitting personnel is obtained through a camera device, and if it is a photographed video, the steps are performed on each frame of the image in the video. S1-S9, in addition, before performing steps S1-S9 for each frame of the captured image or captured video, the image of the human body part is first cut out through the image recognition technology, which is used as the human body image alone, and the remaining part of the image is used as the background Image, after steps S1-S9 are executed, the synthesized image is embedded on the background image, so as to realize the effect of real mirror fitting.
步骤S2:以人体中线为界将所述人体图像分为第一侧人体图像和第二侧人体图像,所述人体中线指人体垂直中间线;Step S2: dividing the human body image into a first-side human body image and a second-side human body image with the human body midline as a boundary, and the human body midline refers to the vertical midline of the human body;
需要说明的是,所述人体中线仅为虚拟的分割线,并不需要实际的将所述人体图像分割成两个图像。It should be noted that the human body midline is only a virtual dividing line, and it is not necessary to actually divide the human body image into two images.
步骤S3:获取衣服图像数据,所述衣服图像数据包括衣服图像、以及标记在衣服图像上的人衣衔接参数点和人体转折参数点;所述人衣衔接参数点指衣服穿于样板人体上时,衣服轮廓线与样板人体轮廓线相交点,如图3所示的长袖上衣的袖口手腕外轮廓线衔接点,所述人体转折参数点指所述样板人体轮廓线上人体关节附近的转折点;Step S3: Obtaining clothing image data, the clothing image data includes the clothing image, and the human-clothing connection parameter points and the human body turning parameter points marked on the clothing image; , the intersection point of the outline of the clothes and the outline of the model human body, the connection point of the outer outline of the cuff and wrist of the long-sleeved top as shown in Figure 3, the human body turning parameter point refers to the turning point near the human body joints on the outline of the model human body;
如图3所示,当所述衣服图像中的衣服为长袖上衣时,所述人衣衔接参数点包括2个领口颈部衔接参数点100、2个袖口手腕外轮廓线衔接参数点101、2个袖口手腕内轮廓线衔接参数点102、2个下摆腰部衔接参数点103,所述人体转折参数点包括2个头颈角转折参数点104、2个肩颈角转折参数点105、2个肩峰转折参数点106、2个外轮廓肘部转折参数点107、2个内轮廓肘部转折参数点108、2个外轮廓腕部转折参数点109、2个内轮廓腕部转折参数点110、2个腋窝转折参数点111、2个髋部转折参数点112。As shown in FIG. 3 , when the clothing in the clothing image is a long-sleeved top, the human clothing connection parameter points include 2 neckline and neck connection parameter points 100 , 2 cuff wrist outer contour line connection parameter points 101 , 2 cuff wrist inner contour line connection parameter points 102, 2 hem waist connection parameter points 103, the human body turning parameter points include 2 head and neck angle turning parameter points 104, 2 shoulder and neck angle turning parameter points 105, 2 shoulder and neck angle turning parameter points 105 Peak turning parameter points 106, 2 outer contour elbow turning parameter points 107, 2 inner contour elbow turning parameter points 108, 2 outer contour wrist turning parameter points 109, 2 inner contour wrist turning parameter points 110, 2 armpit turning parameter points 111 and 2 hip turning parameter points 112 .
需要说明的是,所述衣服图像为预先将衣服穿设在样板人体上进行拍摄,然后再在拍摄得到的图像上添加人衣衔接参数点和人体转折参数点,最后将图像中的样板人体抹除,得到所需的衣服图像数据;也可以根据经验值直接对衣服图像进行标注人衣衔接参数点和人体转折参数点,得到所需的衣服图像数据。It should be noted that, the clothes image is taken by wearing the clothes on the model body in advance, and then adding the human-clothing connection parameter points and the human body turning parameter points to the image obtained by shooting, and finally wiping the model body in the image. In addition, the required clothing image data can be obtained; the clothing image can also be directly marked with the human-clothing connection parameter points and the human body turning parameter points according to the empirical value to obtain the required clothing image data.
步骤S4:基于步骤S3所得人体转折参数点,在第一侧人体图像上标记对应的人体转折实际点A,并基于所述人衣衔接参数点和人体转折参数点的相对位置,在第一侧人体图像上标记对应的人衣衔接实际点A;Step S4: Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point A on the first side human body image, and based on the relative positions of the human clothing connection parameter points and the human body turning parameter points, on the first side The corresponding human clothing is marked on the human image to connect to the actual point A;
如图4所示,假设第一侧人体图像为左侧人体图像,当所述衣服图像中的衣服为长袖上衣时,在左侧人体图像上标记的人体转折实际点A包括头颈角转折实际点113、肩颈角转折实际点114、肩峰转折实际点115、外轮廓肘部转折实际点116、内轮廓肘部转折实际点117、外轮廓腕部转折实际点118、内轮廓腕部转折实际点119、腋窝转折实际点120和髋部转折实际点121;再基于这些人体转折实际点A在左侧人体图像上标记对应的人衣衔接实际点A,人衣衔接实际点A包括领口颈部衔接实际点122、袖口手腕外轮廓线衔接实际点123、袖口手腕内轮廓线衔接实际点124和下摆腰部衔接实际点125。As shown in FIG. 4 , assuming that the first human body image is the left human body image, when the clothes in the clothing image are long-sleeved tops, the actual human body turning point A marked on the left human body image includes the actual turning point of the head and neck angle. Point 113, actual turning point of shoulder and neck angle 114, actual turning point of acromion 115, actual turning point of outer contour elbow 116, actual turning point of inner contour elbow 117, actual turning point of outer contour wrist 118, turning of inner contour wrist The actual point 119, the actual point 120 of the armpit turning, and the actual point 121 of the turning of the hip; and then based on these actual turning points A of the human body, the corresponding actual point A of the human clothing connection is marked on the left human body image, and the actual point A of the human clothing connection includes the neckline and neck. The upper part is connected to the actual point 122 , the outer contour of the cuff and wrist is connected to the actual point 123 , the inner contour of the cuff and wrist is connected to the actual point 124 , and the hem waist is connected to the actual point 125 .
步骤S5:获取人衣衔接实际点A基于人体中线的相应对称点人衣衔接实际点A';获取人体转折实际点A基于人体中线的相应对称点人体转折实际点A';Step S5: obtaining the corresponding symmetric point of the human-clothing connection actual point A based on the midline of the human body; obtaining the actual human-body transition point A based on the corresponding symmetrical point of the human body midline; the actual human-body transition point A';
如图5所示,通过人体中线进行对称操作,对右侧人体图像上标记人衣衔接实际点A'和人体转折实际点A',当所述衣服图像中的衣服为长袖上衣时,在右侧人体图像上标记的人体转折实际点A'包括头颈角转折实际点113、肩颈角转折实际点114、肩峰转折实际点115、外轮廓肘部转折实际点116、内轮廓肘部转折实际点117、外轮廓腕部转折实际点118、内轮廓腕部转折实际点119、腋窝转折实际点120和髋部转折实际点121;在右侧人体图像上标记的人体衔接实际点A'包括领口颈部衔接实际点122、袖口手腕外轮廓线衔接实际点123、袖口手腕内轮廓线衔接实际点124和下摆腰部衔接实际点125。As shown in FIG. 5 , by performing a symmetrical operation on the midline of the human body, mark the actual point A' of the human clothing connection and the actual point A' of the human body turning on the right human body image. When the clothing in the clothing image is a long-sleeved top, the The actual human body turning point A' marked on the right body image includes the actual turning point 113 of the head and neck angle, the actual turning point 114 of the shoulder and neck angle, the actual turning point 115 of the shoulder peak, the actual turning point 116 of the elbow of the outer contour, and the turning actual point of the elbow of the inner contour. The actual point 117, the actual point 118 of the wrist turning of the outer contour, the actual turning point of the wrist of the inner contour 119, the actual turning point of the armpit 120, and the actual turning point 121 of the hip; The neckline and neck are connected to the actual point 122 , the outer contour of the cuff and wrist is connected to the actual point 123 , the inner contour of the cuff and the wrist is connected to the actual point 124 , and the hem waist is connected to the actual point 125 .
步骤S6:基于步骤S3所得人体转折参数点,在第二侧人体图像上标记对应的人体转折实际点B,并基于所述人衣衔接参数点和人体转折参数点的相对位置,在第二侧人体图像上标记对应的人衣衔接实际点B;Step S6: Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point B on the human body image on the second side, and based on the relative position of the human clothing connection parameter point and the human body turning parameter point, on the second side The corresponding human clothing is marked on the human image to connect with the actual point B;
如图5所示,第二侧人体图像为右侧人体图像,标记的人体转折实际点B与镜像对称得到的人体转折实际点A'有些会重叠,有些会不重叠。As shown in FIG. 5 , the second human body image is the right human body image, and the marked actual human body turning point B and the mirrored actual human body turning point A' may overlap and some may not.
步骤S7:以人衣衔接实际点B、人体转折实际点B为源点,以对应的人衣衔接实际点A'和人体转折实际点A'为目标点,将第二侧人体图像变形;Step S7: taking the actual point B of the connection between the human body and the clothing and the actual point B of the human body turning as the source point, and taking the corresponding actual point A' of the human clothing connection and the actual point A' of the human body turning as the target point, the second side human body image is deformed;
在所述人体图像变形后,对人体图像进行修正:After the human body image is deformed, the human body image is corrected:
步骤7-1:将所述步骤S7中的源点沿所述第二侧人体图像变形前的人体轮廓线依次连接,获得人体轮廓线节段X1;Step 7-1: connecting the source points in step S7 in sequence along the human body contour line before the deformation of the second human body image to obtain a human body contour line segment X1;
步骤7-2:将所述步骤S7中的目标点沿所述第二侧人体图像变形后的人体轮廓线依次连接,获得人体轮廓线节段X2;Step 7-2: connecting the target points in step S7 along the deformed human body contour line of the second human body image in sequence to obtain a human body contour line segment X2;
步骤7-3:将位于人体轮廓线节段X1内侧且位于人体轮廓线节段X2外侧的人体图像进行清除。Step 7-3: Clear the human body images located inside the human body contour line segment X1 and outside the human body contour line segment X2.
通过采用上述技术方案,可以将变形后所得人体轮廓线以外的残留人体图像去除,确保好的视觉效果。By adopting the above technical solution, the residual human body image other than the human body contour line obtained after the deformation can be removed, so as to ensure a good visual effect.
步骤S8:以人衣衔接参数点和人体转折参数点为源点,以对应的人衣衔接实际点A、人体转折实际点A、人衣衔接实际点A'、人体转折实际点A'为目标点,将衣服图像变形,将变形后的衣服图像叠加到人体图像上。Step S8: take the human clothing connection parameter point and the human body turning parameter point as the source point, and take the corresponding human clothing connecting actual point A, the human body turning actual point A, the human clothing connecting actual point A', and the human body turning actual point A' as the target Click to deform the clothes image, and superimpose the deformed clothes image on the human body image.
步骤S9、对衣服图像叠加到人体图像上后得到合成图像进行修正:Step S9, modifying the composite image obtained after the clothes image is superimposed on the human body image:
步骤9-1:沿衣服轮廓线的方向将所述步骤S8目标点中的人衣衔接实际点、和衣服轮廓线重叠的人体转折实际点依次连接,连接时,依次相邻的两点若均为人衣衔接实际点,则将该两点沿衣服轮廓线连接,否则,将该两点沿人体轮廓线连接;获得人体区域Y1(本应被衣服所覆盖的区域);Step 9-1: Connect the actual point where the human clothing is connected in the target point of step S8 and the actual turning point of the human body that overlaps with the clothing outline along the direction of the clothing outline. When connecting, if the two adjacent points are both If it is the actual point of the human-clothing connection, connect the two points along the outline of the clothing, otherwise, connect the two points along the outline of the human body; obtain the human body area Y1 (the area that should be covered by the clothing);
步骤9-2:将人体区域Y1中超出变形并叠加到人体图像后的衣服图像覆盖区域的部分进行清除。Step 9-2: Remove the portion of the human body area Y1 that is beyond the area covered by the clothing image after being deformed and superimposed on the human body image.
由于衣服轮廓线和人体对应轮廓线并不完全吻合,通过采用上述技术方案,可以避免出现衣服穿在人体内的现象。最终合成后的图像如图 6 所示。Since the contour lines of the clothes and the corresponding contour lines of the human body do not completely match, by adopting the above technical solution, the phenomenon that the clothes are worn inside the human body can be avoided. The final synthesized image is shown in Figure 6.
本实施例中,所述人衣衔接参数点与人体转折参数点之间相对位置关系可以通过多种常用位置算法获取,如可以通过人衣衔接参数点在两个相邻人体转折参数点之间人体轮廓线的相对位置获取,例如图3所示长袖上衣袖口手腕外轮廓线衔接点可以通过其在外轮廓肘部点和外轮廓腕部点之间人体轮廓线的相对位置获取;也可以通过人衣衔接参数点纵坐标在两个相邻人体转折参数点之间纵坐标的相对位置获取其纵坐标、然后基于其纵坐标和相邻人体轮廓线水平相交获取其横坐标或者通过人衣衔接参数点在2个相邻人体转折参数点之间横坐标的相对位置获取其横坐标、然后基于该横坐标和相邻人体轮廓线垂直相交获取其纵坐标;也可以通过人衣衔接参数点和2个相邻人体转折参数点之间纵坐标和横坐标的相对位置来分别获取其纵坐标和横坐标;还可以将人衣衔接参数点和相邻人体转折参数点重叠,如图3所示长袖上衣的袖口手腕外轮廓线衔接点可以和外轮廓腕部点重叠,此时人衣衔接参数点的位置就是对应的相邻人体转折参数点的位置;本领域技术人员应当知道此处还可以使用其它基于点和点或者点和轮廓线之间的位置算法。In this embodiment, the relative positional relationship between the human-clothing connection parameter point and the human body turning parameter point can be obtained through a variety of common position algorithms, for example, the human-clothing connection parameter point can be between two adjacent human body turning parameter points. The relative position of the human body contour line can be obtained. For example, as shown in Figure 3, the connection point of the outer contour line of the wrist of the cuff of the long-sleeved top can be obtained from the relative position of the body contour line between the elbow point of the outer contour and the wrist point of the outer contour; it can also be obtained by The ordinate of the human-clothing connection parameter point is obtained from the relative position of the ordinate between two adjacent human body turning parameter points, and then its abscissa is obtained based on the horizontal intersection of its ordinate and the adjacent human body outline, or the human-clothing connection is used to obtain its ordinate. The abscissa of the parameter point is obtained from the relative position of the abscissa between two adjacent human body turning parameter points, and then its ordinate is obtained based on the vertical intersection of the abscissa and the adjacent human body contour; it is also possible to connect the parameter points and The relative positions of the ordinate and abscissa between the two adjacent human body turning parameter points can be used to obtain their ordinate and abscissa respectively; the human clothing connection parameter point and the adjacent human body turning parameter point can also be overlapped, as shown in Figure 3 The connection point of the outer contour line of the cuff and wrist of the long-sleeved top may overlap with the point of the outer contour of the wrist. At this time, the position of the connection parameter point of the clothing is the position of the corresponding adjacent human body turning parameter point; those skilled in the art should know that there are also Other point-to-point or point-to-contour based positional algorithms can be used.
具体地,对于长袖上衣,所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:Specifically, for a long-sleeved top, in the step S4, the actual point A corresponding to the human body image on the first side of the human body image is obtained based on the relative positions of the human clothing connection parameter point and the human body turning parameter point, or in the step S6 Based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, obtaining the corresponding human-clothing connection actual point B of the second-side human body image, including the following steps:
基于领口颈部衔接参数点100相对人体中线同侧的头颈角转折参数点104和肩颈角转折参数点105的位置,获取领口颈部衔接实际点122相对人体中线同侧的头颈角转折实际点113和肩颈角转折实际点114的位置;Based on the positions of the neckline and neck connection parameter point 100 relative to the head and neck angle turning parameter point 104 and the shoulder-neck angle turning parameter point 105 on the same side of the human body midline, the actual neckline and neck connection point 122 is obtained relative to the head and neck angle turning point on the same side of the human body midline. 113 and the actual position of the shoulder and neck angle turning point 114;
基于袖口手腕外轮廓线衔接参数点101相对人体中线同侧的外轮廓肘部转折参数点107和外轮廓腕部转折参数点109的位置,获取袖口手腕外轮廓线衔接实际点123相对人体中线同侧的外轮廓肘部转折实际点116和外轮廓腕部转折实际点118的位置;Based on the position of the connection parameter point 101 of the outer contour of the cuff wrist relative to the elbow turning parameter point 107 of the outer contour and the turning parameter point 109 of the outer contour wrist on the same side of the human body midline, the actual point 123 of the connection between the outer contour of the cuff and the wrist is obtained relative to the midline of the human body. the position of the outer contour elbow turning actual point 116 and the outer contour wrist turning actual point 118;
基于袖口手腕内轮廓线衔接参数点102相对人体中线同侧的内轮廓肘部转折参数点108和内轮廓腕部转折参数点110的相对位置,获取袖口手腕内轮廓线衔接实际点124相对人体中线同侧的内轮廓肘部转折实际点117和内轮廓腕部转折实际点119的相对位置;Based on the relative positions of the cuff wrist inner contour line connection parameter point 102 relative to the inner contour elbow turning parameter point 108 and inner contour wrist turning parameter point 110 on the same side of the human body midline, the actual point 124 of the cuff wrist inner contour line connecting actual point 124 relative to the human body midline is obtained The relative position of the actual elbow turning point 117 of the inner contour and the actual turning point 119 of the inner contour wrist on the same side;
基于下摆腰部衔接参数点103相对人体中线同侧的腋窝转折参数点111和髋部转折参数点112的位置,获取下摆腰部衔接实际点125相对人体中线同侧的腋窝转折实际点120和髋部转折实际点121的位置。或者,基于下摆腰部衔接参数点103相对人体中线同侧的肩峰转折参数点106和髋部转折参数点112的位置,获取下摆腰部衔接实际点125相对人体中线同侧的肩峰转折实际点115和髋部转折实际点121的位置。Based on the position of the hem waist connection parameter point 103 relative to the armpit turning parameter point 111 and the hip turning parameter point 112 on the same side of the human body midline, the actual axillary turning point 120 and the hip turning point 125 of the hem waist connecting actual point 125 relative to the same side of the human body midline are obtained. The location of the actual point 121. Or, based on the position of the hem waist connection parameter point 103 relative to the acromion turning parameter point 106 and the hip turning parameter point 112 on the same side of the human body midline, obtain the actual acromion turning point 115 of the hem waist connecting actual point 125 relative to the acromion turning parameter point 115 on the same side of the human body midline and the location of the actual point 121 of the hip turning.
需要说明的是,由于人体是一个整体,所以除了和衣服图像数据有关的人体部分外,对人体的其余部分也需要基于人体中线进行对称调整为佳,以实现更好的视觉效果,如在试衣开始前先基于人体中线和人体转折点对整个人体进行对称调整,或者在衣服贴合完后、基于人体中线和人体其余部分的人体转折点,对人体其余部分进行对称调整。It should be noted that since the human body is a whole, in addition to the parts of the human body related to the image data of the clothes, the rest of the human body also needs to be symmetrically adjusted based on the midline of the human body to achieve better visual effects. Before the clothing starts, the entire human body is adjusted symmetrically based on the midline of the human body and the turning point of the human body, or after the clothes are fitted, the rest of the human body is symmetrically adjusted based on the midline of the human body and the turning point of the rest of the human body.
实施例2Example 2
本实施例,基于短袖上衣的虚拟试衣过程,对本发明进行说明。In this embodiment, the present invention is described based on the virtual fitting process of the short-sleeved top.
如图7所示,本实施例与实施例1中不同的是,所述衣服图像中的衣服为短袖上衣时,所述人衣衔接参数点包括2个领口颈部衔接参数点100、2个袖口上臂外轮廓线衔接参数点126、2个袖口上臂内轮廓线衔接参数点127、2个下摆腰部衔接参数点103,所述人体转折参数点包括2个头颈角转折参数点104、2个肩颈角转折参数点105、2个肩峰转折参数点106、2个外轮廓肘部转折参数点107、2个内轮廓肘部转折参数点108、2个腋窝转折参数点111、2个髋部转折参数点112;As shown in FIG. 7 , the difference between this embodiment and Embodiment 1 is that when the clothes in the clothes image are short-sleeved tops, the human-clothing connection parameter points include two neckline and neck connection parameter points 100, 2 1 cuff upper arm outer contour line connection parameter point 126, 2 cuff upper arm inner contour line connection parameter points 127, 2 hem waist connection parameter points 103, the human body turning parameter points include 2 head and neck angle turning parameter points 104, 2 Shoulder and neck angle turning parameter points 105, 2 acromion turning parameter points 106, 2 outer contour elbow turning parameter points 107, 2 inner contour elbow turning parameter points 108, 2 armpit turning parameter points 111, 2 hip turning parameter points Partial turning parameter point 112;
所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
基于领口颈部衔接参数点100相对人体中线同侧的头颈角转折参数点104和肩颈角转折参数点105的位置,获取领口颈部衔接实际点122相对人体中线同侧的头颈角转折实际点113和肩颈角转折实际点114的位置;Based on the positions of the neckline and neck connection parameter point 100 relative to the head and neck angle turning parameter point 104 and the shoulder-neck angle turning parameter point 105 on the same side of the human body midline, the actual neckline and neck connection point 122 is obtained relative to the head and neck angle turning point on the same side of the human body midline. 113 and the actual position of the shoulder and neck angle turning point 114;
基于袖口上臂外轮廓线衔接参数点126相对人体中线同侧的肩峰转折参数点106和外轮廓肘部转折参数点107的位置,获取袖口上臂外轮廓线衔接实际点128相对人体中线同侧的肩峰转折实际点115和外轮廓肘部转折实际点116的位置;Based on the positions of the connection parameter point 126 of the outer contour line of the upper arm of the cuff relative to the acromion turning parameter point 106 and the elbow turning parameter point 107 of the outer contour on the same side of the human body midline, the actual point 128 of the outer contour line of the upper arm of the cuff is obtained relative to the same side of the human body midline. the position of the actual point 115 of the acromion turning and the actual point 116 of the elbow turning of the outer contour;
基于袖口上臂内轮廓线衔接参数点127相对人体中线同侧的腋窝转折参数点111和内轮廓肘部转折参数点108的位置,获取袖口上臂内轮廓线衔接实际点155相对人体中线同侧的腋窝转折实际点120和内轮廓肘部转折实际点117的位置;或者,基于袖口上臂内轮廓线衔接参数点127相对人体中线同侧的肩峰转折参数点106和内轮廓肘部转折参数点108的位置,获取袖口上臂内轮廓线衔接实际点155相对人体中线同侧的肩峰转折实际点115和内轮廓肘部转折实际点117的位置。Based on the position of the connection parameter point 127 of the inner contour line of the upper arm of the cuff relative to the axillary turning parameter point 111 and the turning parameter point 108 of the inner contour elbow on the same side of the midline of the human body, the actual point 155 of the inner contour line of the upper arm of the cuff is obtained relative to the armpit on the same side of the midline of the human body The position of the actual turning point 120 and the turning actual point 117 of the inner contour elbow; or, based on the position of the connecting parameter point 127 of the inner contour line of the upper arm of the cuff relative to the acromion turning parameter point 106 and the turning parameter point 108 of the inner contour elbow on the same side of the body midline To obtain the position of the actual point 155 where the inner contour line of the upper arm of the cuff connects relative to the actual point 115 of the acromion and the actual point 117 of the elbow of the inner contour on the same side of the human body midline.
基于下摆腰部衔接参数点103相对人体中线同侧腋窝转折参数点111和髋部转折参数点112的位置,获取下摆腰部衔接实际点125相对人体中线同侧腋窝转折实际点120和髋部转折实际点121的位置。或者,基于下摆腰部衔接参数点103相对人体中线同侧肩峰转折参数点106和髋部转折参数点112的位置,获取下摆腰部衔接实际点125相对人体中线同侧肩峰转折实际点115和髋部转折实际点121的位置。Based on the positions of the hem waist connection parameter point 103 relative to the axillary turning parameter point 111 and the hip turning parameter point 112 on the same side of the human body midline, the actual hem waist connecting point 125 is obtained relative to the axillary turning actual point 120 and the hip turning actual point on the same side of the body midline. 121 location. Alternatively, based on the positions of the hem waist connection parameter point 103 relative to the acromion turning parameter point 106 and the hip turning parameter point 112 on the same side of the body midline, obtain the actual point 125 of the hem waist connection relative to the acromion turning point 115 on the same side of the body midline and the hip turning parameter point 112 . The part turns to the position of the actual point 121.
其他部分的过程方法,与实施例1中采用的过程方法相同。The process methods of other parts are the same as those used in Example 1.
实施例3Example 3
本实施例,基于马甲的虚拟试衣过程,对本发明进行说明。In this embodiment, the present invention is described based on the virtual fitting process of the vest.
如图8所示,本实施例与实施例1中不同的是,所述衣服图像中的衣服为马甲时,所述人衣衔接参数点包括2个领口颈部衔接参数点100、2个领口肩部衔接参数点129、2个上摆腋部衔接参数点130、2个下摆腰部衔接参数点103,所述人体转折参数点包括2个肩颈角转折参数点105、2个肩峰转折参数点106、2个腋窝转折参数点111、2个髋部转折参数点112;As shown in FIG. 8 , the difference between this embodiment and Embodiment 1 is that when the clothes in the clothes image are vests, the human-clothing connection parameter points include 2 neckline and neck connection parameter points 100 and 2 necklines Shoulder connection parameter points 129, 2 upper hem and armpit connection parameter points 130, 2 hem waist connection parameter points 103, the human body turning parameter points include 2 shoulder and neck angle turning parameter points 105, 2 shoulder peak turning parameters Point 106, 2 armpit turning parameter points 111, 2 hip turning parameter points 112;
所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
基于领口颈部衔接参数点100相对人体中线同侧的肩颈角转折参数点105和肩峰转折参数点106的位置,获取领口颈部衔接实际点122相对人体中线同侧的肩颈角转折实际点114和肩峰转折实际点115的位置;Based on the position of the neckline and neck connection parameter point 100 relative to the shoulder and neck angle turning parameter point 105 and the acromion turning parameter point 106 on the same side of the body midline, the actual neckline and neck connection point 122 is obtained relative to the shoulder and neck angle turning point on the same side of the body midline. the position of point 114 and the actual point 115 of the acromion;
基于领口肩部衔接参数点129相对人体中线同侧的肩颈角转折参数点105和肩峰转折参数点106的位置,获取领口肩部衔接实际点131相对人体中线同侧的肩颈角转折实际点114和肩峰转折实际点115的位置;Based on the positions of the neckline-shoulder connection parameter point 129 relative to the shoulder-neck angle turning parameter point 105 and the acromion turning parameter point 106 on the same side of the body midline, the actual neckline-shoulder connection point 131 is obtained relative to the shoulder-neck angle turning point on the same side of the body midline. the position of point 114 and the actual point 115 of the acromion;
基于上摆腋部衔接参数点130相对人体中线同侧的腋窝转折参数点111和髋部转折参数点112的位置,获取上摆腋部衔接实际点132相对人体中线同侧的腋窝转折实际点120和髋部转折实际点121的位置;或者,基于上摆腋部衔接参数点130相对人体中线同侧的肩峰转折参数点106和髋部转折参数点112的位置,获取上摆腋部衔接实际点132相对人体中线同侧的肩峰转折实际点115和髋部转折实际点121的位置;Based on the positions of the upper-swing armpit connection parameter point 130 relative to the axillary turning parameter point 111 and the hip turning parameter point 112 on the same side of the human body midline, obtain the actual axillary turning point 120 of the upper-swing armpit connection point 132 relative to the axillary turning parameter point 120 on the same side of the human body midline and the actual position of the hip turning point 121; or, based on the position of the upper swing armpit joint parameter point 130 relative to the position of the acromion turning parameter point 106 and the hip turning parameter point 112 on the same side of the body midline, obtain the actual position of the upper swing armpit joint The position of the point 132 relative to the actual point 115 of the acromion inflection and the actual point 121 of the hip inflection on the same side of the body midline;
基于下摆腰部衔接参数点103相对人体中线同侧腋窝转折参数点111和髋部转折参数点112的位置,获取下摆腰部衔接实际点125相对人体中线同侧腋窝转折实际点120和髋部转折实际点121的位置。或者,基于下摆腰部衔接参数点103相对人体中线同侧肩峰转折参数点106和髋部转折参数点112的位置,获取下摆腰部衔接实际点125相对人体中线同侧肩峰转折实际点115和髋部转折实际点121的位置。Based on the positions of the hem waist connection parameter point 103 relative to the axillary turning parameter point 111 and the hip turning parameter point 112 on the same side of the human body midline, the actual hem waist connecting point 125 is obtained relative to the axillary turning actual point 120 and the hip turning actual point on the same side of the body midline. 121 location. Alternatively, based on the positions of the hem waist connection parameter point 103 relative to the acromion turning parameter point 106 and the hip turning parameter point 112 on the same side of the body midline, obtain the actual point 125 of the hem waist connection relative to the acromion turning point 115 on the same side of the body midline and the hip turning parameter point 112 . The part turns to the position of the actual point 121.
其他部分的过程方法,与实施例1中采用的过程方法相同。The process methods of other parts are the same as those used in Example 1.
实施例4Example 4
本实施例,基于长裤的虚拟试衣过程,对本发明进行说明。In this embodiment, the present invention is described based on the virtual fitting process of trousers.
如图9所示,本实施例与实施例1中不同的是,所述衣服图像中的衣服为长裤时,所述人衣衔接参数点包括2个裤腰腰部衔接参数点133、2个裤脚小腿外轮廓线衔接参数点134、2个裤脚小腿内轮廓线衔接参数点135,所述人体转折参数点包括2个髋部转折参数点112、2个外轮廓膝部转折参数点136、2个内轮廓膝部转折参数点137、2个外轮廓踝部转折参数点138、2个内轮廓踝部转折参数点139;As shown in FIG. 9 , the difference between this embodiment and Embodiment 1 is that when the clothes in the clothes image are trousers, the human-clothing connection parameter points include two trouser waist and waist connection parameter points 133 and two trouser legs. The outer contour line of the calf is connected to parameter points 134, and the two inner contour lines of the trouser leg and the lower leg are connected to the parameter point 135. The human body turning parameter points include two hip turning parameter points 112, two outer contour knee turning parameter points 136, 2 Inner contour knee turning parameter point 137, 2 outer contour ankle turning parameter points 138, 2 inner contour ankle turning parameter points 139;
所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
基于裤腰腰部衔接参数点133相对人体中线同侧髋部转折参数点112和外轮廓膝部转折参数点136的位置,获取裤腰腰部衔接实际点140相对人体中线同侧髋部转折实际点121和外轮廓膝部转折实际点141的位置;Based on the positions of the waist and waist connection parameter point 133 relative to the hip turning parameter point 112 on the same side of the human body midline and the outer contour knee turning parameter point 136, the actual point 140 of the waist and waist connection is obtained relative to the human body midline. The position of the actual point 141 of the contour knee turning;
基于裤脚小腿外轮廓线衔接参数点134相对人体中线同侧外轮廓膝部转折参数点136和外轮廓踝部转折参数点138的位置,获取裤脚小腿外轮廓线衔接实际点142相对人体中线同侧外轮廓膝部转折实际点141和外轮廓踝部转折实际点143的位置;Based on the positions of the connection parameter point 134 of the outer contour line of the trousers calf relative to the knee turning parameter point 136 of the outer contour on the same side of the human body midline and the ankle turning parameter point 138 of the outer contour, the actual point 142 of the connection between the outer contour of the trouser leg and the calf is obtained relative to the same side of the human body midline. The position of the actual point 141 of the knee turning of the outer contour and the actual point 143 of the turning of the ankle of the outer contour;
基于裤脚小腿内轮廓线衔接参数点135相对人体中线同侧内轮廓膝部转折参数点137和内轮廓踝部转折参数点139的位置,获取裤脚小腿内轮廓线衔接实际点144相对人体中线同侧内轮廓膝部转折实际点145和内轮廓踝部转折实际点146的位置。Based on the positions of the connection parameter point 135 of the inner contour line of the trousers calf relative to the knee turning parameter point 137 of the inner contour on the same side of the human body midline and the turning parameter point 139 of the inner contour ankle, the actual point 144 of the inner contour of the trousers calf connecting to the same side of the human body midline is obtained. The location of the inner contour knee turning actual point 145 and the inner contour ankle turning actual point 146 .
其他部分的过程方法,与实施例1中采用的过程方法相同。The process methods of other parts are the same as those used in Example 1.
实施例5Example 5
本实施例,基于短裤的虚拟试衣过程,对本发明进行说明。In this embodiment, the present invention is described based on the virtual fitting process of shorts.
如图10所示,本实施例与实施例1中不同的是,所述衣服图像中的衣服为短裤时,所述人衣衔接参数点包括2个裤腰腰部衔接参数点133、2个裤脚大腿外轮廓线衔接参数点147、2个裤脚大腿内轮廓线衔接参数点148,所述人体转折参数点包括2个髋部转折参数点112、2个外轮廓膝部转折参数点136、2个内轮廓膝部转折参数点137、2个外轮廓踝部转折参数点138、2个内轮廓踝部转折参数点139;As shown in FIG. 10 , the difference between this embodiment and Embodiment 1 is that when the clothes in the clothes image are shorts, the human-clothing connection parameter points include two trouser waist and waist connection parameter points 133 , and two trouser legs and thighs. The outer contour line connection parameter point 147, the two trouser leg inner thigh contour line connection parameter points 148, the human body turning parameter points include 2 hip turning parameter points 112, 2 outer contour knee turning parameter points 136, 2 inner turning parameter points Contour knee turning parameter point 137, 2 outer contour ankle turning parameter points 138, 2 inner contour ankle turning parameter points 139;
所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
基于裤腰腰部衔接参数点133相对人体中线同侧髋部转折参数点112和外轮廓膝部转折参数点136的位置,获取裤腰腰部衔接实际点140相对人体中线同侧髋部转折实际点121和外轮廓膝部转折实际点141的位置;Based on the positions of the waist and waist connection parameter point 133 relative to the hip turning parameter point 112 on the same side of the human body midline and the outer contour knee turning parameter point 136, the actual point 140 of the waist and waist connection is obtained relative to the human body midline. The position of the actual point 141 of the contour knee turning;
基于裤脚大腿外轮廓线衔接参数点147相对人体中线同侧外轮廓膝部转折参数点136和外轮廓踝部转折参数点138的位置,获取裤脚大腿外轮廓线衔接实际点149相对人体中线同侧外轮廓膝部转折实际点141和外轮廓踝部转折实际点143的位置;Based on the position of the connection parameter point 147 of the outer contour line of the trouser leg and the outer contour knee turning parameter point 136 and the outer contour ankle turning parameter point 138 on the same side of the human body midline, the actual point 149 of the outer contour line of the trouser leg and thigh is obtained relative to the same side of the human body midline. The position of the actual point 141 of the knee turning of the outer contour and the actual point 143 of the turning of the ankle of the outer contour;
基于裤脚大腿内轮廓线衔接参数点148相对人体中线同侧内轮廓膝部转折参数点137和内轮廓踝部转折参数点139的位置,获取裤脚大腿内轮廓线衔接实际点150相对人体中线同侧内轮廓膝部转折实际点145和内轮廓踝部转折实际点146的位置。Based on the position of the connection parameter point 148 of the inner contour line of the trouser leg relative to the knee turning parameter point 137 of the inner contour on the same side of the human body midline and the turning parameter point 139 of the inner contour ankle, the actual point 150 of the inner contour of the trouser leg and the thigh is obtained relative to the same side of the human body midline. The location of the inner contour knee turning actual point 145 and the inner contour ankle turning actual point 146 .
其他部分的过程方法,与实施例1中采用的过程方法相同。The process methods of other parts are the same as those used in Example 1.
实施例6Example 6
本实施例,基于裙子的虚拟试衣过程,对本发明进行说明。In this embodiment, the present invention is described based on the virtual fitting process of the skirt.
如图11所示,本实施例与实施例1中不同的是,所述衣服图像中的衣服为裙子时,所述人衣衔接参数点包括2个裙腰腰部衔接参数点151、2个裙摆腿部衔接参数点152,所述人体转折参数点包括2个髋部转折参数点112、2个外轮廓膝部转折参数点136;As shown in FIG. 11 , the difference between this embodiment and Embodiment 1 is that when the clothes in the clothes image are skirts, the human-clothing connection parameter points include two skirt-waist-waist connection parameter points 151 , two skirts Swing leg joint parameter points 152, the human body turning parameter points include 2 hip turning parameter points 112 and 2 outer contour knee turning parameter points 136;
所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
基于裙腰腰部衔接参数点151相对人体中线同侧髋部转折参数点112和外轮廓膝部转折参数点136的位置,获取裙腰腰部衔接实际点153相对人体中线同侧髋部转折实际点121和外轮廓膝部转折实际点141的位置;Based on the positions of the connection parameter point 151 of the skirt, waist and waist relative to the hip turning parameter point 112 on the same side of the human body midline and the knee turning parameter point 136 of the outer contour, the actual point 153 of the connection between the skirt waist and waist is obtained relative to the actual hip turning point 121 on the same side of the human body midline. and the actual position of the knee turning point 141 of the outer contour;
基于裙摆腿部衔接参数点152相对人体中线同侧髋部转折参数点112和外轮廓膝部转折参数点136的位置,获取裙摆腿部衔接实际点154相对人体中线同侧髋部转折实际点121和外轮廓膝部转折实际点141的位置。Based on the position of the skirt leg connection parameter point 152 relative to the hip turning parameter point 112 on the same side of the human body midline and the outer contour knee turning parameter point 136, obtain the actual skirt leg connecting actual point 154 relative to the human body midline ipsilateral hip turning actual point Point 121 and the outer contour knee turn the location of the actual point 141.
其他部分的过程方法,与实施例1中采用的过程方法相同。The process methods of other parts are the same as those used in Example 1.

Claims (9)

  1. 一种虚拟试衣方法,其特征在于,包括如下步骤:A virtual fitting method, comprising the steps of:
    步骤S1:获取人体图像;Step S1: acquiring a human body image;
    步骤S2:以人体中线为界将所述人体图像分为第一侧人体图像和第二侧人体图像,所述人体中线指人体垂直中间线;Step S2: dividing the human body image into a first-side human body image and a second-side human body image with the human body midline as a boundary, and the human body midline refers to the vertical midline of the human body;
    步骤S3:获取衣服图像数据,所述衣服图像数据包括衣服图像、以及标记在衣服图像上的人衣衔接参数点和人体转折参数点;所述人衣衔接参数点指衣服穿于样板人体上时,衣服轮廓线与样板人体轮廓线相交点;所述人体转折参数点指所述样板人体轮廓线上人体关节附近的转折点;Step S3: Obtaining clothing image data, the clothing image data includes the clothing image, and the human-clothing connection parameter points and the human body turning parameter points marked on the clothing image; , the intersection point between the contour line of the clothes and the contour line of the model human body; the human body turning parameter point refers to the turning point near the human body joints on the contour line of the model human body;
    步骤S4:基于步骤S3所得人体转折参数点,在第一侧人体图像上标记对应的人体转折实际点A,并基于所述人衣衔接参数点和人体转折参数点的相对位置,在第一侧人体图像上标记对应的人衣衔接实际点A;Step S4: Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point A on the first side human body image, and based on the relative positions of the human clothing connection parameter points and the human body turning parameter points, on the first side The corresponding human clothing is marked on the human image to connect to the actual point A;
    步骤S5:获取人衣衔接实际点A基于人体中线的相应对称的人衣衔接实际点A';Step S5: obtaining the corresponding symmetrical actual point A' of the human-clothing connection based on the centerline of the human body based on the actual point A of the human-clothing connection;
    获取人体转折实际点A基于人体中线的相应对称的人体转折实际点A';Obtain the corresponding symmetrical actual human body turning point A' based on the body midline of the actual human body turning point A;
    步骤S6:基于步骤S3所得人体转折参数点,在第二侧人体图像上标记对应的人体转折实际点B,并基于所述人衣衔接参数点和人体转折参数点的相对位置,在第二侧人体图像上标记对应的人衣衔接实际点B;Step S6: Based on the human body turning parameter points obtained in step S3, mark the corresponding actual human body turning point B on the human body image on the second side, and based on the relative position of the human clothing connection parameter point and the human body turning parameter point, on the second side The corresponding human clothing is marked on the human image to connect with the actual point B;
    步骤S7:以人衣衔接实际点B、人体转折实际点B为源点,以对应的人衣衔接实际点A'和人体转折实际点A'为目标点,将第二侧人体图像变形;Step S7: taking the actual point B of the connection between the human body and the clothing and the actual point B of the human body turning as the source point, and taking the corresponding actual point A' of the human clothing connection and the actual point A' of the human body turning as the target point, the second side human body image is deformed;
    步骤S8:以人衣衔接参数点和人体转折参数点为源点,以对应的人衣衔接实际点A、人体转折实际点A、人衣衔接实际点A'、人体转折实际点A'为目标点,将衣服图像变形并叠加到人体图像上。Step S8: take the human clothing connection parameter point and the human body turning parameter point as the source point, and take the corresponding human clothing connecting actual point A, the human body turning actual point A, the human clothing connecting actual point A', and the human body turning actual point A' as the target point to warp and superimpose the image of the clothing onto the image of the human body.
  2. 如权利要求1所述的虚拟试衣方法,其特征在于,步骤S7还包括在所述人体图像变形后,对人体图像进行修正:virtual fitting method as claimed in claim 1, is characterized in that, step S7 also comprises after described human body image is deformed, corrects human body image:
    步骤7-1:将所述步骤S7中的源点沿所述第二侧人体图像变形前的人体轮廓线依次连接,获得人体轮廓线节段X1;Step 7-1: connecting the source points in step S7 in sequence along the human body contour line before the deformation of the second human body image to obtain a human body contour line segment X1;
    步骤7-2:将所述步骤S7中的目标点沿所述第二侧人体图像变形后的人体轮廓线依次连接,获得人体轮廓线节段X2;Step 7-2: connecting the target points in step S7 along the deformed human body contour line of the second human body image in sequence to obtain a human body contour line segment X2;
    步骤7-3:将位于人体轮廓线节段X1内侧且位于人体轮廓线节段X2外侧的人体图像进行清除。Step 7-3: Clear the human body images located inside the human body contour line segment X1 and outside the human body contour line segment X2.
  3. 如权利要求1所述的虚拟试衣方法,其特征在于,还包括步骤S9,步骤S9、对衣服图像叠加到人体图像上后得到合成图像进行修正:The virtual fitting method according to claim 1, further comprising step S9, step S9, after the clothes image is superimposed on the human body image, a composite image is obtained and corrected:
    步骤9-1:沿衣服轮廓线的方向将所述步骤S8目标点中的人衣衔接实际点、和衣服轮廓线重叠的人体转折实际点依次连接,连接时,依次相邻的两点若均为人衣衔接实际点,则将该两点沿衣服轮廓线连接,否则,将该两点沿人体轮廓线连接;获得人体区域Y1;Step 9-1: Connect the actual point where the human clothing is connected in the target point of step S8 and the actual turning point of the human body that overlaps with the clothing outline along the direction of the clothing outline. When connecting, if the two adjacent points are both If it is the actual point of the human-clothing connection, connect the two points along the outline of the clothing, otherwise, connect the two points along the outline of the human body; obtain the human body area Y1;
    步骤9-2:将人体区域Y1中超出变形并叠加到人体图像后的衣服图像覆盖区域的部分进行清除。Step 9-2: Remove the portion of the human body area Y1 that is beyond the area covered by the clothing image after being deformed and superimposed on the human body image.
  4. 如权利要求1、2或3所述的虚拟试衣方法,其特征在于,virtual fitting method as claimed in claim 1, 2 or 3, characterized in that,
    当所述衣服图像中的衣服为长袖上衣时,所述人衣衔接参数点包括2个领口颈部衔接参数点、2个袖口手腕外轮廓线衔接参数点、2个袖口手腕内轮廓线衔接参数点、2个下摆腰部衔接参数点,所述人体转折参数点包括2个头颈角转折参数点、2个肩颈角转折参数点、2个肩峰转折参数点、2个外轮廓肘部转折参数点、2个内轮廓肘部转折参数点、2个外轮廓腕部转折参数点、2个内轮廓腕部转折参数点、2个髋部转折参数点;When the clothes in the clothes image are long-sleeved tops, the connection parameter points of the human clothing include 2 connection parameter points of the neckline and neck, 2 connection parameter points of the outer contour lines of the cuffs and wrists, and 2 connection parameter points of the inner contour lines of the cuffs and wrists. parameter points, 2 hem and waist connection parameter points, the human body turning parameter points include 2 head and neck angle turning parameter points, 2 shoulder and neck angle turning parameter points, 2 acromion turning parameter points, 2 outer contour elbow turning parameter points Parameter points, 2 inner contour elbow turning parameter points, 2 outer contour wrist turning parameter points, 2 inner contour wrist turning parameter points, 2 hip turning parameter points;
    所述步骤S4中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第一侧人体图像的对应人衣衔接实际点A,或所述步骤S6中基于所述人衣衔接参数点和人体转折参数点的相对位置获取第二侧人体图像的对应人衣衔接实际点B,包括以下步骤:In the step S4, the corresponding actual point A of the human-clothing connection of the first-side human body image is obtained based on the relative positions of the human-clothing connection parameter point and the human body turning parameter point, or in the step S6, based on the human-clothing connection parameter point The relative position of the human body turning parameter point to obtain the corresponding human clothing connection actual point B of the second human body image, including the following steps:
    基于领口颈部衔接参数点相对人体中线同侧的头颈角转折参数点和肩颈角转折参数点的位置,获取领口颈部衔接实际点相对人体中线同侧的头颈角转折实际点和肩颈角转折实际点的位置;Based on the positions of the neckline and neck connection parameter points relative to the head-neck angle turning parameter point and the shoulder-neck angle turning parameter point on the same side of the human body midline, obtain the actual head-neck turning point and shoulder-neck angle between the actual neckline and neck connection point relative to the same side of the human body midline The position of the actual point of the turning point;
    基于袖口手腕外轮廓线衔接参数点相对人体中线同侧的外轮廓肘部转折参数点和外轮廓腕部转折参数点的位置,获取袖口手腕外轮廓线衔接实际点相对人体中线同侧的外轮廓肘部转折实际点和外轮廓腕部转折实际点的位置;Based on the position of the connection parameter point of the outer contour of the cuff and wrist relative to the elbow turning parameter point of the outer contour and the turning parameter point of the outer contour on the same side of the human body midline, the outer contour of the actual point of the connection between the outer contour of the cuff and the wrist relative to the same side of the human body midline is obtained. The position of the actual elbow turning point and the actual point of the outer contour wrist turning;
    基于袖口手腕内轮廓线衔接参数点相对人体中线同侧的内轮廓肘部转折参数点和内轮廓腕部转折参数点的相对位置,获取袖口手腕内轮廓线衔接实际点相对人体中线同侧的内轮廓肘部转折实际点和内轮廓腕部转折实际点的相对位置;Based on the relative position of the cuff wrist inner contour line connection parameter point relative to the inner contour elbow turning parameter point on the same side of the human body midline and the inner contour wrist turning parameter point, the inner contour of the cuff wrist inner contour line connecting the actual point on the same side of the human body midline is obtained. The relative position of the actual point of the contour elbow turning and the actual point of the inner contour wrist turning;
    基于下摆腰部衔接参数点相对人体中线同侧的肩峰转折参数点和髋部转折参数点的位置,获取下摆腰部衔接实际点相对人体中线同侧的肩峰转折实际点和髋部转折实际点的位置。Based on the position of the hem waist connection parameter point relative to the acromion turning parameter point and the hip turning parameter point on the same side of the body midline, the actual point of the hem waist connection is obtained relative to the acromion turning actual point and the hip turning actual point on the same side of the body midline. Location.
  5. 如权利要求1、2或3所述的虚拟试衣方法,其特征在于,virtual fitting method as claimed in claim 1, 2 or 3, characterized in that,
    当所述衣服图像中的衣服为短袖上衣时,所述人衣衔接参数点包括2个领口颈部衔接参数点、2个袖口上臂外轮廓线衔接参数点、2个袖口上臂内轮廓线衔接参数点、2个下摆腰部衔接参数点,所述人体转折参数点包括2个头颈角转折参数点、2个肩颈角转折参数点、2个肩峰转折参数点、2个外轮廓肘部转折参数点、2个内轮廓肘部转折参数点、2个髋部转折参数点;When the clothing in the clothing image is a short-sleeved top, the human-clothing connection parameter points include 2 neckline and neck connection parameter points, 2 cuff and upper arm outer contour line connection parameter points, and 2 cuff upper arm inner contour line connection parameter points. parameter points, 2 hem and waist connection parameter points, the human body turning parameter points include 2 head and neck angle turning parameter points, 2 shoulder and neck angle turning parameter points, 2 acromion turning parameter points, 2 outer contour elbow turning parameter points Parameter points, 2 inner contour elbow turning parameter points, 2 hip turning parameter points;
    基于袖口上臂外轮廓线衔接参数点相对人体中线同侧的肩峰转折参数点和外轮廓肘部转折参数点的位置,获取袖口上臂外轮廓线衔接实际点相对人体中线同侧的肩峰转折实际点和外轮廓肘部转折实际点的位置;Based on the position of the connection parameter point of the outer contour line of the upper arm of the cuff relative to the acromion turning parameter point on the same side of the body midline and the elbow turning parameter point of the outer contour, the actual acromion turning point of the outer contour line of the upper arm of the cuff relative to the same side of the body midline is obtained. point and the position of the actual point where the elbow of the outer contour turns;
    基于袖口上臂内轮廓线衔接参数点相对人体中线同侧的肩峰转折参数点和内轮廓肘部转折参数点的位置,获取袖口上臂内轮廓线衔接实际点相对人体中线同侧的肩峰转折实际点和内轮廓肘部转折实际点的位置;Based on the position of the connection parameter point of the inner contour line of the upper arm of the cuff relative to the acromion turning parameter point on the same side of the body midline and the elbow turning parameter point of the inner contour, the actual acromion turning point of the inner contour line of the upper arm of the cuff relative to the same side of the body midline is obtained. point and the position of the actual point where the elbow of the inner contour turns;
    基于下摆腰部衔接参数点相对人体中线同侧肩峰转折参数点和髋部转折参数点的位置,获取下摆腰部衔接实际点相对人体中线同侧肩峰转折实际点和髋部转折实际点的位置。Based on the position of the hem waist connection parameter point relative to the acromion turning parameter point on the same side of the body midline and the hip turning parameter point, the position of the actual point of the hem waist connection relative to the acromion turning point on the same side of the body midline and the actual hip turning point is obtained.
  6. 如权利要求1、2或3所述的虚拟试衣方法,其特征在于,virtual fitting method as claimed in claim 1, 2 or 3, characterized in that,
    当所述衣服图像中的衣服为马甲时,所述人衣衔接参数点包括2个领口颈部衔接参数点、2个领口肩部衔接参数点、2个上摆腋部衔接参数点、2个下摆腰部衔接参数点,所述人体转折参数点包括2个肩颈角转折参数点、2个肩峰转折参数点、2个髋部转折参数点;When the clothes in the clothes image are vests, the human-clothing connection parameter points include 2 neckline and neck connection parameter points, 2 neckline and shoulder connection parameter points, 2 top hem and armpit connection parameter points, 2 The hem and waist are connected with parameter points, and the human body turning parameter points include 2 shoulder and neck angle turning parameter points, 2 acromion turning parameter points, and 2 hip turning parameter points;
    基于领口颈部衔接参数点相对人体中线同侧的肩颈角转折参数点和肩峰转折参数点的位置,获取领口颈部衔接实际点相对人体中线同侧的肩颈角转折实际点和肩峰转折实际点的位置;Based on the position of the neckline and neck connection parameter point relative to the shoulder-neck angle turning parameter point and the acromion turning parameter point on the same side of the human body midline, the actual point of the neckline and neck connection is obtained relative to the shoulder-neck angle turning point and acromion on the same side of the human body midline. The position of the actual point of the turning point;
    基于领口肩部衔接参数点相对人体中线同侧的肩颈角转折参数点和肩峰转折参数点的位置,获取领口肩部衔接实际点相对人体中线同侧的肩颈角转折实际点和肩峰转折实际点的位置;Based on the position of the neckline-shoulder connection parameter point relative to the shoulder-neck angle turning parameter point and the acromion turning parameter point on the same side of the human body midline, obtain the actual point of the neckline-shoulder connection relative to the shoulder-neck angle turning parameter point and acromion on the same side of the body midline. The position of the actual point of the turning point;
    基于上摆腋部衔接参数点相对人体中线同侧的肩峰转折参数点和髋部转折参数点的位置,获取上摆腋部衔接实际点相对人体中线同侧的肩峰转折实际点和髋部转折实际点的位置。Based on the position of the acromion turning parameter point and the hip turning parameter point on the same side of the body midline, the actual acromion turning point and the hip turning point on the same side of the body midline are obtained The position of the actual point of the turning point.
  7. 如权利要求1、2或3所述的虚拟试衣方法,其特征在于,virtual fitting method as claimed in claim 1, 2 or 3, characterized in that,
    当所述衣服图像中的衣服为长裤时,所述人衣衔接参数点包括2个裤腰腰部衔接参数点、2个裤脚小腿外轮廓线衔接参数点、2个裤脚小腿内轮廓线衔接参数点,所述人体转折参数点包括2个髋部转折参数点、2个外轮廓膝部转折参数点、2个内轮廓膝部转折参数点、2个外轮廓踝部转折参数点、2个内轮廓踝部转折参数点;When the clothes in the clothes image are trousers, the human-clothing connection parameter points include 2 trouser waist and waist connection parameter points, 2 trouser leg outer contour line connection parameter points, and trouser leg calf inner contour line connection parameter points. , the human body turning parameter points include 2 hip turning parameter points, 2 outer contour knee turning parameter points, 2 inner contour knee turning parameter points, 2 outer contour ankle turning parameter points, 2 inner contour turning parameter points Ankle turning parameter point;
    基于裤腰腰部衔接参数点相对人体中线同侧髋部转折参数点和外轮廓膝部转折参数点的位置,获取裤腰腰部衔接实际点相对人体中线同侧髋部转折实际点和外轮廓膝部转折实际点的位置;Based on the position of the waist-waist connection parameter point relative to the hip turning parameter point on the same side of the body midline and the outer contour knee turning parameter point, the actual point of the waist-waist connection is obtained relative to the hip turning point on the same side of the human body midline and the outer contour knee turning actual point. the position of the point;
    基于裤脚小腿外轮廓线衔接参数点相对人体中线同侧外轮廓膝部转折参数点和外轮廓踝部转折参数点的位置,获取裤脚小腿外轮廓线衔接实际点相对人体中线同侧外轮廓膝部转折实际点和外轮廓踝部转折实际点的位置;Based on the position of the connection parameter point of the outer contour line of the trousers calf relative to the knee turning parameter point of the outer contour on the same side of the human body midline and the turning parameter point of the outer contour ankle, the actual point of the connection between the outer contour line of the trousers calf and the outer contour knee on the same side of the human body midline is obtained. The actual point of turning and the position of the actual turning point of the ankle of the outer contour;
    基于裤脚小腿内轮廓线衔接参数点相对人体中线同侧内轮廓膝部转折参数点和内轮廓踝部转折参数点的位置,获取裤脚小腿内轮廓线衔接实际点相对人体中线同侧内轮廓膝部转折实际点和内轮廓踝部转折实际点的位置。Based on the position of the connection parameter point of the inner contour line of the trousers calf relative to the knee turning parameter point of the inner contour on the same side of the human body midline and the turning parameter point of the inner contour ankle, the actual point of the connection between the inner contour line of the trouser leg and the calf is obtained relative to the inner contour knee on the same side of the human body midline. The position of the actual point of turning and the actual turning point of the inner contour ankle.
  8. 如权利要求1、2或3所述的虚拟试衣方法,其特征在于,virtual fitting method as claimed in claim 1, 2 or 3, characterized in that,
    当所述衣服图像中的衣服为短裤时,所述人衣衔接参数点包括2个裤腰腰部衔接参数点、2个裤脚大腿外轮廓线衔接参数点、2个裤脚大腿内轮廓线衔接参数点,所述人体转折参数点包括2个髋部转折参数点、2个外轮廓膝部转折参数点、2个内轮廓膝部转折参数点、2个外轮廓踝部转折参数点、2个内轮廓踝部转折参数点;When the clothes in the clothes image are shorts, the human-clothing connection parameter points include 2 trouser waist and waist connection parameter points, 2 trouser legs and thigh outer contour line connection parameter points, and 2 trouser legs and thigh inner contour line connection parameter points. The human body turning parameter points include 2 hip turning parameter points, 2 outer contour knee turning parameter points, 2 inner contour knee turning parameter points, 2 outer contour ankle turning parameter points, and 2 inner contour ankle turning parameter points. partial turning point;
    基于裤脚大腿外轮廓线衔接参数点相对人体中线同侧外轮廓膝部转折参数点和外轮廓踝部转折参数点的位置,获取裤脚大腿外轮廓线衔接实际点相对人体中线同侧外轮廓膝部转折实际点和外轮廓踝部转折实际点的位置;Based on the position of the connection parameter point of the outer contour line of the trouser leg relative to the knee turning parameter point of the outer contour on the same side of the human body midline and the turning parameter point of the outer contour ankle, the actual point of the connection between the outer contour line of the trouser leg and the thigh is obtained relative to the outer contour knee on the same side of the human body midline. The actual point of turning and the position of the actual turning point of the ankle of the outer contour;
    基于裤脚大腿内轮廓线衔接参数点相对人体中线同侧内轮廓膝部转折参数点和内轮廓踝部转折参数点的位置,获取裤脚大腿内轮廓线衔接实际点相对人体中线同侧内轮廓膝部转折实际点和内轮廓踝部转折实际点的位置。Based on the position of the connection parameter point of the inner contour line of the trouser leg relative to the knee turning parameter point of the inner contour on the same side of the human body midline and the turning parameter point of the inner contour ankle, the actual point of the connection between the inner contour line of the trouser leg and the thigh is obtained relative to the inner contour knee on the same side of the human body midline. The position of the actual point of turning and the actual turning point of the inner contour ankle.
  9. 如权利要求1、2或3所述的虚拟试衣方法,其特征在于,virtual fitting method as claimed in claim 1, 2 or 3, characterized in that,
    当所述衣服图像中的衣服为裙子时,所述人衣衔接参数点包括2个裙腰腰部衔接参数点、2个裙摆腿部衔接参数点,所述人体转折参数点包括2个髋部转折参数点、2个外轮廓膝部转折参数点;When the clothes in the clothes image are skirts, the human-clothing connection parameter points include 2 skirt waist and waist connection parameter points, 2 skirt leg connection parameter points, and the human body turning parameter points include 2 hips Turning parameter points, 2 knee turning parameter points of outer contour;
    基于裙腰腰部衔接参数点相对人体中线同侧髋部转折参数点和外轮廓膝部转折参数点的位置,获取裙腰腰部衔接实际点相对人体中线同侧髋部转折实际点和外轮廓膝部转折实际点的位置;Based on the position of the connection parameter point of the skirt, waist and waist relative to the hip turning parameter point on the same side of the human body midline and the turning parameter point of the outer contour knee, the actual point of the connection between the skirt waist and waist is obtained relative to the actual turning point of the hip on the same side of the human body midline and the outer contour knee. The position of the actual point of the turning point;
    基于裙摆腿部衔接参数点相对人体中线同侧髋部转折参数点和外轮廓膝部转折参数点的位置,获取裙摆腿部衔接实际点相对人体中线同侧髋部转折实际点和外轮廓膝部转折实际点的位置。Based on the position of the connection parameter point of the skirt and the leg relative to the hip turning parameter point on the same side of the body midline and the knee turning parameter point of the outer contour, the actual point of the connection between the skirt and the leg is obtained relative to the actual hip turning point on the same side of the body midline and the outer contour. The location of the actual point of the knee turning.
PCT/CN2022/074556 2021-02-07 2022-01-28 Virtual fitting method WO2022166805A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110174440.9 2021-02-07
CN202110174440.9A CN112529670B (en) 2021-02-07 2021-02-07 Virtual fitting method

Publications (1)

Publication Number Publication Date
WO2022166805A1 true WO2022166805A1 (en) 2022-08-11

Family

ID=74975564

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/074556 WO2022166805A1 (en) 2021-02-07 2022-01-28 Virtual fitting method

Country Status (2)

Country Link
CN (1) CN112529670B (en)
WO (1) WO2022166805A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112529670B (en) * 2021-02-07 2021-04-30 上海英立视电子有限公司 Virtual fitting method
CN114549694B (en) * 2021-12-29 2024-03-01 世纪开元智印互联科技集团股份有限公司 Certificate photo reloading method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509349A (en) * 2011-09-27 2012-06-20 深圳市朵唯志远科技有限公司 Fitting method based on mobile terminal, fitting device based on mobile terminal and mobile terminal
CN104008501A (en) * 2014-06-13 2014-08-27 北京京东尚科信息技术有限公司 Method and device for obtaining attribute points of clothes image
US20150062301A1 (en) * 2013-08-30 2015-03-05 National Tsing Hua University Non-contact 3d human feature data acquisition system and method
CN108648053A (en) * 2018-05-10 2018-10-12 南京衣谷互联网科技有限公司 A kind of imaging method for virtual fitting
CN109615690A (en) * 2018-10-29 2019-04-12 深圳市赛亿科技开发有限公司 The modeling method and device, electronic equipment, storage medium of fitting manikin
CN112529670A (en) * 2021-02-07 2021-03-19 上海英立视电子有限公司 Virtual fitting method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140022238A1 (en) * 2012-07-20 2014-01-23 Clo Virtual Fashion Inc. System for simulating user clothing on an avatar
GB201406539D0 (en) * 2014-04-11 2014-05-28 Metail Ltd Garment size recommendation
CN205507877U (en) * 2015-11-16 2016-08-24 长春理工大学 Virtual fitting device that can be used to three -dimensional real time kinematic that purchases of net
CN105825414A (en) * 2016-03-15 2016-08-03 成都爆米花信息技术有限公司 Virtual fitting system
CN108269271A (en) * 2018-01-15 2018-07-10 深圳市云之梦科技有限公司 A kind of clothes expose the false with human body image, match the method and system migrated
CN110264310B (en) * 2019-05-30 2021-09-03 肖伯祥 Clothing pattern making method based on human body big data
CN110163728B (en) * 2019-05-30 2021-04-13 肖伯祥 Personalized clothing customization plate making method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509349A (en) * 2011-09-27 2012-06-20 深圳市朵唯志远科技有限公司 Fitting method based on mobile terminal, fitting device based on mobile terminal and mobile terminal
US20150062301A1 (en) * 2013-08-30 2015-03-05 National Tsing Hua University Non-contact 3d human feature data acquisition system and method
CN104008501A (en) * 2014-06-13 2014-08-27 北京京东尚科信息技术有限公司 Method and device for obtaining attribute points of clothes image
CN108648053A (en) * 2018-05-10 2018-10-12 南京衣谷互联网科技有限公司 A kind of imaging method for virtual fitting
CN109615690A (en) * 2018-10-29 2019-04-12 深圳市赛亿科技开发有限公司 The modeling method and device, electronic equipment, storage medium of fitting manikin
CN112529670A (en) * 2021-02-07 2021-03-19 上海英立视电子有限公司 Virtual fitting method

Also Published As

Publication number Publication date
CN112529670B (en) 2021-04-30
CN112529670A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
WO2022166805A1 (en) Virtual fitting method
US5680528A (en) Digital dressing room
EP2156758B1 (en) Apparel
US5083315A (en) Unisex scrub shirt and methods for making same
CN105869217B (en) A kind of virtual real fit method
US7665148B2 (en) Minimally seamed fitted garment
TW201603730A (en) Cycling jersey sleeve pattern
US2331051A (en) Hospital garment
WO2006000148A1 (en) A method of cutting suit-dress
Yamada et al. Image-based virtual fitting system with garment image reshaping
CN111476912B (en) Image matching method and system
ZA200409829B (en) Minimal seemed fitted garment
CN110706359A (en) Image fitting correction method and system
JP2002069727A (en) Jacket
Li et al. A novel method for making a one-piece tight-fitting garment
TWI783908B (en) Integrated production system and method of wearing garments
Li Research on the Corresponding Relationship between the Key Points of Body and Clothing Structure Design
JPS6135523Y2 (en)
EP3139781B1 (en) Basic guide tables for developing tailor patterns and their use
Roether et al. Supplemental Data: Lateral asymmetry of bodily emotion expression
TWM624243U (en) Clothing for severely handicapped
CN114949852A (en) Method and system for generating real person game activity safety decision point
JP3079964U (en) Clothing
CN117731084A (en) Wrapped garment and structural design method thereof
JP2022096921A (en) Wet suite and remaking method for the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22749084

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22749084

Country of ref document: EP

Kind code of ref document: A1