CPC G06T 5/001 (2013.01) [G06F 18/213 (2023.01); G06T 5/20 (2013.01); G06T 7/194 (2017.01); G06T 7/70 (2017.01); G06T 7/80 (2017.01); G06V 10/454 (2022.01); G06T 5/40 (2013.01); G06T 2207/20081 (2013.01); G06T 2207/20084 (2013.01)] | 13 Claims |
1. A method, performed by an electronic device, of obtaining an image, the method comprising:
obtaining a first image including at least one object and a background;
detecting the at least one object and the background in the obtained first image, based on feature information regarding the at least one object and the background, respectively, in the first image;
determining image filters exhibiting different image effects, which are to be applied to each of the detected at least one object and the detected background; and
generating a second image by applying the determined image filters to each of the at least one object and the background,
wherein the determining of the image filters comprises:
analyzing a composition of the first image based on a relative positional relationship between the detected background and the detected at least one object;
when a proportion of the detected background occupying the obtained first image is greater than or equal to a preset threshold, determining information about a light source in the first image based on values of pixels in the first image; and
determining the image filters based on at least one of the determined information about the light source and the composition.
|