An electronic device comprising: an imaging device configured to obtain an image of a subject; a light source comprising a plurality of light-emitting elements that comprises: a first light-emitting element configured to emit a first light in a first direction; a second light-emitting element configured to emit a second light in a second direction; and a third light-emitting element configured to emit a third light in a third direction; and a controller configured to: determine a distance to the subject in the image; control a luminance of each of the plurality of light-emitting elements based on the distance to the subject; divide the image into a first region in which the subject is not included and a second region in which the subject is included; and adjust the lighting direction by adjusting the angles of the plane on which the light-emitting elements are disposed, by moving the connection points disposed between the light-emitting elements, wherein adjusting the lighting direction comprises: controlling the first direction of the first light-emitting element and the third direction of the third light-emitting element to correspond to the first region; and controlling the second direction of the second light-emitting element to correspond to the second region. an imaging device configured to obtain an image of a subject; a light source comprising a plurality of light-emitting elements that comprises: a first light-emitting element configured to emit a first light in a first direction; a second light-emitting element configured to emit a second light in a second direction; and a third light-emitting element configured to emit a third light in a third direction; and a controller configured to: determine a distance to the subject in the image; control a luminance of each of the plurality of light-emitting elements based on the distance to the subject; divide the image into a first region in which the subject is not included and a second region in which the subject is included; and adjust the lighting direction by adjusting the angles of the plane on which the light-emitting elements are disposed, by moving the connection points disposed between the light-emitting elements, wherein adjusting the lighting direction comprises: controlling the first direction of the first light-emitting element and the third direction of the third light-emitting element to correspond to the first region; and controlling the second direction of the second light-emitting element to correspond to the second region. a first light-emitting element configured to emit a first light in a first direction; a second light-emitting element configured to emit a second light in a second direction; and a third light-emitting element configured to emit a third light in a third direction; and a controller configured to: determine a distance to the subject in the image; control a luminance of each of the plurality of light-emitting elements based on the distance to the subject; divide the image into a first region in which the subject is not included and a second region in which the subject is included; and adjust the lighting direction by adjusting the angles of the plane on which the light-emitting elements are disposed, by moving the connection points disposed between the light-emitting elements, wherein adjusting the lighting direction comprises: controlling the first direction of the first light-emitting element and the third direction of the third light-emitting element to correspond to the first region; and controlling the second direction of the second light-emitting element to correspond to the second region. determine a distance to the subject in the image; control a luminance of each of the plurality of light-emitting elements based on the distance to the subject; divide the image into a first region in which the subject is not included and a second region in which the subject is included; and adjust the lighting direction by adjusting the angles of the plane on which the light-emitting elements are disposed, by moving the connection points disposed between the light-emitting elements, controlling the first direction of the first light-emitting element and the third direction of the third light-emitting element to correspond to the first region; and controlling the second direction of the second light-emitting element to correspond to the second region.