CPC G06T 7/521 (2017.01) [G01S 17/86 (2020.01); G01S 17/89 (2013.01); H04N 23/56 (2023.01); H04N 23/71 (2023.01); H04N 23/745 (2023.01); H04N 23/90 (2023.01); G06T 2207/10028 (2013.01)] | 20 Claims |
1. An electronic device, comprising:
multiple cameras;
a distance sensor including a light-emitting part and a light-receiving part; and
at least one processor,
wherein the at least one processor is configured to:
identify a range corresponding to a zoom magnification for obtaining an image,
obtain, based on light emitted from the light-emitting part and received by one or more regions of the light-receiving part, one or more signals corresponding to the one or more regions of the light-receiving part,
identify one or more first peaks of the one or more signals,
obtain, based on the one or more first peaks, one or more first distances,
identify whether a distance that is greater than or equal to a first distance corresponding to the identified range exists among the one or more first distances,
identify, based on identifying that the distance that is greater than or equal to the first distance exists, whether a maximum value of the one or more first peaks is less than a first value, and
determine a camera for obtaining the image among the multiple cameras, based on at least one of whether the distance that is greater than or equal to the first distance exists or whether the maximum value of the one or more first peaks is less than the first value.
|