CPC G06F 3/0346 (2013.01) [G06F 3/012 (2013.01); G06F 3/014 (2013.01); G06T 19/006 (2013.01); G06V 10/76 (2022.01)] | 11 Claims |
1. A second electronic device for measuring a position of a first electronic device relative to the second electronic device, the second electronic device comprising:
a display device which allows a user to see real-world objects through the display device;
a user-facing camera;
a processor; and
a memory storing program code that is executed by the processor to perform operations comprising:
capturing a digital picture of a reflection from a user's eye using the user-facing camera, wherein the reflection from the user's eye includes a first component that is a reflection of a virtual computer-generated object displayed on the display device and a second component that is a reflection of light from a real world object;
processing the digital picture to extract a measure of misalignment between the virtual computer-generated object and the real-world object; and
responsive to the measure of misalignment not satisfying a defined alignment rule, generating an updated transformation matrix.
|