Electronic apparatus and control method therefor
In an electronic apparatus and a control method therefor, the electronic apparatus comprises a memory, a display, and a processor to process at least one image information stored in the memory. The processor can identify the ratio and dominant color of at least one image based on the at least one image information, identify the type of layout based on the number of the at least one image and the identified ratio of the at least one image, arrange the at least one image in the identified type of the layout, identify the color for the layout based on the size of the arranged image and the identified dominant color, and display, on the display, the layout in which the identified color is arranged and the at least one image is arranged.
1 . An electronic apparatus comprising:
a memory configured to store a plurality of images;
a display; and
a processor
configured to:
based on image information of at least one image among the plurality of images, identify a ratio of a height of the at least one image to a width of the at least one image and a dominant color of the at least one image,
based on a number of the at least one image and the identified ratio, identify a type of a layout in which the at least one image is displayable,
arrange the at least one image in the identified type of the layout,
identify a color for the layout based on a size of the at least one image and the identified dominant color, and
display, on the display, the at least one image in the layout in which the identified color is arranged.
2 . The electronic apparatus of claim 1 , wherein
the processor is further configured to:
give a weight to the at least one image according to the size of the at least one image,
based on the weight given to the at least one image and the identified dominant color, identify a main dominant color, and
based on the identified main dominant color, further identify a color for the layout.
3 . The electronic apparatus of claim 1 , wherein
the memory is further configured to store a color chip list corresponding to a color value of the identified dominant color, and
the processor is further configured to:
based on the identified dominant color and the stored color chip list, identify the color for the layout.
4 . The electronic apparatus of claim 1 , further comprising:
a speaker,
wherein the processor is further configured to:
based on the image information, identify a time, a place, a weather condition, or a combination thereof in which the at least one image is captured,
based on the identified time, the identified place, the identified weather condition, or the combination thereof, identify a sound, and
control the speaker to output the identified sound.
5 . The electronic apparatus of claim 1 , wherein
the processor is further configured to:
identify a common object that is in at least two images among the plurality of images based on image information of the at least two images, and
based on the identified common object, correct a region of the displayed at least one image.
6 . The electronic apparatus of claim 1 , further comprising:
a communicator configured to receive configuration information including a filter type,
wherein the processor is further configured to:
based on the received configuration information, display, on the display, the at least one image with a filter applied to the at least one image.
7 . The electronic apparatus of claim 1 , wherein
the layout includes an image region and an information region, and
the processor is further configured to:
display, on the display, a weather condition, a date, a time, or a combination thereof in the information region.
8 . The electronic apparatus of claim 1 , wherein
the processor is further configured to:
based on the image information, identify a type of the at least one image, and
based on the identified type, display, on the display, the at least one image with a filter applied to the at least one image.
9 . The electronic apparatus of claim 1 , wherein
the processor is further configured to:
based on the image information, identify a type of the at least one image, and
based on the identified type, group the at least one image with at least one another image of the plurality of images that is identified as being of a corresponding type into a group of images, and
based on the group of images,
identify a type of the layout for the group of images,
arrange the at least one image and the at least one another image that are grouped in the identified type of the layout for the group of images,
based on the size of the at least one image, a size of the at least one another image, and a dominant color of the at least one image and the at least one another image that are grouped, identify the color for the layout of the group of images, and
display, on the display, the group of images in the layout for the group of images in which the identified color for the layout of the group of images is arranged.
10 . The electronic apparatus of claim 9 , wherein
the processor is further configured to:
switch between a first group of images that are grouped and a second group of images that are grouped at predetermined intervals.
11 . The electronic apparatus of claim 1 , wherein
the processor is further configured to:
based on the image information, identify a type of the at least one image,
based on the identified type, identify an image selection pattern,
based on the identified image selection pattern, group the at least one image with at least one another image of the plurality of images that is identified as being of a corresponding type into a group of images, and
based on the group of images,
identify a type of the layout for the group of images,
arrange the at least one image and the at least one another image that are grouped in the identified type of the layout for the group of images,
based on the size of the at least one image, a size of the at least one another image, and a dominant color of the at least one image and the at least one another image that are grouped, identify a color for the layout of the group of images, and
display, on the display, the group of images in the layout for the group of images in which the identified color for the layout of the group of images is arranged.
12 . The electronic apparatus of claim 1 , wherein
the processor is further configured to:
based on the identified ratio, identify a shape of the at least one image, and
based on the number of the at least one image and the identified shape of the at least one image, identify the type of the layout in which the at least one image is displayable.
13 . The electronic apparatus of claim 1 , wherein
the processor is further configured to:
calculate the identified ratio as the height divided by the width,
based on the calculated ratio being approximately 1,
identify the at least one image as a square image, and
identify the type of the layout as a layout having a square image region, based on the calculated ratio being greater than approximately 1,
identify the at least one image as a vertically elongated image, and
identify the type of the layout as a layout having a vertically elongated image region, and
based on the calculated ratio being less than approximately 1,
identify the at least one image as a horizontally elongated image, and
identify the type of the layout as a layout having a horizontally elongated image region.
14 . The electronic apparatus of claim 1 , wherein
the processor is further configured to:
identify a size and/or resolution of at least two images among the plurality of images based on image information of the at least two images, and
based on the identified size and/or resolution, arrange an image among the at least two images that has a larger size and/or higher resolution in an image region of a plurality of image regions of the identified type of layout that has a wider area.
15 . A method of controlling an electronic apparatus comprising a memory, a processor and a display, the method comprising:
storing image information of at least one image among a plurality of images in the memory,
by the processor,
based on the stored image information, identifying a ratio of a height of the at least one image to a width of the at least one image and a dominant color of the at least one image,
based on a number of the at least one image and the identified ratio, identifying a type of a layout in which the at least one image is displayable,
arranging the at least one image in the identified type of the layout,
identifying a color for the layout based on a size of the at least one image and the identified dominant color, and
displaying, on the display, the at least one image in the layout in which the identified color is arranged.
16 . The method of claim 15 , wherein
the identifying the ratio and the dominant color of the image includes:
giving a weight to the at least one image according to the size of the at least one image,
based on the weight given to the at least one image and the identified dominant color, identifying a main dominant color, and
the identifying the color further includes:
based on the identified main dominant color, identifying the color for the layout.
17 . The method of claim 15 , wherein
the storing includes storing a color chip list corresponding to a color value of the identified dominant color, and
the identifying the color further includes:
based on the identified dominant color and the stored color chip list, identifying a the color for the layout.
18 . The method of claim 15 , wherein
the electronic apparatus further includes:
a speaker, and
the identifying the ratio and the dominant color includes:
based on the image information, identifying a time, a place a weather condition, or a combination thereof in which the at least one image is captured, and
the displaying includes:
based on the identified time, the identified place, the identified weather condition, or the combination thereof, identifying a sound, and
controlling the speaker to output outputting the identified sound.