Electronic device and method for acquiring depth information using at least one of a camera or a depth sensor

By automatically selecting a depth information generation method in an electronic device based on the external environment and using a camera or depth sensor, the problem of reduced depth information sensing performance in low-illumination environments is solved, and the acquisition of low power consumption and high-quality depth information is achieved.

CN112840644BActive Publication Date: 2024-09-06SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980066508.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-12-03
Filing Date
2019-11-26
Publication Date
2024-09-06
Estimated Expiration
2039-11-26

AI Technical Summary

Technical Problem

In low-light environments or outdoor environments, when using stereo solutions and time-of-flight (TOF) solutions with multiple cameras, the sensing performance of depth information may be degraded, and their combined use will lead to increased power consumption, heat generation, and system complexity. improve.

Method used

Design an electronic device that acquires images of external objects through a first camera, determines whether predetermined conditions are met based on image features (such as color information and texture pattern information), and if so, uses a stereo camera solution or a TOF solution to generate depth information. If not, If so, use a depth sensor to measure the depth and generate depth information based on the measured depth.

Benefits of technology

The power consumption of electronic devices is reduced, and high-quality depth information is provided without increasing system burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112840644B_ABST
    Figure CN112840644B_ABST
Patent Text Reader

Abstract

In an embodiment, the electronic device may include a first camera, a second camera, and a depth sensor, all of which are arranged on a surface of the electronic device. In addition, the electronic device may include a processor configured to: acquire one or more first images of an external object using the first camera; determine whether a predetermined condition associated with at least one of color information or texture pattern information of the external object identified from the acquired one or more first images is met; when the predetermined condition is met, acquire one or more second images of the external object using the first camera, acquire one or more third images of the external object corresponding to the one or more second images using the second camera, and generate depth information corresponding to the external object based on a comparison between the one or more second images and the one or more third images, and when the predetermined condition is not met, measure the depth of the external object using the depth sensor, and generate depth information corresponding to the external object based on the measured depth. Other embodiments are also possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an electronic device and method for acquiring depth information by utilizing at least one of a plurality of cameras or depth sensors. Background Art

[0002] In electronic devices, technology for acquiring depth information of an object has been widely developed, and utilization thereof is increasing.

[0003] One method for acquiring depth information of a target object is a so-called time-of-flight (TOF) scheme, in which an electronic device irradiates light onto an object and acquires depth information by utilizing the TOF of light reflected from the object. Another method is a stereo scheme, in which an electronic device analyzes multiple images obtained using two or more cameras to acquire depth information. Still another method is to use structured light and triangulation. Summary of the invention

[0004] Technical issues

[0005] In low-light environments or outdoor environments, for example, a stereo scheme using two or more cameras may face a decrease in the sensing performance of depth information. In addition, when the object has a lot of black or when a nearby user is using a depth sensor for the TOF scheme, the TOF scheme's sensing performance for depth information may be reduced. If both schemes are used together every time, the electronic device may experience reduced efficiency in terms of power consumption, heat generation, and system complexity.

[0006] Solution to the problem

[0007] According to various embodiments of the present disclosure, an electronic device may include: a first camera, which is set on a surface of the electronic device; a second camera, which is set on the one surface; a depth sensor, which is set on the one surface; and a processor, which is configured to: acquire one or more first images of an external object using the first camera; determine whether a predetermined condition associated with at least one of color information or texture pattern information of the external object identified from the one or more first images acquired is met; when the predetermined condition is met, acquire one or more second images of the external object using the first camera, acquire one or more third images of the external object corresponding to the one or more second images using the second camera, and generate depth information corresponding to the external object based on a comparison between the one or more second images and the one or more third images; and when the predetermined condition is not met, measure the depth of the external object using the depth sensor, and generate depth information corresponding to the external object based on the measured depth.

[0008] According to various embodiments of the present disclosure, an electronic device may include: a first camera, wherein the first camera is arranged on a surface of the electronic device; a second camera, wherein the second camera is arranged on the one surface; a depth sensor, wherein the depth sensor is arranged on the one surface; and a processor, wherein the processor is configured to: acquire one or more first images of an external object using the first camera; determine whether a predetermined condition associated with at least one of color information or texture pattern information of the external object identified from the acquired one or more first images is satisfied; when the predetermined condition is satisfied, acquire one or more second images of the external object using the first camera, acquire one or more third images of the external object corresponding to the one or more second images using the second camera, and measure a first depth of the external object based on a comparison between the one or more second images and the one or more third images; when the predetermined condition is not satisfied, measure a second depth of the external object using the depth sensor, and generate depth information corresponding to the external object using at least one of the measured first depth or the measured second depth.

[0009] According to various embodiments of the present disclosure, a method for generating depth information in an electronic device may include: acquiring, by at least one processor, one or more first images of an external object using a first camera disposed on a surface of the electronic device; determining, by the at least one processor, whether a predetermined condition associated with at least one of color information or texture pattern information of the external object identified from the acquired one or more first images is satisfied; acquiring, by the at least one processor, one or more second images of the external object using the first camera when the predetermined condition is satisfied, acquiring, by a second camera disposed on the one surface, one or more third images of the external object corresponding to the one or more second images, and generating depth information corresponding to the external object based on a comparison between the one or more second images and the one or more third images; and measuring the depth of the external object using a depth sensor disposed on the one surface when the predetermined condition is not satisfied, and generating depth information corresponding to the external object based on the measured depth.

[0010] Advantageous Effects of the Invention

[0011] According to various embodiments of the present disclosure, the electronic device reduces power consumption of the electronic device and provides high-quality depth information without generating an excessive load on the electronic device by automatically applying an optimal depth information generating method in consideration of an external environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent through the following detailed description in conjunction with the accompanying drawings, in which:

[0013] Figure 1 is a block diagram illustrating electronic devices in a network environment according to various embodiments.

[0014] Figure 2 is a block diagram illustrating a camera module according to various embodiments.

[0015] Figure 3 is a block diagram illustrating a configuration related to depth information generation of an electronic device according to various embodiments.

[0016] Figure 4 is a flowchart illustrating a method for generating depth information in an electronic device according to various embodiments.

[0017] Figure 5 is a flowchart illustrating a depth information generating method of an electronic device according to various embodiments.

[0018] Figure 6is a flowchart illustrating a depth information generating method according to various embodiments.

[0019] Figure 7 is a flowchart illustrating a depth information generating method according to various embodiments.

[0020] Preferred Modes for Carrying Out the Invention

[0021] One method for acquiring depth information of a target object is a so-called time-of-flight (TOF) scheme, in which an electronic device irradiates light onto an object and acquires depth information by utilizing the TOF of light reflected from the object. Another method is a stereo scheme, in which an electronic device analyzes multiple images obtained using two or more cameras to acquire depth information. Still another method is to use structured light and triangulation.

[0022] Stereoscopic solutions using two or more cameras may not perform well in low light environments and / or outdoor environments. Additionally, TOF solutions may not perform well when the object has a lot of black or is very short. Electronics that use these two solutions together can be complex, use too much power, and generate too much heat.

[0023] To this end, certain embodiments of the present disclosure include an electronic device that uses a first camera to acquire a first image of an external object. Then, the electronic device uses a stereo camera solution or a TOF solution to generate depth information of the external object based on the features of the acquired image of the external object. The stereo camera solution may include taking a second image using a first camera and taking a third image using a second camera. In certain embodiments, the TOF solution includes using a depth sensor to measure the depth of an external object using infrared light.

[0024] Features of the first image used by the electronic device to determine whether to use a stereo camera scheme or a TOF scheme may include features such as color information (which may include whether the color temperature is less than or equal to 5000K or darkness level) and texture pattern information (which may include texture change level and texture change frequency).

[0025] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. Figure 1 is a block diagram of an electronic device according to certain embodiments of the present disclosure. Figure 2 and Figure 3 is a block diagram of a camera module according to certain embodiments of the present disclosure. Figures 4 to 7 Methods or operations of a processor according to certain embodiments of the present disclosure are described. DETAILED DESCRIPTION

[0026] One method for acquiring depth information of a target object is a so-called time-of-flight (TOF) scheme, in which an electronic device irradiates light onto an object and acquires depth information by using the TOF of light reflected from the object. Another method is a stereo scheme, in which an electronic device analyzes multiple images obtained using two or more cameras to acquire depth information. Still another method is to use structured light and triangulation.

[0027] Stereoscopic solutions using two or more cameras may not perform well in low light environments and / or outdoor environments. Additionally, TOF solutions may not perform well when the object has a lot of black or is very short. Electronics that use these two solutions together can be complex, use too much power, and generate too much heat.

[0028] To this end, certain embodiments of the present disclosure include an electronic device that uses a first camera to acquire a first image of an external object. Then, the electronic device uses a stereo camera solution or a TOF solution to generate depth information of the external object based on the features of the acquired image of the external object. The stereo camera solution may include taking a second image using a first camera and taking a third image using a second camera. In certain embodiments, the TOF solution includes using a depth sensor to measure the depth of an external object using infrared light.

[0029] Features of the first image used by the electronic device to determine whether to use a stereo camera scheme or a TOF scheme may include features such as color information (which may include whether the color temperature is less than or equal to 5000K or the darkness level) and texture pattern information (which may include texture change levels and texture change frequencies).

[0030] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. Figure 1 is a block diagram of an electronic device according to certain embodiments of the present disclosure. Figure 2 and Figure 3 is a block diagram of a camera module according to certain embodiments of the present disclosure. Figures 4 to 7 Methods or operations of a processor according to certain embodiments of the present disclosure are described.

[0031] Figure 1 is a block diagram illustrating an electronic device 101 in a network environment 100 according to some embodiments. Figure 1, the electronic device 101 in the network environment 100 may communicate with the electronic device 102 via the first network 198 (e.g., a short-range wireless communication network), or communicate with the electronic device 104 or the server 108 via the second network 199 (e.g., a long-range wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 via the server 108. According to an embodiment, the electronic device 101 may include a processor 120, a memory 130, an input device 150, a sound output device 155, a display device 160, an audio module 170, a sensor module 176, an interface 177, a haptic module 179, a camera module 180, a power management module 188, a battery 189, a communication module 190, a user identification module (SIM) 196, or an antenna module 197. In some embodiments, at least one of the components (e.g., the display device 160 or the camera module 180) may be omitted from the electronic device 101, or one or more other components may be added to the electronic device 101. In some embodiments, some of the components may be implemented as a single integrated circuit.For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illumination sensor) may be implemented to be embedded in the display device 160 (eg, a display).

[0032] The processor 120 may run, for example, software (e.g., program 140) to control at least one other component (e.g., hardware component or software component) of the electronic device 101 connected to the processor 120, and may perform various data processing or calculations. According to one embodiment, as at least part of the data processing or calculation, the processor 120 may load a command or data received from another component (e.g., sensor module 176 or communication module 190) into the volatile memory 132, process the command or data stored in the volatile memory 132, and store the resultant data in the non-volatile memory 134. According to an embodiment, the processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)) and an auxiliary processor 123 (e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is independent of or combined with the main processor 121 in operation. Additionally or alternatively, the auxiliary processor 123 may be adapted to consume less power than the main processor 121, or adapted to be specifically used for a specified function. The auxiliary processor 123 may be implemented separately from the main processor 121 , or as part of the main processor 121 .

[0033] When the main processor 121 is in an inactive (e.g., sleep) state, the auxiliary processor 123 may control at least some of the functions or states related to at least one component (e.g., display device 160, sensor module 176, or communication module 190) among the components of the electronic device 101 (not the main processor 121), or when the main processor 121 is in an active state (e.g., running an application), the auxiliary processor 123 may control at least some of the functions or states related to at least one component (e.g., display device 160, sensor module 176, or communication module 190) among the components of the electronic device 101 together with the main processor 121. According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., camera module 180 or communication module 190) that is functionally related to the auxiliary processor 123.

[0034] The memory 130 may store various data used by at least one component of the electronic device 101 (e.g., the processor 120 or the sensor module 176). The various data may include, for example, software (e.g., the program 140) and input data or output data for commands related thereto. The memory 130 may include a volatile memory 132 or a nonvolatile memory 134.

[0035] The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system (OS) 142 , middleware 144 , or applications 146 .

[0036] The input device 150 may receive commands or data to be used by other components (eg, the processor 120) of the electronic device 101 from outside the electronic device 101 (eg, a user). The input device 150 may include, for example, a microphone, a mouse, or a keyboard.

[0037] The sound output device 155 can output a sound signal to the outside of the electronic device 101. The sound output device 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as playing multimedia or playing records, and the receiver can be used for incoming calls. Depending on the embodiment, the receiver can be implemented as a separate part from the speaker, or as a part of the speaker.

[0038] The display device 160 may visually provide information to the outside of the electronic device 101 (e.g., a user). The display device 160 may include, for example, a display, a holographic device, or a projector, and a control circuit for controlling a corresponding one of the display, the holographic device, and the projector. According to an embodiment, the display device 160 may include a touch circuit adapted to detect a touch or a sensor circuit (e.g., a pressure sensor) adapted to measure the strength of a force caused by a touch.

[0039] The audio module 170 may convert sound into an electrical signal, or vice versa. According to an embodiment, the audio module 170 may obtain sound via the input device 150, or output sound via the sound output device 155 or an earphone of an external electronic device (e.g., electronic device 102) directly (e.g., wired) or wirelessly connected to the electronic device 101.

[0040] The sensor module 176 may detect an operating state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a state of a user) outside the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illumination sensor.

[0041] The interface 177 may support one or more specific protocols to be used to connect the electronic device 101 directly (e.g., wired) or wirelessly to an external electronic device (e.g., the electronic device 102). According to an embodiment, the interface 177 may include, for example, a high-definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.

[0042] The connection end 178 may include a connector, wherein the electronic device 101 can be physically connected to an external electronic device (e.g., the electronic device 102) via the connector. According to an embodiment, the connection end 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0043] The haptic module 179 may convert the electrical signal into mechanical stimulation (eg, vibration or motion) or electrical stimulation that can be recognized by the user via his sense of touch or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulator.

[0044] The camera module 180 may capture still images or moving images. According to an embodiment, the camera module 180 may include one or more lenses, an image sensor, an image signal processor, or a flash.

[0045] The power management module 188 may manage power supply to the electronic device 101. According to an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

[0046] The battery 189 may power at least one component of the electronic device 101. According to an embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0047] The communication module 190 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108), and perform communication via the established communication channel. The communication module 190 may include one or more communication processors capable of operating independently from the processor 120 (e.g., an application processor (AP)) and supporting direct (e.g., wired) communication or wireless communication. According to an embodiment, the communication module 190 may include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules can communicate with an external electronic device via a first network 198 (e.g., a short-range communication network such as Bluetooth, Wireless Fidelity (Wi-Fi) Direct, or Infrared Data Association (IrDA)) or a second network 199 (e.g., a long-range communication network such as a cellular network, the Internet, or a computer network (e.g., a LAN or a wide area network (WAN))). These various types of communication modules can be implemented as a single component (e.g., a single chip), or these various types of communication modules can be implemented as multiple components separated from each other (e.g., multiple chips). The wireless communication module 192 can identify and authenticate the electronic device 101 in a communication network (such as the first network 198 or the second network 199) using user information (e.g., an International Mobile Subscriber Identity (IMSI)) stored in the user identification module 196.

[0048] The antenna module 197 may transmit or receive a signal or power to or from the outside of the electronic device 101 (e.g., an external electronic device). According to an embodiment, the antenna module 197 may include one or more antennas, and thus, at least one antenna suitable for a communication scheme used in a communication network (such as the first network 198 or the second network 199) may be selected by, for example, the communication module 190 (e.g., the wireless communication module 192). A signal or power may then be transmitted or received between the communication module 190 and the external electronic device via the selected at least one antenna.

[0049] At least some of the above components may be connected to each other via an inter-peripheral communication scheme (e.g., a bus, general purpose input output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and communicatively transmit signals (e.g., commands or data) therebetween.

[0050] According to an embodiment, a command or data may be sent or received between the electronic device 101 and the external electronic device 104 via the server 108 connected to the second network 199. Each of the electronic device 102 and the electronic device 104 may be a device of the same type as the electronic device 101, or a device of a different type from the electronic device 101. According to an embodiment, all or some operations to be executed in the electronic device 101 may be executed in one or more of the external electronic device 102, the external electronic device 104, or the server 108. For example, if the electronic device 101 should automatically execute a function or service or should execute a function or service in response to a request from a user or another device, the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service instead of executing the function or service, or the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service in addition to executing the function or service. The one or more external electronic devices that receive the request may execute the requested at least part of the function or service, or execute another function or another service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may provide the result as at least a partial reply to the request with or without further processing the result. To this end, for example, cloud computing technology, distributed computing technology, or client-server computing technology may be used.

[0051] The electronic device according to some embodiments may be one of various types of electronic devices. The electronic device may include, for example, a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a household appliance. According to an embodiment of the present disclosure, the electronic device is not limited to those electronic devices described above.

[0052] It should be understood that the various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features set forth herein to specific embodiments, but include various changes, equivalents or alternative forms for the corresponding embodiments. For the description of the accompanying drawings, similar reference numerals may be used to refer to similar or related elements. It will be understood that the nouns in the singular form corresponding to the term may include one or more things unless the relevant context clearly indicates otherwise. As used herein, each of the phrases such as "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C" and "at least one of A, B or C" may include all possible combinations of items listed together with the corresponding one of the multiple phrases. As used herein, terms such as "1st" and "2nd" or "first" and "second" may be used to simply distinguish the corresponding component from another component, and do not limit the component in other aspects (e.g., importance or order). It will be understood that if an element (e.g., a first element) is referred to as being “combined with another element (e.g., the second element)”, “combined to another element (e.g., the second element)”, “connected with another element (e.g., the second element)”, or “connected to another element (e.g., the second element)” when the terms “operably” or “communicatively” are used or when the terms “operably” or “communicatively” are not used, it means that the element may be directly (e.g., wired) connected to the other element, wirelessly connected to the other element, or connected to the other element via a third element.

[0053] As used herein, the term "module" may include units implemented in hardware, software, or firmware, and may be used interchangeably with other terms (e.g., "logic," "logic block," "portion," or "circuit"). A module may be a single integrated component adapted to perform one or more functions or a minimum unit or portion of the single integrated component. For example, according to an embodiment, a module may be implemented in the form of an application specific integrated circuit (ASIC).

[0054] Some embodiments described herein may be implemented as software (e.g., program 140) including one or more instructions stored in a storage medium (e.g., internal memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). For example, under the control of a processor, a processor (e.g., processor 120) of the machine (e.g., electronic device 101) may call at least one of the one or more instructions stored in the storage medium and execute the at least one instruction with or without the use of one or more other components. This enables the machine to operate to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be run by an interpreter. A machine-readable storage medium may be provided in the form of a non-transitory storage medium. Among them, the term "non-transitory" only means that the storage medium is a tangible device and does not include a signal (e.g., an electromagnetic wave), but the term does not distinguish between data being semi-permanently stored in the storage medium and data being temporarily stored in the storage medium.

[0055] According to an embodiment, the method according to various embodiments of the present disclosure may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be released in the form of a machine-readable storage medium (e.g., a compact disk read-only memory (CD-ROM)), or may be downloaded via an application store (e.g., Play Store TM ) The computer program product may be published (e.g., downloaded or uploaded) online, or the computer program product may be distributed (e.g., downloaded or uploaded) directly between two user devices (e.g., smart phones). If published online, at least part of the computer program product may be temporarily generated, or at least part of the computer program product may be at least temporarily stored in a machine-readable storage medium (such as a memory of a manufacturer's server, an application store's server, or a forwarding server).

[0056] According to various embodiments, each component (e.g., module or program) in the above-mentioned components may include a single entity or multiple entities. According to various embodiments, one or more components in the above-mentioned components may be omitted, or one or more other components may be added. Alternatively or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, according to various embodiments, the integrated component may still perform the one or more functions of each component in the multiple components in the same or similar manner as a corresponding component in the multiple components before integration. According to various embodiments, the operations performed by a module, program or another component may be performed sequentially, in parallel, repeatedly or in a heuristic manner, or one or more operations in the operations may be run or omitted in different orders, or one or more other operations may be added.

[0057] In some embodiments, in the electronic device 101, the camera module 180 may include a camera module 180 including a first camera and a second camera, and the sensor module 176 includes a depth sensor. The electronic device uses the first camera of the camera module 180 to obtain a first image of an external object. Then, the electronic device generates depth information of the external object using the first camera and the second camera of the camera module 180 in a stereo camera scheme or the depth sensor in the sensor module 176 in a TOF scheme.

[0058] Figure 2 2 is a block diagram 200 illustrating a camera module 180 according to some embodiments. Figure 2 , the camera module 180 may include a lens assembly 210, a flash 220, an image sensor 230, an image stabilizer 240, a memory 250 (e.g., a buffer memory), or an image signal processor 260. The lens assembly 210 may collect light emitted or reflected from an object whose image is to be captured. The lens assembly 210 may include one or more lenses. According to an embodiment, the camera module 180 may include a plurality of lens assemblies 210. In this case, the camera module 180 may form, for example, a dual camera, a 260-degree camera, or a spherical camera. Some of the plurality of lens assemblies 210 may have the same lens properties (e.g., viewing angle, focal length, autofocus, f-number, or optical zoom), or at least one lens assembly may have one or more lens properties different from those of another lens assembly. The lens assembly 210 may include, for example, a wide-angle lens or a telephoto lens.

[0059] The flash 220 may emit light, wherein the emitted light is used to enhance light reflected from an object. According to an embodiment, the flash 220 may include one or more light emitting diodes (LEDs) (e.g., red, green, blue (RGB) LEDs, white LEDs, infrared (IR) LEDs, or ultraviolet (UV) LEDs) or xenon lamps. The image sensor 230 may acquire an image corresponding to an object by converting light emitted or reflected from an object and transmitted through the lens assembly 210 into an electrical signal. According to an embodiment, the image sensor 230 may include one image sensor selected from a plurality of image sensors having different properties (e.g., an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor), a plurality of image sensors having the same 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 charge coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.

[0060] The image stabilizer 240 may move the image sensor 230 or at least one lens included in the lens assembly 210 in a specific direction, or control an operational property of the image sensor 230 (e.g., adjust the readout timing) in response to the movement of the camera module 180 or the electronic device 101 including the camera module 180. In this way, at least a portion of the negative effects (e.g., image blur) generated due to the movement of the image being captured is allowed to be compensated. According to an embodiment, the image stabilizer 240 may sense such movement of the camera module 180 or the electronic device 101 using a gyro sensor (not shown) or an acceleration sensor (not shown) arranged inside or outside the camera module 180. According to an embodiment, the image stabilizer 240 may be implemented as, for example, an optical image stabilizer.

[0061] The memory 250 may at least temporarily store at least a portion of an image acquired via the image sensor 230 for subsequent image processing tasks. For example, if multiple images are captured quickly or image capture is delayed due to shutter lag, the acquired original image (e.g., Bayer pattern image, high-resolution image) may be stored in the memory 250, and its corresponding copy image (e.g., low-resolution image) may be previewed via the display device 160. Then, if a specified condition is met (e.g., by a user's input or a system command), at least a portion of the original image stored in the memory 250 may be acquired and processed by, for example, the image signal processor 260. According to an embodiment, the memory 250 may be configured as at least a portion of the memory 130, or the memory 250 may be configured as a separate memory that operates independently of the memory 130.

[0062] The image signal processor 260 may perform one or more image processing on an image acquired via the image sensor 230 or an image stored in the memory 250. The one or more image processing may include, for example, depth map generation, three-dimensional (3D) modeling, panorama generation, feature point extraction, image synthesis, or image compensation (e.g., noise reduction, resolution adjustment, brightness adjustment, blurring, sharpening, or softening). Additionally or alternatively, the image signal processor 260 may perform control (e.g., exposure time control or readout timing control) on at least one of the components included in the camera module 180 (e.g., image sensor 230). The image processed by the image signal processor 260 may be stored back to the memory 250 for further processing, or the image may be provided to an external component outside the camera module 180 (e.g., memory 130, display device 160, electronic device 102, electronic device 104, or server 108). According to an embodiment, the image signal processor 260 may be configured as at least a part of the processor 120, or the image signal processor 260 may be configured as a separate processor that operates independently of the processor 120. If the image signal processor 260 is configured as a separate processor from the processor 120, at least one image processed by the image signal processor 260 may be displayed as it is by the processor 120 via the display device 160, or may be displayed after being further processed.

[0063] According to an embodiment, the electronic device 101 may include a plurality of camera modules 180 having different properties or functions. In this case, at least one camera module 180 of the plurality of camera modules 180 may form, for example, a wide-angle camera, and at least another camera module 180 of the plurality of camera modules 180 may form a telephoto camera. Similarly, at least one camera module 180 of the plurality of camera modules 180 may form, for example, a front camera, and at least another camera module 180 of the plurality of camera modules 180 may form a rear camera.

[0064] Figure 3 is a block diagram illustrating a configuration related to depth information generation of the electronic device 101 according to some embodiments.

[0065] Reference Figure 3 According to some embodiments, the electronic device 101 (eg, Figure 1 The electronic device 101 in the embodiment may include at least one processor 120 (eg, Figure 1 The processor 120 in FIG. 1 ), the camera module 180 and the depth sensor 330 . The camera module 180 may include a first camera 310 and a second camera 320 .

[0066] For example, processor 120 may include Figure 2The image signal processor 260 is shown. The processor 120 (eg, the image signal processor 260) may, for example, acquire depth information about an external object, and based on the depth information, perform 3-dimensional (3D) modeling on the image, generate a depth map, or perform image correction.

[0067] The processor 120 may generate depth information about an external object using at least one of the first camera 310, the second camera 320, and the depth sensor 330. In some embodiments, the processor 120 generates the depth information of the external object using a selected one of the first camera 310 and the second camera 320 or the depth sensor 330, the selected one being based on color information or texture pattern information corresponding to the external object in the one or more first images.

[0068] For example, the processor 120 may acquire images of an external object using the first camera 310 and the second camera 320, respectively. Then, using the parallax between the acquired images, the processor 120 may generate depth information corresponding to the external object.

[0069] In another example, the processor 120 may measure the depth of the external object using the depth sensor 330. Then, using the measured depth, the processor 120 may generate depth information corresponding to the external object.

[0070] According to some embodiments, the processor 120 may apply different methods for generating depth information based on a state of the electronic device 101 or a state of an external object (eg, subject) targeted for acquiring depth information through the electronic device 101 .

[0071] For example, the processor 120 may control the first camera 310 to acquire one or more first images of an external object. Then, according to the analysis result of the acquired first images, the processor 120 may selectively apply different methods of depth information generation.

[0072] For example, depending on whether a predetermined condition is satisfied, the processor 120 may selectively use a method of generating depth information using the multiple cameras 310 and 320 and a method of generating depth information using the depth sensor 330. Alternatively, the processor 120 may generate depth information by using the multiple cameras 310 and 320 and the depth sensor 330 together.

[0073] According to some embodiments, the first camera 310 may be disposed on one surface of the electronic device 101. In addition, the second camera 320 and the depth sensor 330 may be disposed adjacent to the first camera 310 in other areas of the surface on which the first camera 310 is disposed.

[0074] Figure 4is a flow chart illustrating a method for generating depth information in the electronic device 101 according to some embodiments.

[0075] Reference Figure 4 At operation 410, the electronic device 101 according to some embodiments may use its input device (eg, Figure 1 The input device 150 in the image processing apparatus 100 receives an input for requesting depth information. For example, the depth information request input may include a request for capturing a 3D image, a request for a defocused image or an image with a bokeh effect applied, or an authentication request for user facial recognition.

[0076] In operation 420 , the processor 120 according to some embodiments may acquire one or more first images of an external object by using the first camera 310 in response to receiving the depth information request input in operation 410 .

[0077] In one embodiment, the first camera 310 may be driven before receiving an input for requesting depth information. Figure 1 When a depth information request input is received when the display device 160 in the display device 160 displays a preview image of an external object, the processor 120 can obtain a first image of the external object corresponding to the time point of receiving the input.

[0078] In another embodiment, the first camera 310 may be driven only when an input for requesting depth information is received. For example, when a depth information request input is received, the processor 120 may drive the first camera 310 in response to the received input and control the first camera 310 to acquire a first image of an external object.

[0079] In operation 430, according to some embodiments, the processor 120 may recognize at least one of color information or texture pattern information of an external object from the one or more first images acquired in operation 420. Then, in operation 435, the processor 120 may determine whether the recognized information satisfies a predetermined condition.

[0080] For example, using at least a portion of the acquired one or more first images, the processor 120 may identify color information and / or texture pattern information of the external object and then determine whether a predetermined condition associated with the color information and / or texture pattern information is satisfied.

[0081] The color information of the external object may include, for example, at least one of color temperature information of the external object or color information of the external object (or information indicating a darkness level).

[0082] In one embodiment, the processor 120 may identify the color temperature information of the external object based on the color coordinate information of the pixels included in the one or more first images. Then, based on the identified color temperature information, the processor 120 may determine whether the color temperature of the external object is equal to or less than 5000 K. That is, when the color temperature of the external object is equal to or less than 5000 K, the processor 120 may determine that the predetermined condition is satisfied.

[0083] In another embodiment, the processor 120 may identify darkness level information of the external object based on brightness information of pixels included in one or more first images. Then, based on the identified darkness level information, the processor 120 may determine whether the darkness level of the external object is equal to or greater than a given (or predetermined; now “given” will be used) threshold level. That is, when the darkness level of the external object is equal to or greater than the threshold level, the processor 120 may determine that the predetermined condition is satisfied.

[0084] For example, the processor 120 may obtain a value related to the darkness of the first image and compare the obtained value with a given threshold. In another example, the processor 120 may obtain the Y value of each pixel in the first image and compare the obtained Y value of each pixel with a given threshold. In this case, the Y value may refer to a value indicating the darkness of the image by any one of 0 to 255 (the larger the value, the darker). The processor 120 may then identify the number or area of ​​pixels, each of which has a Y value of a given threshold or greater. If the number or area of ​​the identified pixels is equal to or greater than a predetermined ratio compared to the number or area of ​​all pixels of the first image, the processor 120 may determine that a predetermined condition is met.

[0085] Additionally or alternatively, the processor 120 may identify texture pattern information of the external object by filtering the first image via a corner and / or edge detection technique. For example, the processor 120 may identify the number or area of ​​pixels in the filtered image. If the number or area of ​​the identified pixels is equal to or greater than a predetermined ratio compared to the number or area of ​​all pixels of the first image, the processor 120 may determine that the predetermined condition is satisfied.

[0086] The texture pattern information of the external object may include, for example, at least one of texture change level information of the external object or texture change frequency information of the external object.

[0087] In some embodiments, texture pattern information may be obtained from JPEG compressed information, where the image is converted from the spatial domain to the frequency domain and the magnitudes of coefficients of higher magnitude frequencies are examined.

[0088] In one embodiment, the processor 120 may identify texture change level information (e.g., information indicating depth differences between adjacent pixels) of an external object based on pixel information (e.g., color coordinate information) in one or more first images. Then, based on the identified texture change level information, the processor 120 may determine whether the texture change level (e.g., depth difference) of the external object is equal to or greater than a given threshold. If so, the processor 120 may determine that a predetermined condition is satisfied.

[0089] In another embodiment, the processor 120 may identify the texture change frequency information of the external object based on the pixel information in the one or more first images. For example, the texture change frequency information of the external object may indicate the frequency of pixels having a depth difference of a given value or greater between adjacent pixels within a certain area range. Then, based on the identified texture change frequency information, the processor 120 may determine whether the texture change frequency of the external object is equal to or less than a given threshold. If so, the processor 120 may determine that a predetermined condition is satisfied.

[0090] In operation 435, the processor 120 may determine whether at least one of the color temperature of the external object, the darkness level of the external object, the texture change level of the external object, and the texture change frequency of the external object satisfies a corresponding predetermined condition. Alternatively, the processor 120 may determine whether they all satisfy the corresponding predetermined conditions.

[0091] Meanwhile, the processor 120 may acquire illumination information of the external object by using the first camera, and further determine whether the acquired illumination information satisfies the relevant illumination condition.

[0092] That is, when at least one (or all) of the color temperature of the external object, the darkness level of the external object, the texture change level of the external object, and the texture change frequency of the external object meet the corresponding predetermined conditions, and when the illumination information of the external object meets the relevant illumination conditions, the processor 120 can determine that the predetermined conditions are met.

[0093] When it is determined in operation 435 that the predetermined condition is satisfied, the processor 120 may perform operation 440 .

[0094] In operation 440, the processor 120 may use the first camera 310 and the second camera 320. Specifically, the processor 120 may acquire one or more second images of the external object using the first camera 310, and may also acquire one or more third images of the external object using the second camera 320. The one or more third images may correspond to the one or more second images. For example, the second image and the third image may be acquired at the same time point.

[0095] In operation 450 , the processor 120 may compare the acquired one or more second images with the acquired one or more third images, and generate depth information corresponding to the external object based on the comparison result.

[0096] According to some embodiments, the first camera 310 and the second camera 320 may have different optical characteristics. Specifically, the first camera 310 may include a first lens group having a first focal length and a first viewing angle and a first image sensor. For example, the first lens group may include a standard viewing angle lens or a telephoto angle lens. In addition, the second camera 320 may include a second lens group having a second focal length and a second viewing angle and a second image sensor. The second focal length may be smaller than the first focal length, and the second viewing angle may be greater than the first viewing angle. For example, the second lens group may include a wide-angle lens. According to an embodiment, one of the first camera 310 and the second camera 320 may be defined as a main camera, and the other may be defined as a sub-camera.

[0097] When it is determined in operation 435 that the predetermined condition is not satisfied, the processor 120 may perform operation 460 .

[0098] In operation 460 , the processor 120 may measure the depth of the external object using the depth sensor 330 .

[0099] For example, the processor 120 may output light toward an external object by using a light emitter of the electronic device 101 functionally connected to the processor 120. For example, the output light may at least partially contain light in an infrared wavelength range. The light output from the light emitter may be reflected by the external object and then at least partially incident on the depth sensor 330 of the electronic device 101. Therefore, using the depth sensor 330, the processor 120 may detect at least a portion of the light reflected by the external object and, based on the detection result, measure the depth of the external object.

[0100] At operation 470, the processor 120 may generate depth information corresponding to the external object by using the depth measured at operation 460. For example, the processor 120 may compare information about light output by the light emitter with information about light detected using the depth sensor 330, thereby generating depth information corresponding to the external object.

[0101] Note that Figure 4 In the embodiment, the use of the stereo camera solution (the first camera 310 and the second camera 320) or the TOF solution (the depth sensor 330) is mutually exclusive. In some embodiments, a separate determination may be made using different conditions for whether to use the stereo camera solution (the first camera 310 and the second camera 320) and the TOF solution (the depth sensor 330).

[0102] Figure 5 is a flowchart illustrating a depth information generating method of the electronic device 101 according to some embodiments.

[0103] Figure 5 Operations 510 to 530 may correspond to Figure 4 The above-mentioned operations 410 to 430 are described above, so only a brief description thereof will be given below.

[0104] Reference Figure 5 In operation 510 , the electronic device 101 according to some embodiments may receive an input for requesting depth information through its input device.

[0105] In operation 520 , the processor 120 according to some embodiments may control the first camera 310 to acquire one or more first images of an external object.

[0106] In operation 530, according to some embodiments, the processor 120 may identify at least one of color information or texture pattern information of the external object from the acquired one or more first images. As described above, the color information of the external object may include, for example, color temperature information of the external object and / or color information of the external object (or information indicating a darkness level). In addition, the texture pattern information of the external object may include, for example, texture change level information of the external object and / or texture change frequency information of the external object.

[0107] Although it is described in the present disclosure that the first image acquired through the first camera 310 is used, an image acquired through the second camera 320 may be used instead.

[0108] In operation 532 , the processor 120 may determine whether at least one of the color information of the recognized external object or the texture pattern information of the recognized external object satisfies a predetermined first condition.

[0109] For example, the predetermined first condition may include at least one condition associated with at least one of the color temperature of the external object, the darkness level of the external object, the texture change level of the external object (e.g., the depth difference between adjacent pixels), or the texture change frequency of the external object (e.g., the frequency of pixels having a depth difference of a given value or greater between adjacent pixels within a specific area).

[0110] In one example, the first condition may indicate whether the color temperature of the external object is equal to or less than 5000 K. In another example, the first condition may indicate whether the darkness level of the external object is equal to or greater than a first threshold. In yet another example, the first condition may indicate whether the texture change level of the external object is equal to or greater than a second threshold. In yet another example, the first condition may indicate whether the texture change frequency of the external object is equal to or less than a third threshold.

[0111] When it is determined in operation 532 that the predetermined first condition is satisfied, the processor 120 may perform operation 540. In operation 540, the processor 120 may acquire one or more second images and one or more third images of the external object by using the first camera 310 and the second camera 320. The one or more third images may correspond to the one or more second images.

[0112] In operation 550 , the processor 120 may compare the acquired one or more second images with the acquired one or more third images, and measure a first depth of the external object based on the comparison result.

[0113] In operation 534 , the processor 120 may determine whether at least one of the color information of the recognized external object or the texture pattern information of the recognized external object satisfies a predetermined second condition.

[0114] For example, the predetermined second condition may include at least one condition associated with at least one of a color temperature of the external object, a darkness level of the external object, a texture change level of the external object, or a texture change frequency of the external object.

[0115] In one example, the second condition may indicate whether the color temperature of the external object is greater than 5000 K. In another example, the second condition may indicate whether the darkness level of the external object is less than a first threshold. In yet another example, the second condition may indicate whether the texture change level of the external object is less than a second threshold. In yet another example, the second condition may indicate whether the texture change frequency of the external object is greater than a third threshold.

[0116] When it is determined at operation 534 that the predetermined second condition is satisfied, the processor 120 may perform operation 560. At operation 560, the processor 120 may measure the second depth of the external object by using the depth sensor 330. For example, the processor 120 may control the light emitter to output light at least partially including light in the infrared wavelength range, control the depth sensor 330 to detect at least a portion of the light reflected by the external object, and measure the second depth of the external object based on information about the output light and information about the detected light.

[0117] According to some embodiments, when the first condition and the second condition are not met, the processor 120 may not measure the first depth and the second depth. For example, if it is determined that both the first condition and the second condition are not met, the processor 120 may generate a relevant user notification to instruct the user to change the depth measurement environment. In addition, when both the first condition and the second condition are met, the processor 120 may measure the first depth and the second depth. In addition, when only one of the first condition and the second condition is met, the processor 120 may only measure one of the first depth and the second depth.

[0118] In operation 580 , the processor 120 may generate depth information corresponding to the external object by using one or both of the first depth measured at operation 550 and the second depth measured at operation 560 .

[0119] That is, the processor 120 may generate depth information corresponding to an external object based on a first depth measured using the first camera 310 and the second camera 320 , and / or generate depth information corresponding to an external object based on a second depth measured using the depth sensor 330 .

[0120] According to an embodiment, the processor 120 may determine whether to generate depth information by using one or both of the first depth and the second depth, based on whether at least some of the first condition and the second condition are satisfied.

[0121] According to an embodiment, based on whether at least some of the first condition and the second condition are satisfied, the processor 120 may generate depth information by using both the first depth and the second depth. In this case, the processor 120 may synthesize information about the first depth and information about the second depth, thereby generating depth information corresponding to the external object.

[0122] Figure 6 is a flow chart illustrating a method of generating depth information according to some embodiments.

[0123] Reference Figure 6 At operation 610, the processor 120 according to some embodiments may check the heating state of the electronic device 101. That is, the processor 120 may periodically check the heating state of the electronic device 101 to determine whether the electronic device 101 reaches a threshold temperature. Then, based on the heating state of the electronic device 101, the processor 120 may determine a depth information generation method.

[0124] When it is determined at operation 610 that the electronic device 101 reaches the threshold temperature, at operation 620, the processor 120 may move to the above Figure 4That is, when the electronic device 101 has a threshold temperature or higher, the processor 120 may acquire the second image and the third image by using the first camera 310 and the second camera 320 and then generate depth information by comparing the second image and the third image.

[0125] When it is determined at operation 610 that the electronic device 101 has not reached the threshold temperature, at operation 630, the processor 120 may move to the above Figure 4 That is, when the temperature of the electronic device 101 is less than the threshold temperature, the processor 120 may measure the depth of the external object by using the depth sensor 330 and then generate depth information.

[0126] According to the embodiment, in the above Figure 4 Operation 610 may be performed after operation 435. For example, if it is determined in operation 435 that the predetermined condition is not satisfied, the processor 120 may check the heating state of the electronic device 101 in operation 610. Then, if it is determined in operation 610 that the electronic device 101 reaches the threshold temperature, the processor 120 may perform operation 440 instead of operation 460.

[0127] According to another embodiment, in the above Figure 5 Operation 610 may be performed after operation 534. For example, if it is determined in operation 534 that the second condition is satisfied, the processor 120 may check the heating state of the electronic device 101 in operation 610. Then, if it is determined in operation 610 that the electronic device 101 reaches the threshold temperature, the processor 120 may perform operation 540 instead of operation 560.

[0128] According to yet another embodiment, if it is determined in operation 435 that the predetermined condition is not satisfied, and if it is determined in operation 610 that the electronic device 101 reaches the threshold temperature, the processor 120 may not perform operation 440, but may generate a user notification to instruct the user to change the depth measurement environment. Then, the processor 120 may perform operation 420.

[0129] Figure 7 is a flow chart illustrating a method of generating depth information according to some embodiments.

[0130] Reference Figure 7 , the processor 120 may determine whether the depth sensor detects light at operation 710. Specifically, in a state where the light emitter does not output light to an external object, the processor 120 may determine whether the depth sensor detects light reflected by an external object.

[0131] That is, if the depth sensor detects any light reflected by an external object even if the light emitter does not emit light to the external object, the processor 120 may regard the detected light as occurring due to an external environmental factor.

[0132] In some embodiments, when Figure 4 When it is determined at operation 435 that the predetermined condition is not satisfied, or when Figure 5 When it is determined at operation 534 that the second condition is satisfied, the processor 120 may perform operation 710. At operation 710, when light is detected from the depth sensor without emitting light to an external object, the processor 120 may perform the above-described operation 440 instead of performing the above-described operation 460.

[0133] In another embodiment, when Figure 4 When it is determined at operation 435 that the predetermined condition is not satisfied, and when light is detected from the depth sensor without emitting light to an external object at operation 710, the processor 120 may perform neither operation 460 nor operation 440. Instead, the processor 120 may generate a user notification indicating a failure in generating depth information, display the user notification on a display, and induce the user to change the depth measurement environment.

[0134] As described above, the electronic device according to the present disclosure can automatically apply the optimal depth information generation method in consideration of the external environment. Therefore, the electronic device can reduce power consumption and also obtain high-quality depth information without excessive burden.

[0135] While the present disclosure has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the scope of the subject matter defined in the appended claims.

Claims

1. An electronic device, the electronic device include: a first camera disposed on a surface of the electronic device; a second camera disposed on the one surface; a depth sensor disposed on the one surface; at least one processor; as well as a memory storing instructions, which, when executed by the at least one processor, cause the electronic device to: acquiring one or more first images of an external object using the first camera, determining whether a first predetermined condition associated with at least one of color information or texture pattern information of the external object recognized from the acquired one or more first images is satisfied, When the first predetermined condition is met, one or more second images of the external object are acquired by using the first camera, one or more third images of the external object corresponding to the one or more second images are acquired by using the second camera, and a first depth of the external object is measured based on a comparison between the one or more second images and the one or more third images. determining whether a second predetermined condition associated with at least one of color information or texture pattern information of the external object recognized from the acquired one or more first images is satisfied, and When the second predetermined condition is met, measuring a second depth of the external object using the depth sensor, and Depth information corresponding to the external object is generated using at least one of the measured first depth or the measured second depth.

2. The electronic device according to claim 1, in, When the instructions are executed by the at least one processor, the electronic device: outputting light toward the external object using a light emitter functionally connected to the at least one processor, wherein the outputted light at least partially comprises light in an infrared wavelength range, and The depth of the external object is measured based on at least a portion of the light reflected by the external object and detected by the depth sensor.

3. The electronic device according to claim 1, in, To determine whether the first predetermined condition associated with the color information of the external object is satisfied, the instructions, when executed by the at least one processor, cause the electronic device to determine at least one of the following: Whether the color temperature of the external object is equal to or less than 5000K, or Whether the darkness level of the external object is equal to or greater than a given threshold level.

4. The electronic device according to claim 1, in, To determine whether the first predetermined condition associated with the texture pattern information of the external object is satisfied, the instructions, when executed by the at least one processor, cause the electronic device to determine at least one of the following: whether the texture variation level of the external object is equal to or greater than a first threshold, or Whether the texture change frequency of the external object is equal to or less than a second threshold.

5. The electronic device according to claim 1, in, To determine whether the first predetermined condition is met, the instructions, when executed by the at least one processor, cause the electronic device to determine: Whether the electronic device reaches a threshold temperature.

6. The electronic device according to claim 1, in, To determine whether the first predetermined condition is met, the instructions, when executed by the at least one processor, cause the electronic device to determine: Whether the depth sensor detects light corresponding to a specific wavelength band at a specific intensity or greater.

7. The electronic device according to claim 1, in, To determine whether the first predetermined condition is met, the instructions, when executed by the at least one processor, cause the electronic device to determine: Whether the illumination information of the external object acquired by the first camera meets the relevant illumination condition.

8. The electronic device according to claim 1, in, The first camera and the second camera have different optical characteristics.

9. The electronic device according to claim 1, in, When the instructions are executed by the at least one processor, the electronic device: outputting light toward the external object using a light emitter functionally connected to the at least one processor, wherein the outputted light at least partially comprises light in an infrared wavelength range, and A second depth of the external object is measured based on at least a portion of the light reflected by the external object and detected by the depth sensor.

10. A method for generating depth information in an electronic device, the method include: acquiring, by at least one processor, one or more first images of an external object using a first camera disposed on a surface of the electronic device; determining, by the at least one processor, whether a first predetermined condition associated with at least one of color information or texture pattern information of the external object identified from the acquired one or more first images is satisfied; When the first predetermined condition is met, acquiring, by the at least one processor, one or more second images of the external object using the first camera, acquiring one or more third images of the external object corresponding to the one or more second images using a second camera disposed on the one surface, and measuring a first depth of the external object based on a comparison between the one or more second images and the one or more third images; determining, by the at least one processor, whether a second predetermined condition associated with at least one of color information or texture pattern information of the external object identified from the acquired one or more first images is satisfied; as well as When the second predetermined condition is satisfied, measuring, by the at least one processor, a second depth of the external object using a depth sensor disposed on the one surface, and Depth information corresponding to the external object is generated using at least one of the measured first depth or the measured second depth.

11. The method according to claim 10, in, Measuring the depth of the external object includes: outputting light to the external object using a light emitter disposed on the one surface, wherein the output light at least partially includes light in an infrared wavelength range, detecting, with the depth sensor, at least a portion of the light reflected by the external object, and Based on the detection, a depth of the external object is measured.

12. The method according to claim 10, in, The first predetermined condition associated with the color information of the external object includes at least one of the following: The color temperature of the external object is equal to or less than 5000K, or The condition that the darkness level of the external object is equal to or greater than a given threshold level.

13. The method according to claim 10, in, The first predetermined condition associated with the texture pattern information of the external object includes at least one of the following: The condition that the texture variation level of the external object is equal to or greater than a first threshold, or The condition that the texture change frequency of the external object is equal to or less than a second threshold.