Patent ID: 11418740

Abstract:
An electronic device is disclosed. The electronic device includes at least one processor electrically connected with an image sensor and a memory. The memory stores instructions, when executed, causing the processor to obtain an image through the image sensor, segment the obtained image into the plurality of regions, calculate values of a first parameter for each of the plurality of regions based on the reference color components indicating a representative color of each of the plurality of regions, calculate values of a second parameter for each of the plurality of regions based on first pixel values output from the plurality of first light receiving elements included in each of the plurality of regions and second pixel values output from the plurality of second light receiving elements, determine a type of a light source corresponding to each of the plurality of regions, based on a value of the second reference parameter included in data about the correlationship corresponding to the calculated values of the first parameter and values of the second parameter calculated for each of the plurality of regions, and determine a type of a light source of the image based on the determined types of the light source. In addition, various other embodiments recognized from the specification are also possible.