Electronic device and method for displaying an image at the electronic device
By setting a plurality of sub-regions in the electronic device and adjusting the display mode according to the distance threshold, the problem of difficulty in amplifying and displaying multiple subjects in the prior art is solved, and a higher magnification and a more free screen arrangement are achieved.
Patent Information
- Application Number
- CN202180012104.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-02-07
- Filing Date
- 2021-02-05
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2041-02-05
AI Technical Summary
When setting the zoom area, it is difficult for the conventional electronic device to enlarge and display a plurality of subjects at a specified scale, especially when there is a space between subjects.
By obtaining a first image including a plurality of subjects, a plurality of sub-regions are arranged, and a distance between the sub-regions is measured. When the distance between adjacent sub-regions is greater than or equal to the specified threshold distance, the portion between sub-regions is omitted and the sub-regions are reset and arranged to amplify each subject.
It is realized that space is removed between a plurality of subjects, so that each subject can be enlarged at a higher magnification and the enlarged subject can be freely arranged and displayed on the screen.
Smart Images

Figure CN115004685B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an electronic device and a technology for displaying an image in the electronic device. Background Art
[0002] An electronic device may use its camera to set a portion of an image as a zoom area. When instructions stored in a memory of the electronic device are executed, a processor of the electronic device may use a camera to set a zoom area around a specified object. For example, the processor may use a camera to capture multiple images and may obtain information associated with the movement of an object between the multiple images. The processor may set an object as a focused subject and may track the focused subject to obtain information associated with the movement. The processor may perform an automatic zoom that automatically enlarges the focused subject. When performing the automatic zoom, the zoom area may be generated to include the focused subject. The processor may use a convolutional neural network (CNN)-based object detection technique to track the focused subject.
[0003] At the same time, the electronic device can split and display images captured from multiple parties on one screen. For example, the electronic device can display multiple images obtained by capturing video frame by frame on one screen. For another example, the electronic device can send image data captured by multiple cameras to another electronic device. Upon receiving the image data, the other electronic device can display a screen in which multiple images are split based on the image data. Summary of the invention
[0004] Technical issues
[0005] When an existing electronic device sets a zoom area around a designated object and divides and displays images captured from multiple sides on one screen, multiple subjects can be set as focused subjects at one side or one end point. When the number of focused subjects is multiple, a space can be generated between the focused subjects.
[0006] When there is a space between the focused subjects, the existing electronic device may set the zoom area to include all the focused subjects. When the zoom area is set to include all the focused subjects, it may not be easy to enlarge and display each subject at a specified ratio.
[0007] An aspect of the present disclosure is to provide an electronic device for improving performance of zooming in on each of a plurality of subjects when the plurality of subjects are focused, and a method for displaying an image in the electronic device.
[0008] Solution to the problem
[0009] According to aspects of the present disclosure, a method for displaying an image in an electronic device is provided. The method includes: obtaining a first image including a plurality of subjects; setting a plurality of sub-regions including the plurality of subjects respectively; obtaining the distance between the plurality of sub-regions; when the distance between a first region and a second region adjacent to each other among the plurality of sub-regions is greater than or equal to a specified threshold distance, omitting at least a portion of a third region set between the first region and the second region from the first image; and displaying a second image obtained by resetting the size of each of the plurality of sub-regions and rearranging each of the plurality of sub-regions.
[0010] According to another aspect of the present disclosure, an electronic device is provided. The electronic device includes: a lens assembly configured to capture an external environment; an image sensor configured to convert the captured external environment into image data; a display device configured to display an image generated based on the image data; a processor operably connected to the lens assembly, the image sensor and the display device; and a memory operably connected to the processor. The memory may store instructions that, when executed, cause the processor to: obtain a first image including a plurality of subjects; set a plurality of sub-regions that respectively include the plurality of subjects; obtain the distance between the plurality of sub-regions; when the distance between the first region and the second region adjacent to each other among the plurality of sub-regions is greater than or equal to a specified threshold distance, omit at least a portion of a third region set between the first region and the second region from the first image; and display a second image obtained by resetting the size of each of the plurality of sub-regions and rearranging each of the plurality of sub-regions.
[0011] According to another aspect of the present disclosure, a method for displaying an image in an electronic device is provided. The method includes: obtaining a first image including multiple subjects; setting multiple sub-areas respectively including multiple subjects; obtaining the distance between the multiple sub-areas; when the distance between the first area and the second area adjacent to each other among the multiple sub-areas is greater than or equal to a specified threshold distance, displaying a second image generated based on the first area and the second area; when the distance between the first area and the second area is less than the threshold distance when the second image is displayed, displaying a timer counting a specified waiting time together with the second image; and when the waiting time counted by the timer has passed, returning to the first image.
[0012] Advantageous Effects of the Invention
[0013] According to the embodiments disclosed in the present disclosure, when the interval between multiple subjects is greater than or equal to a specified distance, the electronic device can remove the space between the multiple subjects, can magnify each subject at a higher magnification, and can display the magnified subject on the screen.
[0014] In addition, according to an embodiment disclosed in the present disclosure, when the interval between multiple subjects is greater than or equal to a specified distance, the electronic device can set multiple sub-areas to respectively include multiple subjects and can rearrange the multiple sub-areas to more freely arrange each subject on the screen.
[0015] Furthermore, various effects directly or indirectly determined by the present disclosure can be provided. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a block diagram illustrating an electronic device in a network environment according to an embodiment of the present disclosure;
[0017] Figure 2 is a block diagram illustrating a camera module according to an embodiment of the present disclosure;
[0018] Figure 3a is a block diagram illustrating an electronic device according to an embodiment of the present disclosure;
[0019] Figure 3b is a flowchart illustrating a method for displaying an image in an electronic device according to an embodiment of the present disclosure;
[0020] Figure 4 is a diagram showing a plurality of focused subjects captured by a camera of an electronic device according to an embodiment of the present disclosure;
[0021] Figure 5 is a diagram illustrating a case where a distance interval between at least one adjacent subject among a plurality of focus objects captured by a camera of an electronic device and other subjects is greater than or equal to a threshold distance according to an embodiment;
[0022] Figure 6 is a diagram illustrating a method for setting a plurality of sub-regions to a plurality of focus subjects captured by a camera of an electronic device according to an embodiment of the present disclosure;
[0023] Figure 7 is a diagram illustrating rearranging and displaying a plurality of sub-region settings according to an embodiment of the present disclosure;
[0024] Figure 8 is a diagram illustrating a method for setting a boundary area of each of a plurality of objects according to an embodiment of the present disclosure;
[0025] Fig. 9is a diagram illustrating a method for setting a human area according to an embodiment of the present disclosure;
[0026] Fig.10 is a diagram illustrating a method for setting a person width according to an embodiment of the present disclosure;
[0027] Fig.11 is a flowchart illustrating a method for displaying an image in an electronic device according to an embodiment of the present disclosure;
[0028] Fig.12 is a flowchart illustrating a method for displaying an image in an electronic device according to an embodiment of the present disclosure; and
[0029] Fig.13 is a diagram illustrating a second image and a timer according to an embodiment.
[0030] Throughout the drawings, it should be noted that like reference numbers are used to depict the same or similar elements, features, and structures. DETAILED DESCRIPTION
[0031] The following description is provided with reference to the accompanying drawings to assist in a comprehensive understanding of the various embodiments of the present disclosure as defined by the claims and their equivalents. It includes various specific details that aid in understanding, but these are considered to be exemplary only. Therefore, it will be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the various embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, for the sake of clarity and brevity, descriptions of well-known functions and configurations may be omitted.
[0032] The terms and words used in the following description and claims are not limited to the bibliographical meanings, but are merely used by the inventor to enable a clear and consistent understanding of the present disclosure. Therefore, it should be apparent to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustrative purposes only and is not intended to limit the present disclosure as defined by the appended claims and their equivalents.
[0033] It will be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to "a component surface" includes reference to one or more of such surfaces.
[0034] Figure 1 is a block diagram illustrating an electronic device 101 in a network environment according to an embodiment of the present disclosure.
[0035] refer to Figure 1, the electronic device 101 in the network environment 100 may communicate with the electronic device 102 via the first network 198 (e.g., a short-range wireless communication network), or communicate with the electronic device 104 or the server 108 via the second network 199 (e.g., a long-range wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 via the server 108. According to an embodiment, the electronic device 101 may include a processor 120, a memory 130, an input device 150, a sound output device 155, a display device 160, an audio module 170, a sensor module 176, an interface 177, a haptic module 179, a camera module 180, a power management module 188, a battery 189, a communication module 190, a user identification module (SIM) 196, or an antenna module 197. In some embodiments, at least one of the components (e.g., the display device 160 or the camera module 180) may be omitted from the electronic device 101, or one or more other components may be added to the electronic device 101. In some embodiments, some of the components may be implemented as a single integrated circuit.For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illumination sensor) may be implemented to be embedded in the display device 160 (eg, a display).
[0036] The processor 120 may run, for example, software (e.g., program 140) to control at least one other component (e.g., hardware component or software component) of the electronic device 101 connected to the processor 120, and may perform various data processing or calculations. According to one embodiment, as at least part of the data processing or calculation, the processor 120 may load a command or data received from another component (e.g., sensor module 176 or communication module 190) into the volatile memory 132, process the command or data stored in the volatile memory 132, and store the resulting data in the non-volatile memory 134. According to an embodiment, the processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)), and an auxiliary processor 123 (e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor center processor, or a communication processor (CP)), which may operate independently or in combination with the main processor 121. Additionally or alternatively, the auxiliary processor 123 may be adapted to consume less power than the main processor 121, or be dedicated to a designated function. The auxiliary processor 123 may be implemented separately from the main processor 121 or as part of the main processor.
[0037] When the main processor 121 is in an inactive (e.g., sleep) state, the auxiliary processor 123 (rather than the main processor 121) may control at least some of the functions or states related to at least one component (e.g., the display device 160, the sensor module 176, or the communication module 190) among the components of the electronic device 101, or when the main processor 121 is in an active state (e.g., running an application), the auxiliary processor 123 may control at least some of the functions or states related to at least one component (e.g., the display device 160, the sensor module 176, or the communication module 190) together with the main processor 121. According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., the camera module 180 or the communication module 190) that is functionally related to the auxiliary processor 123.
[0038] The memory 130 may store various data used by at least one component of the electronic device 101 (e.g., the processor 120 or the sensor module 176). The various data may include, for example, software (e.g., the program 140) and input data or output data for commands related thereto. The memory 130 may include a volatile memory 132 or a nonvolatile memory 134.
[0039] The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system (OS) 142 , middleware 144 , or an application program 146 .
[0040] The input device 150 may receive commands or data from outside the electronic device 101 (e.g., a user) to be used by other components of the electronic device 101 (e.g., the processor 120). The input device 150 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (e.g., a stylus).
[0041] The sound output device 155 can output a sound signal to the outside of the electronic device 101. The sound output device 155 may include, for example, a speaker or a receiver. The speaker may be used for general purposes, such as playing multimedia or playing a recording, and the receiver may be used for incoming calls. Depending on the embodiment, the receiver may be implemented as being separated from the speaker, or as part of the speaker.
[0042] The display device 160 may visually provide information to the outside of the electronic device 101 (e.g., a user). The display device 160 may include, for example, a display, a holographic device, or a projector, and a control circuit for controlling a corresponding one of the display, the holographic device, and the projector. According to an embodiment, the display device 160 may include a touch circuit adapted to detect a touch, or a sensor circuit (e.g., a pressure sensor) adapted to measure the strength of the force caused by the touch.
[0043] The audio module 170 may convert sound into an electrical signal and vice versa. According to an embodiment, the audio module 170 may obtain sound via the input device 150 or output sound via the sound output device 155 or an earphone of an external electronic device (e.g., electronic device 102) directly (e.g., wired) or wirelessly connected to the electronic device 101.
[0044] The sensor module 176 may detect an operating state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a state of a user) outside the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illumination sensor.
[0045] The interface 177 may support one or more specific protocols to be used to connect the electronic device 101 directly (e.g., wired) or wirelessly to an external electronic device (e.g., the electronic device 102). According to an embodiment, the interface 177 may include, for example, a high-definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.
[0046] The connection terminal 178 may include a connector, wherein the electronic device 101 can be physically connected to an external electronic device (e.g., the electronic device 102) via the connector. According to an 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).
[0047] The haptic module 179 may convert the electrical signal into mechanical stimulation (eg, vibration or motion) or electrical stimulation that can be recognized by the user via his sense of touch or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulator.
[0048] The camera module 180 may capture still images or moving images. According to embodiments, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
[0049] The power management module 188 may manage power supply to the electronic device 101. According to one embodiment, the power management module 188 may be implemented as, for example, at least a portion of a power management integrated circuit (PMIC).
[0050] The battery 189 may power at least one component of the electronic device 101. According to an embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0051] The communication module 190 may support establishing 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 perform communication via the established communication channel. The communication module 190 may include one or more communication processors capable of operating independently from the processor 120 (e.g., an application processor (AP)) and supporting direct (e.g., wired) communication or wireless communication. According to an 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 (PLC) module). A corresponding one of these communication modules can communicate with an external electronic device via a first network 198 (e.g., a short-range communication network such as Bluetooth, Wireless Fidelity (Wi-Fi) Direct, or Infrared Data Association (IrDA)) or a second network 199 (e.g., a long-range communication network such as a cellular network, the Internet, or a computer network (e.g., a LAN or a wide area network WAN)). These various types of communication modules can be implemented as a single component (e.g., a single chip), or can be implemented as multiple components (e.g., multiple chips) separated from each other. The wireless communication module 192 can use the subscriber information (e.g., International Mobile Subscriber Identity (IMSI)) stored in the subscriber identification module 196 to identify and authenticate the electronic device 101 in the communication network (such as the first network 198 or the second network 199).
[0052] The antenna module 197 may transmit a signal or power to the outside of the electronic device 101 (e.g., an external electronic device) or receive a signal or power from the outside of the electronic device 101 (e.g., an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a radiation element composed of a conductive material or a conductive pattern formed in or on a substrate (e.g., a printed circuit board (PCB)). According to an embodiment, the antenna module 197 may include a plurality of antennas. In this case, at least one antenna suitable for a communication scheme used in a communication network (such as the first network 198 or the second network 199) may be selected from the plurality of antennas by the communication module 190 (e.g., the wireless communication module 192), for example. Then, via the selected at least one antenna, a signal or power is transmitted or received between the communication module 190 and the external electronic device. According to an embodiment, another component other than the radiation element (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module 197.
[0053] At least some of the above components may be connected to each other via an inter-peripheral communication scheme (e.g., a bus, general purpose input output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and communicatively transmit signals (e.g., commands or data) therebetween.
[0054] According to an embodiment, a command or data may be sent or received between the electronic device 101 and the external electronic device 104 via a server 108 connected to the second network 199. Each of the electronic devices 102 and 104 may be a device of the same type or a different type as the electronic device 101. According to an embodiment, all or some of the operations to be performed at the electronic device 101 may be performed at one or more of the external electronic devices 102, 104, or 108. For example, if the electronic device 101 should automatically perform a function or service, or in response to a request from a user or another device, the electronic device 101 may request one or more external electronic devices to perform at least a portion of the function or service instead of or in addition to performing the function or service. The one or more external electronic devices that receive the request may perform at least a portion of the requested function or service, or an additional function or additional service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may provide the result as at least a part of the response to the request with or without further processing of the result. To this end, cloud computing, distributed computing, or client-server computing technology may be used, for example.
[0055] Figure 2 is a block diagram illustrating a camera module according to an embodiment of the present disclosure.
[0056] refer to Figure 2In the camera 200, the camera module 180 may include a lens assembly 210, a flash 220, an image sensor 230, an image stabilizer 240, a memory 250 (e.g., a buffer memory), or an image signal processor 260. The lens assembly 210 may collect light emitted or reflected from an object whose image is to be captured. The lens assembly 210 may include one or more lenses. According to an embodiment, the camera module 180 may include a plurality of lens assemblies 210. In this case, the camera module 180 may form, for example, a dual camera, a 360-degree camera, or a spherical camera. Some of the plurality of lens assemblies 210 may have the same lens properties (e.g., viewing angle, focal length, autofocus, f-value, or optical zoom), or at least one lens assembly may have one or more lens properties different from those of another lens assembly. The lens assembly 210 may include, for example, a wide-angle lens or a telephoto lens.
[0057] The flashlight 220 may emit light for enhancing light reflected from an object. According to an embodiment, the flashlight 220 may include one or more light emitting diodes (LEDs) (e.g., red-green-blue (RGB) LEDs, white light LEDs, infrared (IR) LEDs, or ultraviolet (UV) LEDs) LEDs) or xenon lamps. The image sensor 230 may obtain an image corresponding to an object by converting light emitted or reflected from an object and sent via the lens assembly 210 into an electrical signal. According to an embodiment, the image sensor 230 may include one selected from image sensors with different properties (such as an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor), a plurality of image sensors with the same properties, or a plurality of image sensors with different properties. Each image sensor included in the image sensor 230 may be implemented using, for example, a charge coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.
[0058] The image stabilizer 240 may move the image sensor 230 or at least one lens included in the lens assembly 210 in a specific direction, or control the operating properties of the image sensor 230 (e.g., adjust the readout timing) in response to the movement of the camera module 180 or the electronic device 101 including the camera module 180. This allows at least a portion of the negative effect (e.g., image blur) to be compensated by the movement of the image being captured. According to an embodiment, the image stabilizer 240 may sense such movement of the camera module 180 or the electronic device 101 using a gyro sensor (not shown) or an acceleration sensor (not shown) provided inside or outside the camera module 180. According to an embodiment, the image stabilizer 240 may be implemented as an optical image stabilizer, for example.
[0059] The memory 250 may at least temporarily store at least a portion of an image obtained via the image sensor 230 for subsequent image processing tasks. For example, if image capture is delayed due to shutter lag or multiple images are captured quickly, the obtained original image (e.g., Bayer pattern image, high-resolution image) may be stored in the memory 250, and its corresponding copy image (e.g., low-resolution image) may be previewed via the display device 160. Thereafter, if a specified condition is met (e.g., by a user's input or a system command), at least a portion of the original image stored in the memory 250 may be obtained and processed, for example, by the image signal processor 260. According to an embodiment, the memory 250 may be configured as at least a portion of the memory 130 or as a separate memory that operates independently of the memory 130.
[0060] The image signal processor 260 may perform one or more image processing on an image obtained via the image sensor 230 or an image stored in the memory 250. The one or more image processing may include, for example, depth map generation, three-dimensional (3D) modeling, panorama generation, feature point extraction, image synthesis, or image compensation (e.g., noise reduction, resolution adjustment, brightness adjustment, blurring, sharpening, or softening). Additionally or alternatively, the image signal processor 260 may perform control (e.g., exposure time control or readout timing control) on at least one of the components included in the camera module 180 (e.g., image sensor 230). The image processed by the image signal processor 260 may be stored back in the memory 250 for further processing, or may be provided to an external component located outside the camera module 180 (e.g., memory 130, display device 160, electronic device 102, electronic device 104, or server 108). According to an embodiment, the image signal processor 260 may be configured as at least a part of the processor 120, or may be configured as a separate processor that operates independently of the processor 120. If the image signal processor 260 is configured as a separate processor from the processor 120 , at least one image processed by the image signal processor 260 is displayed by the processor 120 via the display device 160 as it is or after further processing.
[0061] According to an embodiment, the electronic device 101 may include a plurality of camera modules 180 having different properties or functions. In this case, at least one of the plurality of camera modules 180 may form, for example, a wide-angle camera, and at least another of the plurality of camera modules 180 may form a telephoto camera. Similarly, at least one of the plurality of camera modules 180 may form, for example, a front camera, and at least another of the plurality of camera modules 180 may form a rear camera.
[0062] Figure 3a is a block diagram illustrating an electronic device according to an embodiment of the present disclosure.
[0063] refer to Figure 3a In system 300 , electronic device 101 may include processor 120 , memory 130 , display device 160 , communication circuit 195 , lens assembly 210 and / or image sensor 230 .
[0064] In one embodiment, processor 120 may control the operation of memory 130, display device 160, communication circuit 195, lens assembly 210, and / or image sensor 230. Processor 120 may execute instructions 310 stored in memory 130. Processor 120 may control communication circuit 195 to send and receive radio frequency (RF) signals.
[0065] In one embodiment, memory 130 may store instructions 310. Instructions 310 may set up the operation of display 160, lens assembly 210, and image sensor 230. Instructions 310 may include object detection instructions 311, object tracking instructions 312, zoom control instructions 313, and image reconstruction instructions 314.
[0066] In one embodiment, the display 160 may display an image. The display device 160 may include a user interface 161. The user interface 161 may include a touch interface for receiving a user's touch input and a graphic user interface for visually guiding the user through the state of the electronic device 101.
[0067] In one embodiment, the communication circuit 195 may be a Figure 1 The communication module 190 and the wireless communication module 192 are substantially the same components.
[0068] In one embodiment, lens assembly 210 may capture an external environment. Lens assembly 210 may capture at least one or more persons. Lens assembly 210 may obtain a visual image of the external environment. Lens assembly 210 may obtain light incident from the external environment.
[0069] In one embodiment, the image sensor 230 may convert the external environment into image data based on the obtained light. The image sensor 230 may display the image data as an image on the display device 160.
[0070] In one embodiment, image sensor 230 may detect an object from the image data based on object detection instructions 311. Image sensor 230 may detect a person from the image data based on object detection instructions 311. Image sensor 230 may detect multiple objects from the image data simultaneously based on object detection instructions 311.
[0071] In one embodiment, lens assembly 210 may track an object from the image data based on object tracking instructions 312. Lens assembly 210 may track a moving object from the image data based on object tracking instructions 312. Lens assembly 210 may track a person from the image data based on object tracking instructions 312. Lens assembly 210 may select and track an object of particular interest to the user from the image data based on object tracking instructions 312. Lens assembly 210 may set the object to be tracked as a focus subject.
[0072] In one embodiment, the lens assembly 210 may magnify the captured visual image of the external environment based on the zoom control instruction 313. The lens assembly 210 may magnify at least a portion of the captured visual image of the external environment based on the zoom control instruction 313. The lens assembly 210 may set the area to be magnified in the captured visual image of the external environment as a zoom area based on the zoom control instruction 313. The lens assembly 210 may set at least one or more zoom areas based on the zoom control instruction 313. The lens assembly 210 may control the magnification of the zoom area based on the zoom control instruction 313.
[0073] In one embodiment, the processor 120 may set the zoom area to include the object to be magnified and displayed based on the zoom control instruction 313. The processor 120 may control the lens assembly 210 to magnify the object that the user is very interested in from the image data based on the zoom control instruction 313. The lens assembly 210 may magnify the person in the image data based on the zoom control instruction 313. The processor 120 may set the object to be magnified as the focused subject. The lens assembly 210 may magnify the focused subject under the control of the processor 120.
[0074] In one embodiment, the processor 120 may reconstruct an image based on the image reconstruction instructions 314. The processor 120 may display the reconstructed image on the display device 160. The processor 120 may display, on the display 160, an image obtained by zooming in on a zoom area based on the image reconstruction instructions 314. The processor 120 may display, on the display 160, an image obtained by zooming in on a person based on the image reconstruction instructions 314. The processor 120 may display, on the display 160, an image obtained by rearranging the zoom area based on the image reconstruction instructions 314. The processor 120 may display, on the display 160, an image obtained by emphasizing the zoom area based on the image reconstruction instructions 314. The processor 120 may display, on the display 160, an image moving along an object moving on the zoom area based on the image reconstruction instructions 314.
[0075] Figure 3b FIG. 1 shows a method for using an electronic device (eg, Figure 3aFlow chart of a method for displaying an image in an electronic device 101).
[0076] refer to Figure 3b In method 350, in operation 351, the processor (eg, Figure 3a The processor 120 of the embodiment may obtain a first image including a plurality of subjects. The first image may be obtained by using a camera (e.g., Figure 2 For example, the first image may be an image captured by a lens assembly (e.g., Figure 3a The plurality of subjects may be targets focused on the first image. For example, the plurality of subjects may be people included in the captured first image.
[0077] In operation 353, the processor 120 of the electronic device 101 may set a plurality of sub-areas including a plurality of subjects respectively. The processor 120 may set each of the plurality of sub-areas to include at least one of the plurality of subjects. For example, the processor 120 may set a rectangular sub-area to surround each person included in the first image.
[0078] In operation 355, the processor 120 of the electronic device 101 according to an embodiment may obtain the distances between the plurality of sub-regions. The processor 120 may measure the distances between the plurality of sub-regions on a pixel-by-pixel basis on the display device (eg, Figure 3a The processor 120 may measure the distance between any two sub-regions in the plurality of sub-regions on a pixel-by-pixel basis. For example, the processor 120 may measure a length of 50 pixel units in the horizontal direction for a first region among the plurality of sub-regions, a length of 30 pixel units in the horizontal direction for a second region among the plurality of sub-regions, and the distance between the first region and the second region may be changed from 20 pixel units to 60 pixel units in the horizontal direction.
[0079] In operation 357, the processor 120 of the electronic device 101 according to the embodiment may identify whether the distance between the first area and the second area adjacent to each other among the multiple sub-areas is greater than or equal to the specified threshold distance. It may not be possible to set another sub-area between the first area and the second area, and the background of the first image may be filled between the first area and the second area. The threshold distance may be pre-set according to the size of the first area and the second area and the specified magnification condition. For example, when the threshold distance is set to 1.5 times the length in the horizontal direction of the area with a shorter length in the horizontal direction between the first area and the second area, when the first area has a length of 50 pixel units in the horizontal direction, and when the second area has a length of 30 pixel units in the horizontal direction, the threshold distance may be a length of 45 pixel units. When the distance between the first area and the second area adjacent to each other among the multiple areas is less than the threshold distance (no in operation 357), the processor 120 may proceed to operation 359. When the distance between the first area and the second area adjacent to each other among the multiple areas is greater than or equal to the threshold distance (yes in operation 357), the processor 120 may proceed to operation 361.
[0080] At operation 359, the processor 120 of the electronic device 101 according to the embodiment may display the first screen. When the distance between the first area and the second area is less than the threshold distance, the processor 120 may determine that there is no need to omit the background between the first area and the second area. The display device 160 may display the first image without change.
[0081] In operation 361, the processor 120 of the electronic device 101 according to the embodiment may omit at least a portion of a third region disposed between the first region and the second region from the first image. The third region may be a region displaying a background between the first region and the second region. When the distance between the first region and the second region is greater than or equal to a threshold distance, the processor 120 may determine to omit at least a portion of the third region to further emphasize the first region and the second region.
[0082] In operation 363, the processor 120 of the electronic device 101 according to the embodiment may display a second image obtained by resetting the size of each of the multiple sub-regions and rearranging each of the multiple sub-regions. The processor 120 may reset the size of each of the multiple sub-regions to fill the remaining area after omitting at least a portion of the third area. For example, the processor 120 may enlarge the first area and / or the second area. The processor 120 may rearrange the enlarged first area and / or the enlarged second area to correspond to the screen composition to generate the second image. The display device 160 may display the second image in which the first area and the second area are more emphasized.
[0083] Figure 4 is a diagram showing a method of performing a process ... Figure 3a The electronic device 101) has a camera (eg, Figure 2 A diagram of multiple focused subjects captured by camera module 180).
[0084] refer to Figure 4 , processor (e.g., Figure 3a The processor 120 of the embodiment may set the plurality of subjects 410, 420, and 430 as people in the image data 400, respectively. The processor 120 may obtain a first image captured by the camera module 180 and may display the obtained first image on a display device (e.g., Figure 1 on a display device 160).
[0085] In one embodiment, the first image may be a screen, video, and / or preview screen captured by one camera (e.g., camera module 180). The processor 120 may obtain a first image including multiple subjects 410, 420, and 430 using one camera (e.g., camera module 180) instead of using several cameras (e.g., camera modules).
[0086] In one embodiment, the plurality of focused subjects 410, 420, and 430 may include a first subject 410, a second subject 420, and a third subject 430. The first subject 410, the second subject 420, and the third subject 430 may be people. A first image including the first subject 410, the second subject 420, and the third subject 430 may be displayed on a display device (e.g., Figure 3a on a display device 160).
[0087] In one embodiment, the processor 120 may set a plurality of sub-regions in the first image that respectively include a plurality of subjects in the first image. The processor 120 may set each of the plurality of sub-regions to include at least one of the first subject 410, the second subject 420, and the third subject 430. The processor 120 may set each sub-region to include at least one of the first subject 410, the second subject 420, and the third subject 430. For example, the processor 120 may set a virtual rectangular region including the first subject 410, a virtual rectangular region including the second subject 420, and a virtual rectangular region including the third subject 430 as sub-regions.
[0088] refer to Figure 4, showing that the boundary of each of the plurality of sub-regions is not displayed. However, various embodiments are not limited thereto. The processor 120 may display the boundary of each of the plurality of sub-regions on the display device 160, the sub-regions being a virtual rectangular region including the first subject 410, a virtual rectangular region including the second subject 420, and a virtual rectangular region including the third subject 430.
[0089] Figure 5 is a diagram showing a method of performing a process ... Figure 3a The electronic device 101) has a camera (eg, Figure 2 A diagram showing a case where a distance interval between at least one adjacent subject among a plurality of focused subjects captured by a camera module 180) and other subjects is greater than or equal to a threshold distance.
[0090] refer to Figure 5 , in the image data 400, at least one (430) of the plurality of focused subjects 410, 420, and 430 may move away from the other subjects 410 and 420. The third subject 430 may move away from the first subject 410 and the second subject 420. For example, the third subject 430 may be the rightmost captured person. The first subject 410 and the second subject 420 may be other captured persons.
[0091] In one embodiment, the distance between the third subject 430 and the first subject 410 and the second subject 420 may be less than or equal to the threshold distance (α). When the third subject 430 is not far from the first subject 410 and the second subject 420, it may be less than the threshold distance. When the distance between the third subject 430 and the first subject 410 and the second subject 420 is less than or equal to the threshold distance, the third subject 430 may be included in one sub-area.
[0092] In one embodiment, the distance between the third subject 430 and the first subject 410 and the second subject 420 may be greater than or equal to a threshold distance. The third subject 430 may move more than the threshold distance away from the first subject 410 and the second subject 420 in the first direction D1. For example, the rightmost captured person as the third subject 430 may move more than the threshold distance away from the other captured persons as the first subject 410 and the second subject 420 in the first direction D1. When the distance between the third subject 430 and the first subject 410 and the second subject 420 is greater than or equal to the threshold distance, a space may be generated between the third subject 430 and the first subject 410 and the second subject 420.
[0093] When the distance between the third subject 430 and the first subject 410 and the second subject 420 is greater than or equal to the threshold distance, it may not be easy to enlarge the first subject 410, the second subject 420, and the third subject 430 beyond a certain ratio due to the space between the third subject 430 and the first subject 410 and the second subject 420. Therefore, the captured persons corresponding to the first subject 410, the second subject 420, and the third subject 430 may be represented as being smaller overall. In addition, unnecessary space may be generated in the first image. In addition, since it is not easy to display the first image on a display device (e.g., Figure 3a The enlarged first subject 410, the enlarged second subject 420 and the enlarged third subject 430 are rearranged on the display device 160), so the first subject 410, the second subject 420 and the third subject 430 can be displayed in a form limited by a specific composition on the display device 160.
[0094] In one embodiment, a processor (e.g., Figure 3a The processor 120 may measure the distances between the multiple objects. The processor 120 may measure the distances between the multiple sub-areas in units of pixels of the display device 160.
[0095] In one embodiment, the processor 120 may obtain the length of the outer boundary of each of the first subject 410, the second subject 420, and the third subject 430 and / or may obtain the distance between the outer boundaries adjacent to each other. The processor 120 may obtain the length of the outer boundary of each of the first subject 410, the second subject 420, and the third subject 430 in the first direction D1 and / or may obtain the distance between the outer boundaries adjacent to each other in the first direction D1 in a specified period. For example, the processor 120 may detect that the length of the outer boundary of the first subject 410 in the first direction D1 is 50 unit pixels, the length of the outer boundary of the second subject 420 in the first direction D1 is 40 unit pixels, and the length of the outer boundary of the third subject 430 in the first direction D1 is 30 unit pixels.
[0096] In one embodiment, the processor 120 may detect that the outer boundary of the sub-region surrounding the third subject 430 moves away from the outer boundary of the sub-region surrounding the first subject 410 and the second subject 420 by more than a threshold distance. The threshold distance may be pre-set according to the size of each of the plurality of sub-regions and the specified magnification condition. For example, when the threshold distance is set to 1.5 times the length in the horizontal direction of the region with a shorter length in the horizontal direction among the plurality of sub-regions, because the length of the outer boundary of the third subject 430 in the first direction D1 has 30 unit pixels (which is the shortest distance), the processor 120 may set the threshold distance to a length of 45 pixel units.
[0097] Figure 6 The present invention is a diagram showing a method for setting a device (eg, Figure 3a The electronic device 101) has a camera (eg, Figure 2 Schematic diagram of a method of capturing multiple sub-areas 610 and 620 of multiple focused subjects 410, 420 and 430 using a camera module 180.
[0098] refer to Figure 6 In one embodiment, a processor (e.g., Figure 3a The processor 120 of the embodiment may set the plurality of sub-regions 610 and 620 in the image data 600 to include the first subject 410, the second subject 420, and the third subject 430, respectively. The processor 120 may determine the first subject 410 and the second subject 420 that are close to or attached at a distance less than or equal to a threshold as one subject. The processor 120 may include the first subject 410 and the second subject 420 that are close to or attached at a distance less than or equal to a threshold in one sub-region. For example, the processor 120 may set the first sub-region to include the first subject 410 and the second subject 420, and may set the second sub-region 620 to include the third subject 430. The processor 120 may set a virtual rectangle including the first subject 410 and the second subject 420 as the first sub-region 610. The processor 120 may set a virtual rectangle including the third subject 430 as the second sub-region 620.
[0099] In one embodiment, the processor 120 may detect that at least one subject 430 moves away from the other subjects 410 and 420 by more than a threshold distance. For example, the processor 120 may detect that at least one subject 430 moves away from the adjacent subject 420 by more than a threshold distance. For example, the processor 120 may detect that the outer boundary of the second sub-region 620 surrounding the third subject 430 moves away from the outer boundary of the first sub-region 610 surrounding the first subject 410 and the second subject 420 by more than a threshold distance. In this case, the processor 120 may determine that the third subject 430 moves away from the first subject 410 and the second subject 420 by more than a threshold distance. When the third subject 430 moves away from the first subject 410 and the second subject 420 by more than a threshold distance, the processor 120 may reconstruct the first image to more clearly represent the first subject 410, the second subject 420, and the third subject 430.
[0100] In one embodiment, the processor 120 may set the plurality of sub-regions 610 and 620 so that the plurality of sub-regions 610 and 620 do not overlap with each other. The processor 120 may set the first sub-region 610 and the second sub-region 620 so that the first sub-region 610 and the second sub-region 620 do not overlap with each other.
[0101] In one embodiment, the processor 120 may obtain the distance between the plurality of sub-areas 610 and 620. When the third subject 430 moves away from the first subject 410 and the second subject 420 by more than a threshold distance, the processor 120 may prepare a trigger operation for reconstructing the first image.
[0102] In one embodiment, an image sensor (e.g., Figure 3a The image sensor 230 may obtain image data including the first sub-region 610, the second sub-region 620, and the space 630 between the first sub-region 610 and the second sub-region 620. The image sensor 230 may determine the space 630 between the first sub-region 610 and the second sub-region 620 as the third region 630.
[0103] Figure 7 is a diagram illustrating rearranging and displaying a plurality of sub-region settings according to an embodiment of the present disclosure.
[0104] refer to Figure 7 In one embodiment, a processor (e.g., Figure 3a The processor 120 may be configured to reconstruct the image based on the image reconstruction instruction (e.g., Figure 3a The processor 120 may resize each of the plurality of sub-regions 710 and 720 in the image data 700 based on the image reconstruction instruction 314. For example, the processor 120 may enlarge each of the plurality of sub-regions 710 and 720. The processor 120 may rearrange the plurality of sub-regions 710 and 720 based on the image reconstruction instruction 314. The processor 120 may display the image data 700 on a display device (e.g., Figure 3a The processor 120 may display, on the display device 160, an image obtained by rearranging the plurality of sub-regions 710 and 720. The processor 120 may display, on the display device 160, a second image obtained by enlarging and rearranging the first sub-region 710 and the second sub-region 720 of the first image based on the image reconstruction instruction 314.
[0105] When the distance between the plurality of sub-regions 710 and 720 is greater than or equal to a specified threshold distance, the processor 120 may omit a third region (eg, Figure 6The processor 120 may be configured to capture at least a portion of the third region 630 of the image data. The threshold distance may be set according to the distance of each of the plurality of sub-regions 710 and 720 in the first direction D1 and the specified magnification of each of the plurality of sub-regions 710 and 720. For example, the threshold distance may be set to 1.5 times the distance of the smaller sub-region 720 in the first direction D1 among the plurality of sub-regions 710 and 720. The processor 120 may crop some areas in the first image captured when the interval between the moving objects of interest is greater than the threshold distance to digitally generate a plurality of segmented images. When the length of the third region 630 in the first direction D1 is greater than or equal to the threshold distance, the processor 120 may determine that the third region 630 is occupied in the first image for more than a certain proportion and may crop the first sub-region 610 and the second sub-region 620 of the first image. For example, when the threshold distance is greater than or equal to 1.5 times the distance of the smaller sub-region 720 in the first direction D1 among the plurality of sub-regions 710 and 720, the processor 120 may omit at least a portion of the third region 630 from the image data.
[0106] In one embodiment, the processor 120 may display a second image obtained by resetting the size of each of the plurality of sub-regions 710 and 720 and rearranging each of the plurality of sub-regions 710 and 720. The processor 120 may adjust the size of the first subject 410 and the second subject 420 included in the first sub-region 710 and / or the third subject 430 included in the second sub-region 720. For example, the processor 120 may differently apply the magnification ratio of the first subject 410 and the second subject 420 included in the first sub-region 710 and the magnification ratio of the third subject 430 included in the second sub-region 720. The processor 120 may connect the first sub-region 710 including the first subject 410 and the second subject 420 with the second sub-region 720 including the third subject 430 to generate and display the second image on the display device 160.
[0107] In one embodiment, the processor 120 may rearrange the first subject 410 and the second subject 420 included in the first sub-region 710 and the third subject 430 included in the second sub-region 720 to be reconstructed into one second image. For example, the processor 120 may stitch the first subject 410 and the second subject 420 included in the first sub-region 710 and the third subject 430 included in the second sub-region 720. The processor 120 may adjust and arrange the first sub-region 710 and the second sub-region 720 cropped by the specific queue signal to be suitable for the display device 160 to configure the second image.
[0108] In one embodiment, the processor 120 may rearrange the plurality of sub-areas (or the plurality of zoom areas) 710 and 720 so that the plurality of sub-areas 710 and 720 are adjacent to each other in the first direction D1, and a dividing line 730 is displayed between the plurality of sub-areas 710 and 720. The processor 120 may rearrange each of the plurality of sub-areas 710 and 720, may omit at least a portion of the third area 630, and may increase the magnification ratio of the first sub-area 710 and the second sub-area 720. The processor 120 may inform the user of the electronic device 101 that at least a portion of the third area 630 is omitted and that there is an omitted space between the first sub-area 710 and the second sub-area 720. The processor 120 may control the display device 160 to display the dividing line 730 between the first sub-area 710 and the second sub-area 720 based on the image reconstruction instruction 314.
[0109] In one embodiment, the processor 120 may arrange the plurality of sub-areas 710 and 720 so that the plurality of sub-areas 710 and 720 are displayed as separate windows, respectively, and at least some edges and / or regions forming the windows overlap each other. The rearrangement of each of the plurality of sub-areas 710 and 720 may be performed to be applied differently to the magnification ratio of the first sub-area 710 and the second sub-area 720 or to the screen ratio of the display device 160. In this case, the plurality of sub-areas 710 and 720 may be rearranged so that they are displayed as separate windows, respectively, and some edges and / or regions forming the windows overlap each other. The processor 120 may set the size and position of the windows forming the first sub-area 710 and the second sub-area 720 based on the image reconstruction instruction 314.
[0110] Figure 8 is a diagram illustrating a method for setting boundary areas of a plurality of subjects according to an embodiment of the present disclosure.
[0111] refer to Figure 8 In one embodiment, a processor (e.g., Figure 3a The processor 120 of the present invention can obtain the distance between the objects or people included in the image. In order to obtain the distance between the objects or people included in the image, the processor 120 can set the boundary areas 810, 820, 830, 840, 850 of the plurality of subjects 811, 812, 813, 814 and 815 in the image data 800. For example, the processor 120 can set the first boundary area 810, the second boundary area 820, the third boundary area 830, the fourth boundary area 840 and the fifth boundary area 850 including the first subject 811, the second subject 812, the third subject 813, the fourth subject 814 and the fifth subject 815 respectively.
[0112] In one embodiment, the processor 120 may control the lens assembly (eg, Figure 3a The lens assembly 210) is based on the object detection instruction (e.g., Figure 3a The processor 120 may control the lens assembly 210 to detect an object from the image data based on the object tracking instruction (e.g., Figure 3a The object tracking instructions 312 of the embodiment of the present invention track the object from the image data. For example, when the object to be tracked is a person, the processor 120 can calculate the bounding box of each of the subjects 811, 812, 813, 814 and 815 and the interval between the bounding boxes in real time through human body tracking. Human body tracking can be a method for performing human body detection to identify the position of each of the subjects 811, 812, 813, 814 and 815 and based on the camera (e.g., Figure 2 The method of continuing to track the position of each of the subjects 811, 812, 813, 814, and 815 by using a portion similar to the previous frame on the continuous frames of the camera module 180 of the camera module 180. In addition, human body detection may be a method for detecting a human body based on whether the shape of the human body is detected and setting boundary areas 810, 820, 830, 840, and 850 in the form of covering the human body.
[0113] Fig. 9 is a diagram illustrating a method for setting a human area 910 according to an embodiment of the present disclosure.
[0114] refer to Fig. 9 In an embodiment, a processor (such as Figure 3a The processor 120 of the embodiment can separate the person region 910 from the background region 920 in the first image in the image data 900. The person region 910 may be a region representing a person in the first image. The background region 920 may be a region other than the person region 910 in the first image.
[0115] In one embodiment, the processor 120 may record and / or track the intervals between people included in the human region 910 in real time based on semantic segmentation. Semantic segmentation may be a method for deriving a boundary portion or mask about a category “person” in the first image on a pixel-by-pixel basis. The processor 120 may measure the distances between people separated in the human region 910 of the first image based on semantic segmentation to measure the intervals between people in real time.
[0116] Fig.10 is a diagram illustrating a method for setting a person width according to an embodiment of the present disclosure.
[0117] refer to Fig.10 In one embodiment, a processor (e.g., Figure 3aThe processor 120 of the image data 1000 may set the length of the boundary area 810 of the subject 811 in the first direction D1 to the width of the person in the image data 1000. When the subject 811 is set as a target to be zoomed in, the boundary area 810 may be a zoom area including one subject (for example, Figure 7 The processor 120 may set the length of the zoom area in the first direction D1 to be the width of a person.
[0118] In one embodiment, the processor 120 may set a designated distance based on the width of each of the plurality of zoom areas in the first direction D1. The processor 120 may obtain a threshold distance (α) based on the length of a narrow side of a boundary area 810 of a subject 811 based on human body detection. When there are a plurality of human width values, the processor 120 may set the smallest of the human width values as the threshold distance.
[0119] In one embodiment, the processor 120 may set the threshold distance to a value obtained by multiplying the human width by a specified constant (β). The specified constant may be approximately "1". However, various embodiments are not limited thereto. The specified constant may be set differently depending on the application.
[0120] Fig.11 FIG. 1 is a diagram showing a method for using an electronic device (eg, Figure 3a Flow chart of a method for displaying an image in an electronic device 101).
[0121] refer to Fig.11 In method 1100, at operation 1110, a camera (eg, Figure 2 The camera module 180 can be configured to change the zoom area (eg, Figure 7 The camera 180 may generate a first image based on the number and size of the sub-areas 710 and 720, and may display the first image on a display device (eg, Figure 3a The first image is displayed on the display device 160).
[0122] In operation 1120, the camera 180 of the electronic device 101 according to an embodiment may update the camera preview. The camera 180 may pre-display on the display device 160 a display showing the image captured by the lens assembly (eg, Figure 3a The camera 180 can capture the preview screen of the external environment using an image sensor (e.g., Figure 3a The preview image is continuously updated before the image is obtained by the image sensor 230).
[0123] In operation 1130, the electronic device 101 according to an embodiment may determine whether the driving of the camera 180 is ended. When the driving of the camera 180 is ended (Yes in operation 1130), the electronic device 101 may end the above process without performing additional operations. When the camera 180 continues to be driven (No in operation 1130), the electronic device 101 may proceed to operation 1140.
[0124] In operation 1140, the electronic device 101 according to an embodiment may determine whether a screen division signal is detected. Figure 4 When the distance between the multiple subjects 410, 420 and 430) is greater than or equal to the threshold distance, the processor 120 can send a screen division signal to the camera 180.
[0125] In operation 1150, the camera 180 of the electronic device 101 according to the embodiment may track new target subjects 410, 420, and 430 and generate a zoom area. The camera 180 may receive a screen division signal from the processor 120 and may track subjects 410, 420, and 430 to set a new zoom area. When the distance between subjects 410, 420, and 430 is greater than or equal to a threshold distance, the camera 180 may generate a plurality of zoom areas.
[0126] In operation 1160, the electronic device 101 according to an embodiment may determine whether a screen integration signal is detected. Figure 4 When the distance between the plurality of subjects 410, 420, and 430 of the zoom region is less than the threshold distance, the processor 120 may transmit a screen integration signal to the camera 180. When the screen integration signal is detected (Yes in operation 1160), the camera 180 may proceed to operation 1170. When the screen integration signal is not detected (No in operation 1160), the camera 180 may proceed to operation 1110 to reconstruct the screen according to the number and size of zoom areas to display the second image.
[0127] In operation 1170, the camera 180 of the electronic device 101 according to an embodiment may stop tracking the subjects 410, 420, and 430 and may remove the zoom area. The camera 180 may end the zoom-in operation and may capture and display an image in a common manner.
[0128] Fig.12 is a diagram showing a method for using an electronic device (eg, Figure 3a FIG. 1 is a diagram of a method for displaying an image in an electronic device 101).
[0129] refer to Fig.12 In method 1200, in operation 1210, a processor (eg, Figure 3a The processor 120 may display the second image. Figure 7 The first regions (eg, Figure 7 The first sub-region 710) and the second region (eg, Figure 7 When the distance between the first area and the second sub-area 720) is greater than or equal to a specified threshold distance, the processor 120 may display a second image generated based on the first area and the second area.
[0130] In operation 1220, the processor 120 of the electronic device 101 according to an embodiment may identify whether the distance between the first area and the second area is less than a threshold distance when the second image is displayed. Figure 7 The first subject 410 and the second subject 420) and the subject included in the second area (for example, Figure 7 The third subject 430 of the first region may move away from each other beyond the threshold range, and may then move closer to each other to below the threshold distance. The processor 120 may detect a case where the distance between the first region and the second region is greater than or equal to the threshold distance to display the second image, and then detect a case where the distance between the first region and the second region is less than the threshold distance. When the distance between the first region and the second region is greater than or equal to the threshold distance when the second image is displayed (no in operation 1220), the processor 120 may return to operation 1210 to continue displaying the second image. When the distance between the first region and the second region is less than the threshold distance when the second image is displayed (yes in operation 1220), the processor 120 may proceed to operation 1230.
[0131] In operation 1230, the processor 120 of the electronic device 101 according to the embodiment may display a timer for counting a specified waiting time together with the second image. The waiting time may be a waiting time for maintaining the second image before the second image returns to the first image. For example, the waiting time may be set to a time greater than or equal to about 2 seconds and less than or equal to about 10 seconds.
[0132] In one embodiment, the subjects 410 and 420 included in the first sub-area 710 and the subject 430 included in the second sub-area 720 may continue to move. The subjects 410 and 420 included in the first sub-area 710 and the subject 430 included in the second sub-area 720 may temporarily approach each other below a threshold distance, and may approach below a threshold distance so that a specified time has passed. Although the subjects 410 and 420 included in the first sub-area 710 and the subject 430 included in the second sub-area 720 temporarily approach each other, whenever the distance between the subjects 410 and 420 and the subject 430 is less than the threshold distance, when the second image returns to the first image, power consumption may be wasted due to the execution of screen changes and rearrangements more than necessary, and the user's viewing of the image may be interrupted due to multiple screen changes. The processor 120 may maintain the second image until a waiting time has passed after the second image is displayed, thereby reducing power consumption and improving the visibility of the image.
[0133] In one embodiment, the processor 120 may display a timer for counting the waiting time together with the second image. The timer may count down the waiting time from the time when the subjects 410 and 420 included in the first sub-area 710 and the subject 430 included in the second sub-area 720 are close to each other.
[0134] In operation 1240, the processor 120 of the electronic device 101 according to the embodiment may identify whether the waiting time counted by the timer has passed. The timer may count down the waiting time from the time when the subjects 410 and 420 included in the first sub-area 710 and the subject 430 included in the second sub-area 720 are close to each other. When the waiting time has passed, the timer may reach "0". When the timer reaches "0", the processor 120 may determine that the waiting time counted by the timer has passed. When the waiting time counted by the timer has not passed (no in operation 1240), the processor 120 may maintain operation 1230 to display the timer counting the waiting time together when displaying the second image. When the subjects 410 and 420 included in the first sub-area 710 and the subject 430 included in the second sub-area 720 move away from each other beyond a threshold distance before the timer 1310 reaches "0", the processor 120 may be configured to initialize the waiting time. When the waiting time counted by the timer elapses (YES in operation 1240 ), the processor 120 may proceed to operation 1250 .
[0135] In operation 1250, the processor 120 of the electronic device 101 according to the embodiment may return to the first image. The processor 120 may detect that the timer displays "0" and waits for the time to elapse. Although the specified time has passed, when the subjects 410 and 420 included in the first sub-area 710 and the subject 430 included in the second sub-area 720 remain less than the threshold distance, the processor 120 may display the original first image.
[0136] Fig.13 is a diagram illustrating a second image and a timer according to an embodiment of the present disclosure.
[0137] refer to Fig.13 In one embodiment, the second image may highlight the first sub-area 710 and the second sub-area 720 in the image data 1300. When the distance between the subjects 410 and 420 included in the first sub-area 710 and the subject 430 included in the second sub-area 720 is less than a threshold distance when the second image is displayed, a timer 1310 may be displayed at one side of the second image. When the timer 1310 is displayed, the initial time may be a waiting time. For example, the initial time may be 3 seconds. When the distance between the subjects 410 and 420 included in the first sub-area 710 and the subject 430 included in the second sub-area 720 is less than a threshold distance when the second image is displayed, the timer 1310 may count down. When the timer 1310 reaches "0", the processor (e.g., Figure 3a The processor 120 of the embodiment may determine that the waiting time has passed and may return the second image to the first image. When the subjects 410 and 420 included in the first sub-area 710 and the subject 430 included in the second sub-area 720 move away from each other by more than a threshold distance before the timer 1310 reaches "0", the processor 120 may be configured to stop the countdown of the timer 1310. When the subjects 410 and 420 included in the first sub-area 710 and the subject 430 included in the second sub-area 720 move away from each other by more than a threshold distance before the timer 1310 reaches "0", the processor 120 may be configured to initialize the timer 1310 to the waiting time and display the second image.
[0138] The electronic device according to various embodiments may be one of various types of electronic devices. The electronic device may include, for example, a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a household appliance. According to one embodiment of the present disclosure, the electronic device is not limited to those devices described above.
[0139] It should be understood that the embodiments of the present disclosure and the terms used herein are not intended to limit the technical features stated herein to specific embodiments, and include various changes, equivalents or substitutes of the corresponding embodiments. For the description of the accompanying drawings, similar reference numerals may be used to refer to similar or related elements. It will be understood that the nouns in the singular form corresponding to the term may include one or more things unless the relevant context clearly indicates otherwise. As used herein, each of the phrases such as "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" may include any one or all possible combinations of the terms enumerated together in the corresponding one of the phrases. As used herein, terms such as "1st" and "2nd" or "first" and "second" may be used to simply distinguish the corresponding component from another component, and do not limit the component in other aspects (e.g., importance or order). It will be understood that if an element (e.g., a first element) is referred to as being “coupled with,” “coupled to,” “connected with,” or “connected to” another element (e.g., a second element), with or without the term “operably” or “communicatively,” it means that the element may be coupled to the other element directly (e.g., wired), wirelessly, or via a third element.
[0140] As used herein, the term "module" may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with other terms, such as "logic," "logic block," "component," or "circuitry." A module may be a single integral component suitable for performing one or more functions, or its smallest unit or part. For example, according to an embodiment, the module may be implemented in the form of an application specific integrated circuit (ASIC).
[0141] The various embodiments described herein may be implemented as software (e.g., program 140) including one or more instructions stored in a storage medium (e.g., internal memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). For example, a processor (e.g., processor 120) of a machine (e.g., electronic device 101) may call at least one of the one or more instructions stored in the storage medium, and execute the instructions with or without one or more other components under the control of the processor. This allows the machine to be operated to perform at least one function according to at least one instruction called. The one or more instructions may include code generated by a compiler or code executable by a translation program. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Among them, the term "non-transitory" simply means that the storage medium is a tangible device and does not include signals (e.g., electromagnetic waves), but this term does not distinguish between data semi-permanently stored in the storage medium and data temporarily stored in the storage medium.
[0142] According to an embodiment, the method according to various embodiments of the present disclosure may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., a compact disc read-only memory (CD-ROM)) or via an application store (e.g., ) online or directly distributed (e.g., downloaded or uploaded) between two user devices (e.g., smart phones). If distributed online, at least a portion of the computer program product may be temporarily generated or at least temporarily stored in a machine-readable storage medium (e.g., a memory of a manufacturer's server, an application store's server, or a relay server).
[0143] According to various embodiments, each of the above-mentioned components (e.g., a module or a program) may include a single entity or multiple entities. According to various embodiments, one or more of the above-mentioned components may be omitted, or one or more other components may be added. Additionally or alternatively, multiple components (e.g., a module or a program) may be integrated into a single component. In this case, according to various embodiments, the integrated component may still perform the one or more functions of each of the multiple components in the same or similar manner as a corresponding one of the multiple components before integration. According to various embodiments, the operations performed by a module, a program or another component may be performed sequentially, in parallel, repeatedly or in a heuristic manner, or one or more of the operations may be run or omitted in a different order, or one or more other operations may be added.
Claims
1. A method for displaying a video image in an electronic device, the method comprising: Obtaining a first video image including a plurality of subjects; Setting a plurality of sub-areas respectively including the plurality of subjects, wherein each sub-area includes at least one of the plurality of subjects; displaying a second video image, the second video image being obtained by changing a size of each of the plurality of sub-regions and rearranging each of the plurality of sub-regions according to the number of the plurality of sub-regions; as well as After at least one of the plurality of subjects leaves at least one sub-region among the rearranged sub-regions included in the second video image, the plurality of sub-regions of the second video image are maintained for a waiting time.
2. The method according to claim 1, wherein: Each of the plurality of sub-regions is set as a bounding box of each of the plurality of subjects.
3. The method according to claim 1, wherein: The rearranging of each of the plurality of sub-areas comprises: The plurality of sub-regions are rearranged so that each of the plurality of sub-regions is adjacent in a first direction and so that a graticule line is displayed between the plurality of sub-regions.
4. The method according to claim 1, wherein: The rearranging of each of the plurality of sub-areas comprises: The plurality of sub-areas are rearranged so that the plurality of sub-areas are respectively displayed as separate windows and so that at least some edges or areas forming the windows overlap with each other.
5. The method according to claim 1, wherein: The first video image is at least one of a screen, a video, or a preview screen captured by a camera.
6. The method according to claim 1, wherein: Each of the plurality of subjects is a person.
7. The method according to claim 1, wherein: The plurality of sub-regions are arranged not to overlap with each other.
8. The method according to claim 1, The first sub-area includes the first object and the second object among the multiple objects. The second sub-area includes a third object among the plurality of objects, and The second video image is generated by connecting the first sub-region and the second sub-region.
9. An electronic device comprising: A camera circuit including an image sensor, the camera circuit being configured to obtain image data corresponding to an external environment; a display configured to display a video image generated based on the image data; a processor operatively connected to the camera circuit and the display; as well as a memory operatively connected to the processor, wherein the memory stores instructions which, when executed, cause the processor to: obtaining a first video image including a plurality of subjects, setting a plurality of sub-areas respectively including the plurality of subjects, wherein each sub-area includes at least one of the plurality of subjects, displaying a second video image obtained by changing a size of each of the plurality of sub-regions and rearranging each of the plurality of sub-regions according to the number of the plurality of sub-regions, After at least one of the plurality of subjects leaves at least one sub-region among the rearranged sub-regions included in the second video image, the plurality of sub-regions of the second video image are maintained for a waiting time.
10. The electronic device according to claim 9, wherein: Each of the plurality of sub-regions is set as a bounding box of each of the plurality of subjects.
11. The electronic device according to claim 9, wherein: The rearranging of each of the plurality of sub-areas comprises: The plurality of sub-regions are rearranged so that each of the plurality of sub-regions is adjacent in a first direction and so that a graticule line is displayed between the plurality of sub-regions.
12. The electronic device according to claim 9, wherein: The rearranging of each of the plurality of sub-areas comprises: The plurality of sub-areas are rearranged so that the plurality of sub-areas are respectively displayed as separate windows and so that at least some edges or areas forming the windows overlap with each other.
13. The electronic device according to claim 9, wherein: The first video image is at least one of a screen, a video, or a preview screen captured by a camera.
14. The electronic device according to claim 9, wherein: Each of the plurality of subjects is a person.
15. The electronic device according to claim 9, wherein: The plurality of sub-regions are arranged not to overlap with each other.
Citation Information
Patent Citations
Image generation device and image generation method
JP2014135732A
Dynamic generation of image of a scene based on removal of undesired object present in the scene
US20190089910A1