Electronic device for generating background screen and operation method thereof
The electronic device addresses the limitation of static background images by extracting and prioritizing objects and frames within images, enabling the generation of dynamic and personalized background images that enhance user expression.
Patent Information
- Application Number
- PCT/KR2024/015874
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-04-22
- Filing Date
- 2024-10-18
- Publication Date
- 2025-06-19
AI Technical Summary
Existing electronic devices lack the capability to efficiently generate and display personalized background images with dynamic effects, limiting user expression and individuality.
An electronic device with a processor and memory that extracts a target object from an image, divides a target frame into first and second frames, determines priorities based on the object's position, and displays a background image by arranging the object, frames, and background area according to these priorities.
Enables the creation of dynamic and personalized background images with three-dimensional effects, enhancing user expression and individuality by allowing for the manipulation of object and frame priorities.
Smart Images

Figure KR2024015874_19062025_PF_FP_ABST
Abstract
Description
Electronic device for generating wallpaper and method of operation thereof
[0001] An electronic device for generating a background image and a method of operating the same are disclosed.
[0002] As times change, more and more people are seeking to express their individuality. Consequently, electronic devices like smartphones, which have become essential in everyday life, are becoming one of the many ways to express individuality. For example, people are using images that best express their individuality as wallpapers on electronic devices like smartphones. However, some people are going beyond simply using images as wallpapers and applying various effects to their wallpapers.
[0003] The background technology described above is possessed or acquired during the process of deriving the present disclosure, and cannot necessarily be said to be a publicly known technology disclosed to the general public prior to the filing of the present disclosure.
[0004] An electronic device according to one embodiment of the present disclosure may include a memory that stores instructions. The electronic device may include a processor that executes the instructions. The instructions, when executed by the processor, may cause the electronic device to extract a target object from an image. The instructions, when executed by the processor, may cause the electronic device to divide a target frame to be displayed together with the target object among a plurality of frames into a first frame and a second frame. The instructions, when executed by the processor, may cause the electronic device to determine a priority among the target object, the first frame, and the second frame based on a position of the target object. The instructions, when executed by the processor, may cause the electronic device to display a background image generated by arranging the target object, the first frame, and the second frame according to the priority on a display module.
[0005] An electronic device according to one embodiment of the present disclosure may include a memory that stores commands. The electronic device may include a processor that executes the commands. The commands, when executed by the processor, may cause the electronic device to extract a target object from an image. The commands, when executed by the processor, may cause the electronic device to divide a target frame to be displayed together with the target object among a plurality of frames into a first frame and a second frame based on a shape of an object area included in the target frame. The commands, when executed by the processor, may cause the electronic device to display a background image generated by arranging the target object, the first frame, and the second frame on a display module.
[0006] An operating method of an electronic device according to an embodiment of the present disclosure may include an operation of extracting a target object from an image. The operating method may include an operation of dividing a target frame to be displayed together with the target object from among a plurality of frames into a first frame and a second frame. The operating method may include an operation of determining a priority among the target object, the first frame, and the second frame based on a position of the target object. The operating method may include an operation of displaying a background image generated by arranging the target object, the first frame, and the second frame according to the priority on a display module.
[0007] A computer-readable recording medium according to one embodiment of the present disclosure can perform the above-described operating method.
[0008] FIG. 1 is a block diagram of an electronic device within a network environment according to various embodiments.
[0009] FIG. 2 is a drawing for explaining an operation method of an electronic device according to one embodiment of the present disclosure.
[0010] FIG. 3 is a diagram for explaining extraction of a target object according to one embodiment of the present disclosure.
[0011] FIG. 4 is a diagram illustrating frames according to various embodiments of the present disclosure.
[0012] FIGS. 5 to 8 are diagrams for explaining division of a target frame according to one embodiment of the present disclosure.
[0013] FIG. 9 and FIG. 10 are drawings for explaining an overlap area according to one embodiment of the present disclosure.
[0014] FIG. 11 is a diagram for explaining priorities according to one embodiment of the present disclosure.
[0015] FIG. 12 is a diagram for explaining priority change according to one embodiment of the present disclosure.
[0016] FIG. 13 is a diagram for explaining a change in priority according to the placement of target objects according to one embodiment of the present disclosure.
[0017] FIG. 14 is a drawing for explaining a range in which a target object can move according to one embodiment of the present disclosure.
[0018] FIG. 15 is a diagram for explaining a case where a video is set as a background screen according to one embodiment of the present disclosure.
[0019] FIG. 16 is a drawing for explaining the movement of objects included in a background screen according to one embodiment of the present disclosure.
[0020] FIG. 17 and FIG. 18 are drawings schematically illustrating the operation of an electronic device according to one embodiment of the present disclosure.
[0021] FIG. 19 is a drawing for explaining the overlap between a second frame and a target object according to one embodiment of the present disclosure.
[0022] When explaining with reference to drawings, identical components are given the same reference numerals regardless of the drawing numbers, and redundant descriptions thereof are omitted.
[0023] FIG. 1 is a block diagram of an electronic device (101) within a network environment (100) according to various embodiments. Referring to FIG. 1, in the network environment (100), the electronic device (101) may communicate with the electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of the electronic device (104) or the server (108) via a second network (199) (e.g., a long-range wireless communication network). In one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include a processor (120), a memory (130), an input module (150), an audio output module (155), a display module (160), an audio module (170), a sensor module (176), an interface (177), a connection terminal (178), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the connection terminal (178)), or may have one or more other components added. In some embodiments, some of these components (e.g., the sensor module (176), the camera module (180), or the antenna module (197)) may be integrated into one component (e.g., the display module (160)).
[0024] The processor (120) may, for example, execute software (e.g., a program (140)) to control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) and perform various data processing or operations. According to one embodiment, as at least a part of the data processing or operations, the processor (120) may store commands or data received from other components (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the commands or data stored in the volatile memory (132), and store result data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or an auxiliary processor (123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together with the main processor (121). For example, when the electronic device (101) includes the main processor (121) and the auxiliary processor (123), the auxiliary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a given function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as a part thereof.
[0025] The auxiliary processor (123) may control at least a portion of functions or states associated with at least one component (e.g., a display module (160), a sensor module (176), or a communication module (190)) of the electronic device (101), for example, on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. In one embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (180) or a communication module (190)). In one embodiment, the auxiliary processor (123) (e.g., a neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. The artificial intelligence models may be generated through machine learning. This learning can be performed, for example, in the electronic device (101) itself where the artificial intelligence model is executed, or can be performed through a separate server (e.g., server (108)). The learning algorithm can include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model can include a plurality of artificial neural network layers.The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to, or alternatively to, a hardware structure, an artificial intelligence model may include a software structure.
[0026] The memory (130) can store various data used by at least one component (e.g., processor (120) or sensor module (176)) of the electronic device (101). The data can include, for example, software (e.g., program (140)) and input data or output data for commands related thereto. The memory (130) can include volatile memory (132) or non-volatile memory (134).
[0027] The program (140) may be stored as software in the memory (130) and may include, for example, an operating system (142), middleware (144), or an application (146).
[0028] The input module (150) can receive commands or data to be used in a component of the electronic device (101) (e.g., a processor (120)) from an external source (e.g., a user) of the electronic device (101). The input module (150) can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).
[0029] The audio output module (155) can output audio signals to the outside of the electronic device (101). The audio output module (155) can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. In one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.
[0030] The display module (160) can visually provide information to an external party (e.g., a user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of a force generated by the touch.
[0031] The audio module (170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150), output sound through the sound output module (155), or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphone) directly or wirelessly connected to the electronic device (101).
[0032] The sensor module (176) can detect the operating status (e.g., power or temperature) of the electronic device (101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to one embodiment, the sensor module (176) can include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
[0033] The interface (177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (101) with an external electronic device (e.g., the electronic device (102)). In one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
[0034] The connection terminal (178) may include a connector through which the electronic device (101) may be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0035] The haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
[0036] The camera module (180) can capture still images and videos. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.
[0037] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
[0038] A battery (189) may power at least one component of the electronic device (101). In one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0039] The communication module (190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may operate independently from the processor (120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module (194) (e.g., a local area network (LAN) communication module, or a power line communication module). Among these communication modules, the corresponding communication module can communicate with an external electronic device (104) via a first network (198) (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network (199) (e.g., a long-range communication network such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules can be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can verify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) by using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (196).
[0040] The wireless communication module (192) can support 5G networks and next-generation communication technologies following the 4G network, such as NR access technology (new radio access technology). The NR access technology can support high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and connection of multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module (192) can support, for example, a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate. The wireless communication module (192) can support various technologies for securing performance in a high-frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), an external electronic device (e.g., the electronic device (104)), or a network system (e.g., the second network (199)). According to one embodiment, the wireless communication module (192) can support a peak data rate (e.g., 20 Gbps or more) for eMBB realization, a loss coverage (e.g., 164 dB or less) for mMTC realization, or a U-plane latency (e.g., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for URLLC realization.
[0041] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). In one embodiment, the antenna module (197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). In one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as the first network (198) or the second network (199), may be selected from the plurality of antennas, for example, by the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device via the at least one selected antenna. In some embodiments, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (197).
[0042] According to various embodiments, the antenna module (197) may form a mmWave antenna module. In one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent a first side (e.g., a bottom side) of the printed circuit board and capable of supporting a designated high-frequency band (e.g., a mmWave band), and a plurality of antennas (e.g., an array antenna) disposed on or adjacent a second side (e.g., a top side or a side side) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.
[0043] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).
[0044] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) via a server (108) connected to a second network (199). Each of the external electronic devices (102 or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations executed in the electronic device (101) may be executed in one or more of the external electronic devices (102, 104, or 108). For example, when the electronic device (101) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (101) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may process the result as is or additionally and provide it as at least a portion of a response to the request. For this purpose, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device (101) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example. In another embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server utilizing machine learning and / or a neural network. According to one embodiment, the external electronic device (104) or the server (108) may be included in the second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.
[0045] Electronic devices according to the various embodiments disclosed in this document may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to the embodiments of this document are not limited to the aforementioned devices.
[0046] The various embodiments of this document and the terminology used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the context clearly indicates otherwise. In this document, each of the phrases "A or B", "at least one of A and B", "at least one of A or B", "A, B, or C", "at least one of A, B, and C", and "at least one of A, B, or C" can include any one of the items listed together in the corresponding phrase among those phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.
[0047] The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).
[0048] Various embodiments of the present document may be implemented as software (e.g., a program (140)) that stores one or more commands stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) that can be read by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one command among the one or more commands stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one command called. The one or more commands may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.
[0049] According to one embodiment, the method according to various embodiments disclosed in this document may be provided as a computer program product. The computer program product may be traded between sellers and buyers as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or may be provided through an application store (e.g., Play Store). TM ) or directly between two user devices (e.g., smart phones), online distribution (e.g., downloading or uploading). In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.
[0050] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and placed in other components. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to various embodiments, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.
[0051]
[0052] FIG. 2 is a drawing for explaining an operation method of an electronic device according to one embodiment of the present disclosure.
[0053] The operations described below may be performed sequentially, but are not necessarily performed sequentially. For example, the order of the operations may be changed, and at least two operations may be performed in parallel. The operations illustrated in FIG. 11 may be performed by an electronic device (e.g., at least one component of the electronic device (101) of FIG. 1 (e.g., the processor (120) of FIG. 1)).
[0054] In operation (210), the electronic device can extract a target object from an image.
[0055] In operation (220), the electronic device may divide a target frame to be displayed with a target object among multiple frames into a first frame and a second frame. The electronic device may divide the target frame based on a reference pixel. The method of determining the reference pixel and dividing the target frame will be described later with reference to FIGS. 5 to 8.
[0056] In operation (230), the electronic device can determine the priority between the target object, the first frame, and the second frame based on the location of the target object.
[0057] Electronic devices can generate wallpapers based on priorities. The wallpapers can provide a three-dimensional effect, if necessary. The method for determining priorities is described later in Figures 10 and 11.
[0058] In operation (240), the electronic device can display a background image generated by arranging the target object, the first frame, and the second frame in order of priority on a display module (e.g., the display module (160) of FIG. 1).
[0059] A wallpaper can be a screen that appears on the home screen of an electronic device as well as on the lock screen of an electronic device.
[0060] The operations of the electronic device described above and the operations of the electronic device described below may be executed by one or more processors. According to one embodiment, when instructions are executed by one or more processors, the electronic device may perform the operations described above and the operations described below. The instructions may be stored in a single memory (e.g., memory (130) of FIG. 1) or may be stored in multiple memories.
[0061]
[0062] FIG. 3 is a diagram for explaining extraction of a target object according to one embodiment of the present disclosure.
[0063] An electronic device (e.g., the electronic device (101) of FIG. 1) can extract a target object (320) from a target image (310). The target object (320) can be various, such as a person, an animal, an object, or a building. The electronic device can select the target image (310) in various ways. For example, the electronic device can select the target image (310) in response to a selection command to select the target image (310) in a gallery application that displays images stored in the electronic device. For example, the electronic device can receive a command to change the background image in a screen that displays options for the background image, and can select the target image (310) in response to a selection command to select the target image (310) from among a plurality of images displayed in response to the command.
[0064] An electronic device can select a target image (310) and then set the target image (310) as a background image according to various commands. For example, the electronic device can receive a command from the user through a separate settings menu and enter a menu for setting the target image (310) as a background image. For example, the electronic device can display a pop-up window in response to a user's long press on the target image (310), and can receive a command through the pop-up window and enter a menu for setting the target image as a background image.
[0065] The electronic device may receive a command to set the target image (310) itself as a wallpaper or a command to extract a target object (320) from the target image (310) and set it as a wallpaper. If a command to set the target image (310) itself as a wallpaper is received, the target image (310) may be set as a wallpaper. If the electronic device receives a command to extract a target object (320) and set it as a wallpaper, the electronic device may extract the target object (320) from the target image (310). In one embodiment, the command to extract a target object (320) and set it as a wallpaper may include an input of long-pressing the target object (320) from the target image (310). If the electronic device receives a long-press input for the target object (320), the electronic device may extract the target object (320) from the target image (310). In one embodiment, a command to extract a target object (320) and set it as a background image may include an input for selecting a region around the target object (320) in the target image (310) (e.g., an input for selecting a region to be extracted from the target image (310) as a closed curve). The electronic device may extract the target object (320) or at least a portion of the target image (320) including the target object (320) based on the input for selecting a region around the target object (320).
[0066] In other words, the electronic device can separate the background and the target object (320) from the target image (310). The electronic device can extract the target object (320) using various methods. For example, the electronic device can extract the target object (320) using an artificial intelligence model (AI model) that extracts the target object (320). The electronic device can extract the target object (320) using an extraction module that extracts the target object (320). The electronic device can transmit the target image (310) to a separate server (e.g., server (108) of FIG. 1) that communicates with the electronic device, and receive the extracted target object (320) from the server.
[0067] According to one embodiment, a target image (310) may include one or more objects. The electronic device may output an object determined to be a main object among the one or more objects as a target object (320). The electronic device may display candidate objects to be output as the target object (320) among the one or more objects, and extract a candidate object selected according to a user's selection command as the target object (320). The electronic device may immediately extract an object selected according to a user's selection command among the one or more objects as the target object (320).
[0068] The electronic device can add a background area (330) to the target object (320). The electronic device can add a background area (330) with various colors and effects applied.
[0069] Below, we will explain the frame to be displayed together with the target object (320) and the background area (330).
[0070]
[0071] FIG. 4 is a diagram illustrating frames according to various embodiments of the present disclosure.
[0072] Referring to FIG. 4, a plurality of frames (400) that can be displayed together with a target object (e.g., the target object (320) of FIG. 3) are illustrated. The plurality of frames (400) may have a shape similar to a picture frame. The electronic device can select a target frame to be displayed together with the target object from among the plurality of frames (400). The electronic device can select a target frame in response to a command to select a target frame.
[0073] The electronic device may first select a target image (e.g., target image (310) of FIG. 3) and then select a target frame. Alternatively, the electronic device may select a target frame and then select a target image.
[0074] The plurality of frames (400) illustrated in FIG. 4 are merely examples, and the present disclosure is not limited thereto. In other words, an electronic device (e.g., the electronic device (101) of FIG. 1) may provide more frames in addition to the frames illustrated in FIG. 4.
[0075] Referring to FIG. 4, each frame may include an object area of a different shape. The object area may be a transparent area. In other words, the object area may be an area where at least a portion of a target object extracted from the target image is placed. The area excluding the object area in each frame may be referred to as a frame area. Unlike the object area, the frame area may be an opaque area.
[0076] According to one embodiment, some of the plurality of frames (400) may include a closed object region. For example, referring to frame (410), frame (410) may include a closed object region (411). For frame (410) including the closed object region (411), two reference pixels may be determined.
[0077] According to one embodiment, some of the plurality of frames (400) may include an open object region. For example, referring to frame (420), frame (420) may include an open object region (421). It should be understood that the dotted line illustrated in the object region (421) is intended to illustrate the object region (421) and is not part of the frame (420). The frame (420) including the open object region (421) may have one or two reference pixels determined.
[0078] According to one embodiment, some of the frames (400) among the plurality of frames may be divided from the beginning. For example, referring to the frame (430), the frame (430) may include a first frame (431) and a second frame (433). For a frame (430) having a completely open shape, such as the frame (430), the process of determining a reference pixel to be described later in FIGS. 5 to 8 and dividing the frame based on the reference pixel may be omitted.
[0079] Below, we will explain how to determine reference pixels for various frames and how to segment frames based on the reference pixels.
[0080]
[0081] FIGS. 5 to 8 are diagrams for explaining division of a target frame according to one embodiment of the present disclosure.
[0082] Referring to FIG. 5, a target frame (510) including a closed object region (511) (e.g., the object region (411) of FIG. 4) is illustrated. The target frame (510) may be a frame selected to be displayed together with a target object (e.g., the target object (320) of FIG. 3) from among a plurality of frames (e.g., the plurality of frames (400) of FIG. 4). Before segmenting the target frame (510), an electronic device (e.g., the electronic device (101) of FIG. 1) may need to determine one or more reference pixels in the target frame (510). The electronic device may segment the target frame (510) based on the one or more reference pixels. That is, the electronic device may determine the reference pixels based on the shape of the target region (511) and segment the target frame (510) based on the reference pixels.
[0083] According to one embodiment, the electronic device may determine the leftmost pixel (541) and the rightmost pixel (543) of the object area (511) as reference pixels in order to horizontally divide the target frame (510). The leftmost pixel (541) of the object area (511) may be the pixel located at the leftmost position in the object area (511). That is, assuming that the origin of the terminal coordinate system is the lower left of the display module (e.g., the display module (160) of FIG. 1), the leftmost pixel (541) may be the pixel having the smallest x-coordinate value among the pixels included in the object area (511). The rightmost pixel (543) of the object area (511) may be the pixel located at the rightmost position in the object area (543). That is, assuming that the origin of the terminal coordinate system is the lower left of the display module, the rightmost pixel (543) may be the pixel having the largest x-coordinate value among the pixels included in the object area (511). Once the leftmost pixel (541) and the rightmost pixel (543) are determined, the electronic device may divide the target frame (510) based on the leftmost pixel (541) and the rightmost pixel (543). The electronic device may divide the target frame (510) into a first frame (521) and a second frame (523). The first frame (521) may be an upper frame, and the second frame (523) may be a lower frame. However, this is merely an example, and the first frame (521) is not always determined as an upper frame, and the second frame (523) is not always determined as a lower frame.
[0084] According to one embodiment, the electronic device may determine the top pixel (545) and the bottom pixel (547) of the object area (511) as reference pixels in order to vertically divide the target frame (510). The top pixel (545) of the object area (511) may be the pixel located at the topmost position in the object area (511). That is, assuming that the origin of the terminal coordinate system is the lower left of the display module, the top pixel (545) may be the pixel having the largest y-coordinate value among the pixels included in the object area (511). The bottom pixel (547) of the object area (511) may be the pixel located at the bottommost position in the object area (547). That is, assuming that the origin of the terminal coordinate system is the lower left of the display module, the bottom pixel (547) may be the pixel having the smallest y-coordinate value among the pixels included in the object area (511). Once the top pixel (545) and the bottom pixel (547) are determined, the electronic device can divide the target frame (510) based on the top pixel (545) and the leftmost pixel (547). The electronic device can divide the target frame (510) into a first frame (531) and a second frame (533). The first frame (531) may be a left frame and the second frame (533) may be a right frame. However, this is merely an example, and the first frame (521) is not always determined as a left frame and the second frame (523) is not always determined as a right frame.
[0085] According to one embodiment, horizontal or vertical segmentation of the target frame (510) may be provided according to the user's selection. For example, horizontal segmentation of the target frame (510) may be the default setting. However, the electronic device may provide vertical segmentation as a separate option to the user, and the user may input a command to the electronic device to perform vertical segmentation by selecting the option. The electronic device may vertically segment the target frame (510) in response to receiving the command.
[0086] Referring to FIG. 6, a target frame (610) (e.g., target frame (510) of FIG. 5) is illustrated, which includes a closed-shaped object area (611) (e.g., object area (411) of FIG. 4 and object area (511) of FIG. 5).
[0087] Referring to FIG. 6, when dividing the target frame (610) vertically, the reference pixels of the target frame (610) may not exist at the same height. In other words, the y-coordinate values of the leftmost pixel (641) (e.g., the leftmost pixel (541) of FIG. 5) and the rightmost pixel (643) (e.g., the rightmost pixel (543) of FIG. 5) of the target frame (610) may be different. Accordingly, the first frame (621) (e.g., the first frame (521) of FIG. 5) and the second frame (623) (e.g., the second frame (523) of FIG. 5) divided based on the leftmost pixel (641) and the rightmost pixel (643) may not be vertically symmetrical.
[0088] Although not shown in FIG. 6, when dividing the target frame (610) into left and right, the reference pixels of the target frame (610) may not have the same x-coordinate value. In other words, the x-coordinate values of the uppermost pixel (e.g., the uppermost pixel (545) of FIG. 5) and the lowermost pixel (e.g., the lowermost pixel (547)) may be different. Accordingly, the first frame (e.g., the first frame (531) of FIG. 5) and the second frame (e.g., the second frame (533) of FIG. 5) divided based on the uppermost pixel and the lowermost pixel may not be symmetrical left and right.
[0089] Referring to FIG. 7, a target frame (710) (e.g., target frame (510) of FIG. 5 and target frame (610) of FIG. 6) is illustrated, which includes an open-shaped object region (711) (e.g., object region (421) of FIG. 4). Before segmenting the target frame (710), an electronic device (e.g., electronic device (101) of FIG. 1) may need to determine one or more reference pixels in the frame (710). The electronic device may segment the frame (710) based on the one or more reference pixels.
[0090] According to one embodiment, the electronic device may determine the leftmost pixel (e.g., the leftmost pixel (541) of FIG. 5 and the leftmost pixel (641) of FIG. 6) and / or the rightmost pixel (743) (e.g., the rightmost pixel (543) of FIG. 5 and the rightmost pixel (643) of FIG. 6) of the object area as a reference pixel to horizontally divide the frame (710). For example, referring to FIG. 7, since the object area (711) has a shape that is open to the left, the rightmost pixel (743) may be determined as the reference pixel. If the object area has a shape that is open to the right, the leftmost pixel may be determined as the reference pixel. If the object area has a shape that is open to the top or bottom, the leftmost pixel and the rightmost pixel (743) may be determined as the reference pixels. A description of a method for determining the leftmost pixel and the rightmost pixel is omitted as it has been described above with reference to FIG. 5. The electronic device can divide the frame (710) into a first frame (721) (e.g., the first frame (521) of FIG. 5 and the first frame (621) of FIG. 6) and a second frame (723) (e.g., the second frame (523) of FIG. 5 and the second frame (623) of FIG. 6) based on the rightmost pixel (743).
[0091] According to one embodiment, the electronic device may determine the top pixel (745) (e.g., the top pixel (545) of FIG. 5) and / or the bottom pixel (747) (e.g., the bottom pixel (547) of FIG. 5) of the object area as reference pixels to vertically divide the frame (710). Since the object area (711) has a shape that is open to the left, the top pixel (745) and the bottom pixel (747) may be determined as reference pixels. If the object area has a shape that is open upward, the bottom pixel (747) may be determined as the reference pixel. If the object area has a shape that is open downward, the top pixel (745) may be determined as the reference pixel. A description of a method for determining the top pixel (745) and the bottom pixel (747) is omitted as it has been described above with reference to FIG. 5. The electronic device can divide the frame (710) into a first frame (731) (e.g., the first frame (531) of FIG. 5) and a second frame (733) (e.g., the second frame (533) of FIG. 5) based on the top pixel (745) and the bottom pixel (747).
[0092] However, referring to FIG. 7, there may be multiple top pixels (745). In this case, the method for selecting a reference pixel will be further described in FIG. 8.
[0093] Referring to FIG. 8, a target frame (810) (e.g., the target frame (510) of FIG. 5, the target frame (610) of FIG. 6, and the target frame (710) of FIG. 7) including an open-type object area (811) (e.g., the object area (411) of FIG. 4 and the object area (711) of FIG. 7) is illustrated. Assuming that the target frame (810) is divided into upper and lower parts, according to the method for determining the reference pixel described above in FIG. 5, there may be a plurality of pixels existing at the leftmost side. Similarly, there may be a plurality of pixels existing at the rightmost side. In addition, according to the method for determining the reference pixel described above in FIG. 5, there may be a plurality of pixels existing at the topmost side. Similarly, there may be a plurality of pixels existing at the rightmost side. At this time, an electronic device (e.g., the electronic device (101) of FIG. 1) can determine the reference pixel in various ways.
[0094] According to one embodiment, the electronic device may determine the pixel located at the highest position or the pixel located at the lowest position among the plurality of leftmost pixels as the reference pixel. The electronic device may determine the pixel located at the highest position or the pixel located at the lowest position among the plurality of rightmost pixels as the reference pixel. The electronic device may determine the pixel located at the rightmost position or the pixel located at the leftmost position among the plurality of topmost pixels as the reference pixel. The electronic device may determine the pixel located at the rightmost position or the pixel located at the leftmost position among the plurality of bottommost pixels as the reference pixel.
[0095] According to one embodiment, the electronic device may determine the reference pixel differently depending on the direction in which the object area (811) is opened. For example, if the object area (811) is opened toward the lower corner, the electronic device may determine the pixel located at the highest position among the leftmost pixels as the reference pixel (841). If the object area (811) is opened toward the lower corner, the electronic device may determine the pixel located at the highest position among the rightmost pixels as the reference pixel (843). For example, if the object area is opened toward the upper corner, the electronic device may determine the pixel located at the lowest position among the leftmost pixels as the reference pixel. If the object area is opened toward the lower corner, the electronic device may determine the pixel located at the lowest position among the rightmost pixels as the reference pixel (843). For example, if the object area is opened toward the left corner, the electronic device may determine the pixel located at the rightmost position among the top pixels as the reference pixel. If the object area is opened toward the left corner, the electronic device may determine the pixel located at the rightmost position among the bottom pixels as the reference pixel. For example, if the object area opens toward the right corner, the electronic device may determine the pixel located at the leftmost position among the top pixels as the reference pixel. If the object area opens toward the right corner, the electronic device may determine the pixel located at the leftmost position among the bottom pixels as the reference pixel.
[0096] The above-described embodiments are merely examples, and the method by which the electronic device determines the reference pixel is not limited thereto. Furthermore, according to one embodiment, the electronic device may receive input from the user regarding the location of the reference pixel. For example, the electronic device may determine the reference pixel using any of the above-described methods and display the information to the user. The electronic device may change the location of the reference pixel in response to a user command to change the location of the reference pixel.
[0097] Referring to FIG. 8, when the object area (811) is opened toward the lower edge, the pixel at the highest position among a plurality of leftmost pixels may be determined as the reference pixel (841). Additionally, the pixel at the highest position among a plurality of rightmost pixels may be determined as the reference pixel (843). The electronic device may divide the target frame (810) into a first frame (821) (e.g., the first frame (521) of FIG. 5, the first frame (621) of FIG. 6, and the first frame (721) of FIG. 7) and a second frame (823) (e.g., the first frame (523) of FIG. 5, the second frame (623) of FIG. 6, and the second frame (723) of FIG. 7)) based on the determined reference pixels.
[0098]
[0099] FIG. 9 and FIG. 10 are drawings for explaining an overlap area according to one embodiment of the present disclosure.
[0100] Referring to FIG. 9, drawings are shown for explaining an overlap area (930) when a target frame (910) (e.g., the target frame (510) of FIG. 5, the target frame (610) of FIG. 6, the target frame (710) of FIG. 7, and the target frame (810) of FIG. 8) is divided vertically. The overlap area (930) may be an area that may overlap with a target object when the target object (e.g., the target object (320) of FIG. 3) and the target frame (910) are displayed together later. In other words, the overlap area (930) may be an area where a target object may overlap with the target area (930).
[0101] When the electronic device divides the target frame (910) into upper and lower parts, the overlap area (930) can be placed on the upper frame. In other words, the target frame (910) can be divided into a first frame (e.g., the first frame (521) of FIG. 5 , the first frame (621) of FIG. 6 , the first frame (721) of FIG. 7 , and the first frame (821) of FIG. 8 ) and a second frame (e.g., the first frame (523) of FIG. 5 , the second frame (623) of FIG. 6 , the second frame (723) of FIG. 7 , and the second frame (823) of FIG. 8 ), and at this time, the overlap area (930) can be an area in which the first frame can overlap with the target object.
[0102] Some of the vertices of the overlap area (930) may correspond to one or more reference pixels. The height (931) of the overlap area (930) may be determined based on the height (921) of the rectangle (920) surrounding the object area (e.g., the object area (411) of FIG. 4 , the object area (421) of FIG. 4 , the object area (511) of FIG. 5 , the object area (611) of FIG. 6 , the object area (711) of FIG. 7 , and the object area (811) of FIG. 8 ). For example, the height (931) of the overlap area (930) may be determined as n % of the height (921) of the rectangle (920).
[0103] According to one embodiment, the height (931) of the overlap area (930) may be greater than the height of the first frame. For example, if the object area is adjacent to the upper edge of the first frame, the height (931) of the overlap area (930) may be determined to be greater than the height of the first frame. In this case, the electronic device (e.g., the electronic device (101) of FIG. 1) may determine the height (931) of the overlap area (930) as the height of the first frame from one or more reference pixels.
[0104] Referring to FIG. 10, drawings are shown for explaining an overlap area (1030) (e.g., the overlap area (930) of FIG. 9) when a target frame (1010) (e.g., the target frame (510) of FIG. 5, the target frame (610) of FIG. 6, the target frame (710) of FIG. 7, the target frame (810) of FIG. 8, and the target frame (910) of FIG. 9) is divided vertically. The overlap area (1030) may be an area that may overlap with a target object (e.g., the target object (320) of FIG. 3) when the target frame (1010) is displayed together later. In other words, the overlap area (1030) may be an area where a target object may overlap with the target area (1030).
[0105] When the electronic device divides the target frame (1010) into upper and lower parts, the overlap area (1030) can be placed on the upper frame. In other words, the target frame (910) can be divided into a first frame (e.g., the first frame (521) of FIG. 5 , the first frame (621) of FIG. 6 , the first frame (721) of FIG. 7 , and the first frame (821) of FIG. 8 ) and a second frame (e.g., the first frame (523) of FIG. 5 , the second frame (623) of FIG. 6 , the second frame (723) of FIG. 7 , and the second frame (823) of FIG. 8 ), and at this time, the overlap area (1030) can be an area in which the second frame can overlap with the target object.
[0106] Some of the vertices of the overlap area (1030) may correspond to one or more reference pixels. The height (1031) of the overlap area (1030) may be determined based on the height (1021) (e.g., the height (921) of FIG. 9) of a rectangle (1020) (e.g., the rectangle (920) of FIG. 9) that surrounds the object area (e.g., the object area (411) of FIG. 4, the object area (421) of FIG. 4, the object area (511) of FIG. 5, the object area (611) of FIG. 6, the object area (711) of FIG. 7, and the object area (811) of FIG. 8). For example, the height (1031) of the overlap area (1030) (e.g., the height (931) of FIG. 9) may be determined as m % of the height (1021) of the rectangle (1020).
[0107] According to one embodiment, the height (1031) of the overlap area (1030) may be greater than the height of the second frame. For example, if the object area is adjacent to the lower edge of the second frame, the height (1031) of the overlap area (1030) may be determined to be greater than the height of the second frame. In this case, the electronic device (e.g., the electronic device (101) of FIG. 1) may determine the height (1031) of the overlap area (1030) as the height of the second frame from one or more reference pixels.
[0108] According to one embodiment, the electronic device may determine that the overlap area (1030) is included in the upper frame (i.e., the first frame) or the lower frame (i.e., the second frame). For example, the electronic device may provide that the overlap area is included in the first frame by default. However, the electronic device may provide that the overlap area is included in the second frame as a separate option. A command to include the overlap area in the second frame may be generated by a user selecting a separate option to include the overlap area in the second frame. Based on the command, the electronic device may change the overlap area to be included in the second frame.
[0109] The description of the overlap area described above in FIGS. 9 and 10 can be equally applied even when the target frame is divided left and right, and thus the description is omitted. However, it should be understood that in this case, when the target frame is divided left and right, the width of the overlap area can be determined as k% of the width of the rectangle surrounding the object area, and the overlap area is an area that can overlap with the target object in the divided left or right frame.
[0110] Below, we will explain a method for determining priorities between the first frame, the second frame, and target objects using the above-described overlap area.
[0111]
[0112] FIG. 11 is a diagram for explaining priorities according to one embodiment of the present disclosure.
[0113] Referring to FIG. 11, the arrangement of a first frame (1110) according to priority (e.g., the first frame (521) of FIG. 5, the first frame (621) of FIG. 6, the first frame (721) of FIG. 7, and the first frame (821) of FIG. 8), a second frame (1120) (e.g., the first frame (523) of FIG. 5, the second frame (623) of FIG. 6, the second frame (723) of FIG. 7, and the second frame (823) of FIG. 8), a target object (1130) (e.g., the target object (320) of FIG. 3), and a background area (1140) (the background area (330) of FIG. 3)) is illustrated. Drawing (1160) illustrates the arrangement of a first frame (1110), a second frame (1120) according to priority. A display module (e.g., display module (160) of FIG. 1) of a target object (1130) and a background area (1140) is shown. Drawing (1170) is a drawing for explaining the layer relationship of the first frame (1110), the second frame (1120) according to priority, the target object (1130), and the background area (1140).
[0114] Referring to the drawing (1170), an electronic device (e.g., the electronic device (101) of FIG. 1) can extract a target object (1130) from an image (e.g., the target image (310) of FIG. 3), segment a target frame (1100) (e.g., the target frame (510) of FIG. 5, the target frame (610) of FIG. 6, the target frame (710) of FIG. 7, the target frame (810) of FIG. 8, the target frame (910) of FIG. 9, and the target frame (1010) of FIG. 10)) based on a reference pixel, and then determine a priority among a first frame (1110), a second frame (1120), and a target object (1130).
[0115] In Fig. 11, it is assumed that the overlap area (1150) (e.g., the overlap area (930) of Fig. 9 and the overlap area (1030) of Fig. 10) is included in the first frame (1110). The description of the overlap area (1150) described above with reference to Figs. 9 and 10 will be omitted.
[0116] When the target frame (1100) is divided into a first frame (1110) and a second frame (1120) and a target object (1130) is extracted, the electronic device can determine the priorities among them and display them on the display module. The electronic device can determine the priorities among the first frame (1110), the second frame (1120), and the target object (1130) based on the location of the target object (1130). The electronic device can determine the priority of the background area (1140) to be the lowest. Therefore, referring to the drawing (1170), it can be confirmed that the priority of the background area (1140) is always the lowest.
[0117] The electronic device can determine whether a part of the target object (1130) exists beyond the overlap area in the direction (1180) in which the overlap area (1150) exists. The direction (1180) in which the overlap area (1138) exists may be the direction in which the overlap area (1150) exists based on the dividing point of the target frame (1100). For example, the direction (1180) in which the overlap area (1150) exists may be a direction toward the upper edge of the target frame (1100) when the overlap area (1130) is included in the first frame (1110). For example, the direction (1180) in which the overlap area (1150) exists may be a direction toward the lower edge of the target frame (1100) when the overlap area (1130) is included in the second frame (1120).
[0118] The electronic device may determine a priority between the target object (1130) and the frame including the overlap area (1130) based on whether a part of the target object (1130) exists beyond the overlap area in the direction (1180) in which the overlap area (1130) exists. If a part of the target object (1130) does not exist beyond the overlap area in the direction (1180) in which the overlap area (1130) exists, the electronic device may determine a priority of the frame including the overlap area (i.e., the first frame (1110) in the case of FIG. 11) to be lower than the priority of the target object (1130). In this case, the electronic device may determine a priority of the frame not including the overlap area (1150) (i.e., the second frame (1120) in the case of FIG. 11) to be the highest. (c) may be a drawing showing priorities corresponding to (a). Accordingly, referring to (c), the order of priority may be determined to be high in the order of the second frame (1120), the target object (1130), the first frame (1110), and the background area (1140). (a) may be a screen displayed on the display module in the order of the second frame (1120), the target object (1130), the first frame (1110), and the background area (1140) according to the priority corresponding to (c).
[0119] If a part of the target object (1130) exists beyond the overlap area in the direction (1180) in which the overlap area (1130) exists, the electronic device may determine the priority of the frame including the overlap area (1150) (i.e., the first frame (1110) in FIG. 11) to be higher than that of the target object (1130). At this time, the priority of the frame including the overlap area (1150) and the priority of the frame not including the overlap area (1150) may both be determined to be higher than that of the target object (1130). (d) may be a drawing showing the priorities corresponding to (b). Therefore, referring to (d), the priorities may be determined to be high in the order of the first frame (1110), the second frame (1120), the target object (1130), and the background area (1140). (b) may be a screen displayed on the display module in the order of the first frame (1110), the second frame (1120), the target object (1130), and the background area (1140) according to the priority corresponding to (d).
[0120] The position of the target object (1130) can move. For example, the electronic device can move the position of the target object (1130) in response to receiving a command to move the target object (1130) from the user. Accordingly, the electronic device can change the priority among the first frame (1110), the second frame (1120), and the target object (1130) according to the movement of the position of the target object (1130). In other words, the electronic device can change the priority from (c) to (d) or from (d) to (c). Accordingly, the electronic device can change the display of the display module from (a) to (b) or from (b) to (a).
[0121] It will be apparent to those skilled in the art that the above description can be applied to a case where the overlap area (1150) is included in the second frame (1120) (e.g., FIG. 16). Similarly, it will be apparent to those skilled in the art that the above description can be applied to a case where the target frame (1100) is divided left and right.
[0122]
[0123] FIG. 12 is a diagram for explaining priority change according to one embodiment of the present disclosure.
[0124] Referring to FIG. 12, the target frame (e.g., the target frame (510) of FIG. 5, the target frame (610) of FIG. 6, the target frame (710) of FIG. 7, the target frame (810) of FIG. 8, the target frame (910) of FIG. 9, the target frame (1010) and the target frame (1100) of FIG. 10) is a first frame (1210) (e.g., the first frame (521) of FIG. 5, the first frame (621) of FIG. 6, the first frame (721) of FIG. 7, the first frame (821) of FIG. 8 and the first frame (1110) of FIG. 11) and a second frame (1220) (e.g., the first frame (523) of FIG. 5, the second frame (623) of FIG. 6, the second frame (723) of FIG. 7, the second frame (823) of FIG. 8 and the second frame (1110) of FIG. 11) Since the target object (1230) is divided into frames (1120), when the target object (1230) (e.g., the target object (320) of FIG. 3 and the target object (1130) of FIG. 11) is moved according to the user's movement command, a crack area (1240) may occur in which the target object (1230) exists beyond the object area (e.g., the object area (411) of FIG. 4, the object area (421) of FIG. 4, the object area (511) of FIG. 5, the object area (611) of FIG. 6, the object area (711) of FIG. 7, and the object area (811) of FIG. 8). In other words, the target object (1230) may overlap with the reference pixel.
[0125] The crack area (1240) may be caused by the target object (1230) not exceeding the overlap area (e.g., overlap area (930) of FIG. 9, overlap area (1030) and overlap area (1150) of FIG. 10) and thus being determined to have a higher priority than the frame containing the overlap area.
[0126] According to one embodiment, when a crack area (1240) occurs, the electronic device may change the priority of the target object (1230) depending on whether the transparency of the pixel of the target object (1230) overlapping the reference pixel is greater than or equal to a threshold value. For example, when the transparency of the pixel of the target object (1230) overlapping the reference pixel is greater than or equal to a threshold value, the priority of the target object (1230) may be changed to a lower priority than the frame including the overlapping area. The reference pixel may be a pixel that serves as a segmentation criterion of the target frame described in FIGS. 5 to 8.
[0127] According to one embodiment, the electronic device may prevent the target object from moving further toward the reference pixel if the transparency of a pixel of the target object overlapping the reference pixel is greater than or equal to a threshold value.
[0128]
[0129] FIG. 13 is a diagram for explaining a change in priority according to the placement of target objects according to one embodiment of the present disclosure.
[0130] Referring to FIG. 13, a drawing is shown to explain a condition for determining that a target object (1330) (e.g., target object (320) of FIG. 3, target object (1130) and target object (1230) of FIG. 11) is given a higher priority than a frame including an overlapping area (e.g., overlap area (930) of FIG. 9, overlap area (1030) and overlap area (1150) of FIG. 10).
[0131] In other words, as described in Fig. 11, if the target object (1330) exists within the overlapping area and satisfies the conditions below, it can be determined to have a higher priority than the frame including the overlapping area.
[0132]
[0133] The electronic device can determine whether to prioritize the target object higher than the frame containing the overlapping area based on the leftmost pixel and / or rightmost pixel of the target object having the same y-coordinate value as the reference pixel and the reference pixel from the reference pixel.
[0134] Below, the pixel coordinates are assumed to be coordinates centered around the lower left corner of the display module.
[0135] According to one embodiment, the object area (e.g., the object area (411) of FIG. 4, the object area (421) of FIG. 4, the object area (511) of FIG. 5, the object area (611) of FIG. 6, the object area (711) of FIG. 7, and the object area (811) of FIG. 8) may be in a left-facing array. In this case, the electronic device may determine whether to prioritize the target object higher than the frame including the overlapping area by using the following mathematical expression 1 when the reference pixel is the right pixel.
[0136] [Mathematical Formula 1]
[0137]
[0138] Referring to Figure 13, the coordinates of the right reference pixel are (Xc1 , Yc1). However, Fig. 13 shows Yc1 - The coordinates of the rightmost pixel of the target object (1330) with the same y-coordinate value as (Xo1 , Yo1). At this time, Yc1 = Yo1 may be. The electronic device may determine the priority of the target object to be higher than the frame containing the overlapping area if Xc1 - Xo1 is greater than T (i.e., a threshold). T may be a value greater than or equal to 0.
[0139] In one embodiment, the object area may be open to the right. In this case, the electronic device may determine whether to prioritize the target object higher than the frame containing the overlapping area using the following mathematical expression 2 when the reference pixel is the left pixel.
[0140] [Equation 2]
[0141]
[0142] The coordinates of the left reference pixel are (Xc2 , Yc2) can be said to be Yc2 - The coordinates of the leftmost pixel of the target object (1330) with the same y-coordinate value as (Xo2 , Yo2). At this time, Yc2 = Yo2 may be. The electronic device may determine the priority of the target object to be higher than the frame containing the overlapping area if Xo2 - Xc2 is greater than T (i.e., a threshold). T may be a value greater than or equal to 0.
[0143] In one embodiment, the object region may be a closed shape. If the object region is closed, both a left reference pixel and a right reference pixel may exist. Accordingly, if both the above-described mathematical equations 1 and 2 are satisfied, the electronic device may determine the priority of the target object to be higher than that of the frame containing the overlapping region.
[0144]
[0145] FIG. 14 is a drawing for explaining a range in which a target object can move according to one embodiment of the present disclosure.
[0146] Referring to FIG. 14, a drawing is shown to explain the range in which a target object (1410) (e.g., target object (320) of FIG. 3, target object (1130) of FIG. 11, target object (1230) of FIG. 12, and target object (1330) of FIG. 13) and a background area (1420) (e.g., background area (330) of FIG. 3 and background area (1140) of FIG. 11) can move.
[0147] The target object (1410) may be fixed on the background area (1420). Therefore, the background area (1140) may also move in accordance with the movement of the target object (1410). The size of the background area (1140) may be the same as the size of the target frame (1400) (e.g., the target frame (510) of FIG. 5, the target frame (610) of FIG. 6, the target frame (710) of FIG. 7, the target frame (810) of FIG. 8, the target frame (910) of FIG. 9, the target frame (1010) of FIG. 10, and the target frame (1100) of FIG. 11).
[0148] The electronic device can move the target object (1410) within a range in which the background area (1420) can be displayed in the object area (1430) (e.g., the object area (411) of FIG. 4, the object area (421) of FIG. 4, the object area (511) of FIG. 5, the object area (611) of FIG. 6, the object area (711) of FIG. 7, and the object area (811) of FIG. 8). The range in which the electronic device can display the background area (1420) in the object area (1430) may be until at least one of the corners of the background area meets at least one of the corners of a rectangle enclosing the object area (e.g., the rectangle (920) of FIG. 9 and the rectangle (1020) of FIG. 10).
[0149] Accordingly, referring to FIG. 14, the target object (1410) can be moved within a range in which the background area (1420) can move to the lower left, lower right, upper left, and upper right.
[0150] An electronic device can extract a target object according to the method described above in FIGS. 1 to 14. The electronic device can segment a target frame according to the method described above in FIGS. 1 to 14. The electronic device can determine priorities between the target object and segmented frames according to the method described above in FIGS. 1 to 14. The electronic device can generate a background image based on the priorities and display the background image on a display module (e.g., the display module (160) of FIG. 1).
[0151] FIG. 15 is a diagram for explaining a case where a video is set as a background screen according to one embodiment of the present disclosure.
[0152] According to one embodiment, the electronic device can display a video together with a target frame (e.g., a target frame (510) of FIG. 5, a target frame (610) of FIG. 6, a target frame (710) of FIG. 7, a target frame (810) of FIG. 8, a target frame (910) of FIG. 9, a target frame (1010) of FIG. 10, a target frame (1100) of FIG. 11, and a target frame (1400) of FIG. 14). The electronic device can extract a target object (e.g., a target object (320) of FIG. 3, a target object (1130) of FIG. 11, a target object (1230) of FIG. 12, a target object (1330) of FIG. 13, and a target object (1410) of FIG. 14)) for each frame of the video using the method described above with reference to FIGS. 1 to 14. The electronic device can segment the target frame using the method described above with reference to FIGS. 2 to 14. The electronic device can determine the priority between the target object and the segmented frames for each frame of the video using the method described above in FIGS. 2 to 14. The electronic device can then generate a background image based on the priority.
[0153] Fig. 15 is a drawing for explaining the change of the background according to the playback of the video when the background is generated together with the target frame using the video. In Fig. 15, it is assumed that the video is an image in which a cat appears in an object area (e.g., object area (411) of Fig. 4, object area (421) of Fig. 4, object area (511) of Fig. 5, object area (611) of Fig. 6, object area (711) of Fig. 7, object area (811) of Fig. 8, and object area (1430) of Fig. 14) and goes out of an overlap area (e.g., overlap area (930) of Fig. 9, overlap area (1030) and overlap area (1150) of Fig. 10).
[0154] Therefore, the priority between the target object and the frames from which the target frame is divided may change in each frame of the video in which the cat goes out of the overlap area.
[0155]
[0156] FIG. 16 is a drawing schematically illustrating the operation of an electronic device according to one embodiment of the present disclosure.
[0157] According to one embodiment, the electronic device may move the positions of objects (e.g., a clock, widgets, etc.) placed on the background screen according to the movement of the target object (1600) (e.g., the target object (320) of FIG. 3, the target object (1130) of FIG. 11, the target object (1230) of FIG. 12, the target object (1330) of FIG. 13, and the target object (1410) of FIG. 14). This is because visibility may be reduced if the target object (1600) overlaps with objects placed on the background screen.
[0158]
[0159] FIG. 17 and FIG. 18 are drawings schematically illustrating the operation of an electronic device according to one embodiment of the present disclosure.
[0160] Referring to FIGS. 17 and 18, screens (e.g., screen 1 (1700) to screen 4 (1730) and screen 5 (1800) to screen 8 (1830)) displayed through a display module (e.g., display module (160) of FIG. 1) of an electronic device (e.g., electronic device (101) of FIG. 1) according to user input are illustrated. For convenience of explanation, only the screens of the electronic device are illustrated, and the electronic device and the display module of the electronic device are omitted.
[0161] The electronic device may display screen 1 (1700) providing settings for the background screen. Although not illustrated in FIG. 17, the electronic device may display screen 1 (1700) based on user input received through various methods, such as a long press on at least a portion of the home screen, an edit button on a specific image in the settings application, or a gallery application.
[0162] In screen 1 (1700), the electronic device may display screen 2 (1710) providing for changing the wallpaper upon receiving user input (1703) (e.g., a touch on a change wallpaper button).
[0163] On screen 2 (1710), the electronic device can display various images that can be set as wallpaper. For example, the electronic device can display images provided by default on screen 2 (1710). For example, the electronic device can display folders of the gallery application on screen 2 (1710) and display images contained in each folder in thumbnail format. For convenience of explanation, it is assumed below that the electronic device has received a user input (1713) for a recent folder among the folders of the gallery application (e.g., a touch on the recent folder). However, this is merely an example and the present disclosure is not limited thereto.
[0164] The electronic device may display screen 3 (1720) containing images contained in the recent folder in response to receiving user input (1713) for the recent folder.
[0165] In screen 3 (1720), the electronic device may receive a selection input from the user for an image (1723) to be set as a wallpaper. After receiving the selection input for the image (1723), the electronic device may display screen 4 (1730) upon receiving user input (1725) (e.g., touching a Done button).
[0166] Screen 4 (1730) may include a pop-up window (1733). The pop-up window (1733) may be a window that provides application of the image selected in Screen 3 (1720) to the home screen and / or lock screen. When the electronic device receives user input (1735) (e.g., a selection input for a next button) in Screen 4 (1730), it may display Screen 5 (1800) of FIG. 18, which displays a preview of the wallpaper to which the image (1723) is applied.
[0167] The electronic device can extract a target object (1803) (e.g., target object (320) of FIG. 3, target object (1130) of FIG. 11, target object (1230) of FIG. 12, target object (1330) of FIG. 13, target object (1410) of FIG. 14, and target object (1600) of FIG. 16) from an image (1723). The extraction of the target object (1803) will be omitted as described above with reference to FIG. 3.
[0168] In screen 5 (1800), the electronic device may activate the border of the target object (1803) to indicate that the target object (1803) has been extracted. In screen 5 (1800), user input (1805) (e.g., a selection input for a frame creation button) may be received.
[0169] Upon receiving a user input (1805), the electronic device may display a background preview including a target frame (1813) (e.g., target frame (510) of FIG. 5 , target frame (610) of FIG. 6 , target frame (710) of FIG. 7 , target frame (810) of FIG. 8 , target frame (910) of FIG. 9 , target frame (1010) of FIG. 10 , target frame (1100) of FIG. 11 , and target frame (1400) of FIG. 14 ), a target object (1803), and a background area (e.g., background area (330) of FIG. 3 ) on screen 6 (1810). According to one embodiment, upon receiving a user input (1805), the electronic device may provide a selection screen for a plurality of frames and select a target frame (1813) based on a user input through the screen.
[0170] In screen 6 (1810), the electronic device can move a target object (1803) based on user input (e.g., an input of selecting and dragging a target object). The electronic device can determine the priority between the first frame (e.g., the first frame (521) of FIG. 5, the first frame (621) of FIG. 6, the first frame (721) of FIG. 7, the first frame (821) of FIG. 8, the first frame (1110) of FIG. 11, and the first frame (1210) of FIG. 12) and the second frame (e.g., the first frame (523) of FIG. 5, the second frame (623) of FIG. 6, the second frame (723) of FIG. 7, the second frame (823) of FIG. 8, the second frame (1120) of FIG. 11, and the second frame (1220) of FIG. 12)) and the target object (1803) based on the movement of the target object (1803). The description of the method for determining the priority will be omitted as it has been described above with reference to FIG. 11.
[0171] Screen 7 (1820) may be a screen that displays a background preview in which the priority is determined in the order of the second frame, the target object, the first frame, and the background area. In screen 7 (1820), a user input (1825) (e.g., a selection input for a complete button) may be received to set the background preview displayed in screen 7 (1820) as the background. For example, when the electronic device receives the user input (1825), the electronic device may set the background preview as the background for at least one of the screens selected in screen 4 (1730) of FIG. 7 (e.g., a lock screen, a home screen).
[0172] Screen 8 (1830) may be a home screen with a preview of the wallpaper included in screen (1820) set as the wallpaper.
[0173] Since the operations of the electronic device on each screen in FIGS. 17 and 18 are applied as described above through FIGS. 1 to 15, a more detailed description is omitted.
[0174]
[0175] FIG. 19 is a drawing for explaining the overlap between a second frame and a target object according to one embodiment of the present disclosure.
[0176] According to one embodiment, an overlapping area (e.g., an overlap area (930) of FIG. 9, an overlap area (1030) of FIG. 10, and an overlap area (1150) of FIG. 11) may be included in a second frame (1920) (e.g., a first frame (523) of FIG. 5, a second frame (623) of FIG. 6, a second frame (723) of FIG. 7, a second frame (823) of FIG. 8, a second frame (1120) of FIG. 11, and a second frame (1220) of FIG. 12).
[0177] In the case where the overlapping area as in Fig. 19 is included in the second frame (1920) rather than the first frame (1910) (e.g., the first frame (521) of Fig. 5, the first frame (621) of Fig. 6, the first frame (721) of Fig. 7, the first frame (821) of Fig. 8, the first frame (1110) of Fig. 11 and the first frame (1210) of Fig. 12), a target object (1940) having a top-to-bottom characteristic in the generated background image (1930) (e.g., the target object (320) of Fig. 3, the target object (1130) of Fig. 11, the target object (1230) of Fig. 12, the target object (1330) of Fig. 13, the target object (1410) of Fig. 14, the target object (1600) of Fig. 16 and the target object (1803) of Fig. 18)) (e.g., a waterfall, a roller coaster, etc.) The features can be maintained.
[0178] For example, referring to FIG. 19, a target image (1900) (e.g., target image (310) of FIG. 3) may include a target object (1640) (i.e., a waterfall). The target object (1940) extracted from the target image (1900) may overlap with the second frame (1920). That is, if the target object (1940) does not exceed the overlapping area, the priority of the target object (1940) may be higher than that of the second frame (1920), so that the target object (1940) may be displayed first.
[0179] However, as the target object (1940) moves and the target object (1940) exceeds the overlapping area included in the second frame (1920), the priority of the second frame (1920) becomes higher than the priority of the target object (1940), so that the priority of the second frame (1920) may be displayed before the target object (1940).
[0180] Even if the overlapping area is included in the second frame (1920), the matters described above through FIGS. 1 to 18 are still applied, so a more detailed description is omitted.
[0181]
[0182] An electronic device (e.g., electronic device (101) of FIG. 1) according to an embodiment of the present disclosure may include a memory (e.g., memory (130) of FIG. 1) that stores instructions. The electronic device may include a processor (e.g., processor (120) of FIG. 1) that executes the instructions. When executed by the processor, the instructions may cause the electronic device to extract a target object (e.g., target object (320) of FIG. 3, target object (1130) of FIG. 11, target object (1230) of FIG. 12, target object (1330) of FIG. 13, and target object (1410) of FIG. 14)) from an image (e.g., image (310) of FIG. 3). The instructions, when executed by the processor, cause the electronic device to display a target frame (e.g., a target frame (510) of FIG. 5, a target frame (610) of FIG. 6, a target frame (710) of FIG. 7, a target frame (810) of FIG. 8, a target frame (910) of FIG. 9, a target frame (1010) of FIG. 10, a target frame (1100) of FIG. 11, and a target frame (1400) of FIG. 14)) to be displayed together with a target object among a plurality of frames (e.g., a plurality of frames (400) of FIG. 4), a first frame (e.g., a first frame (521) of FIG. 5, a first frame (621) of FIG. 6, a first frame (721) of FIG. 7, a first frame (821) of FIG. 8, a first frame (1110) of FIG. 11, and a first frame (1210) of FIG. 12)) and a second frame (e.g., a first frame (523) of FIG. 5, The instructions may be divided into the second frame (623) of FIG. 6, the second frame (723) of FIG. 7, the second frame (823) of FIG. 8, the second frame (1120) of FIG. 11, and the second frame (1220) of FIG. 12. The instructions, when executed by the processor, may cause the electronic device to determine a priority among the target object, the first frame, and the second frame based on the location of the target object.The instructions, when executed by the processor, may cause the electronic device to display a background image generated by arranging the target object, the first frame, and the second frame in order of priority on a display module (e.g., the display module (160) of FIG. 1).
[0183] The instructions, when executed by the processor, may cause the electronic device to determine one or more reference pixels (e.g., the reference pixel (841) of FIG. 8 and the reference pixel (843) of FIG. 8) based on a shape of an object region included in a target frame (e.g., the object region (411) of FIG. 4, the object region (421) of FIG. 4, the object region (511) of FIG. 5, the object region (611) of FIG. 6, the object region (711) of FIG. 7, the object region (811) of FIG. 8, and the object region (1430) of FIG. 14). The instructions, when executed by the processor, may cause the electronic device to divide the target frame into a first frame and a second frame based on the one or more reference pixels.
[0184] The instructions, when executed by the processor, may cause the electronic device to divide the target frame into a first frame and a second frame using the leftmost pixel (e.g., the leftmost pixel (541) of FIG. 5 and the leftmost pixel (641) of FIG. 6) and / or the rightmost pixel (e.g., the rightmost pixel (543) of FIG. 5, the rightmost pixel (643) of FIG. 6 and the rightmost pixel (743) of FIG. 7) of the object area as one or more reference pixels.
[0185] The instructions, when executed by the processor, may cause the electronic device to divide the target frame into a first frame and a second frame using a top pixel (e.g., top pixel (545) of FIG. 5 and top pixel (745) of FIG. 7) and / or a bottom pixel (e.g., bottom pixel (547) of FIG. 5 and bottom pixel (547) and bottom pixel (747) of FIG. 6) of the object area as one or more reference pixels.
[0186] The first frame or the second frame may include an overlap area (e.g., overlap area (930) of FIG. 9, overlap area (1030) of FIG. 10, and overlap area (1150) of FIG. 11) that may overlap the target object depending on the location of the target object. The instructions, when executed by the processor, may cause the electronic device to determine a priority among the target object, the first frame, and the second frame based on whether a portion of the target object exists beyond the overlap area in a direction in which the overlap area exists (e.g., direction (1180) of FIG. 101).
[0187] The instructions, when executed by the processor, cause the electronic device to prioritize frames that do not include the overlap region, the target object, and the frame that includes the overlap region in that order, if no part of the target object exists beyond the overlap region in the direction in which the overlap region exists.
[0188] The instructions, when executed by the processor, may cause the electronic device to determine the priority of the target object as lower than that of the first frame and the second frame if a portion of the target object exists beyond the overlap area in a direction in which the overlap area exists.
[0189] The instructions, when executed by the processor, may cause the electronic device to change the priority of a target object based on transparency of a pixel included in a portion of the target object when the target object moves such that a portion of the target object overlaps a reference pixel, even if the priority of the target object is higher than the priority of a frame that includes the overlapping area.
[0190] An electronic device according to one embodiment of the present disclosure may include a memory that stores instructions. The electronic device may include a processor that executes the instructions. The instructions, when executed by the processor, may cause the electronic device to extract a target object from an image. The instructions, when executed by the processor, may cause the electronic device to divide a target frame to be displayed together with the target object among a plurality of frames into a first frame and a second frame based on the shape of an object area included in the target frame. The instructions, when executed by the processor, may cause the electronic device to display a background image generated by arranging the target object, the first frame, and the second frame on a display module.
[0191]
[0192] An operating method of an electronic device according to an embodiment of the present disclosure may include an operation of extracting a target object from an image. The operating method may include an operation of dividing a target frame to be displayed together with the target object from among a plurality of frames into a first frame and a second frame. The operating method may include an operation of determining a priority among the target object, the first frame, and the second frame based on a position of the target object. The operating method may include an operation of displaying a background image generated by arranging the target object, the first frame, and the second frame according to the priority on a display module.
[0193] The operation of dividing the target frame into a first frame and a second frame may include an operation of determining one or more reference pixels based on the shape of an object area included in the target frame. The operation of dividing the target frame into the first frame and the second frame may include an operation of dividing the target frame into the first frame and the second frame based on the one or more reference pixels.
[0194] The operation of dividing the target frame into a first frame and a second frame based on one or more reference pixels may divide the target frame into the first frame and the second frame using the leftmost pixel and / or the rightmost pixel of the object area as one or more reference pixels.
[0195] The operation of dividing the target frame into a first frame and a second frame based on one or more reference pixels may divide the target frame into the first frame and the second frame using the uppermost pixel and / or the lowermost pixel of the object area as one or more reference pixels.
[0196] The first frame or the second frame may include an overlapping area that overlaps with the target object, depending on the location of the target object. The operation of determining priority may determine the priority between the target object, the first frame, and the second frame based on whether a portion of the target object extends beyond the overlapping area in the direction in which the overlapping area exists.
[0197] The operation of determining the priority may determine the priority in the order of a frame not including the overlap area, a frame including the target object, and a frame including the overlap area, if a part of the target object does not exist beyond the overlap area in the direction in which the overlap area exists.
[0198] The operation of determining the priority may determine the priority of the target object to be lower than that of the first frame and the second frame if a part of the target object exists beyond the overlap area in the direction in which the overlap area exists.
[0199] The method of operation may further include an operation of changing the priority of the target object based on the transparency of a pixel included in a part of the target object when a part of the target object overlaps a reference pixel due to a positional movement of the target object, even if the priority of the target object is higher than the priority of the frame including the overlapping area.
[0200] A computer-readable recording medium according to one embodiment of the present disclosure can store one or more programs storing commands that can execute any one of the above-described operating methods.
[0201]
[0202] The embodiments of the present invention disclosed in this specification and drawings are merely specific examples presented to easily explain the technical contents according to the embodiments of the present invention and to help understand the embodiments of the present invention, and are not intended to limit the scope of the embodiments of the present invention. Therefore, the scope of the various embodiments of the present invention should be interpreted as including all changes or modified forms derived based on the technical ideas of the various embodiments of the present invention in addition to the embodiments disclosed herein.
Claims
1. In an electronic device (101), Memory (130) for storing commands; and Processor (120) executing the above commands Including, The above instructions, when executed by the processor (120), cause the electronic device (101) to: A target object (320, 1130, 1230, 1330, 1410) is extracted from an image (310), and a target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) to be displayed together with the target object (320, 1130, 1230, 1330, 1410) among a plurality of frames (400) is divided into a first frame (521, 621, 721, 821, 1110, 1210) and a second frame (523, 623, 723, 823, 1120, 1220), and based on the location of the target object (320, 1130, 1230, 1330, 1410) Determine the priority among the target object (320, 1130, 1230, 1330, 1410), the first frame (521, 621, 721, 821, 1110, 1210) and the second frame (523, 623, 723, 823, 1120, 1220), and arrange the target object (320, 1130, 1230, 1330, 1410), the first frame (521, 621, 721, 821, 1110, 1210) and the second frame (523, 623, 723, 823, 1120, 1220) according to the priority to display the generated background image on the display module (160). Electronic device (101).
2. In paragraph 1, The above instructions, when executed by the processor (120), cause the electronic device (101) to: One or more reference pixels (841, 843) are determined based on the shape of an object area (411, 421, 511, 611, 711, 811, 1430) included in the target frame (510, 610, 710, 810, 910, 1010, 1100, 1400), and based on the one or more reference pixels (841, 843), the target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) is divided into a first frame (521, 621, 721, 821, 1110, 1210) and a second frame (523, 623, 723, 823, 1120, 1220) to be divided into Electronic device (101).
3. In either of paragraphs 1 and 2, The above instructions, when executed by the processor (120), cause the electronic device (101) to: The target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) is divided into the first frame (521, 621, 721, 821, 1110, 1210) and the second frame (523, 623, 723, 823, 1120, 1220) using the leftmost pixel (541, 641) and / or the rightmost pixel (543, 643, 743) of the object area (411, 421, 511, 611, 711, 811, 1430) as one or more reference pixels. Electronic device (101).
4. In any one of paragraphs 1 to 3, The above instructions, when executed by the processor (120), cause the electronic device (101) to: The target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) is divided into the first frame (521, 621, 721, 821, 1110, 1210) and the second frame (523, 623, 723, 823, 1120, 1220) using the uppermost pixel (545, 745) and / or the lowermost pixel (547, 747) of the object area (411, 421, 511, 611, 711, 811, 1430) as one or more reference pixels. Electronic device (101).
5. In any one of paragraphs 1 to 4, The first frame (521, 621, 721, 821, 1110, 1210) or the second frame (523, 623, 723, 823, 1120, 1220) According to the position of the target object (320, 1130, 1230, 1330, 1410), an overlapping area (930, 1030, 1150) that can overlap with the target object (320, 1130, 1230, 1330, 1410) is included, The above instructions, when executed by the processor (120), cause the electronic device (101) to: Determine the priority between the target object (320, 1130, 1230, 1330, 1410), the first frame (521, 621, 721, 821, 1110, 1210) and the second frame (523, 623, 723, 823, 1120, 1220) based on whether a part of the target object (320, 1130, 1230, 1330, 1410) exists beyond the overlap area (930, 1030, 1150) in the direction (1180) in which the overlap area (930, 1030, 1150) exists. Electronic device (101).
6. In any one of paragraphs 1 to 5, The above instructions, when executed by the processor (120), cause the electronic device (101) to: If a part of the target object (320, 1130, 1230, 1330, 1410) does not exist beyond the overlap area (930, 1030, 1150) in the direction (1180) in which the overlap area (930, 1030, 1150) exists, the priority is determined in the order of a frame not including the overlap area (930, 1030, 1150), a frame including the target object (320, 1130, 1230, 1330, 1410) and the overlap area (930, 1030, 1150). Electronic device (101).
7. In any one of paragraphs 1 to 6, The above instructions, when executed by the processor (120), cause the electronic device (101) to: If a part of the target object (320, 1130, 1230, 1330, 1410) exists beyond the overlap area (930, 1030, 1150) in the direction (1180) in which the overlap area (930, 1030, 1150) exists, the priority of the target object (320, 1130, 1230, 1330, 1410) is determined to be lower than the first frame (521, 621, 721, 821, 1110, 1210) and the second frame (523, 623, 723, 823, 1120, 1220). Electronic device (101).
8. In any one of paragraphs 1 to 7, The above instructions, when executed by the processor (120), cause the electronic device (101) to: Even if the priority of the target object (320, 1130, 1230, 1330, 1410) is higher than the priority of the frame including the overlapping area (930, 1030, 1150), when a part of the target object (320, 1130, 1230, 1330, 1410) overlaps with the reference pixel due to the positional movement of the target object (320, 1130, 1230, 1330, 1410), the priority of the target object (320, 1130, 1230, 1330, 1410) is changed based on the transparency of the pixel included in a part of the target object (320, 1130, 1230, 1330, 1410). Electronic device (101).
9. In the electronic device (101), Memory (130) for storing commands; and Processor (120) executing the above commands Including, The above instructions, when executed by the processor (120), cause the electronic device (101) to: A target object (320, 1130, 1230, 1330, 1410) is extracted from an image (310), and a target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) to be displayed together with the target object (320, 1130, 1230, 1330, 1410) among a plurality of frames (400) is selected based on the shape of the object area (411, 421, 511, 611, 711, 811, 1430) included in the target frame (510, 610, 710, 810, 910, 1010, 1100, 1400). The background image is divided into a first frame (821, 1110, 1210) and a second frame (523, 623, 723, 823, 1120, 1220), and the target object (320, 1130, 1230, 1330, 1410), the first frame (521, 621, 721, 821, 1110, 1210), and the second frame (523, 623, 723, 823, 1120, 1220) is arranged to display the generated background image on the display module (160). Electronic device (101).
10. In the operating method of an electronic device (101), An operation of extracting a target object (320, 1130, 1230, 1330, 1410) from an image (310); An operation of dividing a target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) to be displayed together with the target object (320, 1130, 1230, 1330, 1410) among a plurality of frames (400) into a first frame (521, 621, 721, 821, 1110, 1210) and a second frame (523, 623, 723, 823, 1120, 1220); An operation of determining a priority between the target object (320, 1130, 1230, 1330, 1410), the first frame (521, 621, 721, 821, 1110, 1210) and the second frame (523, 623, 723, 823, 1120, 1220) based on the location of the target object (320, 1130, 1230, 1330, 1410); and An operation of displaying a background image generated by arranging the target object (320, 1130, 1230, 1330, 1410), the first frame (521, 621, 721, 821, 1110, 1210) and the second frame (523, 623, 723, 823, 1120, 1220) according to the priority on the display module (160). A method of operation, comprising:
11. In paragraph 10, The operation of dividing the above target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) into a first frame (521, 621, 721, 821, 1110, 1210) and a second frame (523, 623, 723, 823, 1120, 1220) is An operation of determining one or more reference pixels (841, 843) based on the shape of an object area (411, 421, 511, 611, 711, 811, 1430) included in the target frame (510, 610, 710, 810, 910, 1010, 1100, 1400); and An operation of dividing the target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) into a first frame (521, 621, 721, 821, 1110, 1210) and a second frame (523, 623, 723, 823, 1120, 1220) based on one or more of the reference pixels (841, 843). Electronic device (101).
12. In any one of paragraphs 10 and 11, An operation of dividing the target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) into a first frame (521, 621, 721, 821, 1110, 1210) and a second frame (523, 623, 723, 823, 1120, 1220) based on one or more of the reference pixels (841, 843) is, The target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) is divided into the first frame (521, 621, 721, 821, 1110, 1210) and the second frame (523, 623, 723, 823, 1120, 1220) using the leftmost pixel (541, 641) and / or the rightmost pixel (543, 643, 743) of the object area (411, 421, 511, 611, 711, 811, 1430) as one or more reference pixels. How it works.
13. In any one of paragraphs 10 to 12, An operation of dividing the target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) into a first frame (521, 621, 721, 821, 1110, 1210) and a second frame (523, 623, 723, 823, 1120, 1220) based on one or more of the reference pixels (841, 843) is, The target frame (510, 610, 710, 810, 910, 1010, 1100, 1400) is divided into the first frame (521, 621, 721, 821, 1110, 1210) and the second frame (523, 623, 723, 823, 1120, 1220) using the uppermost pixel (545, 745) and / or the lowermost pixel (547, 747) of the object area (411, 421, 511, 611, 711, 811, 1430) as one or more reference pixels. Electronic device (101).
14. In any one of paragraphs 10 to 13, The first frame (521, 621, 721, 821, 1110, 1210) or the second frame (523, 623, 723, 823, 1120, 1220) According to the position of the target object (320, 1130, 1230, 1330, 1410), an overlapping area (930, 1030, 1150) that can overlap with the target object (320, 1130, 1230, 1330, 1410) is included, The action that determines the above priority is: Determining the priority between the target object (320, 1130, 1230, 1330, 1410), the first frame (521, 621, 721, 821, 1110, 1210) and the second frame (523, 623, 723, 823, 1120, 1220) based on whether a part of the target object (320, 1130, 1230, 1330, 1410) exists beyond the overlap area (930, 1030, 1150) in the direction (1180) in which the overlap area (930, 1030, 1150) exists. How it works.
15. A computer-readable recording medium storing one or more programs including commands capable of executing the method of any one of claims 10 to 14.
Citation Information
Patent Citations
Air blower with damper
KR102328375B1
Object extraction method, and image sensing apparatus using the method
US20040066970A1
Method and apparatus for representing data using layered objects
US20050134607A1
Unlimited icon overlays
US20160092083A1
Data processing system including method and apparatus for performing graphics clipping operations
US6005574A