WO2022203169A1 - 전자 장치의 촬영 방법 및 그 전자 장치 - Google Patents

전자 장치의 촬영 방법 및 그 전자 장치 Download PDF

Info

Publication number
WO2022203169A1
WO2022203169A1 PCT/KR2022/000170 KR2022000170W WO2022203169A1 WO 2022203169 A1 WO2022203169 A1 WO 2022203169A1 KR 2022000170 W KR2022000170 W KR 2022000170W WO 2022203169 A1 WO2022203169 A1 WO 2022203169A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
electronic device
light emission
processor
area
Prior art date
Application number
PCT/KR2022/000170
Other languages
English (en)
French (fr)
Inventor
신종근
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Priority to CN202280023529.8A priority Critical patent/CN117083870A/zh
Priority to EP22775874.5A priority patent/EP4319136A1/en
Publication of WO2022203169A1 publication Critical patent/WO2022203169A1/ko
Priority to US18/448,504 priority patent/US20230396889A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/958Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging
    • H04N23/959Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging by adjusting depth of field during image capture, e.g. maximising or setting range based on scene characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors

Definitions

  • Various embodiments according to the present disclosure relate to a technique for selecting a photographing method based on a preview image analysis.
  • the photographing state is determined according to the luminance state of the surrounding environment.
  • a flash device that creates a flash that has almost the same properties as the sun's rays with a large amount of light and a high color temperature for a very short time. It is improved so that you can take photos with the appropriate exposure.
  • the camera performs photographing using the auxiliary light emission and/or the main light emission.
  • the auxiliary light emission uses a lower current than the main light emission to take pictures with low brightness
  • the main light emission uses a strong current to take a picture with high brightness for a short time. shoot
  • the reason for taking pictures with sub-flash and main flash is that, in the case of main flash, a strong current is used, so the flash cannot be turned on for a long time, and the flash lasts only for a short time due to severe glare.
  • the exposure degree and focus cannot be predicted during a very short light emission time during flash photography of the camera, the exposure level and focus of the main light emission can be predicted in advance with the auxiliary light emission. In this case, if both auxiliary and main flashes are always used, the flash shooting time becomes longer due to two flash shootings, and glare may occur. Also, since the main light emits light for a very short time, the user's eye adaptation time is insufficient, and a red-eye phenomenon may appear.
  • the electronic device includes a camera, a sensor capable of detecting a distance between the electronic device and an object, a display, and light emission that generates a flash corresponding to first and/or second light emission when photographing using the camera a module and at least one processor electrically connected to the camera, the sensor, the light emitting module, and the display, wherein the at least one processor displays an image obtained by driving the camera as a preview image on the display ( display), a main object included in the preview image is determined, and when the distance between the main object detected through the sensor and the electronic device is less than a threshold value, the image is captured using the first light emission when the distance between the main object sensed through the sensor and the electronic device is equal to or greater than the threshold value, capturing using the first light emission and the second light emission subsequent to the first light emission
  • the second mode can be executed.
  • An operation method of an electronic device includes an operation of displaying an image obtained by driving a camera as a preview image on a display, an operation of determining a main object included in the preview image, and a sensor When the distance between the main object detected through the and the electronic device is less than a threshold value, executing a first mode of photographing using a first light emission, the main object detected through the sensor and the electronic device and executing a second mode of photographing using the first light emission and a second light emission subsequent to the first light emission when the distance of is equal to or greater than the threshold value.
  • the electronic device includes a camera, a sensor capable of detecting a distance between the electronic device and an object, a display, and light emission that generates a flash corresponding to first and/or second light emission when photographing using the camera a module and at least one processor electrically connected to the camera, the sensor, the light emitting module, and the display, wherein the at least one processor displays an image obtained by driving the camera as a preview image on the display ( display), dividing the preview image into a plurality of regions, and determining at least a portion of the plurality of regions as a foreground region based on distance information between an external object and the electronic device obtained through the sensor, A first mode in which a main object included in the foreground area is determined, and when the distance between the main object detected through the sensor and the electronic device is less than a threshold value, the first mode is used to capture images using the first light emission and when the distance between the main object sensed through the sensor and the electronic device is equal to or greater than the threshold value, a second mode of photographing
  • the electronic device and method according to various embodiments of the present disclosure may reduce a photographing time and alleviate a red-eye phenomenon by analyzing a preview image and selecting a photographing method.
  • FIG. 1 is a block diagram of an electronic device in a network environment, according to an embodiment.
  • FIG. 2 is a block diagram illustrating a camera module, according to an embodiment.
  • FIG. 3 is a block diagram of an electronic device according to an exemplary embodiment.
  • FIG. 4 is a flowchart illustrating an operation of determining a photographing method based on a distance to a subject in an electronic device according to an exemplary embodiment.
  • FIG. 5 is a diagram illustrating identification of an object included in a preview image according to distance information in an electronic device according to an exemplary embodiment.
  • FIG. 6 is a diagram illustrating dividing a preview image into a plurality of regions according to distance information in an electronic device according to an exemplary embodiment.
  • FIG. 7 is a flowchart illustrating an operation of determining a photographing mode and a synthesis method based on distance information and brightness information of a preview image in an electronic device according to an exemplary embodiment.
  • FIG. 8 is a diagram illustrating obtaining an HDR image in an electronic device according to an exemplary embodiment.
  • FIG. 1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments of the present disclosure.
  • an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with at least one of the electronic device 104 and the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • a first network 198 eg, a short-range wireless communication network
  • a second network 199 e.g., a second network 199
  • the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • the electronic device 101 includes a processor 120 , a memory 130 , an input module 150 , a sound output module 155 , a display module 160 , an audio module 170 , and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or an antenna module 197 .
  • at least one of these components eg, the connection terminal 178
  • some of these components are integrated into one component (eg, display module 160 ). can be
  • the processor 120 for example, executes software (eg, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or operations. According to an embodiment, as at least part of data processing or operation, the processor 120 stores a command or data received from another component (eg, the sensor module 176 or the communication module 190 ) into the volatile memory 132 . may be stored in , process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 .
  • software eg, a program 140
  • the processor 120 stores a command or data received from another component (eg, the sensor module 176 or the communication module 190 ) into the volatile memory 132 .
  • the processor 120 stores a command or data received from another component (eg, the sensor module 176 or the communication module 190 ) into the volatile memory 132 .
  • the processor 120 is a main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor).
  • a main processor 121 eg, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit
  • NPU neural processing unit
  • an image signal processor e.g., a sensor hub processor, or a communication processor.
  • the secondary processor 123 may, for example, act on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or when the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states.
  • the auxiliary processor 123 eg, image signal processor or communication processor
  • the auxiliary processor 123 may include a hardware structure specialized for processing an artificial intelligence model.
  • Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108).
  • the learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited
  • the artificial intelligence model may include a plurality of artificial neural network layers.
  • Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example.
  • the artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.
  • the memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176 ) of the electronic device 101 .
  • the data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto.
  • the memory 130 may include a volatile memory 132 or a non-volatile memory 134 .
  • 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 .
  • the input module 150 may receive a command or data to be used by a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 .
  • the input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
  • the sound output module 155 may output a sound signal to the outside of the electronic device 101 .
  • the sound output module 155 may 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 an embodiment, the receiver may be implemented separately from or as a part of the speaker.
  • the display module 160 may visually provide information to the outside (eg, a user) of the electronic device 101 .
  • the display module 160 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device.
  • the display module 160 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.
  • the audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input module 150 , or an external electronic device (eg, a sound output module 155 ) connected directly or wirelessly with the electronic device 101 .
  • the electronic device 102) eg, a speaker or headphones
  • the electronic device 102 may output a sound.
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the sensed state. can do.
  • the sensor module 176 may 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, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
  • the interface 177 may support one or more specified protocols that may be used by the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ).
  • 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.
  • the connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102 ).
  • the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 188 may manage power supplied to the electronic device 101 .
  • the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101 .
  • the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel.
  • the communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication.
  • the communication module 190 is a wireless communication module 192 (eg, 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 (eg, : It may include a local area network (LAN) communication module, or a power line communication module).
  • a wireless communication module 192 eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module
  • GNSS global navigation satellite system
  • wired communication module 194 eg, : It may include a local area network (LAN) communication module, or a power line communication module.
  • a corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN).
  • a first network 198 eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)
  • a second network 199 eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN).
  • a telecommunication network
  • the wireless communication module 192 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 .
  • subscriber information eg, International Mobile Subscriber Identifier (IMSI)
  • IMSI International Mobile Subscriber Identifier
  • the electronic device 101 may be identified or authenticated.
  • the wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR).
  • NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)).
  • eMBB enhanced mobile broadband
  • mMTC massive machine type communications
  • URLLC ultra-reliable and low-latency
  • the wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example.
  • a high frequency band eg, mmWave band
  • the wireless communication module 192 uses various techniques for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna.
  • the wireless communication module 192 may support various requirements defined in the electronic device 101 , an external electronic device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ).
  • the wireless communication module 192 includes a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: Downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less) can be supported.
  • a peak data rate eg, 20 Gbps or more
  • loss coverage eg, 164 dB or less
  • U-plane latency for realizing URLLC
  • the antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device).
  • the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern.
  • the antenna module 197 may include a plurality of antennas (eg, 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 is connected from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna.
  • other components eg, a radio frequency integrated circuit (RFIC)
  • RFIC radio frequency integrated circuit
  • the antenna module 197 may form a mmWave antenna module.
  • the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
  • peripheral devices eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • GPIO general purpose input and output
  • SPI serial peripheral interface
  • MIPI mobile industry processor interface
  • the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 .
  • Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 .
  • all or part of the operations executed by the electronic device 101 may be executed by one or more external electronic devices 102 , 104 , or 108 .
  • the electronic device 101 may perform the function or service itself instead of executing the function or service itself.
  • one or more external electronic devices may be requested to perform at least a part of the function or the service.
  • One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 .
  • the electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request.
  • cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used.
  • the electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing.
  • the external electronic device 104 may include an Internet of things (IoT) device.
  • the server 108 may be an intelligent server using machine learning and/or neural networks.
  • the external electronic device 104 or the server 108 may be included in the second network 199 .
  • the electronic device 101 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
  • the electronic device may be a device of various types.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a laptop, a desktop, a tablet, or a portable multimedia device
  • portable medical device e.g., a portable medical device
  • camera e.g., a camera
  • a wearable device e.g., a smart watch
  • a home appliance device e.g., a smart bracelet
  • first, second, or first or second may simply be used to distinguish an element from other elements in question, and may refer elements to other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is “coupled” or “connected” to another (eg, second) component, with or without the terms “functionally” or “communicatively”. When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
  • module used in various embodiments of the present document may include a unit implemented in hardware, software, or firmware, for example, and interchangeably with terms such as logic, logic block, component, or circuit.
  • a module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • one or more instructions stored in a storage medium may be implemented as software (eg, the program 140) including
  • the processor eg, the processor 120
  • the device eg, the electronic device 101
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • 'non-transitory' only means that the storage medium is a tangible device and does not contain a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
  • a signal eg, electromagnetic wave
  • the method according to various embodiments disclosed in this document may be provided by being included in a computer program product.
  • Computer program products may be traded between sellers and buyers as commodities.
  • the computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store TM ) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly or online between smartphones (eg: smartphones).
  • a portion of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a memory of a relay server.
  • the camera module 180 includes a lens assembly 210 , a flash 220 , an image sensor 230 , an image stabilizer 240 , a memory 250 (eg, a buffer memory), or an image signal processor. (260).
  • the lens assembly 210 may collect light emitted from a subject, which is an image to be captured.
  • the lens assembly 210 may include one or more lenses.
  • 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 (eg, angle of view, focal length, auto focus, f number, or optical zoom), or at least one lens assembly may be a different lens assembly. It may have one or more lens properties that are different from the lens properties of .
  • the lens assembly 210 may include, for example, a wide-angle lens or a telephoto lens.
  • the flash 220 may emit light used to enhance light emitted or reflected from the subject.
  • the flash 220 may include one or more light emitting diodes (eg, a red-green-blue (RGB) LED, a white LED, an infrared LED, or an ultraviolet LED), or a xenon lamp.
  • the image sensor 230 may 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.
  • the image sensor 230 may include, for example, 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, the same It may include a plurality of image sensors having properties, or a plurality of image sensors having different properties.
  • Each image sensor included in the image sensor 230 may be implemented using, for example, a charged coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.
  • CCD charged coupled device
  • CMOS complementary metal oxide semiconductor
  • the image stabilizer 240 moves at least one lens or the image sensor 230 included in the lens assembly 210 in a specific direction or Operation characteristics of the image sensor 230 may be controlled (eg, read-out timing may be adjusted, etc.). This makes it possible to compensate for at least some of the negative effects of the movement on the image being taken.
  • the image stabilizer 240 is, according to an embodiment, the image stabilizer 240 is a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module 180 . can be used to detect such a movement of the camera module 180 or the electronic device 101 .
  • the image stabilizer 240 may be implemented as, for example, an optical image stabilizer.
  • the memory 250 may temporarily store at least a portion of the image acquired through the image sensor 230 for a next image processing operation. For example, when image acquisition is delayed according to the shutter or a plurality of images are acquired at high speed, the acquired original image (eg, a Bayer-patterned image or a high-resolution image) is stored in the memory 250 and , a copy image corresponding thereto (eg, a low-resolution image) may be previewed through the display module 160 .
  • the acquired original image eg, a Bayer-patterned image or a high-resolution image
  • a copy image corresponding thereto eg, a low-resolution image
  • the memory 250 may be configured as at least a part of the memory 130 or as a separate memory operated independently of the memory 130 .
  • the image signal processor 260 may perform one or more image processing on an image acquired through the image sensor 230 or an image stored in the memory 250 .
  • the one or more image processes may include, for example, depth map generation, three-dimensional modeling, panorama generation, feature point extraction, image synthesis, or image compensation (eg, noise reduction, resolution adjustment, brightness adjustment, blurring ( blurring), sharpening (sharpening), or softening (softening)
  • the image signal processor 260 may include at least one of the components included in the camera module 180 (eg, an image sensor). 230), for example, exposure time control, readout timing control, etc.
  • the image processed by the image signal processor 260 is stored back in the memory 250 for further processing.
  • the image signal processor 260 may be configured as at least a part of the processor 120 or as a separate processor operated independently of the processor 120.
  • the image signal processor 260 may be configured as the processor 120 and a separate processor, the at least one image processed by the image signal processor 260 may be displayed through the display module 160 as it is by the processor 120 or after additional image processing.
  • the electronic device 101 may include a plurality of camera modules 180 each having different properties or functions.
  • at least one of the plurality of camera modules 180 may be a wide-angle camera, and at least the other may be a telephoto camera.
  • at least one of the plurality of camera modules 180 may be a front camera, and at least the other may be a rear camera.
  • FIG. 3 is a block diagram of an electronic device according to an exemplary embodiment.
  • the electronic device 101 may include a processor 310 , a camera 320 , a sensor 330 , a display 340 , and a memory 350 .
  • the electronic device 101 may include additional components in addition to the components illustrated in FIG. 3 , or may omit at least one of the components illustrated in FIG. 3 .
  • the processor 310 may execute an operation or data processing related to control and/or communication of at least one other component of the electronic device 101 using instructions stored in the memory 350 .
  • the processor 310 includes a central processing unit (CPU), a graphics processing unit (GPU), a micro controller unit (MCU), a sensor hub, a supplementary processor, a communication processor, and an application. It may include at least one of a processor (application processor), application specific integrated circuit (ASIC), and field programmable gate arrays (FPGA), and may have a plurality of cores.
  • the processor 310 may execute an application (eg, a camera application) stored in the memory 350 .
  • the processor 310 may acquire an image by using the camera 320 while the camera application is running.
  • the application described herein may be any application using the camera 320 .
  • the processor 310 may display an image acquired using the camera 320 as a preview image on the display 340 . According to an embodiment, the processor 310 may obtain distance information from the object included in the preview image by using the sensor 330 . According to an embodiment, the processor 310 may divide the preview image into a plurality of regions based on a depth map of the preview image and perform image processing for each region. Specific details related to the operation of the processor 310 will be described later with reference to FIG. 4 .
  • the camera 320 may acquire (or capture) an image (eg, a still image and/or a moving image).
  • an image signal processor (not shown) electrically connected to the camera 320 may distinguish an object (eg, a person) and a background included in an image (eg, a preview image or an image stored in the memory 350 ).
  • the image signal processor may be separated from the camera 320 or implemented as a part of the processor 310 .
  • the camera 320 may include an image sensor.
  • the image sensor may acquire and process color information.
  • the senor 330 may include at least one of a depth sensor, a ToF sensor, and an image sensor (eg, a dual pixel image).
  • the depth sensor may measure a depth of an external object and generate depth information corresponding to the external object using the measured depth.
  • the sensor 330 is operatively connected to at least one of the processor 310, the camera 320, and the memory 350 to process color information, 3D information, distance information, location information, and the like. can do.
  • the display 340 may display an image obtained through the camera 320 .
  • the processor 310 may display an image acquired through the camera 320 on the display 340 as a preview image.
  • the processor 310 may display at least a portion of an image acquired through the camera 320 as a preview on the display 340 .
  • the electronic device 101 may obtain a user's input through the display 340 and transmit the user's input to the processor 310 .
  • the memory 350 may mean one or more memory sets. According to an embodiment, the memory 350 is received from or generated by other components (eg, the processor 310 , the camera 320 , the sensor 330 , and the display 340 ). It can store data and/or commands. In various embodiments, the memory 350 may store an application using the camera 320 .
  • FIG. 4 is a flowchart illustrating an operation of determining a photographing method based on a distance to a subject in an electronic device according to an exemplary embodiment.
  • the processor 310 may display an image obtained by driving the camera 320 in operation 410 as a preview image on the display 340 .
  • the processor 310 may display a preview image on the display 340 of an image acquired through the camera 320 while the camera application stored in the memory 350 is running.
  • the processor 310 may determine a main object included in the preview image in operation 420 .
  • the processor 310 may determine a main object included in an image corresponding to a preview image displayed on the display 340 from among images acquired by driving the camera 320 .
  • the processor 310 may obtain depth information and/or distance information on at least one object included in the preview image by using the sensor 330 (eg, a depth sensor or a ToF sensor).
  • the processor 310 may acquire distance information on at least one object included in the preview image using artificial intelligence (AI) and/or a dual pixel image sensor.
  • AI artificial intelligence
  • the processor 310 may divide the preview image into a plurality of regions based on the acquired depth information and/or distance information. For example, the processor 310 may separate an object closest to the electronic device 101 from the background image based on the distance information. According to an embodiment, the processor 310 may determine an object closest to the electronic device 101 as a main object. However, the object determined as the main object is not limited thereto.
  • the processor 310 uses the first light emission (eg, auxiliary light emission) to A first mode of photographing may be executed. For example, when the distance between the electronic device 101 and the object closest to the electronic device 101 included in the preview image is less than a specified distance, the processor 310 may take a photograph using only the first light emission.
  • the first light emission eg, auxiliary light emission
  • the processor 310 is configured to perform auto focus (AF), auto white balance (AWB), and auto exposure (AE) when shooting using the first light emission, according to an embodiment. At least one operation may be performed. According to an embodiment, the processor 310 may calculate AF data for focus adjustment, AWB data for white balance adjustment, and AE data for exposure adjustment by performing the above operation.
  • the processor 310 may adjust a focus on a subject (or a main object). According to an embodiment, the processor 310 may adjust the focus on the main object using distance information obtained using the sensor 330 (eg, a ToF sensor).
  • the sensor 330 eg, a ToF sensor
  • the processor 310 may adjust the position of the focus on the main object using an actuator. According to an embodiment, the processor 310 may deactivate the first light emission in response to completion of photographing using the first light emission.
  • the processor 310 performs the first light emission and the second light emission subsequent to the first light emission.
  • a threshold value can be used to execute the second mode of photographing.
  • the processor 310 may take a picture using the first light emission and the second light emission.
  • the second light emission may have a greater amount of light than the first light emission.
  • the processor 310 when shooting using the first light emission, performs an AF operation and an AWB operation using AF data for focus adjustment, AWB data for white balance adjustment, or AE data for exposure adjustment. and at least one of an AE operation. According to an embodiment, the processor 310 may deactivate the first light emission in response to completion of photographing using the first light emission.
  • FIG. 5 is a diagram illustrating identification of an object included in a preview image according to distance information in an electronic device according to an exemplary embodiment.
  • the processor 310 may divide an image acquired through the camera 320 into a plurality of regions. For example, the processor 310 may divide the image into a plurality of regions based on depth information and/or distance information of an object included in the image.
  • the preview image 510 displayed on the display 340 may include a plurality of objects.
  • the preview image 510 may include a first object 501a, a second object 502a, and a third object 503a.
  • the processor 310 may generate a depth map 520 corresponding to the preview image 510 .
  • the processor 310 may divide the preview image 510 into a plurality of regions using the generated depth map.
  • the first object 501a , the second object 501b , and the third object 501c of the preview image 510 include a first region 501b and a second object 501c included in the depth map 520 , respectively. It may correspond to the second area 502b and the third area 503b.
  • the processor 310 may map a number to the plurality of regions based on a depth value obtained with respect to at least one object included in the preview image 510 .
  • the processor 310 may map different numbers to the first area 501b, the second area 502b, and the third area 503b included in the depth map 520 . Specifically, for example, the processor 310 maps the first number to the first area 501b corresponding to the first object 501a closest to the electronic device 101 and communicates with the electronic device 101 . A third number greater than the first number may be mapped to the third area 503b corresponding to the third object 503a having the longest distance. Also, for example, in the second area 502b corresponding to the second object 502a that is farther than the first object 501a and closer than the third object 503a, the distance from the electronic device 101 is greater than the first number. A second number greater than the third number may be mapped.
  • FIG. 6 is a diagram illustrating dividing a preview image into a plurality of regions according to distance information in an electronic device according to an exemplary embodiment.
  • the processor 310 performs a preview image (eg, FIG. 6 ) based on depth information and/or distance information sensed by a sensor 330 (eg, a depth sensor or a ToF sensor).
  • the preview image 510 of FIG. 5 may be divided into a foreground area and a rear view area.
  • the processor 310 generates the preview image 510 based on the distance information in a first region 601 (eg, a foreground region or a region of interest), a second region 602 (eg, a rearview region or a region of interest). background area) and a third area 603 (eg, a background area or a background area).
  • the processor 310 sets an area corresponding to an object closest to the electronic device 101 (eg, the main object of FIG. 4 or the first object 501a of FIG. 5 ) to the first area 601 .
  • the processor 310 may determine an area corresponding to the object having the longest distance from the electronic device 101 as the third area 603 .
  • the processor 310 may determine an area excluding the first area 610 and the third area 603 of the preview image 510 as the second area 602 .
  • the processor 310 uses the sensor 330 (eg, an image sensor) to obtain brightness information corresponding to the first area 601 , the second area 602 , and the third area 603 . can be obtained. According to an embodiment, the processor 310 may obtain brightness difference information between the foreground area and the rear view area. For example, the processor 310 may obtain brightness difference information between the first area 601 and the second area 602 . Also, for example, the processor 310 may obtain brightness difference information between the first area 601 and the second area 602 .
  • the sensor 330 eg, an image sensor
  • FIG. 7 is a flowchart illustrating an operation of determining a photographing mode and a synthesis method based on distance information and brightness information of a preview image in an electronic device according to an exemplary embodiment.
  • the processor 310 may determine whether the distance between the main object and the electronic device 101 is less than a threshold value. According to an embodiment, the processor 310 may obtain distance information between the electronic device 101 and an object closest to the electronic device 101 among objects included in the preview image. According to an embodiment, the processor 310 may set a shooting mode based on the obtained distance information. For example, the processor 310 may determine whether to perform imaging using only auxiliary light emission based on the acquired distance information.
  • the processor 310 may take a photograph using the auxiliary light emission.
  • the processor 310 may take a picture using only the auxiliary light emission. have.
  • the processor 310 may perform at least one of an AF operation, an AWB operation, and an AE operation when photographing using auxiliary light emission.
  • the processor 310 may deactivate the auxiliary light emission in response to the end of photographing using the auxiliary light emission.
  • the electronic device 101 may improve the brightness and visibility of the entire image by photographing it for a long exposure time with weak light emission.
  • the electronic device 101 when it is determined that the distance to the subject is close, the electronic device 101 can reduce the photographing time and alleviate the red-eye effect by using the auxiliary light emission without the main light emission.
  • the processor 310 may take a picture using both the secondary light emission and the main light emission. According to an embodiment, when it is determined that the distance between the electronic device 101 and the closest object to the electronic device 101 among the objects included in the preview image is equal to or greater than a specified distance, the processor 310 performs both auxiliary light emission and main light emission. You can use it to take pictures. According to an embodiment, the processor 310 may perform photographing using the main light emission after completing photographing using the auxiliary light emission.
  • the processor 310 may determine whether a difference in brightness between the main object and the remaining area is equal to or greater than a threshold value. According to an embodiment, the processor 310 may obtain brightness information of an area (or foreground area) corresponding to the main object and the remaining area (or background area) in the preview image by using the image sensor. According to an embodiment, the processor 310 may determine whether a difference between the brightness of the foreground area and the brightness of the rear view area is equal to or greater than a specified value. According to an embodiment, the processor 310 may determine the exposure time based on information on the difference in brightness between the foreground area and the background area in the preview image.
  • the processor 310 may synthesize the images in the first manner in operation 709 .
  • the processor 310 may determine an image synthesis method based on brightness information of the foreground area and/or the background area. For example, the processor 310 may set the exposure time based on the brightness of one of the foreground area and the background area.
  • the processor 310 may obtain a plurality of images having different brightnesses from the image sensor.
  • the processor 310 determines that the foreground region among a plurality of images acquired from the image sensor is Properly exposed images can be synthesized. According to an embodiment, when it is determined that the difference in brightness between the foreground region and the background region is greater than or equal to a threshold value and the background region is bright or saturated, the processor 310 determines that the background region among the plurality of images obtained from the image sensor is appropriate. You can composite the exposed images.
  • the processor 310 determines whether the foreground region is properly exposed among a plurality of images obtained from the image sensor. Images can be composited. According to an embodiment, when it is determined that the difference in brightness between the foreground region and the rearview region is greater than or equal to a threshold value and the background region is dark, the processor 310 determines whether the rearview region is properly exposed among a plurality of images obtained from the image sensor. Images can be composited.
  • the processor 310 determines that the difference in brightness between the foreground region and the background region is equal to or greater than a threshold, and the foreground region is dark and the background region is bright, the processor 310 generates an image in which the foreground region is properly exposed. and an image in which the rear view region is properly exposed may be synthesized.
  • the processor 310 determines that the difference in brightness between the foreground area and the background area is equal to or greater than a threshold value, and the foreground area is bright and the background area is dark, the processor 310 generates an image in which the foreground area is properly exposed. and an image in which the rear view region is properly exposed may be synthesized.
  • the processor 310 may synthesize the images in the second method in operation 711 .
  • the processor 310 may obtain images having the same brightness from the image sensor.
  • the processor 310 may not synthesize overexposed or underexposed images among a plurality of images.
  • the electronic device 101 may improve image quality by determining a suitable synthesis method based on distance information and/or brightness information obtained from the preview image.
  • FIG. 8 is a diagram illustrating obtaining an HDR image in an electronic device according to an exemplary embodiment.
  • the processor 310 may generate a composite image (or HDR image) by using at least some of a plurality of images obtained from an image sensor.
  • the processor 310 may generate an HDR image using a plurality of images having different exposure values.
  • the processor 310 may generate a third image 803 (eg, an HDR image) by using the first image 801 and the second image 802 .
  • an exposure value may mean an exposure amount or brightness of an image.
  • the processor 310 may acquire a plurality of images having different exposure values from the image sensor. For example, the processor 310 may acquire the first image 801 and the second image 802 from the image sensor. The processor 310 may acquire the first image 801 and the second image 802 having different exposure times of the image sensor.
  • the processor 310 may analyze HDR histograms of the first image 801 and the second image 802 .
  • the histogram for image brightness represents the exposure amount as a class and the number of pixels as the frequency, and vice versa. can be all day.
  • the processor 310 may determine the exposure amount of the acquired image by analyzing the histogram of the image brightness.
  • the processor 310 may determine whether the acquired image is underexposure or overexposure. According to an embodiment, the processor 310 analyzes the HDR histogram to determine whether the first image 801 or the second image 802 corresponds to at least one of underexposure and overexposure. have. According to an embodiment, by analyzing the HDR histogram, the processor 310 may determine that a large number of pixels with an exposure amount smaller than a predetermined exposure amount is underexposure, and if the number of pixels with a greater exposure amount than a predetermined exposure amount is large, it may be determined as overexposure.
  • a pixel of an image may correspond to a pixel of an image sensor.
  • the processor 310 sets the exposure time of at least one short exposure pixel included in the image sensor corresponding to the overexposed area in the image to be short to prevent overexposure.
  • a relaxed image can be obtained.
  • the processor 310 may obtain the second image 802 obtained by setting the exposure time to be short.
  • the processor 310 when the underexposed area is included in the image, the processor 310 sets the exposure time of at least one long exposure pixel included in the image sensor corresponding to the underexposed area in the image to be longer to prevent underexposure. A relaxed image can be obtained.
  • the processor 310 when both the overexposed area and the underexposed area are included in the image, the processor 310 reduces at least one overexposed image and underexposed area included in the image sensor corresponding to the overexposed area. All images in which at least one underexposure included in the image sensor corresponding to .
  • the processor 310 may generate an HDR image using the image including the overexposed area and the overexposed image. According to an embodiment, the processor 310 may generate an HDR image using an image including an underexposed area and an image from which underexposure is alleviated. According to an embodiment, the processor 310 may generate an HDR image by using both an image including both an overexposed area and an underexposed area, an overexposed image, and an underexposed image.
  • the first image 801 may include an image having an overexposed area
  • the second image 802 may include an image in which overexposure is reduced.
  • the processor 310 may include an image photographed so that the foreground region (or the region of interest or the region corresponding to the main object) is properly exposed as the first image 801
  • the second image Reference numeral 802 may include an image captured so that an area other than the foreground area is properly exposed.
  • the processor 310 may generate a third image 803 (eg, an HDR image) by using the first image 801 and the second image 802 .
  • each component eg, a module or a program of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. have.
  • one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg, a module or a program
  • the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. .
  • operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. , or one or more other operations may be added.
  • the electronic device may include a camera (eg, the camera 320 of FIG. 3 ) and a device capable of detecting a distance between the electronic device and an object.
  • a sensor eg, the sensor 330 of FIG. 3
  • a display eg, the display 340 of FIG.
  • a light emitting module that generates a flash corresponding to the first light emission and/or the second light emission when shooting using the camera and at least one processor electrically connected to the camera, the sensor, the light emitting module, and the display, wherein the at least one processor displays an image obtained by driving the camera as a preview image on the display ( display), a main object included in the preview image is determined, and when the distance between the main object sensed through the sensor and the electronic device is less than a threshold value, the image is captured using the first light emission when the distance between the main object sensed through the sensor and the electronic device is equal to or greater than the threshold value, capturing using the first light emission and the second light emission subsequent to the first light emission
  • the second mode can be executed.
  • the at least one processor may deactivate the first light emission in response to the completion of photographing using the first light emission.
  • the second light emission may have a greater amount of light than the first light emission.
  • the at least one processor performs an auto focus (AF) operation, an auto white balance (AWB) operation, and an auto exposure (AE) operation when the at least one processor captures images using the first light emission.
  • AF auto focus
  • ALB auto white balance
  • AE auto exposure
  • the at least one processor determines a region corresponding to the main object as a first region, determines a region excluding the first region in the preview image as a second region, and the first region and obtaining brightness difference information of the second region, and determining an exposure time based on the obtained brightness difference information.
  • the electronic device includes an image sensor, and the at least one processor acquires a plurality of images having different brightnesses from the image sensor when the obtained brightness difference is equal to or greater than a threshold value to obtain high dynamic range (HDR) images. ) to create an image.
  • HDR high dynamic range
  • the at least one processor may generate an HDR image by synthesizing an image having a low exposure.
  • the at least one processor divides the preview image into a plurality of regions, divides the region based on distance information of each of the plurality of regions, and the brightness difference between the divided regions information can be obtained.
  • an image obtained by driving a camera eg, the camera 320 of FIG. 3
  • Example: an operation of displaying a preview image on the display 340 of FIG. 3 , an operation of determining a main object included in the preview image, and a sensor eg, the sensor 330 of FIG.
  • the method of operating an electronic device may include an operation of inactivating the first light emission in response to completion of photographing using the first light emission.
  • the operation of executing the first mode may include an operation of performing at least one of an AF operation, an AWB operation, and an AE operation.
  • the method of operating an electronic device may include determining a region corresponding to the main object as a first region, determining a region excluding the first region from the preview image as a second region, and The method may include obtaining brightness difference information between the first area and the second area and determining an exposure time based on the obtained brightness difference information.
  • the method of operating the electronic device may include generating an HDR image by acquiring a plurality of images having different brightnesses from an image sensor when the obtained brightness difference is equal to or greater than a threshold value.
  • the operating method of the electronic device may include generating an HDR image by synthesizing an image with a low exposure when it is determined that there is overexposure in the first area or the second area.
  • the method of operating the electronic device includes dividing the preview image into a plurality of regions and dividing the region based on distance information of each of the plurality of regions, and the acquired between the divided regions. It may include an operation of obtaining brightness difference information.
  • the electronic device (eg, the electronic device 101 of FIG. 1 ) according to an embodiment includes a camera, a sensor capable of detecting a distance between the electronic device and an object, a display, and a display device when photographing using the camera.
  • a light emitting module that generates a flash corresponding to first light emission and/or second light emission
  • at least one processor electrically connected to the camera, the sensor, the light emitting module, and the display, wherein the at least one processor comprises the An image obtained by driving a camera is displayed as a preview image on the display, the preview image is divided into a plurality of regions, and based on distance information between an external object and the electronic device obtained through the sensor to determine at least a portion of the plurality of regions as a foreground region, determine a main object included in the foreground region, and determine a distance between the main object sensed through the sensor and the electronic device is critical
  • a first mode of photographing using the first light emission is executed, and when the distance between the main object and the electronic device sensed through the sensor is equal to or greater than the threshold value, the first light emission and the first light emission are performed.
  • a second mode of photographing using the second light emission subsequent to light emission may be executed.
  • the at least one processor may obtain the distance information using at least one of an artificial intelligence (AI), a dual pixel image sensor, and a time of flight (TOF) sensor. .
  • AI artificial intelligence
  • TOF time of flight
  • the at least one processor may map a number corresponding to distance information of each area to a foreground area and an area other than the foreground area among the plurality of areas.
  • the at least one processor may obtain brightness difference information of the foreground area and an area other than the foreground area, and determine an exposure time based on the obtained brightness difference information.
  • the electronic device may include an image sensor, and the at least one processor may generate an HDR image by acquiring a plurality of images having different brightnesses from the image sensor when the obtained brightness difference is equal to or greater than a threshold value. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

본 개시에 따른 일 실시 예에서는, 카메라, 상기 전자 장치와 객체 간 거리를 감지할 수 있는 센서, 디스플레이, 상기 카메라를 이용한 촬영 시 제1 발광 및/또는 제2 발광에 해당하는 플래시를 발생시키는 발광 모듈 및 상기 카메라, 상기 센서, 상기 발광 모듈, 및 상기 디스플레이와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는 상기 카메라를 구동하여 획득된 이미지를 상기 디스플레이에 프리뷰 이미지로 표시(display)하고, 상기 프리뷰 이미지에 포함된 주요 객체(main object)를 결정하고, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 임계 값 미만인 경우, 상기 제1 발광을 이용하여 촬영하는 제1 모드를 실행하고, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 상기 임계 값 이상인 경우 상기 제1 발광 및 상기 제1 발광에 후속하는 상기 제2 발광을 이용하여 촬영하는 제2 모드를 실행하는 전자 장치가 개시된다. 이 외에도 명세서를 통해 파악되는 다양한 실시 예가 가능하다.

Description

전자 장치의 촬영 방법 및 그 전자 장치
본 개시에 따른 다양한 실시 예들은 프리뷰 이미지 분석에 기반하여 촬영 방법을 선택하는 기술에 관한 것이다.
카메라 등을 이용하여 피사체를 촬영할 경우 주위 환경의 휘도 상태에 따라 촬영 상태가 결정된다. 실내나 야간에 사진을 촬영할 때에는 주변 휘도가 매우 낮기 때문에 임의로 광량이 크고 색온도가 높은 태양 광선과 거의 같은 성질을 가지는 섬광을 극히 짧은 시간 동안 만들어 내는 플래시 장치를 이용하여, 사진 촬영시의 주변 휘도를 개선시켜 적정 노출의 사진을 촬영할 수 있도록 하고 있다.
이 때 카메라는 보조발광 및/또는 본발광을 이용하여 촬영을 수행하는데 보조발광은 본발광에 비하여 낮은 전류를 이용하여 낮은 밝기로 촬영하고, 본발광은 강한 전류를 이용하여 높은 밝기로 짧은 시간동안 촬영한다. 보조발광과 본발광을 나누어 촬영하는 이유는 본발광의 경우 강한 전류를 이용하므로 플래시를 오랫동안 킬 수 없고 눈부심이 심해 짧은 시간 동안만 발광이 지속되기 때문이다.
한편, 카메라의 플래시 촬영 시 매우 짧은 발광 시간 동안에는 노출 정도와 포커스를 예측할 수 없으므로 보조발광으로 본발광의 노출 정도와 포커스를 미리 예측할 수 있다. 이 때, 항상 보조발광 및 본발광을 모두 이용하면 두번의 플래시 촬영으로 인해 플래쉬 촬영시간이 길어지고, 눈부심 현상이 발생할 수 있다. 또한 본발광은 매우 짧은 시간동안 발광하므로 사용자의 눈의 적응시간이 부족하여 적목 현상(red-eye phenomenon)이 나타날 수 있다.
본 문서에서 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.
일 실시 예에 따른 전자 장치는, 카메라, 상기 전자 장치와 객체 간 거리를 감지할 수 있는 센서, 디스플레이, 상기 카메라를 이용한 촬영 시 제1 발광 및/또는 제2 발광에 해당하는 플래시를 발생시키는 발광 모듈 및 상기 카메라, 상기 센서, 상기 발광 모듈, 및 상기 디스플레이와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는 상기 카메라를 구동하여 획득된 이미지를 상기 디스플레이에 프리뷰 이미지로 표시(display)하고, 상기 프리뷰 이미지에 포함된 주요 객체(main object)를 결정하고, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 임계 값 미만인 경우, 상기 제1 발광을 이용하여 촬영하는 제1 모드를 실행하고, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 상기 임계 값 이상인 경우 상기 제1 발광 및 상기 제1 발광에 후속하는 상기 제2 발광을 이용하여 촬영하는 제2 모드를 실행할 수 있다.
일 실시 예에 따른 전자 장치의 동작 방법은, 카메라를 구동하여 획득된 이미지를 디스플레이에 프리뷰 이미지로 표시(display)하는 동작, 상기 프리뷰 이미지에 포함된 주요 객체(main object)를 결정하는 동작, 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 임계 값 미만인 경우, 제1 발광을 이용하여 촬영하는 제1 모드를 실행하는 동작, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 상기 임계 값 이상인 경우 상기 제1 발광 및 상기 제1 발광에 후속하는 제2 발광을 이용하여 촬영하는 제2 모드를 실행하는 동작을 포함할 수 있다.
일 실시 예에 따른 전자 장치는, 카메라, 상기 전자 장치와 객체 간 거리를 감지할 수 있는 센서, 디스플레이, 상기 카메라를 이용한 촬영 시 제1 발광 및/또는 제2 발광에 해당하는 플래시를 발생시키는 발광 모듈 및 상기 카메라, 상기 센서, 상기 발광 모듈, 및 상기 디스플레이와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는 상기 카메라를 구동하여 획득된 이미지를 상기 디스플레이에 프리뷰 이미지로 표시(display)하고, 상기 프리뷰 이미지를 복수 개의 영역들로 구분하고, 상기 센서를 통해 획득된 외부 객체와 상기 전자 장치와의 거리 정보에 기반하여 상기 복수개의 영역들 중 적어도 일부를 전경 영역으로 결정하고, 상기 전경 영역에 포함된 주요 객체(main object)를 결정하고, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 임계 값 미만인 경우, 상기 제1 발광을 이용하여 촬영하는 제1 모드를 실행하고, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 상기 임계 값 이상인 경우 상기 제1 발광 및 상기 제1 발광에 후속하는 상기 제2 발광을 이용하여 촬영하는 제2 모드를 실행할 수 있다.
본 개시에 따른 다양한 실시 예에서의 전자 장치 및 방법은, 프리뷰 이미지를 분석하여 촬영방법을 선택함으로써 촬영 시간을 줄이고 적목 현상을 완화시킬 수 있다.
도 1은 일 실시 예에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 일 실시 예에 따른, 카메라 모듈을 예시하는 블록도이다.
도 3은 일 실시 예에 따른 전자 장치의 블록도이다.
도 4는 일 실시 예에 따른 전자 장치에서 피사체와의 거리에 기반하여 촬영 방법을 결정하는 동작을 도시하는 흐름도이다.
도 5는 일 실시 예에 따른 전자 장치에서 거리 정보에 따라 프리뷰 이미지에 포함된 객체를 식별하는 것을 나타낸 도면이다.
도 6은 일 실시 예에 따른 전자 장치에서 거리 정보에 따라 프리뷰 이미지를 복수의 영역들로 나누는 것을 나타낸 도면이다.
도 7은 일 실시 예에 따른 전자 장치에서 프리뷰 이미지의 거리 정보 및 밝기 정보에 기반하여 촬영 모드 및 합성 방식을 결정하는 동작을 도시하는 흐름도이다.
도 8은 일 실시 예에 따른 전자 장치에서 HDR 이미지를 획득하는 것을 나타낸 도면이다.
도면의 설명과 관련하여, 동일 또는 유사한 구성요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.
도 1은, 다양한 실시 예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시 예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시 예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시 예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시 예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일 실시 예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다.
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다.
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시 예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시 예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시 예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시 예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시 예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시 예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시 예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시 예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일 실시 예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 실시 예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시 예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다.
무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일 실시 예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시 예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일 실시 예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시 예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
다양한 실시 예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일 실시 예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일 실시 예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시 예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시 예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일 실시 예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.
본 문서에 개시된 다양한 실시 예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시 예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시 예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시 예들로 한정하려는 것이 아니며, 해당 실시 예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서의 다양한 실시 예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시 예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시 예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
일 실시 예에 따르면, 본 문서에 개시된 다양한 실시 예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
도 2는, 다양한 실시 예들에 따른, 카메라 모듈(180)을 예시하는 블록도(200)이다. 도 2를 참조하면, 카메라 모듈(180)은 렌즈 어셈블리(210), 플래쉬(220), 이미지 센서(230), 이미지 스태빌라이저(240), 메모리(250)(예: 버퍼 메모리), 또는 이미지 시그널 프로세서(260)를 포함할 수 있다. 렌즈 어셈블리(210)는 이미지 촬영의 대상인 피사체로부터 방출되는 빛을 수집할 수 있다. 렌즈 어셈블리(210)는 하나 또는 그 이상의 렌즈들을 포함할 수 있다. 일 실시 예에 따르면, 카메라 모듈(180)은 복수의 렌즈 어셈블리(210)들을 포함할 수 있다. 이런 경우, 카메라 모듈(180)은, 예를 들면, 듀얼 카메라, 360도 카메라, 또는 구형 카메라(spherical camera)를 형성할 수 있다. 복수의 렌즈 어셈블리(210)들 중 일부는 동일한 렌즈 속성(예: 화각, 초점 거리, 자동 초점, f 넘버(f number), 또는 광학 줌)을 갖거나, 또는 적어도 하나의 렌즈 어셈블리는 다른 렌즈 어셈블리의 렌즈 속성들과 다른 하나 이상의 렌즈 속성들을 가질 수 있다. 렌즈 어셈블리(210)는, 예를 들면, 광각 렌즈 또는 망원 렌즈를 포함할 수 있다.
플래쉬(220)는 피사체로부터 방출 또는 반사되는 빛을 강화하기 위하여 사용되는 빛을 방출할 수 있다. 일 실시 예에 따르면, 플래쉬(220)는 하나 이상의 발광 다이오드들(예: RGB(red-green-blue) LED, white LED, infrared LED, 또는 ultraviolet LED), 또는 xenon lamp를 포함할 수 있다. 이미지 센서(230)는 피사체로부터 방출 또는 반사되어 렌즈 어셈블리(210)를 통해 전달된 빛을 전기적인 신호로 변환함으로써, 상기 피사체에 대응하는 이미지를 획득할 수 있다. 일 실시 예에 따르면, 이미지 센서(230)는, 예를 들면, RGB 센서, BW(black and white) 센서, IR 센서, 또는 UV 센서와 같이 속성이 다른 이미지 센서들 중 선택된 하나의 이미지 센서, 동일한 속성을 갖는 복수의 이미지 센서들, 또는 다른 속성을 갖는 복수의 이미지 센서들을 포함할 수 있다. 이미지 센서(230)에 포함된 각각의 이미지 센서는, 예를 들면, CCD(charged coupled device) 센서 또는 CMOS(complementary metal oxide semiconductor) 센서를 이용하여 구현될 수 있다.
이미지 스태빌라이저(240)는 카메라 모듈(180) 또는 이를 포함하는 전자 장치(101)의 움직임에 반응하여, 렌즈 어셈블리(210)에 포함된 적어도 하나의 렌즈 또는 이미지 센서(230)를 특정한 방향으로 움직이거나 이미지 센서(230)의 동작 특성을 제어(예: 리드 아웃(read-out) 타이밍을 조정 등)할 수 있다. 이는 촬영되는 이미지에 대한 상기 움직임에 의한 부정적인 영향의 적어도 일부를 보상하게 해 준다. 일 실시 예에 따르면, 이미지 스태빌라이저(240)는, 일 실시 예에 따르면, 이미지 스태빌라이저(240)는 카메라 모듈(180)의 내부 또는 외부에 배치된 자이로 센서(미도시) 또는 가속도 센서(미도시)를 이용하여 카메라 모듈(180) 또는 전자 장치(101)의 그런 움직임을 감지할 수 있다. 일 실시 예에 따르면, 이미지 스태빌라이저(240)는, 예를 들면, 광학식 이미지 스태빌라이저로 구현될 수 있다. 메모리(250)는 이미지 센서(230)를 통하여 획득된 이미지의 적어도 일부를 다음 이미지 처리 작업을 위하여 적어도 일시 저장할 수 있다. 예를 들어, 셔터에 따른 이미지 획득이 지연되거나, 또는 복수의 이미지들이 고속으로 획득되는 경우, 획득된 원본 이미지(예: Bayer-patterned 이미지 또는 높은 해상도의 이미지)는 메모리(250)에 저장이 되고, 그에 대응하는 사본 이미지(예: 낮은 해상도의 이미지)는 디스플레이 모듈(160)을 통하여 프리뷰될 수 있다. 이후, 지정된 조건이 만족되면(예: 사용자 입력 또는 시스템 명령) 메모리(250)에 저장되었던 원본 이미지의 적어도 일부가, 예를 들면, 이미지 시그널 프로세서(260)에 의해 획득되어 처리될 수 있다. 일 실시 예에 따르면, 메모리(250)는 메모리(130)의 적어도 일부로, 또는 이와는 독립적으로 운영되는 별도의 메모리로 구성될 수 있다.
이미지 시그널 프로세서(260)는 이미지 센서(230)를 통하여 획득된 이미지 또는 메모리(250)에 저장된 이미지에 대하여 하나 이상의 이미지 처리들을 수행할 수 있다. 상기 하나 이상의 이미지 처리들은, 예를 들면, 깊이 지도(depth map) 생성, 3차원 모델링, 파노라마 생성, 특징점 추출, 이미지 합성, 또는 이미지 보상(예: 노이즈 감소, 해상도 조정, 밝기 조정, 블러링(blurring), 샤프닝(sharpening), 또는 소프트닝(softening)을 포함할 수 있다. 추가적으로 또는 대체적으로, 이미지 시그널 프로세서(260)는 카메라 모듈(180)에 포함된 구성 요소들 중 적어도 하나(예: 이미지 센서(230))에 대한 제어(예: 노출 시간 제어, 또는 리드 아웃 타이밍 제어 등)를 수행할 수 있다. 이미지 시그널 프로세서(260)에 의해 처리된 이미지는 추가 처리를 위하여 메모리(250)에 다시 저장되거나 카메라 모듈(180)의 외부 구성 요소(예: 메모리(130), 디스플레이 모듈(160), 전자 장치(102), 전자 장치(104), 또는 서버(108))로 제공될 수 있다. 일 실시 예에 따르면, 이미지 시그널 프로세서(260)는 프로세서(120)의 적어도 일부로 구성되거나, 프로세서(120)와 독립적으로 운영되는 별도의 프로세서로 구성될 수 있다. 이미지 시그널 프로세서(260)가 프로세서(120)와 별도의 프로세서로 구성된 경우, 이미지 시그널 프로세서(260)에 의해 처리된 적어도 하나의 이미지는 프로세서(120)에 의하여 그대로 또는 추가의 이미지 처리를 거친 후 디스플레이 모듈(160)을 통해 표시될 수 있다.
일 실시 예에 따르면, 전자 장치(101)는 각각 다른 속성 또는 기능을 가진 복수의 카메라 모듈(180)들을 포함할 수 있다. 이런 경우, 예를 들면, 상기 복수의 카메라 모듈(180)들 중 적어도 하나는 광각 카메라이고, 적어도 다른 하나는 망원 카메라일 수 있다. 유사하게, 상기 복수의 카메라 모듈(180)들 중 적어도 하나는 전면 카메라이고, 적어도 다른 하나는 후면 카메라일 수 있다.
도 3은 일 실시 예에 따른 전자 장치의 블록도이다.
도 3을 참조하면, 전자 장치(101)는, 프로세서(310), 카메라(320), 센서(330), 디스플레이(340), 및 메모리(350)를 포함할 수 있다. 다양한 실시 예에서, 전자 장치(101)는 도 3에 도시된 구성요소 외에 추가적인 구성요소를 포함하거나, 도 3에 도시된 구성요소 중 적어도 하나를 생략할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 메모리(350)에 저장된 인스트럭션들을 이용하여 전자 장치(101)의 적어도 하나의 다른 구성요소들의 제어 및/또는 통신에 관한 연산이나 데이터 처리를 실행할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 중앙처리장치(CPU), 그래픽 처리 장치(GPU), MCU(micro controller unit), 센서 허브, 보조 프로세서(supplementary processor), 통신 프로세서(communication processor), 애플리케이션 프로세서(application processor), ASIC(application specific integrated circuit), FPGA(field programmable gate arrays) 중 적어도 하나를 포함할 수 있으며, 복수의 코어를 가질 수 있다.
일 실시 예에 따르면, 프로세서(310)는, 메모리(350)에 저장된 어플리케이션(예: 카메라 어플리케이션)을 실행할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 카메라 어플리케이션이 실행된 상태에서, 카메라(320)를 이용하여 이미지를 획득할 수 있다. 본 명세서에서 기술되는 어플리케이션은, 카메라(320)를 이용하는 임의의 어플리케이션일 수 있다.
일 실시 예에 따르면, 프로세서(310)는 카메라(320)를 이용하여 획득한 이미지를 디스플레이(340)에 프리뷰 이미지로 표시할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 센서(330)를 이용하여 프리뷰 이미지에 포함된 객체와의 거리 정보를 획득할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 프리뷰 이미지의 깊이 맵(depth map)에 기반하여 프리뷰 이미지를 다수 개의 영역들로 분리하고 영역별로 이미지 처리를 수행할 수 있다. 프로세서(310)의 동작과 관련된 구체적인 내용은 도 4를 참조하여 후술한다.
일 실시 예에 따르면, 카메라(320)는 영상(예: 정지 영상 및/또는 동영상)을 획득(acquire)(또는 촬영)할 수 있다. 예를 들면, 카메라(320)와 전기적으로 연결되는 이미지 시그널 프로세서(미도시)는, 영상(예: 프리뷰 영상 또는 메모리(350)에 저장된 영상)에 포함된 객체(예: 사람)와 배경을 구분할 수 있다. 일 실시 예에 따르면, 이미지 시그널 프로세서는 카메라(320)로부터 분리되거나, 프로세서(310)의 일부로서 구현될 수 있다. 일 실시 예에 따르면, 카메라(320)는 이미지 센서를 포함할 수 있다. 일 실시 예에 따르면, 이미지 센서는 색상 정보를 획득 및 처리할 수 있다.
일 실시 예에 따르면, 센서(330)는 깊이 센서(depth sensor), ToF 센서 및 이미지 센서(예: 듀얼 픽셀 이미지) 중 적어도 하나를 포함할 수 있다. 일 실시 예에 따르면, 깊이 센서는 외부 객체에 대한 깊이를 측정하고, 측정된 깊이를 이용하여 외부 객체에 대응하는 깊이 정보를 생성할 수 있다. 일 실시 예에 따르면, 센서(330)는 프로세서(310), 카메라(320), 및 메모리(350) 중 적어도 하나와 작동적으로 연결되어 색상 정보, 3D 정보, 거리 정보, 위치 정보 등에 관한 처리를 할 수 있다.
일 실시 예에 따른 디스플레이(340)는 카메라(320)를 통해 획득되는 영상을 표시할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 디스플레이(340)에 카메라(320)를 통해 획득되는 영상을 프리뷰 이미지로서 표시할 수 있다. 예를 들면, 프로세서(310)는 카메라(320)를 통해 획득되는 영상 중 적어도 일부를 디스플레이(340)에 프리뷰로 표시할 수 있다. 일 실시 예에 따르면, 전자 장치(101)는 디스플레이(340)를 통해 사용자의 입력을 획득할 수 있고, 사용자의 입력을 프로세서(310)에 전달할 수 있다.
일 실시 예에 따르면, 메모리(350)는, 하나 이상의 메모리 집합을 의미할 수 있다. 일 실시 예에 따르면, 메모리(350)는, 다른 구성 요소들(예: 프로세서(310), 카메라(320), 센서(330), 디스플레이(340))로부터 수신되거나 다른 구성요소들에 의해 생성된 데이터 및/또는 명령을 저장할 수 있다. 다양한 실시 예들에서, 메모리(350)는, 카메라(320)를 이용하는 어플리케이션을 저장할 수 있다.
도 4는 일 실시 예에 따른 전자 장치에서 피사체와의 거리에 기반하여 촬영 방법을 결정하는 동작을 도시하는 흐름도이다.
도 4를 참조하면, 일 실시 예에 따른 프로세서(310)는 동작 410에서 카메라(320)를 구동하여 획득한 이미지를 디스플레이(340)에 프리뷰 이미지로 표시할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 메모리(350)에 저장된 카메라 어플리케이션이 실행된 상태에서 카메라(320)를 통해 획득한 이미지를 디스플레이(340)에 프리뷰 이미지를 표시할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 동작 420에서 프리뷰 이미지에 포함된 주요 객체를 결정할 수 있다. 예를 들면, 프로세서(310)는 카메라(320)를 구동하여 획득한 이미지 중에서 디스플레이(340)에 표시된 프리뷰 이미지에 대응되는 이미지에 포함된 주요 객체를 결정할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 센서(330)(예: 깊이 센서, ToF 센서)를 이용하여 프리뷰 이미지에 포함된 적어도 하나의 객체에 대한 깊이 정보 및/또는 거리 정보를 획득할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 AI(artificial intelligence) 및/또는 듀얼 픽셀 이미지 센서를 이용하여 프리뷰 이미지에 포함된 적어도 하나의 객체에 대한 거리 정보를 획득할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 획득한 깊이 정보 및/또는 거리 정보에 기반하여 프리뷰 이미지를 복수 개의 영역들로 분할할 수 있다. 예를 들어, 프로세서(310)는 거리 정보에 기반하여 전자 장치(101)와 가장 가까운 객체를 배경 이미지에서 분리할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 전자 장치(101)와 가장 가까운 객체를 주요 객체로 결정할 수 있다. 다만, 주요 객체로 결정되는 객체는 이에 한정되지 않는다.
일 실시 예에 따르면, 프로세서(310)는 동작 430에서 센서(330)를 통해 감지된 주요 객체와 전자 장치(101)와의 거리가 임계 값 미만인 경우, 제1 발광(예: 보조발광)을 이용하여 촬영하는 제1 모드를 실행할 수 있다. 예를 들어, 프로세서(310)는 프리뷰 이미지에 포함된 전자 장치(101)와 가장 가까운 객체와 전자 장치(101)의 거리가 지정된 거리 미만인 경우 제1 발광만을 이용하여 촬영할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 일 실시 예에 따르면, 프로세서(310)는 제1 발광을 이용하여 촬영하는 경우 AF(auto focus), AWB(auto white balance) 및 AE(auto exposure) 중 적어도 하나의 연산을 수행할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 상기 연산을 수행하여 초점 조절을 위한 AF 데이터, 화이트 밸런스 조절을 위한 AWB 데이터 및 노출 조절을 위한 AE 데이터를 산출할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 제1 발광을 이용하여 촬영하는 경우, 피사체(또는 주요 객체)에 대해 초점을 조절할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 센서(330)(예: ToF 센서)를 이용하여 획득한 거리 정보를 이용하여 주요 객체에 대해 초점을 조절할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 주요 객체와 전자 장치(101)의 거리가 임계 값 미만인 경우 액추에이터(actuator)를 이용하여 주요 객체에 대한 초점의 위치를 조정할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 제1 발광을 이용한 촬영이 완료되는 것에 응답하여 제1 발광을 비활성화할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 동작 440에서 센서(330)를 통해 감지된 주요 객체와 전자 장치(101)의 거리가 임계 값 이상인 경우 제1 발광 및 제1 발광에 후속하는 제2 발광(예: 본발광)을 이용하여 촬영하는 제2 모드를 실행할 수 있다. 예를 들어, 프로세서(310)는 프리뷰 이미지에 포함된 전자 장치(101)와 가장 가까운 객체와 전자 장치(101)의 거리가 지정된 거리 이상인 경우 제1 발광 및 제2 발광을 이용하여 촬영할 수 있다. 일 실시 예에 따르면, 제2 발광은 제1 발광보다 광량이 많을 수 있다. 일 실시 예에 따르면, 프로세서(310)는 제1 발광을 이용하여 촬영하는 경우, 초점 조절을 위한 AF 데이터, 화이트 밸런스 조절을 위한 AWB 데이터 또는 노출 조절을 위한 AE 데이터를 이용하여 AF 동작, AWB 동작 및 AE 동작 중 적어도 하나를 수행할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 제1 발광을 이용한 촬영이 완료되는 것에 응답하여 제1 발광을 비활성화할 수 있다.
도 5는 일 실시 예에 따른 전자 장치에서 거리 정보에 따라 프리뷰 이미지에 포함된 객체를 식별하는 것을 나타낸 도면이다.
도 5를 참조하면, 일 실시 예에 따른 프로세서(310)는 카메라(320)를 통해 획득한 이미지를 복수 개의 영역으로 구분할 수 있다. 예를 들어, 프로세서(310)는 이미지에 포함된 객체의 깊이 정보 및/또는 거리 정보에 기반하여 이미지를 복수 개의 영역으로 구분할 수 있다.
일 실시 예에 따르면, 디스플레이(340)에 표시되는 프리뷰 이미지(510)에는 복수 개의 객체가 포함될 수 있다. 예를 들어, 프리뷰 이미지(510)에는 제1 객체(501a), 제2 객체(502a) 및 제3 객체(503a)가 포함될 수 있다.
일 실시 예에 따르면, 프로세서(310)는 프리뷰 이미지(510)에 대응하는 깊이 맵(depth map)(520)을 생성할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 생성된 깊이 맵을 이용하여 프리뷰 이미지(510)를 복수 개의 영역들로 분리할 수 있다. 일 실시 예에 따르면, 프리뷰 이미지(510)의 제1 객체(501a), 제2 객체(501b) 및 제3 객체(501c)는 각각 깊이 맵(520)에 포함된 제1 영역(501b), 제2 영역(502b) 및 제3 영역(503b)에 대응될 수 있다. 일 실시 예에 따르면, 프로세서(310)는 프리뷰 이미지(510)에 포함된 적어도 하나의 객체에 대하여 획득한 깊이 값에 기반하여 상기 복수 개의 영역들에 숫자를 맵핑할 수 있다. 예를 들어, 프로세서(310)는 깊이 맵(520)에 포함된 제1 영역(501b), 제2 영역(502b) 및 제3 영역(503b)에 서로 다른 숫자를 맵핑할 수 있다. 구체적으로 예를 들면, 프로세서(310)는 전자 장치(101)와 가장 거리가 가까운 제1 객체(501a)에 대응하는 제1 영역(501b)에 제1 숫자를 맵핑하고, 전자 장치(101)와의 거리가 가장 먼 제3 객체(503a)에 대응하는 제3 영역(503b)에 제1 숫자보다 큰 제3 숫자를 맵핑할 수 있다. 또한 예를 들어, 전자 장치(101)와 거리가 제1 객체(501a)보다 멀고 제3 객체(503a)보다 가까운 제2 객체(502a)에 대응하는 제2 영역(502b)에는, 제1 숫자보다 크고 제3 숫자보다 작은 제2 숫자를 맵핑할 수 있다.
도 6은 일 실시 예에 따른 전자 장치에서 거리 정보에 따라 프리뷰 이미지를 복수의 영역들로 나누는 것을 나타낸 도면이다.
도 6을 참조하면, 일 실시 예에 따르면, 프로세서(310)는 센서(330)(예: 깊이 센서, ToF 센서)에 의해 감지된 깊이 정보 및/또는 거리 정보에 기반하여 프리뷰 이미지(예: 도 5의 프리뷰 이미지(510))를 전경 영역 및 후경 영역으로 구분할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 거리 정보에 기반하여 프리뷰 이미지(510)를 제1 영역(601)(예: 전경 영역 또는 관심 영역), 제2 영역(602)(예: 후경 영역 또는 배경 영역), 및 제3 영역(603)(예: 후경 영역 또는 배경 영역)으로 구분할 수 있다. 예를 들어, 프로세서(310)는 전자 장치(101)와 거리가 가장 가까운 객체(예: 도 4의 주요 객체 또는 도 5의 제1 객체(501a))에 대응되는 영역을 제1 영역(601)으로 결정할 수 있다. 또한 예를 들어, 프로세서(310)는 전자 장치(101)와 거리가 가장 먼 객체에 대응되는 영역을 제3 영역(603)으로 결정할 수 있다. 예를 들어, 프로세서(310)는 프리뷰 이미지(510) 중 제1 영역(610)과 제3 영역(603)을 제외한 영역을 제2 영역(602)로 결정할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 센서(330)(예: 이미지 센서)를 이용하여 제1 영역(601), 제2 영역(602), 및 제3 영역(603)에 대응하는 밝기 정보를 획득할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 전경 영역 및 후경 영역의 밝기 차이 정보를 획득할 수 있다. 예를 들어, 프로세서(310)는 제1 영역(601) 및 제2 영역(602)의 밝기 차이 정보를 획득할 수 있다. 또한 예를 들어, 프로세서(310)는 제1 영역(601) 및 제2 영역(602)의 밝기 차이 정보를 획득할 수 있다.
도 7은 일 실시 예에 따른 전자 장치에서 프리뷰 이미지의 거리 정보 및 밝기 정보에 기반하여 촬영 모드 및 합성 방식을 결정하는 동작을 도시하는 흐름도이다.
도 7을 참조하면, 일 실시 예에 따른 프로세서(310)는 동작 701에서 주요 객체와 전자 장치(101)의 거리가 임계 값 미만인지 여부를 판단할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 프리뷰 이미지에 포함된 객체 중 전자 장치(101)와 가장 가까운 객체와 전자 장치(101)의 거리 정보를 획득할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 상기 획득한 거리 정보에 기반하여, 촬영 모드를 설정할 수 있다. 예를 들어, 프로세서(310)는 상기 획득한 거리 정보에 기반하여 보조발광 만을 이용하여 촬영을 수행할 것인지 여부를 결정할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 동작 703에서 주요 객체와 전자 장치(101)의 거리가 임계 값 미만인 것으로 판단되는 경우 보조발광을 이용하여 촬영할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 프리뷰 이미지에 포함된 객체 중 전자 장치(101)와 가장 가까운 객체와 전자 장치(101)의 거리가 지정된 거리 미만인 것으로 판단되는 경우 보조발광만을 이용하여 촬영할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 보조발광을 이용하여 촬영하는 경우 AF 동작, AWB 동작 및 AE 동작 중 적어도 하나를 수행할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 보조발광을 이용한 촬영이 종료되는 것에 응답하여 보조발광을 비활성화할 수 있다.
상술한 실시 예에 따르면, 전자 장치(101)는 피사체와의 거리가 가까운 것으로 판단되는 경우 약한 발광으로 긴 노출 시간동안 촬영함으로써 전체 이미지의 밝기 시인성을 개선시킬 수 있다.
또한 상술한 실시 예에 따르면, 전자 장치(101)는 피사체와의 거리가 가까운 것으로 판단되는 경우, 본발광 없이 보조발광을 이용하여 촬영함으로써 촬영 시간을 줄이고 적목 현상을 완화시킬 수 있다.
일 실시 예에 따르면, 프로세서(310)는 주요 객체와 전자 장치(101)와의 거리가 임계 값 이상인 것으로 판단되는 경우 동작 705에서 보조발광 및 본발광을 모두 이용하여 촬영할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 프리뷰 이미지에 포함된 객체 중 전자 장치(101)와 가장 가까운 객체와 전자 장치(101)의 거리가 지정된 거리 이상인 것으로 판단되는 경우 보조발광 및 본발광을 모두 이용하여 촬영할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 보조발광을 이용하여 촬영을 완료한 후 본발광을 이용하여 촬영을 수행할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 동작 707에서 주요 객체와 나머지 영역의 밝기 차이가 임계 값 이상인지 여부를 판단할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 이미지 센서를 이용하여 프리뷰 이미지에서 주요 객체에 대응되는 영역(또는 전경 영역) 및 나머지 영역(또는 후경 영역)의 밝기 정보를 획득할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 전경 영역의 밝기와 후경 영역의 밝기의 차이가 지정된 값 이상인지 여부를 판단할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 프리뷰 이미지에서 전경 영역과 후경 영역의 밝기 차이 정보에 기반하여 노출 시간을 결정할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 전경 영역과 후경 영역의 밝기 차이가 임계 값 이상인 것으로 판단되는 경우 동작 709에서 제1 방식으로 이미지들을 합성할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 전경 영역 및/또는 후경 영역의 밝기 정보에 기반하여 이미지 합성 방식을 결정할 수 있다. 예를 들어, 프로세서(310)는 전경 영역 또는 후경 영역 중 한 영역의 밝기를 기준으로 노출 시간을 설정할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 전경 영역과 후경 영역의 밝기 차이가 임계 값 이상인 것으로 판단되는 경우 이미지 센서로부터 상이한 밝기의 복수의 이미지들을 획득할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 전경 영역과 후경 영역의 밝기 차이가 임계 값 이상이고, 전경 영역이 밝거나 포화된 것으로 판단되는 경우, 이미지 센서로부터 획득한 복수의 이미지들 중 전경 영역이 적정 노출된 이미지를 합성할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 전경 영역과 후경 영역의 밝기 차이가 임계 값 이상이고, 후경 영역이 밝거나 포화된 것으로 판단되는 경우, 이미지 센서로부터 획득한 복수의 이미지 중 후경 영역이 적정 노출된 이미지를 합성할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 전경 영역과 후경 영역의 밝기 차이가 임계 값 이상이고, 전경 영역이 어두운 것으로 판단되는 경우, 이미지 센서로부터 획득한 복수의 이미지들 중 전경 영역이 적정 노출된 이미지를 합성할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 전경 영역과 후경 영역의 밝기 차이가 임계 값 이상이고, 후경 영역이 어두운 것으로 판단되는 경우, 이미지 센서로부터 획득한 복수의 이미지들 중 후경 영역이 적정 노출된 이미지를 합성할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 전경 영역과 후경 영역의 밝기 차이가 임계 값 이상이고, 전경 영역이 어둡고 후경 영역이 밝은 것으로 판단되는 경우, 프로세서(310)는 전경 영역이 적정 노출된 이미지 및 후경 영역이 적정 노출된 이미지를 합성할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 전경 영역과 후경 영역의 밝기 차이가 임계 값 이상이고, 전경 영역이 밝고 후경 영역이 어두운 것으로 판단되는 경우, 프로세서(310)는 전경 영역이 적정 노출된 이미지 및 후경 영역이 적정 노출된 이미지를 합성할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 주요 객체와 나머지 영역의 밝기 차이가 임계 값 미만인 것으로 판단되는 경우 동작 711에서 제2 방식으로 이미지들을 합성할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 전경 영역과 후경 영역의 밝기 차이가 지정된 값보다 작은 것으로 판단되는 경우 이미지 센서로부터 동일한 밝기의 이미지들을 획득할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 전경 영역과 후경 영역의 밝기 차이가 임계 값보다 작은 것으로 판단되는 경우 복수의 이미지 중 과대 노출되거나 과소 노출된 이미지를 합성하지 않을 수 있다.
상술한 실시 예에 따르면, 전자 장치(101)는 프리뷰 이미지로부터 획득한 거리 정보 및/또는 밝기 정보에 기반하여 적합한 합성방식을 결정함으로써 이미지 화질을 개선시킬 수 있다.
도 8은 일 실시 예에 따른 전자 장치에서 HDR 이미지를 획득하는 것을 나타낸 도면이다.
도 8을 참조하면, 일 실시 예에 따른 프로세서(310)는 이미지 센서로부터 획득한 복수 개의 이미지들 중 적어도 일부 영상들을 이용하여 합성 이미지(또는 HDR 이미지)를 생성할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 노출 값(exposure value)이 상이한 복수 개의 이미지들을 이용하여 HDR 이미지를 생성할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 제1 이미지(801) 및 제2 이미지(802)를 이용하여 제3 이미지(803)(예: HDR 이미지)를 생성할 수 있다. 본 개시에서 노출 값은 노출량 또는 이미지의 밝기를 의미할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 이미지 센서로부터 노출 값이 상이한 복수 개의 이미지들을 획득할 수 있다. 예를 들어, 프로세서(310)는 이미지 센서로부터 제1 이미지(801) 및 제2 이미지(802)를 획득할 수 있다. 프로세서(310)는 이미지 센서의 노출 시간이 서로 다른 제1 이미지(801) 및 제2 이미지(802)를 획득할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 제1 이미지(801) 및 제2 이미지(802)의 HDR 히스토그램을 분석할 수 있다. 일 실시 예에 따르면, 이미지 밝기에 대한 히스토그램은 노출량을 계급으로 픽셀수를 도수로 나타낸 것으로서, 그 역도 가능하며, 픽셀 당 색 분포를 알 수 있는 컬러 히스토그램(color)과 같은 이미지 히스토그램(image histogram)의 일종일 수 있다. 일 실시 예에 따르면, 프로세서(310)는 이미지 밝기에 대한 히스토그램을 분석하여 획득한 이미지의 노출량을 판단할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 획득한 이미지가 과소 노출(underexposure) 또는 과대 노출(overexposure)되었는지 판단할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 HDR 히스토그램을 분석하여 제1 이미지(801) 또는 제2 이미지(802)가 과소 노출(underexposure) 및 과대 노출(overexposure) 중 적어도 하나에 해당되는지 판단할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 HDR 히스토그램을 분석하여 정해진 노출량보다 노출량이 작은 픽셀들의 수가 많으면 과소 노출로 판단하고, 정해진 노출량보다 노출량이 많은 픽셀들의 수가 많으면 과대 노출로 판단할 수 있다.
일 실시 예에 따르면, 이미지의 픽셀은 이미지 센서의 픽셀에 대응할 수 있다. 일 실시 예에 따르면, 이미지에 과대 노출 영역이 포함된 경우, 프로세서(310)는 이미지에서 과대 노출 영역에 해당하는 이미지 센서에 포함된 적어도 하나의 단노출 픽셀의 노출 시간을 짧게 설정하여 과대 노출을 완화한 이미지를 획득할 수 있다. 예를 들어, 프로세서(310)는, 제1 이미지(801)의 후경 영역이 과대 노출되었다고 판단되는 경우, 노출 시간을 짧게 설정하여 획득된 제2 이미지(802)를 획득할 수 있다.
일 실시 예에 따르면, 이미지에 과소 노출 영역이 포함된 경우, 프로세서(310)는 이미지에서 과소 노출 영역에 해당하는 이미지 센서에 포함된 적어도 하나의 장노출 픽셀의 노출 시간을 길게 설정하여 과소 노출을 완화한 이미지를 획득할 수 있다.
일 실시 예에 따르면, 이미지에 과대 노출 영역 및 과소 노출 영역이 모두 포함된 경우, 프로세서(310)는 과대 노출 영역에 해당하는 이미지 센서에 포함된 적어도 하나의 과대 노출을 완화한 이미지 및 과소 노출 영역에 해당하는 이미지 센서에 포함된 적어도 하나의 과소 노출을 완화한 이미지를 모두 획득할 수 있다.
일 실시 예에 따르면, 프로세서(310)는 과대 노출 영역을 포함하는 이미지 및 과대 노출을 완화한 이미지를 이용하여 HDR 이미지를 생성할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 과소 노출 영역을 포함하는 이미지 및 과소 노출을 완화한 이미지를 이용하여 HDR 이미지를 생성할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 과대 노출 영역 및 과소 노출 영역을 모두 포함하는 이미지, 과대 노출을 완화한 이미지 및 과소 노출을 완화한 이미지를 모두 이용하여 HDR 이미지를 생성할 수 있다.
일 실시 예에 따르면, 제1 이미지(801)는 과대 노출 영역이 있는 이미지를 포함할 수 있고, 제2 이미지(802)는 과대 노출을 완화한 이미지를 포함할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 제1 이미지(801)는 전경 영역(또는 관심 영역, 또는 주요 객체에 대응되는 영역)이 적정 노출이 되도록 촬영한 이미지를 포함할 수 있고, 제2 이미지(802)는 전경 영역을 제외한 영역이 적정 노출이 되도록 촬영한 이미지를 포함할 수 있다. 일 실시 예에 따르면, 프로세서(310)는 제1 이미지(801) 및 제2 이미지(802)를 이용하여 제3 이미지(803)(예: HDR 이미지)를 생성할 수 있다.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.
상술한 바와 같이, 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(101))는 카메라(예: 도 3의 카메라(320)), 상기 전자 장치와 객체 간 거리를 감지할 수 있는 센서(예: 도 3의 센서(330)), 디스플레이(예: 도 3의 디스플레이(340)), 상기 카메라를 이용한 촬영 시 제1 발광 및/또는 제2 발광에 해당하는 플래시를 발생시키는 발광 모듈, 및 상기 카메라, 상기 센서, 상기 발광 모듈, 및 상기 디스플레이와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는 상기 카메라를 구동하여 획득된 이미지를 상기 디스플레이에 프리뷰 이미지로 표시(display)하고, 상기 프리뷰 이미지에 포함된 주요 객체(main object)를 결정하고, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 임계 값 미만인 경우, 상기 제1 발광을 이용하여 촬영하는 제1 모드를 실행하고, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 상기 임계 값 이상인 경우 상기 제1 발광 및 상기 제1 발광에 후속하는 상기 제2 발광을 이용하여 촬영하는 제2 모드를 실행할 수 있다.
일 실시 예에 따르면, 상기 적어도 하나의 프로세서는 상기 적어도 하나의 프로세서는 상기 제1 발광을 이용한 촬영이 완료되는 것에 응답하여 상기 제1 발광을 비활성화할 수 있다.
일 실시 예에 따르면, 상기 제2 발광은 상기 제1 발광보다 광량이 많을 수 있다.
일 실시 예에 따르면, 상기 적어도 하나의 프로세서는 상기 적어도 하나의 프로세서는 상기 제1 발광을 이용하여 촬영하는 경우, AF(auto focus) 동작, AWB(auto white balance) 동작 및 AE(auto exposure) 동작 중 적어도 하나를 수행할 수 있다.
일 실시 예에 따르면, 상기 적어도 하나의 프로세서는 상기 주요 객체에 대응되는 영역을 제1 영역으로 결정하고, 상기 프리뷰 이미지 중 상기 제1 영역을 제외한 영역을 제2 영역으로 결정하고, 상기 제1 영역 및 상기 제2 영역의 밝기 차이 정보를 획득하고, 상기 획득한 밝기 차이 정보에 기반하여 노출 시간을 결정할 수 있다.
일 실시 예에 따르면, 상기 전자 장치는 이미지 센서를 포함하고, 상기 적어도 하나의 프로세서는 상기 획득한 밝기 차이가 임계 값 이상인 경우 상기 이미지 센서로부터 상이한 밝기의 복수의 이미지들을 획득하여 HDR(high dynamic range) 이미지를 생성할 수 있다.
일 실시 예에 따르면, 상기 적어도 하나의 프로세서는 상기 제1 영역 또는 상기 제2 영역에 과대 노출이 있는 것으로 판단되는 경우 노출이 작은 이미지를 합성하여 HDR 이미지를 생성할 수 있다.
일 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 프리뷰 이미지를 복수의 영역들로 나누고 상기 복수의 영역들 각각의 거리 정보에 기반하여 영역을 구분하고, 상기 구분된 영역들 사이의 상기 밝기 차이 정보를 획득할 수 있다.
상술한 바와 같이, 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(101))의 동작 방법은, 카메라(예: 도 3의 카메라(320))를 구동하여 획득된 이미지를 디스플레이(예: 도 3의 디스플레이(340))에 프리뷰 이미지로 표시(display)하는 동작, 상기 프리뷰 이미지에 포함된 주요 객체(main object)를 결정하는 동작, 센서(예: 도 3의 센서(330))를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 임계 값 미만인 경우, 제1 발광을 이용하여 촬영하는 제1 모드를 실행하는 동작, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 상기 임계 값 이상인 경우 상기 제1 발광 및 상기 제1 발광에 후속하는 제2 발광을 이용하여 촬영하는 제2 모드를 실행하는 동작을 포함할 수 있다.
일 실시 예에 따른 전자 장치의 동작 방법은, 상기 제1 발광을 이용한 촬영이 완료되는 것에 응답하여 상기 제1 발광을 비활성화 하는 동작을 포함할 수 있다.
일 실시 예에 따르면, 상기 제1 모드를 실행하는 동작은, AF 동작, AWB 동작 및 AE 동작 중 적어도 하나를 수행하는 동작을 포함할 수 있다.
일 실시 예에 따른 전자 장치의 동작 방법은, 상기 주요 객체에 대응되는 영역을 제1 영역으로 결정하는 동작, 상기 프리뷰 이미지 중 상기 제1 영역을 제외한 영역을 제2 영역으로 결정하는 동작, 상기 제1 영역 및 상기 제2 영역의 밝기 차이 정보를 획득하는 동작 및 상기 획득한 밝기 차이 정보에 기반하여 노출 시간을 결정하는 동작을 포함할 수 있다.
일 실시 예에 따르면, 전자 장치의 동작 방법은 상기 획득한 밝기 차이가 임계 값 이상인 경우 이미지 센서로부터 상이한 밝기의 복수의 이미지들을 획득하여 HDR 이미지를 생성하는 동작을 포함할 수 있다.
일 실시 예에 따르면, 전자 장치의 동작 방법은 상기 제1 영역 또는 상기 제2 영역에 과대 노출이 있는 것으로 판단되는 경우 노출이 작은 이미지를 합성하여 HDR 이미지를 생성하는 동작을 포함할 수 있다.
일 실시 예에 따르면, 전자 장치의 동작 방법은 상기 프리뷰 이미지를 복수의 영역들로 나누고 상기 복수의 영역들 각각의 거리 정보에 기반하여 영역을 구분하는 동작 및 상기 구분된 영역들 사이의 상기 획득한 밝기 차이 정보를 획득하는 동작을 포함할 수 있다.
상술한 바와 같이, 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(101))는 카메라, 상기 전자 장치와 객체 간 거리를 감지할 수 있는 센서, 디스플레이, 상기 카메라를 이용한 촬영 시 제1 발광 및/또는 제2 발광에 해당하는 플래시를 발생시키는 발광 모듈 및 상기 카메라, 상기 센서, 상기 발광 모듈, 및 상기 디스플레이와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는 상기 카메라를 구동하여 획득된 이미지를 상기 디스플레이에 프리뷰 이미지로 표시(display)하고, 상기 프리뷰 이미지를 복수 개의 영역들로 구분하고, 상기 센서를 통해 획득된 외부 객체와 상기 전자 장치와의 거리 정보에 기반하여 상기 복수개의 영역들 중 적어도 일부를 전경 영역으로 결정하고, 상기 전경 영역에 포함된 주요 객체(main object)를 결정하고, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 임계 값 미만인 경우, 상기 제1 발광을 이용하여 촬영하는 제1 모드를 실행하고, 상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 상기 임계 값 이상인 경우 상기 제1 발광 및 상기 제1 발광에 후속하는 상기 제2 발광을 이용하여 촬영하는 제2 모드를 실행할 수 있다.
일 실시 예에 따르면, 상기 적어도 하나의 프로세서는 상기 적어도 하나의 프로세서는 AI(artificial intelligence), 듀얼 픽셀 이미지 센서 및 TOF(time of flight) 센서 중 적어도 하나를 이용하여 상기 거리 정보를 획득할 수 있다.
일 실시 예에 따르면, 상기 적어도 하나의 프로세서는 상기 복수 개의 영역 중 전경 영역 및 상기 전경 영역을 제외한 영역에 각 영역의 거리 정보에 대응되는 숫자를 맵핑할 수 있다.
일 실시 예에 따르면, 상기 적어도 하나의 프로세서는 상기 전경 영역 및 상기 전경 영역을 제외한 영역의 밝기 차이 정보를 획득하고, 상기 획득한 밝기 차이 정보에 기반하여 노출 시간을 결정할 수 있다.
일 실시 예에 따른 전자 장치는 이미지 센서를 포함하고, 상기 적어도 하나의 프로세서는 상기 획득한 밝기 차이가 임계 값 이상인 경우 상기 이미지 센서로부터 상이한 밝기의 복수의 이미지들을 획득하여 HDR 이미지를 생성할 수 있다.

Claims (15)

  1. 전자 장치에 있어서,
    카메라;
    상기 전자 장치와 객체 간 거리를 감지할 수 있는 센서;
    디스플레이;
    상기 카메라를 이용한 촬영 시 제1 발광 및/또는 제2 발광에 해당하는 플래시를 발생시키는 발광 모듈; 및
    상기 카메라, 상기 센서, 상기 발광 모듈, 및 상기 디스플레이와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고,
    상기 적어도 하나의 프로세서는:
    상기 카메라를 구동하여 획득된 이미지를 상기 디스플레이에 프리뷰 이미지로 표시(display)하고,
    상기 프리뷰 이미지에 포함된 주요 객체(main object)를 결정하고,
    상기 센서를 통해 감지된, 상기 주요 객체와 상기 전자 장치와의 거리가 임계 값 미만인 경우, 상기 제1 발광을 이용하여 촬영하는 제1 모드를 실행하고,
    상기 센서를 통해 감지된, 상기 주요 객체와 상기 전자 장치와의 거리가 상기 임계 값 이상인 경우, 상기 제1 발광 및 상기 제1 발광에 후속하는 상기 제2 발광을 이용하여 촬영하는 제2 모드를 실행하는, 전자 장치.
  2. 청구항 1에 있어서,
    상기 적어도 하나의 프로세서는 상기 제1 발광을 이용한 촬영이 완료되는 것에 응답하여 상기 제1 발광을 비활성화 하는, 전자 장치.
  3. 청구항 1에 있어서,
    상기 제2 발광은 상기 제1 발광보다 광량이 많은, 전자 장치.
  4. 청구항 1에 있어서,
    상기 적어도 하나의 프로세서는 상기 제1 발광을 이용하여 촬영하는 경우, AF(auto focus) 동작, AWB(auto white balance) 동작 및 AE(auto exposure) 동작 중 적어도 하나를 수행하는, 전자 장치.
  5. 청구항 1에 있어서,
    상기 카메라는 이미지 센서를 포함하고,
    상기 적어도 하나의 프로세서는:
    상기 프리뷰 이미지 중 상기 주요 객체에 대응되는 영역을 제1 영역으로 결정하고,
    상기 프리뷰 이미지 중 상기 제1 영역을 제외한 영역을 제2 영역으로 결정하고,
    상기 제1 영역 및 상기 제2 영역의 밝기 차이 정보를 획득하고,
    상기 획득한 밝기 차이 정보에 기반하여 상기 이미지 센서의 노출 시간을 결정하는, 전자 장치.
  6. 청구항 5에 있어서,
    상기 적어도 하나의 프로세서는:
    상기 획득한 밝기 차이가 임계 값 이상인 경우, 상기 이미지 센서로부터 상이한 밝기를 가지는 복수의 이미지들을 획득하고,
    상기 복수의 이미지들을 기반으로 HDR(high dynamic range) 이미지를 생성하는, 전자 장치.
  7. 청구항 6에 있어서,
    상기 적어도 하나의 프로세서는 상기 제1 영역 또는 상기 제2 영역에 과대 노출이 있는 것으로 판단되는 경우 노출이 작은 이미지를 합성하여 HDR 이미지를 생성하는, 전자 장치.
  8. 청구항 5에 있어서,
    상기 적어도 하나의 프로세서는, 상기 프리뷰 이미지를 복수의 영역들로 나누고 상기 복수의 영역들 각각의 거리 정보에 기반하여 영역을 구분하고, 상기 구분된 영역들 사이의 상기 밝기 차이 정보를 획득하는, 전자 장치.
  9. 전자 장치의 동작 방법에 있어서,
    카메라를 구동하여 획득된 이미지를 디스플레이에 프리뷰 이미지로 표시(display)하는 동작;
    상기 프리뷰 이미지에 포함된 주요 객체(main object)를 결정하는 동작;
    센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 임계 값 미만인 경우, 제1 발광을 이용하여 촬영하는 제1 모드를 실행하는 동작;
    상기 센서를 통해 감지된 상기 주요 객체와 상기 전자 장치와의 거리가 상기 임계 값 이상인 경우, 상기 제1 발광 및 상기 제1 발광에 후속하는 제2 발광을 이용하여 촬영하는 제2 모드를 실행하는 동작을 포함하는, 전자 장치의 동작 방법.
  10. 청구항 9에 있어서,
    상기 제1 발광을 이용한 촬영이 완료되는 것에 응답하여 상기 제1 발광을 비활성화 하는 동작을 포함하는, 전자 장치의 동작 방법.
  11. 청구항 9에 있어서,
    상기 제1 모드를 실행하는 동작은, AF 동작, AWB 동작 및 AE 동작 중 적어도 하나를 수행하는 동작을 포함하는, 전자 장치의 동작 방법.
  12. 청구항 9에 있어서,
    상기 프리뷰 이미지 중 상기 주요 객체에 대응되는 영역을 제1 영역으로 결정하는 동작;
    상기 프리뷰 이미지 중 상기 제1 영역을 제외한 영역을 제2 영역으로 결정하는 동작;
    상기 제1 영역 및 상기 제2 영역의 밝기 차이 정보를 획득하는 동작; 및
    상기 획득한 밝기 차이 정보에 기반하여, 상기 카메라에 포함된 이미지 센서의 노출 시간을 결정하는 동작을 포함하는, 전자 장치의 동작 방법.
  13. 청구항 12에 있어서,
    상기 획득한 밝기 차이가 임계 값 이상인 경우 상기 이미지 센서로부터 상이한 밝기의 복수의 이미지들을 획득하여 HDR 이미지를 생성하는 동작을 포함하는, 전자 장치의 동작 방법.
  14. 청구항 13에 있어서,
    상기 제1 영역 또는 상기 제2 영역에 과대 노출이 있는 것으로 판단되는 경우 노출이 작은 이미지를 합성하여 HDR 이미지를 생성하는 동작을 포함하는, 전자 장치의 동작 방법.
  15. 청구항12에 있어서,
    상기 프리뷰 이미지를 복수의 영역들로 나누고 상기 복수의 영역들 각각의 거리 정보에 기반하여 영역을 구분하는 동작 및 상기 구분된 영역들 사이의 상기 획득한 밝기 차이 정보를 획득하는 동작을 포함하는, 전자 장치의 동작 방법.
PCT/KR2022/000170 2021-03-25 2022-01-05 전자 장치의 촬영 방법 및 그 전자 장치 WO2022203169A1 (ko)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202280023529.8A CN117083870A (zh) 2021-03-25 2022-01-05 电子装置的图像捕获方法及其电子装置
EP22775874.5A EP4319136A1 (en) 2021-03-25 2022-01-05 Image capturing method for electronic device, and electronic device therefor
US18/448,504 US20230396889A1 (en) 2021-03-25 2023-08-11 Image capturing method for electronic device, and electronic device therefor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2021-0038984 2021-03-25
KR1020210038984A KR20220133637A (ko) 2021-03-25 2021-03-25 전자 장치의 촬영 방법 및 그 전자 장치

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/448,504 Continuation US20230396889A1 (en) 2021-03-25 2023-08-11 Image capturing method for electronic device, and electronic device therefor

Publications (1)

Publication Number Publication Date
WO2022203169A1 true WO2022203169A1 (ko) 2022-09-29

Family

ID=83397564

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2022/000170 WO2022203169A1 (ko) 2021-03-25 2022-01-05 전자 장치의 촬영 방법 및 그 전자 장치

Country Status (5)

Country Link
US (1) US20230396889A1 (ko)
EP (1) EP4319136A1 (ko)
KR (1) KR20220133637A (ko)
CN (1) CN117083870A (ko)
WO (1) WO2022203169A1 (ko)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005308929A (ja) * 2004-04-20 2005-11-04 Nikon Corp カメラシステム
KR20120071968A (ko) * 2010-12-23 2012-07-03 삼성전자주식회사 디지털 영상 촬영 장치 및 이의 제어 방법
KR20160031173A (ko) * 2014-09-12 2016-03-22 서울바이오시스 주식회사 카메라용 조명장치 및 조명방법
KR101716282B1 (ko) * 2015-09-14 2017-03-14 주식회사 토비스 이중 카메라 플래시를 구비한 이동통신단말기
KR20180023785A (ko) * 2016-08-24 2018-03-07 삼성전자주식회사 복수의 발광소자를 포함하는 전자 장치 및 전자 장치의 동작 방법

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005308929A (ja) * 2004-04-20 2005-11-04 Nikon Corp カメラシステム
KR20120071968A (ko) * 2010-12-23 2012-07-03 삼성전자주식회사 디지털 영상 촬영 장치 및 이의 제어 방법
KR20160031173A (ko) * 2014-09-12 2016-03-22 서울바이오시스 주식회사 카메라용 조명장치 및 조명방법
KR101716282B1 (ko) * 2015-09-14 2017-03-14 주식회사 토비스 이중 카메라 플래시를 구비한 이동통신단말기
KR20180023785A (ko) * 2016-08-24 2018-03-07 삼성전자주식회사 복수의 발광소자를 포함하는 전자 장치 및 전자 장치의 동작 방법

Also Published As

Publication number Publication date
CN117083870A (zh) 2023-11-17
US20230396889A1 (en) 2023-12-07
KR20220133637A (ko) 2022-10-05
EP4319136A1 (en) 2024-02-07

Similar Documents

Publication Publication Date Title
WO2020080845A1 (en) Electronic device and method for obtaining images
WO2019066370A1 (ko) 외부 광에 기반하여 카메라를 제어하는 전자 장치 및 제어 방법
WO2022196993A1 (ko) 카메라 모듈의 화각을 이용하여 이미지를 촬영하는 전자 장치 및 방법
WO2022235075A1 (ko) 전자 장치 및 전자 장치의 동작 방법
WO2021235884A1 (ko) Awb를 수행하여 이미지를 생성하는 전자 장치 및 방법
WO2022203169A1 (ko) 전자 장치의 촬영 방법 및 그 전자 장치
WO2021215795A1 (ko) 전자 장치의 컬러 필터, 및 그 전자 장치
WO2021162307A1 (ko) 전자 장치 및 그의 hdr 영상 생성 방법
WO2021080307A1 (en) Method for controlling camera and electronic device therefor
WO2022244970A1 (ko) 전자 장치의 촬영 방법 및 그 전자 장치
WO2022245148A1 (ko) 이미지 처리 방법 및 그 전자 장치
WO2024085487A1 (ko) 카메라의 설정을 변경하기 위한 전자 장치, 방법, 및 비일시적 컴퓨터 판독가능 저장 매체
WO2024106746A1 (ko) 디지털 보케 이미지의 해상도를 높이기 위한 전자 장치 및 방법
WO2021230580A1 (ko) 멀티 카메라를 이용하여 화질 개선하는 전자 장치 및 방법
WO2022240183A1 (ko) 이미지 데이터와 모션 데이터를 포함하는 파일을 생성하는 방법 및 그 전자 장치
WO2023080520A1 (ko) 이미지의 화질을 개선하기 위한 전자 장치
WO2023080495A1 (ko) 하이 다이나믹 레인지 이미지들을 촬영하는 전자 장치와 이의 동작 방법
WO2022025574A1 (ko) 이미지 센서와 이미지 시그널 프로세서를 포함하는 전자 장치 및 그의 방법
WO2022191585A1 (ko) 전자 장치의 촬영 방법 및 그 전자 장치
WO2022240186A1 (ko) 이미지 왜곡을 보정하는 방법 및 그 전자 장치
WO2022119372A1 (ko) 영상 처리를 수행하는 전자 장치 및 그 동작 방법
WO2022220590A1 (ko) 영상을 처리하는 방법 및 이를 수행하는 전자 장치
WO2024096308A1 (ko) 광원 객체 이미지 처리 방법 및 장치
WO2022250344A1 (ko) 이미지 센서 및 동적 비전 센서를 포함하는 전자 장치 및 그 동작 방법
WO2024085673A1 (ko) 다중 노출 영상을 획득하는 전자 장치 및 그 동작 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22775874

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202280023529.8

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: 2022775874

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2022775874

Country of ref document: EP

Effective date: 20231024