| CPC G01S 17/86 (2020.01) [G01S 17/89 (2013.01); H04N 23/64 (2023.01); H04N 23/667 (2023.01)] | 20 Claims |

|
1. An electronic device comprising:
a camera module configured to acquire an image, wherein the image comprises a portion depicting at least one target object;
a Time of Flight (ToF) sensor configured to generate depth data regarding the at least one target object;
at least one processor operatively connected with the camera module and the ToF sensor; and
at least one memory operatively connected with the at least one processor,
wherein the at least one memory stores instructions that, when being executed, cause the at least one processor to perform a plurality of operations, the plurality of operations comprising:
while acquiring the image by using the camera module, measuring a first distance between the at least one target object and the electronic device, based on the depth data from the ToF sensor;
pause an operation of the ToF sensor when the measured first distance is longer than a designated distance;
while the operation of the ToF sensor is paused, measure a second distance between the at least one target object and the electronic device, using the camera module; and
when the measured second distance is within the designated distance, resume the operation of the ToF sensor.
|