1. An electronic device comprising: a flexible display comprising holes and configured to bend in a direction of an object; a camera module comprising an optical unit located on a bottom of each of the holes and image sensors configured to capture images of the object; and an image processing unit configured to synthesize the images, which are output from the camera module, and process the synthesized image into an image of a set type.