CPC G06F 3/04815 (2013.01) [G02B 27/0093 (2013.01); G02B 27/017 (2013.01); G06T 7/10 (2017.01); G06T 7/70 (2017.01); G06T 2207/20132 (2013.01)] | 20 Claims |
1. A method comprising, by a computing system:
accessing an image of a physical environment of a user, the image being associated with a perspective of the user and depicting a physical input device and a physical hand of the user;
determining that a contrast between the physical input device and the physical hand depicted in the image is lower than a predetermined threshold;
modifying the image to increase the contrast between the physical input device and the physical hand depicted in the image, thereby improving a visual distinction between a first set of pixels associated with the physical hand and a second set of pixels associated with the physical input device in the image;
determining a pose of the physical input device;
generating a three-dimensional model representing the physical hand of the user;
generating an image mask by projecting the three-dimensional model onto an image plane associated with the perspective of the user;
generating, by applying the image mask to the modified image, a cropped image depicting at least the physical hand of the user in the image;
rendering, based on the perspective of the user and the pose of the physical input device, a virtual input device to represent the physical input device; and
displaying the cropped image depicting at least the physical hand of the user over the rendered virtual input device.
|