CPC G06T 5/70 (2024.01) [G06T 7/194 (2017.01); G06T 7/248 (2017.01); G06V 10/25 (2022.01); G06T 2207/10024 (2013.01)] | 20 Claims |
1. A method, performed by an electronic device, for generating a media file with blur effects, the method comprising:
obtaining, by the electronic device, an image frame;
segmenting, by the electronic device, the image frame into a plurality of segments;
determining, by the electronic device, at least one first segment from the plurality of segments including a foreground region of the image frame;
determining, by the electronic device, at least one second segment from the plurality of segments including a background region of the image frame;
detecting, by the electronic device, whether at least one of the foreground region or the background region includes motion information;
detecting, by the electronic device, whether at least one of the foreground region or the background region includes static information;
applying, by the electronic device, a motion type blur effect on the at least one of the foreground region or the background region of the ROI including the motion information;
applying, by the electronic device, a plurality of blur effects on the foreground region when the foreground region includes the static information;
applying, by the electronic device, a static type blur effect on the background region when the background region includes the static information;
generating, by the electronic device, the media file based on the applied the motion type blur effect and the static type blur effect; and
storing, by the electronic device, the media file.
|