CPC H04N 23/683 (2023.01) [G01P 15/18 (2013.01); G06N 3/04 (2013.01); G06T 5/001 (2013.01); G06T 5/50 (2013.01); H04N 23/6812 (2023.01); H04N 23/80 (2023.01); G06T 2207/20084 (2013.01); G06T 2207/20216 (2013.01); G06T 2207/30244 (2013.01)] | 13 Claims |
1. An electronic device comprising:
a camera;
a motion sensor;
a memory; and
at least one processor,
wherein the at least one processor is configured to,
using the camera, acquire a first image frame, a plurality of second image frames successive to the first image frame, and a third image frame immediately before the first image frame,
while the camera acquires the third image frame, the first image frame, and the plurality of the second image frames, detect a movement of the electronic device using the motion sensor,
determine a first position of the camera corresponding to the first image frame and a plurality of second positions of the camera corresponding to the plurality of the second image frames respectively, based at least in part on the movement of the electronic device, the first image frame, the plurality of the second image frames, and the third image frame,
correct the first position, by conducting computations using a weight learned through an artificial neural network, the first position, the plurality of the second positions, a post-correction position of a third position of the camera corresponding to the third image frame, and a difference between the post-correction position of the third position and a correctable position of the third position, and
correct the first image frame, based at least in part on the corrected first position.
|