Method for obtaining image and electronic device therefor
The electronic device synthesizes multiple images to address the challenge of subject movement and eye state capture, enabling high-quality, user-intentional image acquisition with a single shot by determining a reference image and adjusting the eye area, thus enhancing the convenience and quality of image capture.
Patent Information
- Application Number
- PCT/KR2024/010326
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-14
- Filing Date
- 2024-07-18
- Publication Date
- 2025-02-06
AI Technical Summary
Current camera technologies face challenges in obtaining high-quality images due to subject or camera movement during shooting, particularly when trying to capture specific eye states like open or closed eyes, which requires multiple shots and can be inconvenient for immediate results.
An electronic device that synthesizes multiple images by determining a reference image based on clarity, brightness, and capture time, calculates movement differences, and adjusts the eye area in the reference image to generate a final image that meets user intentions, such as capturing eyes open or closed, by analyzing and processing the eye area from stored images.
This method allows for the acquisition of high-quality images that meet user intentions with a single shot, reducing the need for multiple attempts and improving convenience by effectively handling subject movement and eye state capture.
Smart Images

Figure KR2024010326_06022025_PF_FP_ABST
Abstract
Description
Method for acquiring images and electronic devices thereof
[0001] The present disclosure relates to a method for acquiring an image and an electronic device thereof.
[0002] As the possession of portable electronic devices has become more common in daily life, the use of their camera functions has increased significantly. Taking pictures with these devices has become an essential feature, to the point where camera functions are becoming a criterion for selecting a portable electronic device. Recently, as camera functions implemented in portable electronic devices have become more sophisticated, technologies are being applied to remove noise while minimizing image quality degradation to achieve high-resolution results. For example, electronic devices can utilize multi-frame processing technology, which synthesizes multiple images when capturing an image, resulting in images with reduced noise and enhanced clarity and detail.
[0003] The above information may be provided as background art to aid in understanding the present disclosure. No claim or determination is made as to whether any of the above is applicable as prior art related to the present disclosure.
[0004] According to an embodiment of the present disclosure, an electronic device may include one or more cameras, a display, at least one processor, and a memory storing instructions. The instructions, when executed by the at least one processor, may cause the electronic device to acquire a plurality of images including one or more objects using the one or more cameras in response to a user's photographing request. The instructions, when executed by the at least one processor, may cause the electronic device to determine a first reference image based on at least one of sharpness, brightness, or capture time of each image detected from each image among the plurality of images. The instructions, when executed by the at least one processor, may cause the electronic device to identify at least one object with closed eyes in the first reference image. The instructions, when executed by the at least one processor, may cause the electronic device to acquire a second reference image by synthesizing a pre-stored eye region image with an eye region of the at least one object in the first reference image. The instructions, when executed by the at least one processor, may cause the electronic device to calculate a difference in motion between the second reference image and the remaining images of the plurality of images, excluding an eye region in which the eyes are closed. The instructions, when executed by the at least one processor, may cause the electronic device to synthesize the plurality of images based on the calculated difference in motion and display an image obtained by synthesizing the plurality of images on the display.
[0005] A method according to an embodiment of the present disclosure may include an operation of acquiring a plurality of images including one or more objects using one or more cameras. The method may include an operation of determining a first reference image based on at least one of sharpness, brightness, or capture time of each image detected from each image among the plurality of images. The method may include an operation of identifying at least one object with closed eyes in the first reference image. The method may include an operation of acquiring a second reference image by synthesizing a pre-stored eye region image of an eye region of the at least one object in the first reference image. The method may include an operation of calculating a motion difference between the second reference image and images of remaining images excluding eye regions with closed eyes in the plurality of images. The method may include an operation of displaying an image acquired by synthesizing the plurality of images based on the calculated motion difference.
[0006] FIG. 1 is a block diagram of an electronic device within a network environment according to one embodiment.
[0007] FIG. 2 is a block diagram illustrating a camera module according to various embodiments.
[0008] Figure 3 is a drawing explaining a method for obtaining an image of an object according to a comparative example.
[0009] FIG. 4 is a drawing illustrating a configuration of an electronic device according to one embodiment.
[0010] FIG. 5 is a flowchart illustrating a method for determining a reference image in an electronic device, according to one embodiment.
[0011] FIG. 6 is a flowchart illustrating a method for determining a reference image among images with different brightness in an electronic device, according to one embodiment.
[0012] FIGS. 7A and 7B are diagrams illustrating a method of acquiring an image by changing an eye region of a reference image in an electronic device, according to one embodiment.
[0013] FIG. 8 is a diagram illustrating a method of changing an eye region of a reference image using an eye region image of an image with different brightness in an electronic device, according to one embodiment.
[0014] FIG. 9 is a flowchart illustrating a method of acquiring an image by changing an eye region of a reference image in an electronic device, according to one embodiment.
[0015] FIGS. 10A and 10B are diagrams illustrating a method of acquiring an image by changing a reference image in an electronic device, according to one embodiment.
[0016] FIG. 11 is a diagram illustrating a method of changing a reference image using an image with different brightness in an electronic device, according to one embodiment.
[0017] FIG. 12 is a flowchart illustrating an operation method for acquiring an image by changing a reference image in an electronic device according to one embodiment.
[0018] FIG. 13 is a flowchart illustrating a method of operating an electronic device according to one embodiment.
[0019] In connection with the description of the drawings, the same or similar reference numerals may be used for identical or similar components.
[0020] Hereinafter, various embodiments disclosed in this document will be described with reference to the attached drawings. It should be understood that this is not intended to limit the various embodiments of the present invention to a specific form, but rather encompasses various modifications, equivalents, and / or alternatives of the present invention.
[0021] To reduce blur caused by subject or camera movement during image capture, multi-frame processing technology can be applied, which synthesizes multiple images to create a single image. When multi-frame processing is applied, the electronic device calculates the differences between the reference frame and other frames among the multiple images acquired during the capture period, and performs frame synthesis by removing these differences. If the subject is a person, the subject's eye state (e.g., whether eyes are open or closed) is not considered during the synthesis of multiple images. Therefore, the electronic device may acquire different images depending on the subject's eye state within the reference frame. To obtain an image in which the subject's eyes are open, the electronic device can repeatedly capture images containing the subject or synthesize multiple images captured sequentially. However, in these cases, multiple captures may be required to obtain an image that matches the user's intent. This can be inconvenient, making it difficult for the user to immediately obtain the captured image at the desired point in time.
[0022] In various embodiments of the present document, when obtaining a captured image by synthesizing multiple images, various embodiments can be provided for obtaining an image of a quality desired by a user with a single capture by analyzing the eye area of an object in a reference image to change the eye area of an object with closed eyes or selecting an image of an object with open eyes as a reference image.
[0023] FIG. 1 is a diagram illustrating an electronic device within a network environment (100) according to one embodiment.
[0024] Referring to FIG. 1, in a network environment (100), an electronic device (101) may communicate with an electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of an electronic device (104) or a server (108) via a second network (199) (e.g., a long-range wireless communication network). According to 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)).
[0025] The processor (120) may control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) by executing, for example, software (e.g., a program (140)), and may perform various data processing or calculations. According to one embodiment, as at least a part of the data processing or calculation, the processor (120) may store a command or data received from another component (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the command or data stored in the volatile memory (132), and store the resulting 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 a secondary 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 therewith. For example, if the electronic device (101) includes a main processor (121) and a secondary processor (123), the secondary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a specified function. The secondary processor (123) may be implemented separately from the main processor (121) or as a part thereof.
[0026] The auxiliary processor (123) may control at least a part 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, on 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 multiple 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.
[0027] 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).
[0028] 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).
[0029] 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).
[0030] 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. According to one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.
[0031] 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.
[0032] 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).
[0033] 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.
[0034] 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.
[0035] 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).
[0036] A 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.
[0037] 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.
[0038] 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).
[0039] 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.
[0040] 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, Wi-Fi (wireless fidelity) direct, or IrDA (infrared data association)) 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).
[0041] 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) may 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.
[0042] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). According to 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). According to 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 selected at least one antenna. According to 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).
[0043] According to various embodiments, the antenna module (197) may form a mmWave antenna module. According to one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent to a first surface (e.g., a bottom surface) 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 to a second surface (e.g., a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.
[0044] 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)).
[0045] 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.
[0046] FIG. 2 is a block diagram (200) illustrating a camera module (180) according to various embodiments.
[0047] Referring to FIG. 2, 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 from a subject that is a target of image capturing. The lens assembly (210) may include one or more lenses. According to one 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., angle of view, focal length, autofocus, f-number, or optical zoom), or at least one lens assembly may have one or more lens properties that are different from the lens properties of the other lens assemblies. A lens assembly (210) may include, for example, a wide-angle lens or a telephoto lens.
[0048] The flash (220) can emit light used to enhance light emitted or reflected from a subject. According to one embodiment, the flash (220) can include one or more light-emitting diodes (e.g., red-green-blue (RGB) LED, white LED, infrared LED, or ultraviolet LED), or a xenon lamp. The image sensor (230) can acquire an image corresponding to the subject by converting light emitted or reflected from the subject and transmitted through the lens assembly (210) into an electrical signal. According to one embodiment, the image sensor (230) can include one image sensor selected from among image sensors having 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 having the same property, or a plurality of image sensors having different properties. Each image sensor included in the image sensor (230) can be implemented using, for example, a CCD (charged coupled device) sensor or a CMOS (complementary metal oxide semiconductor) sensor.
[0049] The image stabilizer (240) can move at least one lens or image sensor (230) included in the lens assembly (210) in a specific direction or control the operating characteristics of the image sensor (230) (e.g., adjusting the read-out timing, etc.) in response to the movement of the camera module (180) or the electronic device (101) including the same. This allows compensating for at least some of the negative effects of the movement on the captured image. In one embodiment, the image stabilizer (240) can detect such movement of the camera module (180) or the electronic device (101) using a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module (180). In one embodiment, the image stabilizer (240) can be implemented as, for example, an optical image stabilizer. The memory (250) can temporarily store at least a portion of the image acquired through the image sensor (230) for the next image processing task. For example, when image acquisition is delayed due to the shutter, or when multiple images are acquired at high speed, the acquired original image (e.g., a Bayer-patterned image or a high-resolution image) is stored in the memory (250), and a corresponding copy image (e.g., a low-resolution image) can be previewed through the display module (160). Thereafter, when a specified condition is satisfied (e.g., a user input or a system command), at least a portion of the original image stored in the memory (250) can be acquired and processed, for example, by the image signal processor (260). According to one embodiment, the memory (250) can be configured as at least a portion of the memory (130) or as a separate memory that operates independently therefrom.
[0050] The image signal processor (260) can perform one or more image processing operations on an image acquired through an image sensor (230) or an image stored in a memory (250). The one or more image processing operations may include, for example, depth map generation, 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, read-out timing control, etc.) for 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 provided to an external component of the camera module (180) (e.g., memory (130), display module (160), electronic device (102), electronic device (104), or server (108)). According to one embodiment, the image signal processor (260) may be a processor (120). It may be configured as a separate processor that is at least partially composed of, or 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) may be displayed through the display module (160) by the processor (120) as is or after undergoing additional image processing.
[0051] According to one embodiment, the electronic device (101) may include a plurality of camera modules (180), each having different properties or functions. In this case, for example, at least one of the plurality of camera modules (180) may be a wide-angle camera, and at least another may be a telephoto camera. Similarly, at least one of the plurality of camera modules (180) may be a front camera, and at least another may be a rear camera.
[0052] FIG. 3 is a diagram illustrating a method for acquiring an image of an object according to a comparative example. In the comparative example, an electronic device (e.g., the electronic device (101) of FIG. 1 ) can capture an image including one or more objects. Here, the one or more objects may correspond to a person.
[0053] Referring to FIG. 3, an electronic device (101) may acquire a plurality of images including one or more objects in response to a shooting request input by a user. The electronic device (101) may acquire a captured image by determining an image with the least shaking among the plurality of images as a reference image, and performing image synthesis by considering the difference in movement between the determined reference image and the remaining images excluding the reference image among the plurality of images. At this time, the eye state of the one or more objects included in the captured image may be determined based on the reference image. If the object in the determined reference image has its eyes closed, a captured image including the object with its eyes closed may be acquired. Therefore, the user may have to repeatedly perform shooting until an image of the object with its eyes not closed is acquired.
[0054] In a comparative example, when a user inputs a shooting request 1, the electronic device (101) can acquire a plurality of consecutive image frames (300). The electronic device (101) can determine a reference image (301) to be used as a reference when synthesizing images among the plurality of image frames (300) based on the shaking detected from each image. For example, the electronic device (101) can determine the degree of shaking based on the sharpness of an edge detected from each of the plurality of image frames (300). If an object included in the reference image (301) has its eyes closed, the electronic device (101) can acquire an image including the object with its eyes closed as a shooting image according to the shooting request 1.
[0055] In a comparative example, the user can perform a re-capture to obtain an image of the object without closing its eyes. When the user inputs a capture request 2, the electronic device (101) can additionally acquire a plurality of consecutive image frames (310). The electronic device (101) can determine an image with the least shaking among the plurality of image frames (310) as a reference image (311). At this time, if the object in the reference image (311) has its eyes closed, the electronic device (101) can acquire a capture image that includes the object with its eyes closed in response to the capture request 2.
[0056] In the comparative example, the user may repeatedly perform shooting until an image of the object with its eyes open is obtained. When a shooting request 3 is input by the user, the electronic device (101) may additionally acquire a plurality of consecutive image frames (320). The electronic device (101) may determine an image with the least shaking among the plurality of image frames (320) as a reference image (321). If the object in the reference image (321) has its eyes open, the electronic device (101) may acquire an image including the object with its eyes open according to the shooting request 3. As such, in the comparative example, the user may have to repeatedly perform shooting several times to acquire an image of the object (subject) with its eyes open as intended, and the time required for the repeated shooting may cause inconvenience in that it is difficult for the user to acquire an image of a desired time point.
[0057] FIG. 4 is a drawing illustrating the configuration of an electronic device (400) according to one embodiment.
[0058] Referring to FIG. 4, an electronic device (400) is a device that performs image processing to obtain an image that matches the user's intention at a desired time with a single shot, and may include one or more cameras (410), a display (420), and at least one processor (430) or memory (440). In FIG. 4, the electronic device (400) may correspond to the electronic device (101) illustrated in FIG. 1.
[0059] In one embodiment, one or more cameras (410) (e.g., the camera module (180) of FIG. 1) can capture a subject according to a user's operation. For example, when a user inputs a shooting request (e.g., a shutter button), one or more cameras (410) can acquire a captured image by synthesizing multiple images captured based on the time at which the shooting request was input.
[0060] In one embodiment, a display (420) (e.g., display module (160) of FIG. 1) may display images captured using one or more cameras (410).
[0061] In one embodiment, the display (420) may be configured with at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED), a light emitting diode (LED), an active matrix organic LED (AMOLED), a flexible display, and a 3-dimensional display. In addition, some of these displays may be configured as transparent or light-transmitting so that the outside can be viewed through them. This may be configured in the form of a transparent display including a TOLED (transparent OLED).
[0062] In one embodiment, the memory (440) (e.g., the memory (130) of FIG. 1) may store instructions that, when executed, control at least one processor (430) (e.g., the processor (120) of FIG. 1) to perform various operations. For example, the at least one processor (430) may perform operations to acquire an image that includes an object whose eyes are not closed when acquiring / providing a captured image by synthesizing multiple images when a user inputs a capture request (e.g., a shutter button).
[0063] In one embodiment, at least one processor (430) may acquire a plurality of images including one or more objects using one or more cameras (410) in response to a user's photographing request. The plurality of images may be a plurality of image frames continuously captured based on a time point at which the photographing request is input. According to various embodiments, at least one processor (430) may detect an eye region of the one or more objects for each of the plurality of images and analyze the state of the detected eye region. At least one processor (430) may distinguish the plurality of images based on the analyzed eye state of the one or more objects. Based on the analysis, at least one processor (430) may identify an image in which the one or more objects have their eyes open among the plurality of images, and extract an eye region image from the image in which the one or more objects have their eyes open and store the extracted image in the memory (440). When the number of the one or more objects is two or more, at least one processor (430) can check an image of each of the one or more objects with their eyes open, extract an eye region image from the image of each object with its eyes open, and store the extracted image in the memory (440). Here, the eye region image may be an image corresponding to a designated range including both eyes and eyelids on the face of each object. According to various embodiments, at least one processor (430) can perform image registration based on one coordinate system according to the captured order for each of the acquired plurality of images.
[0064] In one embodiment, at least one processor (430) may determine a first reference image to be used as a reference when generating a captured image from among the plurality of images. The at least one processor (430) may select the first reference image based on at least one of the sharpness, brightness, or capture time of each image detected from each image. For example, the at least one processor (430) may identify at least one image having a specified brightness value from among the plurality of images, and determine the image having the greatest sharpness from among the at least one image as the first reference image. If there is no image having the specified brightness value, the at least one processor (430) may determine the image having the greatest sharpness from among the plurality of images as the first reference image. In this process, the at least one processor (430) may calculate an edge score for each of the plurality of images, and determine the sharpness of each image based on the calculated edge score. The edge score may be a numerical value indicating the number of edges extracted from each of the plurality of images and / or the sharpness of the extracted edges. At least one processor (430) may determine, if it is identified that there are two or more images with the greatest sharpness among the plurality of images or the at least one image, an image whose capture time is closest to the time at which the shooting request was input as the first reference image.
[0065] For another example, at least one processor (430) may determine one or more candidate images from among the plurality of images, wherein the sharpness is at least a threshold level. The sharpness may be determined based on an edge score calculated for each of the plurality of images. At least one processor (430) may check the eye state of the one or more objects included in the one or more candidate images, and select an image in which the one or more objects have their eyes open from among the one or more candidate images as the first reference image. When the number of the one or more objects is two or more, at least one processor (430) may determine the image with the largest number of objects with their eyes open as the first reference image. When at least one processor (430) identifies that there are two or more images in which the number of objects with their eyes open is the largest from among the one or more candidate images, the processor may determine the image whose capture time is closest to the time at which the shooting request is input as the first reference image.
[0066] According to various embodiments, when the brightness of the plurality of images is different from each other, at least one processor (430) determines an image having a specified brightness value among the plurality of images as the first reference image, and may change the first reference image in consideration of the sharpness of the image. At least one processor (430) may identify an image not having the specified brightness value among the plurality of images, and may identify a first image having the greatest sharpness among the images not having the specified brightness value. The sharpness may be determined based on an edge score calculated for the plurality of images. At least one processor (430) may determine whether the first image has a sharpness exceeding a specified value compared to the first reference image. For example, at least one processor (430) may calculate a motion difference between the first reference image and the first image, and if the calculated motion difference is greater than a threshold value, may change the first reference image to the first image.
[0067] In one embodiment, at least one processor (430) may identify at least one object with its eyes closed in the first reference image. According to various embodiments, when at least one processor (430) identifies at least one object with its eyes closed in the first reference image, it may determine that the first reference image needs to be changed. In this case, at least one processor (430) may select at least one candidate image having a sharpness higher than a threshold level based on an edge score calculated for each of the plurality of images, and may change an image in which at least one object has its eyes open among the at least one candidate image to the first reference image. When the number of at least one object is two or more, at least one processor (430) may change an image in which the number of objects with its eyes open is the largest to the first reference image. According to various embodiments, at least one processor (430) may determine whether the brightness of the first reference image and the image in which at least one object has its eyes open are the same. At least one processor (430) may, if it is determined that the brightness of the first reference image and the image of the one or more objects with their eyes open are different, match the brightness of the image of the one or more objects with their eyes open to the brightness of the first reference image, and change the image on which the brightness matching is performed to the first reference image.
[0068] In one embodiment, when at least one processor (430) identifies an object with its eyes closed among the one or more objects included in the first reference image, it may determine to change the eye region of the identified object. The at least one processor (430) may change the eye region of the at least one object in the first reference image by synthesizing a pre-stored eye region image with the eye region of the at least one object identified from the first reference image. The eye region image may be stored by extracting the eye region of the at least one object from an image of the at least one object with its eyes open among the plurality of images. When the at least one object is identified in the first reference image, the at least one processor (430) may load the pre-stored eye region image from the memory (440) and synthesize the pre-stored eye region image with the eye region of the at least one object in the first reference image to generate a second reference image. According to various embodiments, when at least one processor (430) identifies one or more objects from a plurality of images acquired in response to a user's photographing request, the processor may analyze the eye region of the one or more objects detected in each of the plurality of images to extract an image in which each object has its eyes open. For example, the processor may identify an image in which both eyes of each object are open from among the plurality of images, and extract and store a designated range including both eyes and eyelids for each object as an eye region image. As another example, if there is an object for which it is difficult to confirm that both eyes are open, the processor may separately extract and store an eye region image in which the left eye is open and an eye region image in which the right eye is open from the plurality of images for the object.According to various embodiments, when at least one processor (430) identifies an object with closed eyes in a first reference image, the at least one processor (430) may change the eye region of the identified object. For example, the at least one processor (430) may load an eye region image of the identified object from a memory (440) and detect a range corresponding to the eye region image of the identified object in the first reference image. The at least one processor (430) may generate the second reference image by overlapping and synthesizing the eye region image of the identified object with the range detected in the first reference image. In this case, if the detected range and the size of the eye region image of the identified object are different from each other, the at least one processor (430) may adjust the size of the eye region image of the identified object to correspond to the detected range and then perform synthesis. For another example, at least one processor (430) may generate the second reference image by detecting a range corresponding to the eye region image of the identified object from the memory (440), cropping the range in the first reference image, and inserting the eye region image of the identified object into the cropped range to synthesize the image.
[0069] According to various embodiments, at least one processor (430) may determine whether the brightness of the first reference image and the pre-stored eye region image are the same. If the at least one processor (430) determines that the brightness of the first reference image and the pre-stored eye region image are the same, the at least one processor (430) may synthesize the eye region image with the eye region of the at least one object in the first reference image without brightness matching between the two images, thereby obtaining the second reference image. If the at least one processor (430) determines that the brightness of the first reference image and the pre-stored eye region image are different, the at least one processor (430) may match the brightness of the eye region image with the brightness of the first reference image and then synthesize it with the eye region of the at least one object in the first reference image, thereby obtaining the second reference image. According to various embodiments, the at least one processor (430) may synthesize and process a clear partial image extracted from another image for a portion of the first reference image in which blurring occurs due to movement of the one or more objects.
[0070] In one embodiment, at least one processor (430) may calculate a motion difference between the second reference image and the remaining images excluding the first reference image among the plurality of images. At this time, at least one processor (430) may identify an eye region in which the object has its eyes closed in the remaining images, and may calculate a motion difference between the second reference image and the remaining images excluding the identified eye region. At least one processor (430) may generate a motion map based on the calculated motion difference, and perform synthesis of the plurality of images based on the generated motion map.
[0071] In one embodiment, at least one processor (430) may acquire an image by synthesizing the plurality of images based on the calculated motion difference, and display the acquired image on the display (420) as a shooting result corresponding to the shooting request. According to various embodiments, at least one processor (430) may also combine the plurality of images into one file and provide it in the form of a moving image.
[0072] FIG. 5 is a flowchart illustrating a method for determining a reference image in an electronic device (400), according to one embodiment. The operations described in FIG. 5 may be understood to be performed by at least one processor included in the electronic device (400) (e.g., the processor (120) of FIG. 1 or at least one processor (430) of FIG. 4).
[0073] Referring to FIG. 5, in operation 510, the electronic device (400) can acquire multiple images using one or more cameras (e.g., the camera module (180) of FIG. 1 or one or more cameras (410) of FIG. 4). When the electronic device (400) confirms that a shooting request (e.g., a shutter button) is input by a user, the electronic device (400) can acquire the multiple images captured continuously for a specified time period based on the time at which the shooting request is input from one or more cameras (410).
[0074] According to one embodiment, in operation 520, the electronic device (400) may perform image registration on the acquired plurality of images. The electronic device (400) may process the plurality of images to be sequentially aligned to the same coordinate system in the order in which they were captured.
[0075] According to one embodiment, in operation 530, the electronic device (400) may calculate an edge score for each of the plurality of images. Here, the edge score may be determined based on the number of edges extracted from each image and / or the sharpness of the edges, and may correspond to the sharpness of each image.
[0076] According to one embodiment, in operation 540, the electronic device (400) may determine a reference image based on the calculated edge score for each image. The electronic device (400) may determine an image with the highest calculated edge score among the plurality of images as the reference image. According to various embodiments, if the electronic device (400) determines that there are two or more images with the highest edge scores among the plurality of images, the electronic device (400) may determine the reference image based on the capture time of the images. The electronic device (400) may determine an image with the capture time closest to the time when the capturing request is input among the images with the highest edge scores as the reference image.
[0077] FIG. 6 is a flowchart illustrating a method for determining a reference image among images with different brightnesses in an electronic device, according to one embodiment. The operations described in FIG. 6 may be understood to be performed by at least one processor included in the electronic device (400) (e.g., the processor (120) of FIG. 1 or at least one processor (430) of FIG. 4).
[0078] Referring to FIG. 6, in operation 610, the electronic device (400) can obtain a plurality of images having different brightness values using one or more cameras (e.g., the camera module (180) of FIG. 1 or one or more cameras (410) of FIG. 4). When the electronic device (400) confirms that a shooting request (e.g., a shutter button) is input by a user, the electronic device (400) can obtain the plurality of images captured continuously for a specified time period based on the time at which the shooting request is input from one or more cameras (410).
[0079] According to one embodiment, in operation 620, the electronic device (400) can identify one or more images having a specified brightness value among the acquired plurality of images. The specified brightness value may correspond to the optimal brightness of the image set by the electronic device (400). According to various embodiments, the electronic device (400) can identify the brightness value of each image from the respective meta information of the plurality of images.
[0080] According to one embodiment, in operation 630, the electronic device (400) may perform image registration on the one or more images. The electronic device (400) may process the one or more images to be sequentially aligned to the same coordinate system in the order in which they were captured.
[0081] According to one embodiment, in operation 640, the electronic device (400) may calculate an edge score for each of the one or more images. Here, the edge score may be determined based on the number of edges extracted from each image and / or the sharpness of the edges, and may correspond to the sharpness of each image.
[0082] According to one embodiment, in operation 650, the electronic device (400) may determine a reference image based on the calculated edge score for each image. The electronic device (400) may determine an image with the largest calculated edge score among the one or more images as the reference image. According to various embodiments, if there are two or more images with the largest edge scores among the one or more images, the electronic device (400) may determine an image whose capture time is closest to the time when the photographing request is input as the reference image.
[0083] According to one embodiment, in operation 660, the electronic device (400) may calculate a motion difference between the reference image and an image having a brightness value lower than the specified value. The image having a brightness value lower than the specified value may correspond to an image having a highest edge score among images having a brightness value lower than the specified value. The electronic device (400) may identify images having a brightness value lower than the specified brightness value among the plurality of images, and select an image having a highest edge score among the identified images to calculate a motion difference with respect to the reference image.
[0084] According to one embodiment, in operation 670, the electronic device (400) may determine whether the calculated motion difference is greater than the threshold value. If the determination result shows that the calculated motion difference is greater than the threshold value (operation 670—Yes), the electronic device (400) may determine that an image having a brightness value lower than the specified value is clearer than the reference image in operation 680 and may determine to change the reference image. In this case, the electronic device (400) may change the reference image to an image having a brightness value lower than the specified value in operation 680. If the determination result shows that the calculated motion difference is less than the threshold value (operation 670—No), the electronic device (400) may determine to maintain the reference image determined by operation 650 in operation 685.
[0085] FIGS. 7A and 7B are diagrams illustrating a method of acquiring an image by changing the eye area of a reference image in an electronic device (400), according to one embodiment.
[0086] Referring to FIG. 7A, when a user's shooting request (e.g., a shutter button) is input, the electronic device (400) can acquire multiple images (700) including one object using one or more cameras (e.g., the camera module (180) of FIG. 1 or one or more cameras (410) of FIG. 4). In FIG. 7A, the multiple images (700) can correspond to multiple frames captured continuously for a specified period of time based on the time point at which the shooting request is input, and can have the same brightness value.
[0087] In one embodiment, the electronic device (400) can analyze the eye state of an object included in the plurality of images (700) and, based on the analysis, identify an image in which the object has its eyes open. The electronic device (400) can extract an eye region image (705) from an image in which the object has its eyes open and store the extracted image in a memory (e.g., the memory (130) of FIG. 1 or the memory (440) of FIG. 4).
[0088] In one embodiment, the electronic device (400) may determine the image with the greatest sharpness among the plurality of images (700) as the reference image (710). For example, the electronic device (400) may determine the sharpness of each image based on an edge score calculated for each of the plurality of images (700). The edge score may be calculated based on the number of edges detected from each of the plurality of images (700) and / or the sharpness of the detected edges. If there are two or more images with the greatest sharpness among the plurality of images (700), the electronic device (400) may determine the image whose capture time is closest to the time when the capture request is input as the reference image (710).
[0089] In one embodiment, the electronic device (400) can check the eye state of the object included in the reference image (710). The electronic device (400) can detect the eye region (715) of the object in the reference image (710) and check whether the eyes of the object are closed from the detected eye region (715). If the electronic device (400) checks that the eyes of the object are closed, the electronic device (400) can change the eye region (715) in the reference image (710). For example, the electronic device (400) can change the eye region (715) of the reference image (710) by synthesizing a pre-stored eye region image (705) into the eye region (715) in the reference image (710).
[0090] In one embodiment, the electronic device (400) may calculate a motion difference between a reference image (710) in which the eye region (715) has been changed and the remaining images among the plurality of images (700) excluding the reference image (710). At this time, the electronic device (400) may identify an eye region (725) in which the object has its eyes closed in the remaining images, and may calculate a motion difference between the reference image (710) and the remaining images excluding the identified eye region (725). The electronic device (400) may synthesize the plurality of images based on the calculated motion difference to generate an image (730). The image (730) may be displayed on a display (e.g., the display module (160) of FIG. 1 or the display (420) of FIG. 4) as a shooting result obtained in response to the shooting request.
[0091] Referring to FIG. 7b, when a user's shooting request (e.g., a shutter button) is input, the electronic device (400) can acquire a plurality of images (750) including a plurality of objects from one or more cameras (e.g., the camera module (180) of FIG. 1 or one or more cameras (410) of FIG. 4). In FIG. 7b, the plurality of images (750) can correspond to a plurality of frames captured continuously for a specified period of time based on the time point at which the shooting request is input, and can have the same brightness value.
[0092] In one embodiment, the electronic device (400) can analyze the eye states of the plurality of objects included in the plurality of images (750) and, based on the analysis, identify an image in which the eyes are open for each of the plurality of objects. The electronic device (400) can extract an eye region image (755) for each object from the image in which the eyes are open for each object and store the extracted image in a memory (e.g., the memory (130) of FIG. 1 or the memory (440) of FIG. 4). For example, the electronic device (400) can obtain an eye region image of object A from a first frame image among the plurality of images (750) and obtain an eye region image of object B from a third frame image.
[0093] In one embodiment, the electronic device (400) may determine an image with the greatest sharpness among the plurality of images (750) as a reference image (760). For example, the electronic device (400) may calculate an edge score based on the number of edges detected and / or the sharpness of the detected edges for each of the plurality of images (750), and may determine the sharpness of each image based on the calculated edge score. If there are two or more images with the greatest sharpness among the plurality of images (750), the electronic device (400) may determine an image whose capture time is closest to the time when the shooting request is input as the reference image (760).
[0094] In one embodiment, the electronic device (400) can check the eye states of a plurality of objects included in the reference image (760). The electronic device (400) can detect eye regions (761, 762, 763) for each of the plurality of objects in the reference image (760) and determine whether the eyes of the objects are closed from the detected eye regions (761, 762, 763). The electronic device (400) can change the eye regions (761, 762, 763) of objects whose eyes are closed in the reference image (760). For example, the electronic device (400) can change the eye regions (761, 762, 763) of the reference image (760) by synthesizing a pre-stored eye region image (755) corresponding to each object into the eye regions (761, 762, 763) in the reference image (760).
[0095] In one embodiment, the electronic device (400) can calculate the motion difference between the reference image (760) in which the eye region (761, 762, 763) has been changed and the remaining images among the plurality of images (750) excluding the reference image (760). At this time, the electronic device (400) can identify eye regions (771, 772, 773, 774, 775) in which the plurality of objects have their eyes closed in the remaining images, and can calculate the motion difference between the reference image (760) and the remaining images excluding the identified eye regions (771, 772, 773, 774, 775). The electronic device (400) can generate an image (780) by synthesizing the plurality of images based on the calculated motion difference. The above image (780) may be displayed on a display (e.g., the display module (160) of FIG. 1 or the display (420) of FIG. 4) as a result of capturing obtained in response to the above shooting request.
[0096] FIG. 8 is a drawing illustrating a method of changing an eye region of a reference image using an eye region image of an image with different brightness in an electronic device (400), according to one embodiment.
[0097] Referring to FIG. 8, when a user's shooting request (e.g., a shutter button) is input, the electronic device (400) can acquire multiple images (800) including one or more objects using one or more cameras (e.g., the camera module (180) of FIG. 1 or one or more cameras (410) of FIG. 4). In FIG. 8, the multiple images (800) may correspond to multiple frames captured continuously for a specified period of time based on the time point at which the shooting request is input, and each may have a different brightness value.
[0098] In one embodiment, the electronic device (400) can analyze the eye state of one or more objects included in the plurality of images (800) to identify an image in which the eyes are open for each of the one or more objects. The electronic device (400) can extract an eye region image (805) for each object from the images in which the eyes are open for the one or more objects and store the extracted image in a memory (e.g., the memory (130) of FIG. 1 or the memory (440) of FIG. 4).
[0099] In one embodiment, the electronic device (400) may determine an image having a specified brightness value among the plurality of images (800) as a reference image (810). If there are two or more images having the specified brightness value among the plurality of images (800), the electronic device (400) may determine the reference image (810) based on the sharpness and / or capture time of each image.
[0100] In one embodiment, the electronic device (400) can check the eye state of one or more objects included in the reference image (810). The electronic device (400) can detect an eye region (815) for the one or more objects in the reference image (810) and check whether the eyes of the one or more objects are closed from the detected eye region (815). The electronic device (400) can change the eye region (815) of an object whose eyes are closed in the reference image (810). According to various embodiments, if the electronic device (400) checks that the brightness of a pre-stored eye region image (805) for the one or more objects is different from that of the reference image (810), the electronic device (400) can match the brightness of the pre-stored eye region image (805) to correspond to the brightness of the reference image (810). The electronic device (400) can change the eye area (815) of the reference image (810) by synthesizing the eye area image (807) on which the brightness matching has been performed onto the eye area (815) of the reference image (810).
[0101] In one embodiment, the electronic device (400) may calculate a motion difference between a reference image (810) in which the eye region (815) has been changed and the remaining images among the plurality of images (800) excluding the reference image (810). At this time, the electronic device (400) may identify an eye region in which one or more objects have their eyes closed in the remaining images, and may calculate a motion difference between the reference image (810) and the remaining images excluding the identified eye region. The electronic device (400) may synthesize the plurality of images based on the calculated motion difference to generate an image (830). The image (830) may be displayed on a display (e.g., the display module (160) of FIG. 1 or the display (420) of FIG. 4) as a shooting result obtained in response to the shooting request.
[0102] FIG. 9 is a flowchart illustrating an operation method for acquiring an image by changing an eye region of a reference image in an electronic device (400), according to one embodiment. The operations described in FIG. 9 may be understood to be performed by at least one processor included in the electronic device (400) (e.g., the processor (120) of FIG. 1 or at least one processor (430) of FIG. 4).
[0103] Referring to FIG. 9, in operation 910, the electronic device (400) may acquire a plurality of images using one or more cameras (e.g., the camera module (180) of FIG. 1 or one or more cameras (410) of FIG. 4). When the electronic device (400) confirms that a photographing request (e.g., a shutter button) is input by a user, the electronic device (400) may acquire the plurality of images captured continuously for a specified time period based on the time at which the photographing request is input from one or more cameras (410). The plurality of images may include one or more objects. According to various embodiments, the electronic device (400) may perform image registration of the acquired plurality of images based on the same coordinate system.
[0104] According to one embodiment, in operation 920, the electronic device (400) can check the eye state of one or more objects included in the plurality of images. In operation 920, the electronic device (400) can distinguish the plurality of images according to the eye state of the one or more objects, and select an image in which the one or more objects have their eyes open from among the plurality of images.
[0105] According to one embodiment, in operation 930, the electronic device (400) may store an eye region image of one or more objects with their eyes open among the plurality of images in a memory (e.g., the memory (130) of FIG. 1 or the memory (440) of FIG. 4). In operation 930, the electronic device (400) may extract an eye region image corresponding to each object from the images of one or more objects with their eyes open and store the extracted eye region image in the memory (440). The eye region image may be an image corresponding to a specified range including both eyes and eyelids on the face of each object.
[0106] According to one embodiment, in operation 940, the electronic device (400) may determine an image with the greatest sharpness among the plurality of images as a reference image. For example, the electronic device (400) may calculate an edge score based on the extracted edges for each of the plurality of images, and determine the image with the greatest calculated edge score as the reference image. According to various embodiments, when the brightness values of the plurality of images are not the same, the electronic device (400) may determine an image with the greatest sharpness and a specified brightness value among the plurality of images as the reference image. According to various embodiments, when there are two or more images with the greatest sharpness among the plurality of images, the electronic device (400) may select an image whose capture time is closest to the time at which the capturing request is input as the reference image.
[0107] According to one embodiment, in operation 950, the electronic device (400) can check the eye state of one or more objects included in the reference image. In operation 950, the electronic device (400) can detect the eye region of each object in the reference image, and check whether the eyes of each object are closed or open based on the eye region of the detected object.
[0108] According to one embodiment, in operation 960, the electronic device (400) may determine whether each of one or more objects included in the reference image has its eyes closed. If at least one object with its eyes closed is identified as a result of the determination (operation 960-Yes), the electronic device (400) may change the eye region of the at least one object in the reference image in operation 965. For example, the electronic device (400) may synthesize a pre-stored eye region image into the eye region of the at least one object in the reference image. The pre-stored eye region image may correspond to the eye region image of the at least one object with its eyes open, which is stored in operation 930. If the electronic device (400) identifies at least one object with its eyes closed in the reference image, the electronic device (400) may obtain an eye region image of the at least one object with its eyes open from the memory (440), and change the eye region of the at least one object in the reference image to the obtained eye region image. According to various embodiments, when the brightness of the eye region image and the reference image are different, the electronic device (400) may match the brightness of the eye region image to the brightness of the reference image and then synthesize the eye region of the at least one object in the reference image. Thereafter, in operation 970, the electronic device (400) may calculate a motion difference between the reference image with the changed eye region and the remaining images excluding the eye region in the plurality of images with the eyes closed, and synthesize the plurality of images by taking into consideration the calculated motion difference.
[0109] If the above judgment result shows that an object with closed eyes is not identified (operation 960-No), the electronic device (400) does not change the reference image, and in operation 970 calculates a difference in motion between the reference image and the remaining images excluding the eye area with closed eyes among the plurality of images, and synthesizes the plurality of images based on the calculated difference in motion.
[0110] According to one embodiment, in operation 980, the electronic device (400) may acquire an image generated by synthesizing the plurality of images as a shooting result corresponding to the shooting request. The electronic device (400) may display the acquired image through a display (e.g., the display module (160) of FIG. 1 or the display (420) of FIG. 4).
[0111] FIGS. 10A and 10B are drawings illustrating a method of acquiring an image by changing a reference image in an electronic device (400), according to one embodiment.
[0112] Referring to FIG. 10A, when a user's shooting request (e.g., a shutter button) is input, the electronic device (400) can acquire multiple images (1000) including one object using one or more cameras (e.g., the camera module (180) of FIG. 1 or one or more cameras (410) of FIG. 4). In FIG. 10A, the multiple images (1000) can correspond to multiple frames captured continuously for a specified time period based on the time point at which the shooting request is input, and can have the same brightness value.
[0113] In one embodiment, the electronic device (400) may determine the image with the greatest sharpness as the reference image (1010). For example, the electronic device (400) may determine the sharpness of each image based on an edge score calculated for each of the plurality of images (1000). The edge score may be calculated based on the number of edges detected from each of the plurality of images (1000) and / or the sharpness of the detected edges. If there are two or more images with the greatest sharpness among the plurality of images (1000), the electronic device (400) may determine the image whose capture time is closest to the time when the shooting request is input as the reference image (1010).
[0114] In one embodiment, the electronic device (400) can check the eye state of an object included in the reference image (1010). The electronic device (400) can check whether the eyes of the object are closed from the eye region of the object in the reference image (1010). If the electronic device (400) checks that the eyes of the object are closed, it can determine to change the reference image (1010) to an image in which the object has its eyes open.
[0115] In one embodiment, the electronic device (400) may select one or more candidate images from among the plurality of images (1000) whose edge score is greater than or equal to a specified value, and determine an image in which the object has its eyes open from among the one or more candidate images as a changed reference image (1020).
[0116] In one embodiment, the electronic device (400) may calculate a motion difference between the changed reference image (1020) and the remaining images excluding the reference image (1020) among the plurality of images (1000). At this time, the electronic device (400) may identify an eye region (1031, 1032) in which the object has its eyes closed in the remaining images, and may calculate a motion difference between the reference image (1020) and the remaining images excluding the identified eye region (1031, 1032). The electronic device (400) may synthesize the plurality of images based on the calculated motion difference to generate an image (1040). The image (1040) may be displayed on a display (e.g., the display module (160) of FIG. 1 or the display (420) of FIG. 4) as a shooting result obtained in response to the shooting request.
[0117] Referring to FIG. 10b, when a user's shooting request (e.g., a shutter button) is input, the electronic device (400) may acquire a plurality of images (1050) including a plurality of objects from one or more cameras (e.g., the camera module (180) of FIG. 1 or one or more cameras (410) of FIG. 4). In FIG. 10b, the plurality of images (1050) may correspond to a plurality of frames captured continuously for a specified period of time based on the time point at which the shooting request is input, and may have the same brightness value.
[0118] In one embodiment, the electronic device (400) may determine an image with the greatest sharpness among the plurality of images (1050) as a reference image (1060). For example, the electronic device (400) may calculate an edge score based on the number of edges detected and / or the sharpness of the detected edges for each of the plurality of images (1050), and may determine the sharpness of each image based on the calculated edge score. If there are two or more images with the greatest sharpness among the plurality of images (1050), the electronic device (400) may determine an image whose capture time is closest to the time when the shooting request is input as the reference image (1060).
[0119] In one embodiment, the electronic device (400) can check the eye states of a plurality of objects included in the reference image (1060). The electronic device (400) can check whether the eyes of each object are closed from the eye regions of the plurality of objects in the reference image (1060). If the electronic device (400) determines that the reference image (1060) includes at least one object with closed eyes, the electronic device (400) can determine to change the reference image (1060).
[0120] In one embodiment, the electronic device (400) may select one or more candidate images from among the plurality of images (1050) whose edge score is greater than or equal to a specified value, and determine an image having the largest number of objects with their eyes open from among the one or more candidate images as a changed reference image (1070).
[0121] In one embodiment, the electronic device (400) may calculate a motion difference between the changed reference image (1070) and the remaining images among the plurality of images (1050) excluding the reference image (1070). At this time, the electronic device (400) may identify eye regions (1081, 1082, 1083, 1084, 1085, 1086) in which the plurality of objects have their eyes closed in the remaining images, and may calculate a motion difference between the reference image (1070) and the remaining images excluding the identified eye regions (1081, 1082, 1083, 1084, 1085, 1086). The electronic device (400) may generate an image (1090) by synthesizing the plurality of images based on the calculated motion difference. The above image (1090) may be displayed on a display (e.g., the display module (160) of FIG. 1 or the display (420) of FIG. 4) as a result of capturing obtained in response to the above shooting request.
[0122] FIG. 11 is a drawing illustrating a method of changing a reference image using an image with different brightness in an electronic device (400), according to one embodiment.
[0123] Referring to FIG. 11, when a user's shooting request (e.g., a shutter button) is input, the electronic device (400) may acquire a plurality of images (1100) including one or more objects using one or more cameras (e.g., the camera module (180) of FIG. 1 or one or more cameras (410) of FIG. 4). In FIG. 11, the plurality of images (1100) may correspond to a plurality of frames captured continuously for a specified period of time based on the time point at which the shooting request is input, and may each have a different brightness value.
[0124] In one embodiment, the electronic device (400) may determine an image having a specified brightness value among the plurality of images (1100) as a reference image (1110). If there are two or more images having the specified brightness value among the plurality of images (1100), the electronic device (400) may determine the reference image (1110) based on the sharpness and / or capture time of each image.
[0125] In one embodiment, the electronic device (400) can check the eye state of one or more objects included in the reference image (1110). The electronic device (400) can check whether the eyes of each object are closed from the eye region of the one or more objects in the reference image (1110). If the electronic device (400) determines that the reference image (1110) includes at least one object with closed eyes, the electronic device (400) can determine to change the reference image (1110).
[0126] In one embodiment, the electronic device (400) may select one or more candidate images based on the sharpness detected from each of the plurality of images (1100). The one or more candidate images may be images in which an edge score calculated for each image is equal to or greater than a specified value. The electronic device (400) may identify an image in which one or more objects have their eyes open (or an image in which the number of objects with their eyes open is the largest) among the one or more candidate images, and may match the brightness of the identified image to correspond to the brightness of the reference image (1110). The electronic device (400) may determine the brightness-matched image as the changed reference image (1120).
[0127] In one embodiment, the electronic device (400) may calculate a motion difference between the changed reference image (1120) and the remaining images excluding the reference image (1120) among the plurality of images (1100). At this time, the electronic device (400) may identify an eye region in which the one or more objects have their eyes closed in the remaining images, and may calculate a motion difference between the reference image (1120) and the remaining images excluding the identified eye region. The electronic device (400) may synthesize the plurality of images based on the calculated motion difference to generate an image (1130). The image (1130) may be displayed on a display (e.g., the display module (160) of FIG. 1 or the display (420) of FIG. 4) as a shooting result obtained in response to the shooting request.
[0128] FIG. 12 is a flowchart illustrating an operation method for acquiring an image by changing a reference image in an electronic device (400), according to one embodiment. The operations described in FIG. 12 may be understood to be performed by at least one processor included in the electronic device (400) (e.g., the processor (120) of FIG. 1 or at least one processor (430) of FIG. 4).
[0129] Referring to FIG. 12, in operation 1210, the electronic device (400) may acquire a plurality of images using one or more cameras (e.g., the camera module (180) of FIG. 1 or one or more cameras (410) of FIG. 4). When the electronic device (400) confirms that a photographing request (e.g., a shutter button) is input by a user, the electronic device (400) may acquire the plurality of images captured continuously for a specified time period from the time at which the photographing request is input from one or more cameras (410). The plurality of images may include one or more objects. According to various embodiments, the electronic device (400) may perform image registration of the acquired plurality of images based on the same coordinate system. In operation 1210, the electronic device (400) may determine an image with the greatest sharpness among the plurality of images as a reference image. For example, the electronic device (400) may calculate an edge score based on the extracted edges for each of the plurality of images, and determine the image with the largest calculated edge score as the reference image. According to various embodiments, when the brightness values of the plurality of images are not the same, the electronic device (400) may determine the image with the largest sharpness and the specified brightness value among the plurality of images as the reference image. According to various embodiments, when there are two or more images with the largest sharpness among the plurality of images, the electronic device (400) may select the image whose capture time is closest to the time when the shooting request is input as the reference image.
[0130] According to one embodiment, in operation 1220, the electronic device (400) can check the eye state of one or more objects included in the reference image. In operation 1220, the electronic device (400) can detect the eye region of each object in the reference image and check whether the eyes are closed or open based on the eye region of each detected object. If the electronic device (400) determines that the reference image includes at least one object with closed eyes, the electronic device (400) can determine to change the reference image.
[0131] According to one embodiment, in operation 1230, the electronic device (400) may determine one or more candidate images having a sharpness level higher than a specified level from among the plurality of images. For example, the electronic device (400) may select one or more images having an edge score higher than a specified value from among the plurality of images as candidate images.
[0132] According to one embodiment, in operation 1240, the electronic device (400) may determine an image in which one or more objects have their eyes open among the one or more candidate images as a changed reference image. According to various embodiments, when the number of objects included in the candidate images is two or more, the electronic device (400) may determine an image in which the number of objects with their eyes open is the largest as the changed reference image. According to various embodiments, when the brightness of the changed reference image is different from that of the existing reference image selected by operation 1210, the electronic device (400) may match the brightness of the changed reference image to correspond to the brightness of the existing reference image.
[0133] According to various embodiments, when the changed reference image includes an object with its eyes closed, the electronic device (400) may change the eye region of the object by synthesizing an eye region image previously stored in the eye region of the object in the changed reference image. The previously stored eye region image is an image corresponding to the eye region of the object extracted from an image of the object with its eyes open among the plurality of images, and may be acquired from a memory (e.g., the memory (130) of FIG. 1 or the memory (440) of FIG. 4).
[0134] According to one embodiment, in operation 1250, the electronic device (400) may calculate a difference in motion between the changed reference image and the remaining images excluding the eye area in the closed state among the plurality of images, and synthesize the plurality of images by taking into account the calculated difference in motion.
[0135] According to one embodiment, in operation 1260, the electronic device (400) may acquire an image generated by synthesizing the plurality of images as a shooting result corresponding to the shooting request. The electronic device (400) may display the acquired image through a display (e.g., the display module (160) of FIG. 1 or the display (420) of FIG. 4).
[0136] FIG. 13 is a flowchart illustrating an operating method of an electronic device (400), according to an embodiment. According to an embodiment, the electronic device (400) is a device that performs image processing to obtain an image that matches the user's intention at a desired time point with a single capture, and may correspond to the electronic device (101) illustrated in FIG. 1. The operations of FIG. 13 may be performed by at least one processor included in the electronic device (400) (e.g., the processor (120) of FIG. 1 or at least one processor (430) of FIG. 4).
[0137] Referring to FIG. 13, in operation 1310, an electronic device (400) may acquire a plurality of images including one or more objects using one or more cameras (e.g., the camera module (180) of FIG. 1 or one or more cameras (410) of FIG. 4) in response to a user's photographing request. The plurality of images may be a plurality of image frames continuously captured based on a time point at which the photographing request is input.
[0138] According to various embodiments, when the electronic device (400) acquires the plurality of images, it may detect an eye region of one or more objects for each of the plurality of images, and analyze the state of the detected eye region. Based on the analysis, the electronic device (400) may identify an image in which the one or more objects have their eyes open among the plurality of images, extract an eye region image from the image in which the one or more objects have their eyes open, and store the extracted eye region image in a memory (e.g., the memory (130) of FIG. 1 or the memory (440) of FIG. 4). When the number of objects included in the plurality of images is two or more, the electronic device (400) may identify an image in which the eyes are open for each object, extract an eye region image from the image in which the eyes are open for each object, and store the extracted eye region image in the memory (440). Here, the eye region image may be an image corresponding to a specified range including both eyes and eyelids on the face of each object.
[0139] According to one embodiment, in operation 1320, the electronic device (400) may determine a first reference image to be used as a reference when generating a captured image from among the plurality of images. The electronic device (400) may select the first reference image based on at least one of the sharpness, brightness, or capture time of each image detected from each image. For example, the electronic device (400) may identify at least one image having a specified brightness value from among the plurality of images, and determine the image having the greatest sharpness from among the at least one image as the first reference image. If there is no image having the specified brightness value, the electronic device (400) may determine the image having the greatest sharpness from among the plurality of images as the first reference image. The electronic device (400) may calculate an edge score based on an edge extracted from each of the plurality of images, and determine the sharpness of each image based on the calculated edge score. When the electronic device (400) identifies that there are two or more images with the greatest sharpness among the plurality of images or the at least one image, the electronic device (400) may determine the image whose capture time is closest to the time at which the shooting request was input as the first reference image.
[0140] According to various embodiments, when the brightness of the plurality of images is different from each other, the electronic device (400) may determine an image having a specified brightness value among the plurality of images as the first reference image, and may change the first reference image in consideration of the sharpness of the image. The electronic device (400) may identify an image not having the specified brightness value among the plurality of images, and may identify a first image having the greatest sharpness among the images not having the specified brightness value. The sharpness may be determined based on an edge score calculated for the plurality of images. The electronic device (400) may determine whether the first image has a sharpness exceeding a specified value compared to the first reference image. For example, the electronic device (400) may calculate a motion difference between the first reference image and the first image, and if the calculated motion difference is greater than a threshold value, may change the first reference image to the first image.
[0141] According to one embodiment, in operation 1330, the electronic device (400) may identify at least one object with closed eyes in the first reference image. According to various embodiments, when the electronic device (400) identifies at least one object with closed eyes in the first reference image, the electronic device (400) may determine that the first reference image needs to be changed. In this case, the electronic device (400) may select at least one candidate image having a sharpness higher than a threshold level based on an edge score calculated for each of the plurality of images, and may change an image in which at least one object has its eyes open among the at least one candidate image to the first reference image. When the number of objects included in the at least one candidate image is two or more, the electronic device (400) may change an image in which the number of objects with the largest number of eyes open is included to the first reference image. According to various embodiments, the electronic device (400) may determine whether the brightness of the first reference image and the image in which at least one object has its eyes open are the same. If the electronic device (400) determines that the brightness of the first reference image and the image of the one or more objects with their eyes open are different, the electronic device (400) can match the brightness of the image of the one or more objects with their eyes open to the brightness of the first reference image and change the image for which the brightness matching is performed to the first reference image.
[0142] According to one embodiment, in operation 1340, when the electronic device (400) identifies an object with its eyes closed among the one or more objects included in the first reference image, the electronic device (400) may determine to change the eye region of the identified object. The electronic device (400) may change the eye region of the at least one object in the first reference image by synthesizing a pre-stored eye region image with the eye region of the at least one object identified from the first reference image. The eye region image may be stored by extracting the eye region of the at least one object from an image of the at least one object with its eyes open among the plurality of images. When the at least one object is identified in the first reference image, the electronic device (400) may load the pre-stored eye region image from a memory (e.g., the memory (130) of FIG. 1 or the memory (440) of FIG. 4) and synthesize the pre-stored eye region image with the eye region of the at least one object in the first reference image to generate a second reference image. According to various embodiments, the electronic device (400) may determine whether the brightness of the first reference image and the pre-stored eye region image are the same. If the electronic device (400) determines that the brightness of the first reference image and the pre-stored eye region image are different, the electronic device (400) may obtain the second reference image by matching the brightness of the eye region image to the brightness of the first reference image and then synthesizing the eye region image with the eye region of the at least one object in the first reference image. If the electronic device (400) determines that the brightness of the first reference image and the pre-stored eye region image are the same, the electronic device (400) may obtain the second reference image by synthesizing the eye region image with the eye region of the at least one object in the first reference image without brightness matching between the two images.
[0143] According to one embodiment, in operation 1350, the electronic device (400) may calculate a motion difference between the second reference image and the remaining images excluding the first reference image among the plurality of images. At this time, the electronic device (400) may identify an eye region in which the object has its eyes closed in the remaining images, and may calculate a motion difference between the second reference image and the remaining images excluding the identified eye region. According to various embodiments, the electronic device (400) may generate a motion map based on the calculated motion difference, and perform synthesis of the plurality of images based on the generated motion map.
[0144] According to one embodiment, in operation 1360, the electronic device (400) may acquire an image by synthesizing the plurality of images based on the calculated motion difference, and display the acquired image on the display (420) as a shooting result corresponding to the shooting request.
[0145] According to one embodiment, an electronic device (e.g., electronic device (400)) includes one or more cameras (410), a display (420), at least one processor (430) operatively connected to the one or more cameras and the display, and a memory (440) operatively connected to the at least one processor, wherein the memory may store instructions that, when executed, cause the at least one processor to obtain a plurality of images including one or more objects using the one or more cameras in response to a user's photographing request, determine a first reference image based on at least one of sharpness, brightness, or capture time of each image detected from each image among the plurality of images, identify at least one object with closed eyes in the first reference image, synthesize an eye region image pre-stored in an eye region of the at least one object in the first reference image to obtain a second reference image, calculate a motion difference between the second reference image and images excluding eye regions with closed eyes in the plurality of images, and synthesize the plurality of images based on the calculated motion difference to display an image obtained by synthesizing the plurality of images on the display.
[0146] In one embodiment, the instructions may cause the at least one processor to analyze the plurality of images to identify an image in which the one or more objects have their eyes open, and to store in the memory an eye region image extracted from the image in which the one or more objects have their eyes open and information related to the image in which the one or more objects have their eyes open.
[0147] In one embodiment, the instructions may cause the at least one processor to store an extracted eye region image for each of the one or more objects, if there are two or more of the one or more objects.
[0148] In one embodiment, the instructions may cause the at least one processor to identify at least one image having a specified brightness value among the plurality of images, and determine an image having the greatest sharpness among the at least one image as the first reference image.
[0149] In one embodiment, the instructions may cause the at least one processor to determine, when there are two or more images with the greatest sharpness, an image whose capture time is closest to the input time of the photographing request as the first reference image.
[0150] In one embodiment, the instructions may cause the at least one processor to calculate a motion difference between the first reference image and a first image having the greatest sharpness among images not having the specified brightness value, and to change the first reference image to the first image if the calculated motion difference is greater than a threshold value.
[0151] In one embodiment, the instructions may cause the at least one processor to determine whether the first reference image needs to be changed based on the eye state of the one or more objects, and if it is determined that the first reference image needs to be changed, determine one or more candidate images having a sharpness level higher than a threshold level from among the plurality of images, and change the first reference image based on an image of the one or more objects with their eyes open from among the one or more candidate images.
[0152] In one embodiment, the instructions may cause the at least one processor to select the first reference image based on an image having a largest number of objects with open eyes, when the one or more candidate images contain two or more objects.
[0153] In one embodiment, the instructions may cause the at least one processor to match the brightness of the image of the one or more objects with their eyes open to the brightness of the first reference image, if the brightness of the image of the one or more objects with their eyes open is different from that of the first reference image.
[0154] In one embodiment, the instructions may cause the at least one processor to match the brightness of the eye region image to the brightness of the first reference image when the brightness of the first reference image and the stored eye region image are different.
[0155] According to an embodiment, a method for operating an electronic device (e.g., electronic device (400)) may include an operation of acquiring a plurality of images including one or more objects using one or more cameras (410), an operation of determining a first reference image based on at least one of sharpness, brightness, or capture time of each image detected from each image among the plurality of images, an operation of identifying at least one object with closed eyes in the first reference image, an operation of synthesizing an eye region image previously stored in an eye region of the at least one object in the first reference image to acquire a second reference image, an operation of calculating a motion difference between the second reference image and the remaining images excluding the eye region with closed eyes in the plurality of images, and an operation of displaying an image acquired by synthesizing the plurality of images based on the calculated motion difference.
[0156] In one embodiment, the method may include an operation of analyzing the plurality of images to identify an image in which the one or more objects have their eyes open, and an operation of storing an eye region image extracted from the image in which the one or more objects have their eyes open and information related to the image in which the one or more objects have their eyes open in a memory (440).
[0157] In one embodiment, the operation of storing the eye region image may include, when there are two or more of the one or more objects, the operation of storing an eye region image extracted for each of the one or more objects.
[0158] In one embodiment, the operation of determining the first reference image may include the operation of identifying at least one image having a specified brightness value among the plurality of images, and the operation of determining an image having the greatest sharpness among the at least one image as the first reference image.
[0159] In one embodiment, the operation of determining the image with the greatest sharpness as the first reference image may include, if there are two or more images with the greatest sharpness, determining the image whose capture time is closest to the input time of the shooting request as the first reference image.
[0160] In one embodiment, the operation of determining the first reference image may include an operation of calculating a motion difference between the first reference image and a first image having the greatest sharpness among images that do not have the specified brightness value, and an operation of changing the first reference image to the first image if the calculated motion difference is greater than a threshold value.
[0161] In one embodiment, the method may further include an operation of determining whether a change in the first reference image is necessary based on an eye state of the one or more objects, an operation of determining one or more candidate images having a sharpness level higher than a threshold level from among the plurality of images if a change in the first reference image is determined to be necessary, and an operation of changing the first reference image based on an image of the one or more objects with their eyes open from among the one or more candidate images.
[0162] In one embodiment, the operation of changing the first reference image may include an operation of selecting the first reference image based on an image having the largest number of objects with their eyes open when there are two or more objects included in the one or more candidate images.
[0163] In one embodiment, the operation of changing the first reference image may include, if the brightness of the first reference image and the image of the one or more objects with their eyes open are different, the operation of matching the brightness of the image of the one or more objects with their eyes open to the brightness of the first reference image.
[0164] In one embodiment, the operation of obtaining the second reference image may include an operation of matching the brightness of the eye region image to the brightness of the first reference image when the brightness of the first reference image and the previously stored eye region image are different.
[0165] 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 disclosed in this document are not limited to the aforementioned devices.
[0166] 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 component (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.
[0167] The term "module" as used herein 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).
[0168] Various embodiments of the present document may be implemented as software (e.g., a program (140)) including one or more commands stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable 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.
[0169] According to one embodiment, the method according to various embodiments disclosed in the present 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., smartphones), 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.
[0170] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include a single or multiple entities. 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.
Claims
1. In an electronic device (400), One or more cameras (410); display (420); at least one processor (430); and Contains a memory (440) for storing instructions, The above instructions, when executed by the at least one processor (430), cause the electronic device (400) to: In response to a user's shooting request, a plurality of images including one or more objects are acquired using one or more cameras (410), Among the plurality of images, a first reference image is determined based on at least one of the sharpness, brightness, or capture time of each image detected from each image, Identify at least one object with its eyes closed in the first reference image, A second reference image is obtained by synthesizing an eye region image previously stored in the eye region of at least one object in the first reference image, Calculate the difference in movement between the second reference image and the remaining images excluding the eye area in the closed state in the plurality of images, An electronic device storing instructions for synthesizing the plurality of images based on the calculated motion difference and displaying the obtained image on the display (420).
2. In claim 1, The above instructions, when executed by the at least one processor (430), cause the electronic device (400) to: By analyzing the above multiple images, an image is identified in which one or more objects have their eyes open, An electronic device that stores, in the memory (440), an eye region image extracted from an image of one or more objects with their eyes open and information related to the image of one or more objects with their eyes open.
3. In claim 1, The above instructions, when executed by the at least one processor (430), cause the electronic device (400) to: Identifying at least one image having a specified brightness value among the above multiple images, An electronic device that determines an image having the greatest sharpness among the at least one image as the first reference image.
4. In claim 3, The above instructions, when executed by the at least one processor (430), cause the electronic device (400) to: An electronic device that determines, when there are two or more images with the greatest sharpness, the image whose capture time is closest to the input time of the shooting request as the first reference image.
5. In claim 3, The above instructions, when executed by the at least one processor (430), cause the electronic device (400) to: Calculate the difference in motion between the first reference image and the first image having the greatest sharpness among the images that do not have the specified brightness value, An electronic device that changes the first reference image to the first image if the calculated motion difference is greater than a threshold value.
6. In claim 1, The above instructions, when executed by the at least one processor (430), cause the electronic device (400) to: Determining whether a change to the first reference image is necessary based on the eye state of one or more objects; If it is determined that a change is necessary to the above first reference image, one or more candidate images having a sharpness level higher than a threshold level are determined from among the plurality of images, Changing the first reference image based on an image of one or more objects with their eyes open among the one or more candidate images, An electronic device that matches the brightness of the image of the one or more objects with their eyes open to the brightness of the first reference image when the brightness of the first reference image and the image of the one or more objects with their eyes open are different.
7. In claim 6, The above instructions cause at least one processor (430) to: An electronic device that selects the first reference image based on the image having the largest number of objects with open eyes when there are two or more objects included in the one or more candidate images.
8. In claim 1, The above instructions, when executed by the at least one processor (430), cause the electronic device (400) to: An electronic device that matches the brightness of the eye region image to the brightness of the first reference image when the brightness of the first reference image and the previously stored eye region image are different.
9. In the operating method of the electronic device (400), An operation of acquiring multiple images containing one or more objects using one or more cameras (410); An operation of determining a first reference image among the plurality of images based on at least one of sharpness, brightness, or capture time of each image detected from each image; An action of identifying at least one object with its eyes closed in the first reference image; An operation of obtaining a second reference image by synthesizing an eye region image stored in the eye region of at least one object in the first reference image; An operation of calculating the difference in movement between the second reference image and the remaining images excluding the eye area in which the eyes are closed in the plurality of images; and An action of displaying an image obtained by synthesizing the plurality of images based on the calculated motion difference. A method comprising:
10. In claim 9, An operation of analyzing the plurality of images to determine an image in which one or more objects have their eyes open; and A method comprising: storing, in memory, an eye region image extracted from an image of one or more objects with their eyes open and information related to the image of one or more objects with their eyes open.
11. In claim 9, The operation of determining the first reference image is as follows: An operation of identifying at least one image having a specified brightness value among the plurality of images; and An operation of determining an image having the greatest sharpness among at least one of the above images as the first reference image, The operation of determining the image with the greatest sharpness as the first reference image is, A method comprising: when there are two or more images with the greatest sharpness, determining an image whose capture time is closest to the input time of the shooting request as the first reference image.
12. In claim 11, The operation of determining the first reference image is as follows: An operation of calculating the difference in motion between the first reference image and the first image having the greatest sharpness among images that do not have the specified brightness value; and A method comprising an action of changing a first reference image to the first image if the calculated motion difference is greater than a threshold value.
13. In claim 9, An action for determining whether a change to the first reference image is required based on the eye state of one or more objects; If it is determined that a change in the above first reference image is necessary, an operation of determining one or more candidate images among the plurality of images having a sharpness level higher than a threshold level; and Further comprising an action of changing the first reference image based on an image of the one or more objects in a state of having their eyes open among the one or more candidate images, The action of changing the above first reference image is: A method comprising: an operation of matching the brightness of an image of one or more objects with their eyes open to the brightness of the first reference image, when the brightness of the first reference image and the image of one or more objects with their eyes open are different.
14. In claim 13, The action of changing the above first reference image is: A method comprising: selecting the first reference image based on an image having the largest number of objects with open eyes, when there are two or more objects included in the one or more candidate images.
15. In claim 9, The operation of obtaining the second reference image is as follows: A method comprising an operation of matching the brightness of the eye region image to the brightness of the first reference image when the brightness of the first reference image and the previously stored eye region image are different.
Citation Information
Patent Citations
Facial image synthesis device, facial image synthesis method, and program
JP5484994B2
Apparatus and method for taking a picture continously
KR101906827B1
Image processing methods, devices and apparatus
KR102279436B1
Electronic device for blurring an image obtained by combining a plurality of images based on depth information and method of driving the electronic device
KR102525000B1
Multi-frame noise reduction method, and terminal
US20170019616A1