| CPC H04N 23/698 (2023.01) [G06F 1/1652 (2013.01); G06F 1/1686 (2013.01); H04N 5/265 (2013.01); H04N 23/632 (2023.01); H04N 23/635 (2023.01); H04N 23/6812 (2023.01); H04N 23/683 (2023.01); H04N 23/695 (2023.01); H04N 23/90 (2023.01)] | 19 Claims |

|
1. An electronic device, comprising:
a flexible display;
memory;
a plurality of cameras including a first camera and a second camera mounted at different positions with respect to a screen of the flexible display, wherein the positions of the plurality of cameras change according to state of the flexible display, and the state of the flexible display comprises a folded, unfolded, increased or reduced state of the flexible display;
a sensor; and
a processor operatively connected to the sensor, the plurality of cameras, and the flexible display,
wherein the memory stores instructions that, when executed by the processor individually or collectively, cause the electronic device to:
acquire state information according to a change in the state of the flexible display based on a detection signal of the sensor, wherein the first camera has a first field of view and the second camera has a second field of view, the state information further comprising a distance between the camera and an intersection point where the first field of view and the second field of view intersect, or a distance between the first camera and the second camera,
control the first camera and the second camera to acquire a first image from the first camera in real time and a second image from the second camera in real time,
generate a third image by synthesizing the first image and the second image based on the state information, and
display at least a portion of the third image as a preview image on the flexible display in real time.
|