Systems and methods for obtaining a pupillary distance measurement using a mobile computing device
View Patent ↗A computer-implemented method for scaling an image is described. An image that depicts a device in contact with a user is obtained. The image depicts identifying information that is being displayed on a display of the device. A type of the device is identified based on the identifying information. A size of the device is determined based on the identified type of the device. At least a portion of the depiction of the user is scaled based on the determined size of the device.
1. A computer-implemented method for scaling an image, comprising:
obtaining, by a processor of a device, an image of a reflection that depicts the device in contact with a face of a user, wherein the image depicts a display of the device displaying a Quick Response (QR) code; and
scaling, by the processor, at least a portion of the depiction of the user based on the captured reflection including the QR code displayed on the device.
2. The method of claim 1 , wherein the image is captured by the device.
3. The method of claim 1 , wherein the QR code includes identifying information, the identifying information comprising one or more of a make of the device, a model of the device, and dimensions of the device, wherein at least a portion of the depiction of the user is scaled based on the determined size of the device.
4. The method of claim 3 , further comprising:
identifying, by the processor, a type of the device based on the identifying information; and
determining, by the processor, a size of the device based on the identified type of the device.
5. The method of claim 1 , further comprising determining a relationship between the depiction of the device and the depiction of the user.
6. The method of claim 5 , wherein scaling the at least a portion of the depiction of the user comprises translating the scale of the device to the at least a portion of the depiction of the user based on the determined relationship.
7. The method of claim 1 , wherein the identifying information has a predetermined size, and wherein one or more of the depiction of the device and the at least a portion of the depiction of the user is scaled based on the predetermined size.
8. The method of claim 7 , further comprising determining a distance between the device and a second device that is capturing the image.
9. The method of claim 1 , wherein the image is captured by a front-facing camera of the device.
10. A device configured to scale an image, comprising:
a processor; and
memory in electronic communication with the processor; and
instructions stored in the memory, the instructions being executable by the processor to:
obtain an image of a reflection that depicts the device in contact with a face of a user, wherein the image depicts a display of the device displaying a Quick Response (QR) code; and
scale at least a portion of the depiction of the user based on the captured reflection including the QR code displayed on the device.
11. The device of claim 10 , wherein the image is captured by the device.
12. The device of claim 10 , wherein the QR code includes identifying information, the identifying information comprising one or more of a make, a model, and a dimension of the device, wherein at least a portion of the depiction of the user is scaled based on the determined size of the device.
13. The device of claim 10 , wherein the instructions are further executable by the processor to determine a relationship between the depiction of the device and the depiction of the user.
14. The device of claim 13 , wherein the instructions to scale the at least a portion of the depiction of the user are further executable by the processor to translate the scale of the device to the at least a portion of the depiction of the user based on the determined relationship.
15. The device of claim 10 , wherein the identifying information has a predetermined size, and wherein one or more of the depiction of the device and the at least a portion of the depiction of the user is scaled based on the predetermined size.
16. The device of claim 15 , wherein the instructions are further executable by the processor to determine a distance between the device and a second device that is capturing the image.
17. A computer-program product to scale an image, the computer-program product comprising a non-transitory computer-readable medium having instructions thereon, the instructions being executable by a processor of a device to:
obtain an image of a reflection that depicts the device in contact with a face of a user, wherein the image depicts a display of the device displaying a Quick Response (QR) code;
scale at least a portion of the depiction of the user based on the captured reflection including the QR code displayed on the device.
18. A computer-implemented method for scaling an image, comprising:
obtaining, by a processor, an image that depicts a device in relation to a face of a user, wherein the image depicts identifying information that is being displayed on a display of the device, the identifying information comprising a Quick Response (QR) code; and
determining, by the processor, a pupillary distance of the user based on the scaled depiction of the user based on the QR code displayed on the device.
19. The method of claim 18 , wherein the image is captured by the device.
20. The method of claim 18 , wherein the QR code includes identifying information, the identifying information comprising one or more of a make of the device, a model of the device, and dimensions of the device, wherein at least a portion of the depiction of the pupillary distance of the user is determined based on the determined size of the device.