CPC G06V 40/171 (2022.01) [G06F 3/011 (2013.01); G06Q 30/0631 (2013.01); G06T 19/006 (2013.01); G06T 19/20 (2013.01); G06V 20/00 (2022.01); G06V 20/20 (2022.01); G06V 40/165 (2022.01); A61B 2090/365 (2016.02); G06T 2207/10028 (2013.01); G06T 2219/2004 (2013.01); G06T 2219/2016 (2013.01); G06T 2219/2021 (2013.01); G06T 2219/2024 (2013.01); H04N 2013/0081 (2013.01)] | 20 Claims |
1. A method comprising:
receiving, by one or more processors of a user device, an image that includes a depiction of a face of a user;
computing a real-world scale of the face of the user based on a selected subset of landmarks of the face of the user;
obtaining an augmented reality graphical element comprising augmented reality eyewear;
changing a size of the augmented reality graphical element based on the computed real-world scale of the face as a function of a distance between the face of the user and the user device, the size of the augmented reality graphical element being adjusted to be a first value in response to determining that the distance between the face of the user and the user device is a first amount, the size of the augmented reality graphical element being decreased to a second value that is smaller than the first value in response to determining that the distance between the face of the user and the user device has increased to a second amount greater than the first amount; and
positioning the resized augmented reality graphical element within the image on the face of the user.
|