| CPC G06V 10/141 (2022.01) [G06V 10/751 (2022.01); G06V 10/761 (2022.01); H04N 23/56 (2023.01)] | 20 Claims |

|
1. An electronic device comprising:
a camera;
a light source unit;
a display; and
a processor; and
a memory storing instructions, that, when executed by the processor, cause the electronic device to:
obtain a first image of a skin of a user by the camera while a first light is output through the light source unit,
obtain a second image of the skin of the user by the camera while the first light is not output through the light source unit,
compare the first image and the second image by calculating a difference between first brightness values of the first image and second brightness values of the second image,
obtain a third image representing a difference between the first image and the second image by converting, into a first difference pixel value, the difference between the first brightness values of the first image and the second brightness values of the second image, and
display, on the display, information on an ultraviolet (UV) protection ingredient applied to the skin of the user, based on the third image,
wherein the conversion of the difference between first brightness values of the first image and second brightness values of the second image into the first difference pixel value is based on a relation formula between a brightness value and a pixel value.
|