CPC G06T 19/20 (2013.01) [G06Q 30/0643 (2013.01); G06T 7/60 (2013.01); G06T 7/70 (2017.01); G06T 2207/20081 (2013.01); G06T 2207/30196 (2013.01); G06T 2210/21 (2013.01); G06T 2219/2004 (2013.01); G06T 2219/2016 (2013.01)] | 20 Claims |
1. A method for fitting a virtual shoe onto a foot, the method comprising:
predicting, using a machine learning model, a first plurality of pixels comprising pixels of an image corresponding to a foot and a leg in the image;
adding a first virtual cylindrical object and a virtual conical object to a three-dimensional model of a shoe such that a portion of the first virtual cylindrical object is positioned within the three-dimensional model of the shoe such that a height of the first virtual cylindrical object extends along a sole of the three-dimensional model of the shoe, and such that the virtual conical object extends out of the three-dimensional model of the shoe;
determining a set of pixels comprising pixels of the first plurality of pixels that intersect with the first virtual cylindrical object or the virtual conical object;
removing, from the three-dimensional model of the shoe, a first portion of the three-dimensional model of the shoe that intersects with the set of pixels;
generating a two-dimensional model of the shoe from the three-dimensional model of the shoe after removing the first portion from the three-dimensional model of the shoe; and
superimposing the two-dimensional model of the shoe onto the image.
|