CPC G06T 19/006 (2013.01) [G06F 3/0346 (2013.01); G06V 20/20 (2022.01)] | 20 Claims |
1. An electronic device comprising:
a display;
at least one sensor;
at least one camera; and
memory storing one or more computer programs; and
one or more processors operatively connected to the display, the at least one sensor, the at least one camera, and the memory,
wherein the one or more computer programs include computer-executable instructions that, when executed by the one or more processors, cause the electronic device to:
execute an augmented reality (AR) application that uses the at least one camera,
obtain a first image of surroundings of the electronic device using the at least one camera,
obtain, using the at least one sensor, first sensing information including at least one of first posture information or first position information of the electronic device that correspond to the first image,
while outputting the first image to the display, produce a virtual object that is superimposed on the first image according to a user input,
, based on the first image and the first sensing information, obtain first identification information corresponding to the virtual object,
obtain a second image that at least partially overlaps the first image using the at least one camera,
obtain, using the at least one sensor, second sensing information including at least one of second posture information or second position information of the electronic device that correspond to the second image,
based on a range of overlap between the first image and the second image being less than a threshold value, obtain second identification information corresponding to the virtual object, and
in response to information; obtained via the at least one sensor in a state in which the AR application is executed, corresponding to the second sensing information, output the virtual object to the display.
|