The present disclosure relates to image processing methods, and more specifically to a method and electronic device for rendering a background in an image.
Bokeh effect in photography is used to produce an aesthetic blur for an out-of-focus region/objects (i.e. background region/objects) of an image for highlighting an in-focus region/objects (i.e. foreground region/objects) of the image. Therefore, objects present in the in-focus region of the image captures an attention of a viewer, which enhances a visual experience of the viewer in seeing the image. While capturing the image with the bokeh effect, existing systems provide a set of pattern such as a butterfly shape, a star shape, a heart shape, etc. to the viewer for selecting a pattern. Further, the existing systems modify objects in the out-of-focus region of the image based on the selected pattern, for extending the visual experience of the user. However, the user need to manually choose a suitable pattern for a scene in the image, the objects in the in-focus region, a time of capturing the image etc. from the set of the pattern for modifying the objects in the out-of-focus region.
Thus, it is desired to address the above mentioned shortcomings or at least provide a useful alternative.
Accordingly the embodiments herein provide a method for rendering a background in an image by an electronic device. The method includes recognizing, by the electronic device, foreground objects and background objects of the image. Further, the method includes determining, by the electronic device, a context of the foreground objects and a context of the background objects in the image. Further, the method includes determining, by the electronic device, a background pattern based on the context of the foreground objects and the context of the background objects. Further, the method includes modifying, by the electronic device, the background of the image based on the background pattern. Further, the method includes displaying, by the electronic device, the image with the modified background.
In an embodiment, modifying by the electronic device, the background of the image based on the background pattern including determining an effect and at least one of a shape, an object, and a surface based on the background pattern and transforming at least one of a shape, an object, and a surface available in the background of the image with at least one of the shape, the object, and the surface based on the effect.
In an embodiment, the transforming is done by at least one of blurring the shape, the object, and the surface available in the background of the image based on the effect, overlaying the shape, the object, and the surface in the background pattern over the shape, the object, and the surface available in the background of the image based on the effect and replacing the shape, the object, and the surface available in the background of the image with the shape, the object, and the surface in the background pattern based on the effect.
In an embodiment, determining by the electronic device, the context of the foreground objects including determining a dominant foreground object from the foreground objects based on at least one of an activity in a foreground, an event information, a shape of the foreground object, a size of the foreground object, and a motion of the foreground object, classifying the dominant foreground object and determining the context of the foreground objects based on the category of the dominant foreground object.
In an embodiment, determining by the electronic device (100), the context of the background objects including determining a dominant background object from the background objects based on at least one of an activity in the background, an event information, a shape of the background object, a size of the background object, and a motion of the background object, classifying the dominant background object and determining the context of the background objects based on the category of the dominant background object.
Accordingly the embodiments herein provide an electronic device for rendering a background in an image. The electronic device including a memory, a processor and a background modification engine, coupled to the memory and the processor, where the memory stores the image. The background modification engine is configured to recognize foreground objects and background objects in the image. Further, the background modification engine is configured to determine a context of the foreground objects and a context of the background objects in the image. Further, the background modification engine is configured to determine a background pattern based on the context of the foreground objects and the context of the background objects. Further, the background modification engine is configured to modify the background of the image based on the background pattern. Further, the background modification engine is configured to cause to display the image with the modified background.
Accordingly the embodiments herein provide an intelligent background rendering method in an image capture. The method includes identifying objects and/or surfaces present in a background of a captured shot. Further, the method includes performing scene analysis to recognize a shape of each object and/or surface in the background. Further, the method includes performing scene analysis of objects present in a foreground to determine a context of the captured shot. Further, the method includes configuring an artificial intelligence engine to identify pre-defined shapes and/or patterns from a repository, relating to the context of the captured shot. Further, the method includes transforming at least in part, the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot.
In an embodiment, transforming at least in part, the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot includes recommending the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot.
In an embodiment, the objects and/or surfaces in the background are blurred.
In an embodiment, transforming the shape includes overlaying the objects and/or surfaces with the pre-defined shapes.
In an embodiment, transforming the shape includes replacing the objects and/or surfaces with the pre-defined shapes.
Accordingly the embodiments herein provide an electronic device for intelligent background rendering an image capture. The electronic device including a processor, a memory, an artificial intelligence engine and a background modification engine, where the artificial intelligence engine and the background modification engine are coupled to the memory and the processor. The memory stores a captured shot. The background modification engine is configured to identify objects and/or surfaces present in a background of the captured shot. Further, the background modification engine is configured to perform scene analysis to recognize a shape of each object and/or surface in the background. Further, the background modification engine is configured to perform scene analysis of objects present in a foreground to determine a context of the captured shot. Further, the background modification engine is configured to configure an artificial intelligence engine to identify pre-defined shapes and/or patterns from a repository, relating to the context of the captured shot. Further, the background modification engine is configured to transform at least in part, the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot.
These and other aspects of the embodiments herein will be better appreciated and understood when considered in conjunction with the following description and the accompanying drawings. It should be understood, however, that the following descriptions, while indicating preferred embodiments and numerous specific details thereof, are given by way of illustration and not of limitation. Many changes and modifications may be made within the scope of the embodiments herein without departing from the spirit thereof, and the embodiments herein include all such modifications.
The principal object of the embodiments herein is to provide a method and electronic device for rendering a background in an image.
Another object of the embodiments herein is to recognize foreground objects and background objects of the image.
Another object of the embodiments herein is to determine a context of the foreground objects and a context of the background objects in the image.
Another object of the embodiments herein is to determine a background pattern based on the context of the foreground objects and a context of the background objects.
Another object of the embodiments herein is to modify the background of the image based on the background pattern and display the image with the modified background.
This method and system is illustrated in the accompanying drawings, throughout which like reference letters indicate corresponding parts in the various figures. The embodiments herein will be better understood from the following description with reference to the drawings, in which:
The embodiments herein and the various features and advantageous details thereof are explained more fully with reference to the non-limiting embodiments that are illustrated in the accompanying drawings and detailed in the following description. Descriptions of well-known components and processing techniques are omitted so as to not unnecessarily obscure the embodiments herein. Also, the various embodiments described herein are not necessarily mutually exclusive, as some embodiments can be combined with one or more other embodiments to form new embodiments. The term “or” as used herein, refers to a non-exclusive or, unless otherwise indicated. The examples used herein are intended merely to facilitate an understanding of ways in which the embodiments herein can be practiced and to further enable those skilled in the art to practice the embodiments herein. Accordingly, the examples should not be construed as limiting the scope of the embodiments herein.
As is traditional in the field, embodiments may be described and illustrated in terms of blocks which carry out a described function or functions. These blocks, which may be referred to herein as managers, units, modules, hardware components or the like, are physically implemented by analog and/or digital circuits such as logic gates, integrated circuits, microprocessors, microcontrollers, memory circuits, passive electronic components, active electronic components, optical components, hardwired circuits and the like, and may optionally be driven by firmware and software. The circuits may, for example, be embodied in one or more semiconductor chips, or on substrate supports such as printed circuit boards and the like. The circuits constituting a block may be implemented by dedicated hardware, or by a processor (e.g., one or more programmed microprocessors and associated circuitry), or by a combination of dedicated hardware to perform some functions of the block and a processor to perform other functions of the block. Each block of the embodiments may be physically separated into two or more interacting and discrete blocks without departing from the scope of the disclosure. Likewise, the blocks of the embodiments may be physically combined into more complex blocks without departing from the scope of the disclosure.
Accordingly the embodiments herein provide a method for rendering a background in an image by an electronic device. The method includes recognizing, by the electronic device, foreground objects and background objects of the image. Further, the method includes determining, by the electronic device, a context of the foreground objects and a context of the background objects in the image. Further, the method includes determining, by the electronic device, a background pattern based on the context of the foreground objects and the context of the background objects. Further, the method includes modifying, by the electronic device, the background of the image based on the background pattern. Further, the method includes displaying, by the electronic device, the image with the modified background.
Unlike existing methods, the proposed method can be used in an electronic device for determining the background pattern, suitable for a scene in the image. The electronic device selects the background pattern based on a location information in the image, a time information in the image, a weather information in the image, characteristics such as a size, a motion, an activity etc. of dominant objects in foreground and background of the image etc. Therefore, modification includes one of blurring, overlaying and replacing a shape/object/background surface in the image using the background pattern for enhancing a visual experience of a user.
Referring now to the drawings, and more particularly to
In an embodiment, the background modification engine 110 is configured to determine the dominant foreground object from the foreground objects based on at least one of an activity in the foreground, an event information, a shape of the foreground object, a size of the foreground object, and a motion of the foreground object, for determining the context of the foreground objects.
Examples for the activity are, but not limited to playing guitar, holding lamp etc. Examples for the event information are, but not limited to information about festivals (e.g. Christmas, Ramadan, Diwali, etc.), information about a party (e.g., birthday party, wedding reception etc.), information about a sports/campfire etc. In an embodiment, an emotion (e.g. sad, happy, cry etc.) in the foreground is used to determine the activity in the foreground by the background modification engine 110. In an embodiment, at least one of a weather information (e.g. snow, rain etc.), a location information (e.g. beach, mountain, indoor, outdoor, etc.), a type of a scene and a time information (e.g., day time, night time, solar eclipse, 2 PM etc.) is used to determine the event information by the background modification engine 110. Examples for the type of the scene are, but not limited to a scene of sand, a scene of a beach, a scene of a park, a scene of a sea, a scene of greenery, a scene of traffic etc. In an embodiment, the background modification engine 110 is configured to determine a type of the foreground object for determining the context of the foreground objects. Examples for the type of the foreground object are, but not limited to a cup, a wineglass, a car, a camera, spectacles, a flower, grass etc. Examples for the motion of the foreground object are, but not limited to the motion of the foreground object moving towards to the electronic device 100, the motion of the foreground object moving away from the electronic device 100, the motion of the foreground object moving parallel to the electronic device 100 etc.
In an example, the electronic device 100 captures the image of a group of friends siting inside a restaurant by holding a cup of tea by each person, during the night time, where the friends are in the happy mood. The background of the image includes chairs and decoration light. The electronic device 100 recognizes the group of friends and the cups as the foreground objects. Further, the electronic device 100 determines the group of friends as the dominant foreground object based on the emotion (i.e. happy) in the foreground.
The background modification engine 110 is configured to classify the dominant foreground object for determining the context of the foreground objects. Examples for the classes for dominant foreground object are Flower, Dog/Cat, Birds, Car/Bike, Food, Cup/Mug, Desserts, First generic class etc. Further, the background modification engine 110 is configured to determine the context of the foreground objects based on the classification of the dominant foreground object.
In an embodiment, background modification engine 110 is configured to determine the dominant background object from the background objects based on at least one of the activity in the background, the event information, the shape of the background object, the size of the background object, and the motion of the background object, for determining the context of the background objects.
In an embodiment, the emotion (e.g. sad, happy, cry etc.) in the background is used to determine the activity in the background by the background modification engine 110. In an embodiment, at least one of the type of the scene, the weather information, the location information and the time information is used to determine the event information by the background modification engine 110. In an embodiment, the background modification engine 110 is configured to determine a type of the background object for determining the context of the background objects. Examples for the type of the background object are, but not limited to the car, a train, buildings, a decoration light, people etc. Examples for the motion of the background object are, but not limited to the motion of the background object coming towards the fixed camera, the motion of the background object moving parallel to the camera motion etc.
In the example, the electronic device 100 recognizes the chairs and the decoration light as the background objects. The electronic device 100 determines the decoration light as the dominant background object based on the time information (i.e. night time).
The background modification engine 110 is configured to classify the dominant background object for determining the context of the background objects. Examples for the classes for the dominant background object are Greenery, Beach, Snow, Day and gathering, Night and outdoor, Day, Night and gathering, second generic class etc. Further, the background modification engine 110 is configured to determine the context of the background objects based on the classification of the dominant background object.
The background modification engine 110 is configured to determine the background pattern (shown in notation (a) and (b) of
In an embodiment, the background modification engine 110 is configured to determine an effect (e.g. a blur effect, a warmth effect, a cool effect etc.) and at least one of a shape (e.g. the heart shape, the water drop shape, the leaf shape etc.), an object (e.g. the cloud, the leaf, the mug etc.), and a surface (e.g., a plane surface, a red surface, a check surface etc.) in the based on the background pattern, for modifying the background of the image. Further, the background modification engine 110 is configured to transform at least one of the shape, the object, and the surface available in the background of the image with at least one of the shape, the object, and the surface based on the effect.
In an embodiment, the transformation is done by blurring the shape, the object, and the surface available in the background of the image based on the effect. In another embodiment, the transformation is done by overlaying the shape, the object, and the surface in the background pattern over the shape, the object, and the surface available in the background of the image based on the effect. In another embodiment, the transformation is done by replacing the shape, the object, and the surface available in the background of the image with the shape, the object, and the surface in the background pattern based on the effect.
In another embodiment, the background modification engine 110 is configured to classify at least one of the dominant foreground object and the dominant background object to an event class based on the event information in the image. The event class represents the classification for events such as raining, sunny climate, cloudy climate, a birthday event, a wedding anniversary event etc. Examples for the event class are Rainy, Sunny, Cloudy, Cold, Birthday, Anniversary, Third generic class etc. Further, the background modification engine 110 is configured to determine the context of the foreground objects and the context of the background objects in the image based on the classification of at least one of the dominant foreground object and the dominant background object. Further, the background modification engine 110 is configured to determine the background pattern (shown in notation (c) of the
In another embodiment, the background modification engine 110 is configured to classify at least one of the dominant foreground object and the dominant background object to a fourth generic class. Further, the background modification engine 110 is configured to determine the context of the foreground objects and the context of the background objects in the image based on the classification of at least one of the dominant foreground object and the dominant background object. Further, the background modification engine 110 is configured to determine the background pattern (shown in notation (d) of the
In another embodiment, the background modification engine 110 is configured to classify the dominant background object to a motion class based on at least one of the motion of the foreground object and the motion of the background object. The motion class indicates a direction of motion of the dominant background object with respect to the electronic device 100, while capturing the image. In an embodiment, the motion class includes a towards motion class, an away motion class and a parallel motion class. The towards motion class indicates the direction of motion of the foreground object moving towards to the electronic device 100, while capturing the image. The away motion class indicates the direction of motion of the foreground object moving away from the electronic device 100, while capturing the image. The parallel motion class indicates the direction of motion of the foreground object moving parallel along with the electronic device 100, while capturing the image. Further, the background modification engine 110 is configured to apply a motion blur effect to the background object, based on the motion class of the dominant foreground object for modifying the background of the image.
In another embodiment, the background modification engine 110 is configured to identify the objects and/or surfaces present in the background of the captured shot. Further, the background modification engine 110 is configured to perform scene analysis to recognize the shape of each object and/or surface in the background. Further, the background modification engine 110 is configured to perform scene analysis of the objects present in the foreground to determine the context of the captured shot. Further, the background modification engine 110 is configured to configure the AI engine 120 to identify the pre-defined shapes and/or patterns from a repository, relating to the context of the captured shot. Further, the background modification engine 110 is configured to transform at least in part, the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot. In an embodiment, the background modification engine 110 is configured to recommend the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot for transforming at least in part, the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot. The AI engine 120 identifies the pre-defined shapes and/or patterns from a repository, relating to the context of the captured shot.
The processor 130 is configured to execute instructions stored in the memory 140 and to perform various operations. The memory 140 stores the image (i.e. the captured shot). The memory 140 may include non-volatile storage elements. Examples of such non-volatile storage elements may include magnetic hard discs, optical discs, floppy discs, flash memories, or forms of electrically programmable memories (EPROM) or electrically erasable and programmable (EEPROM) memories.
In addition, the memory 140 may, in some examples, be considered a non-transitory storage medium. The term “non-transitory” may indicate that the storage medium is not embodied in a carrier wave or a propagated signal. However, the term “non-transitory” should not be interpreted that the memory 140 is non-movable. In some examples, the memory 140 can be configured to store larger amounts of information than the memory 140. In certain examples, a non-transitory storage medium may store data that can, over time, change (e.g., in Random Access Memory (RAM) or cache).
The display 150 displays the image with the modified background. Examples for the display 150 are a Liquid Crystal Display (LCD) display, a Light Emitting Diode (LED) display, an Organic Light Emitting Diode (OLED) display etc. The communicator 160 is configured to communicate internally between hardware components in the electronic device 100.
In another embodiment, the electronic device 100 includes the background modification engine 110, the processor 130, the memory 140 and the communicator 160. The communicator 160 is configured to communicate the electronic device 100 with first devices (e.g. web server, smartphone etc.) to receive the image. The background modification engine 110 is configured to modify the background of the image based on the background pattern. Further, the communicator 160 is configured to communicate the electronic device 100 with second devices (e.g. LCD/LED panel, LED TV, projector etc.) for displaying the image with the modified background, where the second devices includes the display 150.
In another embodiment, the electronic device 100 includes the background modification engine 110, the processor 130, the memory 140, the communicator 160 and a camera (not shown). The camera captures the image of a scene, where the image is a real time preview image. The background modification engine 110 is configured to modify the background of the image based on the background pattern. Further, the background modification engine 110 is cause to display the image with the modified background.
Although the
The object recognizer 112 recognizes the foreground objects and the background objects of the image. In an embodiment, the object recognizer 112 identifies the objects and/or surfaces present in the background of the captured shot. In an embodiment, the object recognizer 112 identifies the objects and/or surfaces present in the background of the captured shot. The object recognizer 112 performs the scene analysis to recognize the shape of each object and/or surface in the background. The context determiner 114 determines the context of the foreground objects and the context of the background objects in the image.
In an embodiment, the context determiner 114 determines the dominant foreground object from the foreground objects based on at least one of the activity in the foreground, the event information, the shape of the foreground object, the size of the foreground object, and the motion of the foreground object, for determining the context of the foreground objects.
In an embodiment, the context determiner 114 determines the activity in the foreground based on the emotion in the foreground. In an embodiment, the context determiner 114 determines the event information based on at least one of the weather information, the location information and the time information. In an embodiment, the context determiner 114 determines the context of the foreground objects based on the type of the foreground object.
Further, the context determiner 114 classifies the dominant foreground object for determining the context of the foreground objects. Further, the context determiner 114 determines the context of the foreground objects based on the classification of the dominant foreground object.
In an embodiment, the context determiner 114 determines the dominant background object from the background objects based on at least one of the activity in the background, the event information, the shape of the background object, the size of the background object, and the motion of the background object, for determining the context of the background objects.
In an embodiment, the context determiner 114 determines the activity in the background based on the emotion in the background. In an embodiment, the context determiner 114 determines the event information based on the at least one of the type of the scene, the weather information, the location information and the time information. In an embodiment, the context determiner 114 determines the context of the background objects based on the type of the background object. Further, the context determiner 114 classifies the dominant background object for determining the context of the background objects. Further, the context determiner 114 determines the context of the background objects based on the classification of the dominant background object.
In another embodiment, the context determiner 114 classifies at least one of the dominant foreground object and the dominant background object to the event class based on the event information in the image. Further, the context determiner 114 determines the context of the foreground objects and the context of the background objects in the image based on the classification of at least one of the dominant foreground object and the dominant background object.
In another embodiment, the context determiner 114 classifies at least one of the dominant foreground object and the dominant background object to the fourth generic class. Further, the context determiner 114 determines the context of the foreground objects and the context of the background objects in the image based on the classification of at least one of the dominant foreground object and the dominant background object. In an embodiment, the context determiner 114 classifies at least one of the dominant foreground object and the dominant background object to the fourth generic class based on a user action on the electronic device 100.
In another embodiment, the context determiner 114 performs the scene analysis of the objects present in the foreground to determine the context of the captured shot.
The background pattern determiner 116 determines the background pattern based on the context of the foreground objects and the context of the background objects. The background modifier 118 modifies the background of the image based on the background pattern.
In an embodiment, the background modifier 118 determines the effect and at least one of the shape, the object, and the surface based on the background pattern, for modifying the background of the image. Further, the background modifier 118 transforms at least one of the shape, the object, and the surface available in the background of the image with at least one of the shape, the object, and the surface based on the effect.
In another embodiment, the background modifier 118 transforms at least in part, the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot. In another embodiment, the background modifier 118 recommends the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot for transforming at least in part, the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot.
In another embodiment, the context determiner 114 classifies the dominant background object to the motion class based on at least one of the motion of the foreground object and the motion of the foreground object. Further, the background modifier 118 applies the motion blur effect to the background object, based on the motion class of the foreground object for modifying the background of the background of the image.
Although the
The various actions, acts, blocks, steps, or the like in the flow diagram 300 may be performed in the order presented, in a different order or simultaneously. Further, in some embodiments, some of the actions, acts, blocks, steps, or the like may be omitted, added, modified, skipped, or the like without departing from the scope of the invention.
At 406, the method includes performing the scene analysis of objects present in the foreground to determine the context of the captured shot. In an embodiment, the method allows the context determiner 114 to perform the scene analysis of objects present in the foreground to determine the context of the captured shot. At 408, the method includes identifying the pre-defined shapes and/or patterns from the repository, relating to the context of the captured shot. In an embodiment, the method allows the AI engine 120 to identify the pre-defined shapes and/or patterns from the repository, relating to the context of the captured shot. At 410, the method includes transforming at least in part, the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot. In an embodiment, the method allows the background modifier 118 to transform at least in part, the shape of the objects and/or surfaces present in the background with that of the pre-defined shapes and/or patterns relating to the context of the captured shot.
The various actions, acts, blocks, steps, or the like in the flow diagram 400 may be performed in the order presented, in a different order or simultaneously. Further, in some embodiments, some of the actions, acts, blocks, steps, or the like may be omitted, added, modified, skipped, or the like without departing from the scope of the invention.
The electronic device 100 detects (605) a bright point in the image using existing methods. Further, the electronic device 100 applies (606) a Bokeh effect to the image using the existing methods. Further, the electronic device 100 applies (607) the bloom to the image by transforming the shape of the objects in the background of the image with the recommended butterfly shape, based on the proposed method.
Further, the electronic device 100 determines the star shape as the shape in the background pattern for the class of night and outdoor, based on the context of the decorative lights. The electronic device 100 determines the effect in the image as the blurring effect. The electronic device 100 determines the shape of the decorative lights in the image. The electronic device 100 modifies the background of the image by transforming the shape of the decorative lights to the star shape. Further, the electronic device 100 modifies the background of the image by blurring the transformed shape of the decorative lights as shown in notation (b) of the
Further, the electronic device 100 determines the context of the couples by classifying the couples to the fourth generic class. Further, the electronic device 100 determines the heart shape as the shape in the background pattern for the fourth generic class, based on the context of the couples. The electronic device 100 determines the effect in the image as the blurring effect. The electronic device 100 determines the shape of the road side lights in the image. The electronic device 100 modifies the background of the image by transforming the shape of the road side lights to the heart shape. Further, the electronic device 100 modifies the background of the image by blurring the transformed shape of the road side lights as shown in notation (b) of the
Further, the electronic device 100 determines the context of the greenery with varying gradient by classifying the greenery with varying to the class of greenery. Further, the electronic device 100 determines the leaf shape as the shape in the background pattern for the class of greenery, based on the context of the greenery with varying gradient. The electronic device 100 determines the effect in the image as the blurring effect. The electronic device 100 determines the shape of the regions in the background with varying gradient of the greenery. The electronic device 100 modifies the background of the image by transforming the shape of the regions in the background with varying gradient of the greenery to the leaf shape. Further, the electronic device 100 modifies the background of the image by blurring the transformed shape of the region as shown in notation (b) of the
Further, the electronic device 100 determines the context of the flowers by classifying the flowers to the event class of cold. Further, the electronic device 100 determines the object in the background pattern for the class of cold, based on the context of the flowers. The electronic device 100 determines the effect in the image as the blurring effect. Further, the electronic device 100 modifies the background of the image by replacing the flowers in the background with the object in the background pattern for the event class of cold as shown in notation (b) of the
Further, the electronic device 100 determines the context of the flowers by classifying the flowers to the class of flower. Further, the electronic device 100 determines the butterfly shape in the background pattern for the class of flower, based on the context of the flower. The electronic device 100 determines the effect in the image as the blurring effect. Further, the electronic device 100 determines the shape of the regions in the background with varying gradient of the greenery. Further, the electronic device 100 modifies the background of the image by transforming the shape of the regions in the background with varying gradient of the greenery with the butterfly shape. Further, the electronic device 100 modifies the background of the image by blurring the transformed shape of the region as shown in notation (b) of the
The user swipes on the display 150 of the electronic device 100. In response to detecting the swipe on the display 150, the electronic device 100 changes the background of the image by overlaying the clouds in the background with the object in the background pattern for the fourth generic class, as shown in notation (c) of the
In response to selecting an AI Bokeh effect option in the gallery application by the user, the electronic device 100 recognizes the boy as the foreground object. Further, the electronic device 100 recognizes the mountain as the background objects. The electronic device 100 determines the boy as the dominant foreground object based on the size of the foreground object. Further, the electronic device 100 determines the mountain as the dominant foreground object based on the event information (i.e. time information). Further, the electronic device 100 determines the context of the mountain by classifying the mountain to a class of evening. Further, the electronic device 100 determines the object (i.e. clouds) in the background pattern for the class of evening, based on the context of the mountain.
The electronic device 100 recommends the object (i.e. clouds) in the background pattern to the user as shown in notation (b) of the
The embodiments disclosed herein can be implemented using at least one software program runningon at least one hardware device and performing network management functions to control the elements.
The foregoing description of the specific embodiments will so fully reveal the general nature of the embodiments herein that others can, by applying current knowledge, readily modify and/or adapt for various applications such specific embodiments without departing from the generic concept, and, therefore, such adaptations and modifications should and are intended to be comprehended within the meaning and range of equivalents of the disclosed embodiments. It is to be understood that the phraseology or terminology employed herein is for the purpose of description and not of limitation. Therefore, while the embodiments herein have been described in terms of preferred embodiments, those skilled in the art will recognize that the embodiments herein can be practiced with modification within the spirit and scope of the embodiments as described herein.
Number | Date | Country | Kind |
---|---|---|---|
201841004828 | Feb 2018 | IN | national |
2018 41004828 | Feb 2019 | IN | national |
This application is a National Phase Entry of PCT International Application No. PCT/KR2019/001580, which was filed on Feb. 8, 2019, and claims priority to Indian Provisional Patent Application No. 201841004828 filed on Feb. 8, 2018, and Indian Complete Patent Application No. 201841004828 filed on Feb. 7, 2019, in the Indian Intellectual Property Office, the content of each of which are incorporated herein by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/KR2019/001580 | 2/8/2019 | WO | 00 |