Electronic device including distance sensor, operating method thereof, and storage medium having recorded thereon program for performing operating method

By employing a distance sensor with a calibration process to adjust crosstalk signals, the electronic device improves distance measurement accuracy, addressing precision issues in multi-camera setups.

WO2026063643A1PCT designated stage Publication Date: 2026-03-26SAMSUNG ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-08-19
Publication Date
2026-03-26

Smart Images

  • Figure KR2025012524_26032026_PF_FP_ABST
    Figure KR2025012524_26032026_PF_FP_ABST
Patent Text Reader

Abstract

Provided are an electronic device comprising a distance sensor, an operating method thereof, and a storage medium having recorded thereon a program for performing the operating method. According to an embodiment, the electronic device may comprise: the distance sensor including a light-emitting unit configured to emit light of a designated band and a light-receiving unit configured to detect the light of the designated band; a memory storing instructions; and at least one processor. The memory may store a correction value for calibrating a first crosstalk signal value detected by the distance sensor. The instructions may be collectively or individually executed by the at least one processor to cause the electronic device to: acquire first sensor information by correcting, on the basis of the correction value stored in the memory, a first signal acquired through the distance sensor; determine whether the first sensor information satisfies a designated condition; on the basis of the first sensor information satisfying the designated condition, determine a weight related to the correction value on the basis of the first sensor information; adjust, on the basis of the weight, the correction value to a value for calibrating a second crosstalk signal value, which is different from the first crosstalk signal value; and acquire second sensor information by calibrating, on the basis of the adjusted correction value, a second signal acquired from the distance sensor.
Need to check novelty before this filing date? Find Prior Art

Description

An electronic device including a distance sensor, a method of operation thereof, and a storage medium storing a program for performing the method of operation

[0001] The present disclosure relates to an electronic device including a distance sensor, a method of operating the same, and a storage medium storing a program for performing the method of operating the same.

[0002] An electronic device (e.g., a smartphone) may include a plurality of cameras. For example, the electronic device may include a plurality of cameras positioned on the rear of the electronic device in addition to at least one camera positioned on the front of the electronic device.

[0003] An electronic device can select a camera for acquiring an image from among multiple cameras with different focal lengths (e.g., multiple cameras positioned on the rear of the electronic device) based on the distance between the electronic device and a subject (object). For example, among the multiple cameras, the electronic device can select a camera with a longer focal length as the distance between the electronic device and the subject increases as the distance increases as the distance increases, as the camera for acquiring the image.

[0004] An electronic device may include a distance sensor for measuring the distance between the electronic device and a subject. An electronic device including a distance sensor may select a camera for acquiring an image from among multiple cameras with different focal lengths by utilizing the distance information between the electronic device and the subject obtained through the distance sensor. Additionally, an electronic device including a distance sensor may utilize the distance information between the electronic device and the subject measured by the distance sensor for an autofocus (AF) function. Alternatively, the electronic device may utilize the distance information obtained through the distance sensor for other functions or provide it to another device.

[0005] The electronic device may include a single-zone distance sensor that has a relatively small volume and cost but a relatively narrow field of view (FOV). When the electronic device uses a single-zone distance sensor, the single-zone distance sensor may not sufficiently cover the shooting area of ​​the electronic device's camera. The electronic device may acquire distance information of a subject within the camera's shooting area by using a multi-zone distance sensor that has a relatively wide field of view.

[0006] The information described above may be provided as related art for the purpose of aiding understanding of the present disclosure. No claim or determination is made as to whether any of the foregoing may be applied as prior art in relation to the present disclosure.

[0007] An electronic device according to one embodiment of the present invention may include a distance sensor comprising a light-emitting unit configured to emit light of a designated band and a light-receiving unit configured to detect light of said designated band, a memory for storing instructions, and at least one processor comprising a processing circuitry. The memory may store a correction value for calibrating a first crosstalk signal value detected from the distance sensor. The instructions may be executed collectively or individually by said at least one processor to enable the electronic device to calibrate a first signal obtained through said distance sensor based on the correction value stored in said memory to obtain first sensor information. The instructions may be executed collectively or individually by said at least one processor to enable the electronic device to determine whether said first sensor information satisfies a designated condition. The above instructions may be executed collectively or individually by the at least one processor to cause the electronic device to determine a weight related to the correction value based on the first sensor information based on the first sensor information satisfying the specified condition. The above instructions may be executed collectively or individually by the at least one processor to cause the electronic device to adjust the correction value based on the weight to a value that corrects a second crosstalk signal value different from the first crosstalk signal value. The above instructions may be executed collectively or individually by the at least one processor to cause the electronic device to correct a second signal obtained from the distance sensor based on the adjusted correction value to obtain second sensor information.

[0008] A method of operation of an electronic device according to an embodiment of the present invention may include an operation of obtaining first sensor information by calibrating a first signal obtained through a distance sensor based on a calibration value that calibrates a first crosstalk signal value detected from a distance sensor comprising a light-emitting unit configured to emit light of a designated band and a light-receiving unit configured to detect light of the designated band. The method of operation of the electronic device may include an operation of determining whether the first sensor information satisfies a designated condition. The method of operation of the electronic device may include an operation of determining a weight related to the calibration value based on the first sensor information based on the first sensor information based on the fact that the first sensor information satisfies the designated condition. The method of operation of the electronic device may include an operation of adjusting the calibration value based on the weight to a value that calibrates a second crosstalk signal value different from the first crosstalk signal value. The method of operation of the electronic device may include an operation of obtaining second sensor information by calibrating a second signal obtained from the distance sensor based on the adjusted calibration value.

[0009] A non-transient computer-readable storage medium according to one embodiment of the present invention may store one or more programs. One or more programs may include an instruction for performing an operation to obtain first sensor information by calibrating a first signal obtained through a distance sensor based on a calibration value for calibrating a first crosstalk signal value detected from a distance sensor comprising a light-emitting unit configured to emit light of a specified band and a light-receiving unit configured to detect light of said specified band. One or more programs may include an instruction for performing an operation to determine whether the first sensor information satisfies a specified condition. One or more programs may include an instruction for performing an operation to determine a weight related to the calibration value based on the first sensor information based on the first sensor information satisfying the specified condition. One or more programs may include an instruction for performing an operation to adjust the calibration value based on the weight to a value that corrects a second crosstalk signal value different from the first crosstalk signal value. One or more programs may include instructions for performing an operation to obtain second sensor information by correcting a second signal obtained from the distance sensor based on the adjusted correction value.

[0010] FIG. 1 is a block diagram of an electronic device in a network environment according to one embodiment of the present disclosure.

[0011] FIG. 2 is a perspective view of a distance sensor according to one embodiment of the present disclosure.

[0012] FIG. 3 illustrates a distance sensor placed in an electronic device according to one embodiment of the present disclosure.

[0013] FIG. 4 illustrates a rear view of an electronic device according to one embodiment of the present disclosure.

[0014] FIG. 5 illustrates a distance sensor and a window coupled to the distance sensor according to one embodiment of the present disclosure.

[0015] FIG. 6 is a cross-sectional view of an example of a distance sensor and a window combined according to one embodiment of the present disclosure.

[0016] FIG. 7 illustrates an example of a signal obtained through a distance sensor by an electronic device according to one embodiment of the present disclosure.

[0017] FIG. 8 illustrates an example of correcting a first crosstalk signal value detected through a distance sensor according to one embodiment of the present disclosure.

[0018] FIG. 9 illustrates an example in which a cover is coupled to a distance sensor according to one embodiment of the present disclosure.

[0019] FIG. 10 illustrates an example in which a crosstalk signal value in a signal obtained through a distance sensor according to one embodiment of the present disclosure changes.

[0020] FIG. 11 illustrates a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure calibrates a distance sensor.

[0021] FIG. 12 illustrates the result of calculating a correction value of a distance sensor according to one embodiment of the present disclosure.

[0022] FIG. 13 illustrates a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure determines whether specified conditions are satisfied.

[0023] FIG. 14 illustrates an example of distance information obtained for each distance sensor area of ​​an electronic device according to one embodiment of the present disclosure.

[0024] FIG. 15 illustrates an example of a difference value obtained by an electronic device according to one embodiment of the present disclosure.

[0025] FIG. 16 illustrates a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure determines a first condition.

[0026] FIG. 17 illustrates a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure determines a second condition.

[0027] FIG. 18 illustrates an example of the result of an electronic device according to one embodiment of the present disclosure detecting light of a specified band through an illuminance sensor.

[0028] FIG. 19 is a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure determines a weight.

[0029] FIG. 20 illustrates an example in which an electronic device according to one embodiment of the present disclosure stores a determined weight in memory.

[0030] FIG. 21 illustrates an example in which an electronic device according to one embodiment of the present disclosure provides a user interface.

[0031] FIG. 22 illustrates a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure controls the calibration of a distance sensor.

[0032] FIG. 23 illustrates an example of sensor information for a first distance object obtained through a distance sensor before and after the distance sensor is calibrated according to one embodiment of the present disclosure.

[0033] FIG. 24 illustrates an example of sensor information for a subject at a second distance obtained through a distance sensor before and after the distance sensor is calibrated according to one embodiment of the present disclosure.

[0034] Hereinafter, embodiments are described in detail with reference to the attached drawings so that those skilled in the art can easily implement the present invention. However, the disclosed embodiments may be implemented in various different forms and are not limited to the embodiments described herein.

[0035] FIG. 1 is a block diagram of an electronic device in a network environment according to one embodiment of the present disclosure.

[0036] Referring to FIG. 1, in a network environment (100), an electronic device (101) may communicate with an electronic device (102) through a first network (198) (e.g., a short-range wireless communication network) or with at least one of an electronic device (104) or a server (108) through a second network (199) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (101) may communicate with the electronic device (104) through a server (108). According to one embodiment, the electronic device (101) may include a processor (120), memory (130), input module (150), sound output module (155), display module (160), audio module (170), 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 antenna module (197). In some embodiments, at least one of these components (e.g., connection terminal (178)) may be omitted from the electronic device (101), or one or more other components may be added. In some embodiments, some of these components (e.g., sensor module (176), camera module (180), or antenna module (197)) may be integrated into a single component (e.g., display module (160)).

[0037] The processor (120) can control at least one other component (e.g., hardware or software component) of the electronic device (101) connected to the processor (120) by executing software (e.g., program (140)), for example, and can perform various data processing or operations. According to one embodiment, as at least part of the data processing or operations, the processor (120) can store commands or data received from other components (e.g., sensor module (176) or communication module (190)) in volatile memory (132), process the commands or data stored in volatile memory (132), and store the resulting data in non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., central processing unit or application processor) or an auxiliary processor (123) that can operate independently or together with it (e.g., graphics processing unit, neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor). For example, if the electronic device (101) includes a main processor (121) and an auxiliary processor (123), the auxiliary processor (123) may be configured to use lower power than the main processor (121) or to be specialized for a designated function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as part thereof.

[0038] The auxiliary processor (123) may control at least some of the functions or states associated with at least one component of the electronic device (101) (e.g., display module (160), sensor module (176), or communication module (190)) on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. According to one embodiment, the auxiliary processor (123) (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module (180) or communication module (190)). According to one embodiment, the auxiliary processor (123) (e.g., neural network processing unit) may include a hardware structure specialized for processing an artificial intelligence model. The artificial intelligence model may be generated through machine learning. Such learning may be performed, for example, on the electronic device (101) itself where the artificial intelligence model is executed, or through a separate server (e.g., server (108)). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model may include a plurality of artificial neural network layers.An artificial neural network may be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to the hardware structure, the artificial intelligence model may include a software structure, either additionally or substantially.

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

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

[0041] The input module (150) can receive commands or data to be used for a component of the electronic device (101) (e.g., processor (120)) from outside the electronic device (101) (e.g., user). The input module (150) may include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).

[0042] The sound output module (155) can 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 may be used for general purposes, such as multimedia playback or recording playback. The receiver may be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part thereof.

[0043] The display module (160) can visually provide information to an external (e.g., user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling said device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of the force generated by said touch.

[0044] The audio module (170) can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150) or output sound through the sound output module (155) or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphones) connected directly or wirelessly to the electronic device (101).

[0045] The sensor module (176) can detect the operating state of the electronic device (101) (e.g., power or temperature) or the external environmental state (e.g., user state) and generate an electrical signal or data value corresponding to the detected state. According to one embodiment, the sensor module (176) may include, for example, a gesture sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an accelerometer sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biosensor, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0046] The interface (177) may support one or more specified protocols that can be used for the electronic device (101) to be connected directly or wirelessly to an external electronic device (e.g., electronic device (102)). According to one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

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

[0048] The haptic module (179) can convert an electrical signal into a mechanical stimulus (e.g., vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module (179) may include, for example, a motor, a piezoelectric element, or an electric stimulation device.

[0049] The camera module (180) can capture still images and video. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.

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

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

[0052] The communication module (190) can support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between an electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may include one or more communication processors that operate independently of the processor (120) (e.g., application processor) and support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., cellular communication module, short-range wireless communication module, or GNSS (global navigation satellite system) communication module) or a wired communication module (194) (e.g., LAN (local area network) communication module, or power line communication module). The corresponding communication module among these communication modules can communicate with an external electronic device (104) through a first network (198) (e.g., a short-range communication network such as Bluetooth, WiFi (wireless fidelity) direct, or IrDA (infrared data association)) or a second network (199) (e.g., a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules may be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can identify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) using subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module (196).

[0053] The wireless communication module (192) can support 5G networks and next-generation communication technologies following 4G networks, for example, new radio access technology. NR access technology can support high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and connection of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low-latency communications (URLLC)). The wireless communication module (192) can support a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate, for example. The wireless communication module (192) can support various technologies for securing performance in the high-frequency band, such as beamforming, massive MIMO (multiple-input and multiple-output), full-dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large-scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), external electronic device (e.g., electronic device (104)), or network system (e.g., second network (199)). According to one embodiment, the wireless communication module (192) can support a Peak data rate (e.g., 20 Gbps or more) for realizing eMBB, loss coverage (e.g., 164 dB or less) for realizing mMTC, or U-plane latency (e.g., downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less) for realizing URLLC.

[0054] An antenna module (197) can transmit a signal or power to or from an external source (e.g., an external electronic device). According to one embodiment, the antenna module (197) may include an antenna comprising a radiator made of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). According to one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as a first network (198) or a second network (199), may be selected from the plurality of antennas, for example, by a communication module (190). 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. According to some embodiments, in addition to the radiator, other components (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module (197).

[0055] According to various embodiments, the antenna module (197) may form a mmWave antenna module. According to one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent to a first surface (e.g., bottom surface) of the printed circuit board and capable of supporting a specified high frequency band (e.g., mmWave band), and a plurality of antennas (e.g., array antennas) disposed on or adjacent to a second surface (e.g., top surface or side surface) of the printed circuit board and capable of transmitting or receiving a signal of the specified high frequency band.

[0056] At least some of the above components can be connected to each other via a communication method between peripheral devices (e.g., bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)) and exchange signals (e.g., commands or data) with each other.

[0057] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) through a server (108) connected to a second network (199). Each of the external electronic devices (102, or 104) may be the same or different type of device as the electronic device (101). According to one embodiment, all or part of the operations performed on the electronic device (101) may be performed on one or more of the external electronic devices (102, 104, or 108). For example, if the electronic device (101) needs to perform a function or service automatically or in response to a request from a user or another device, the electronic device (101) may request one or more external electronic devices to perform at least part of the function or service instead of performing the function or service itself or additionally. One or more external electronic devices that receive the above request may execute at least part of the requested function or service, or additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may provide the result as is or additionally processed as at least part of the response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device (101) may provide ultra-low latency services using, for example, distributed computing or mobile edge computing. In another embodiment, 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. According to one embodiment, the external electronic device (104) or the server (108) may be included within a second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

[0058] FIG. 2 is a perspective view of a distance sensor (201) according to one embodiment of the present disclosure.

[0059] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may include a distance sensor (201). The distance sensor (201) according to one embodiment may be included in the sensor module (176) of FIG. 1, but is not limited thereto. For example, the distance sensor (201) may be a separate component from the sensor module (176) of FIG. 1.

[0060] In the present disclosure, "distance" may be referred to as a term meaning the distance between an electronic device (e.g., the electronic device (101) of FIG. 1) and an object, or the depth on an axis from the electronic device (e.g., the electronic device (101) of FIG. 1) to the object.

[0061] The distance sensor (201) of FIG. 2 may correspond to the distance sensors shown in the following drawings (e.g., distance sensor (321) of FIG. 3, distance sensor (421) of FIG. 4, distance sensor (501) of FIG. 5, distance sensor (601) of FIG. 6, distance sensor (710) of FIG. 7, distance sensor (1432) of FIG. 14, distance sensor (2203) of FIG. 22).

[0062] A distance sensor (201) according to one embodiment may include a sensor that acquires information related to the distance of an external object (e.g., the external object (750) of FIG. 7) (e.g., the flight-distance histogram (702) of FIG. 7). For example, the distance sensor (201) may include a sensor that acquires information related to the distance of an external object (e.g., the external object (750) of FIG. 7) (e.g., the flight-distance histogram (702) of FIG. 7) based on the time when emitted light is reflected by the external object (e.g., the external object (750) of FIG. 7) and received by the distance sensor (201). For example, the distance sensor (201) may include a time of flight (TOF) sensor. For example, the distance sensor (201) may include a direct time of flight (D-TOF) sensor. For example, the distance sensor (201) may include an indirect time of flight (I-TOF) sensor. The operation of the distance sensor (201) acquiring information related to the distance of an external object (e.g., external object (750) of FIG. 7) may be associated with the example illustrated in FIG. 7. This will be described in detail with reference to FIG. 7.

[0063] Referring to FIG. 2, a distance sensor (201) according to one embodiment may include a light-emitting part (210) configured to emit light of a specified band.

[0064] In the present disclosure, "light of a specified band" may mean light having a specific range of wavelength bands. For example, light of a specified band may include light of a set wavelength band. For example, light of a specified band may include light of an infrared (IR) band.

[0065] A distance sensor (201) according to one embodiment may include a light-emitting unit (210) configured to emit light of a designated band. For example, the distance sensor (201) may include a light-emitting unit (210) that emits infrared light. For example, the distance sensor (201) may include a light-emitting unit (210) that emits near-infrared light. For example, the distance sensor (201) may include a light-emitting unit (210) that emits a laser. The operation of the light-emitting unit (210) of FIG. 2 emitting light of a designated band will be described in detail with reference to FIG. 6 and FIG. 7.

[0066] A distance sensor (201) according to one embodiment may include a light receiving unit (220) configured to detect light of a designated band. For example, the distance sensor (201) may include a light receiving unit (220) configured to detect light of an infrared band. For example, the light receiving unit (220) may detect light of a designated band emitted from a light emitting unit (210) and reflected by an external object. An example of the light receiving unit (220) of the distance sensor (201) detecting light of a designated band (e.g., infrared) may be associated with an example illustrated in FIGS. 6 and 7. The operation of the light receiving unit (220) of FIG. 2 detecting light of a designated band (e.g., infrared) will be described in detail with reference to FIGS. 6 and 7.

[0067] FIG. 3 illustrates a distance sensor placed in an electronic device according to one embodiment of the present disclosure.

[0068] The distance sensor (321) of Fig. 3 can correspond to the distance sensor (201) of Fig. 2.

[0069] Referring to FIG. 3, a distance sensor (321) may be placed in a region (320) of an electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1). For example, the distance sensor (321) may be placed to face the same direction as the direction in which at least one camera (311, 312, 313, 314) included in the camera module (e.g., the camera module (180) of FIG. 1) of the electronic device (e.g., the electronic device (101) of FIG. 1) faces. For example, the distance sensor (321) may be placed adjacent to at least one camera (311, 312, 313, 314) included in the camera module (e.g., the camera module (180) of FIG. 1) of the electronic device (e.g., the electronic device (101) of FIG. 1), but the position of the distance sensor (321) is not limited as shown in FIG. 3.

[0070] In the present disclosure, when one component (e.g., distance sensor (321)) of an electronic device (e.g., electronic device (101) of FIG. 1) is positioned "adjacently" to another component (e.g., at least one camera (311, 312, 313, 314)), it may mean that one component (e.g., distance sensor (321)) is positioned to be physically "in contact" with another component (e.g., at least one camera (311, 312, 313, 314)) or that the "separation distance" between one component (e.g., distance sensor (321)) and another component (e.g., at least one camera (311, 312, 313, 314)) is within a predetermined range.

[0071] FIG. 4 illustrates a rear view of an electronic device according to one embodiment of the present disclosure.

[0072] The electronic device (400) of FIG. 4 can correspond to the electronic device (101) of FIG. 1.

[0073] Referring to FIG. 4, an electronic device (400) according to one embodiment may include a distance sensor (421), at least one camera (411, 412, 413, 414), and an illuminance sensor (430). The distance sensor (421) of FIG. 4 may correspond to the distance sensor (201) of FIG. 2 and the distance sensor (321) of FIG. 3. The at least one camera (411, 412, 413, 414) of FIG. 4 may correspond to the at least one camera (311, 312, 313, 314) of FIG. 3. The illuminance sensor (430) of FIG. 4 may be included in the sensor module (176) of FIG. 1.

[0074] An electronic device (400) according to one embodiment can obtain brightness information of light around the electronic device (400) through an illuminance sensor (430). For example, the illuminance sensor (430) can detect light. For example, the value of the resistance of the illuminance sensor (430) can change according to a change in the amount of photons of the detected light. For example, the electronic device (400) can obtain information related to the intensity of light around the electronic device (400) based on a change in the voltage value of the illuminance sensor (430) according to a change in the value of the resistance of the illuminance sensor (430). For example, the illuminance sensor (430) may include a flicker sensor for detecting a flicker phenomenon.

[0075] According to one embodiment, the distance sensor (421) and the illuminance sensor (430) may be placed adjacent to one area of ​​the electronic device (400).

[0076] According to one embodiment, the distance sensor (421) may protrude in one direction outside the electronic device (400), so that at least a portion may be exposed.

[0077] FIG. 5 illustrates a distance sensor and a window coupled to the distance sensor according to one embodiment of the present disclosure.

[0078] The distance sensor (501) of FIG. 5 may be included in the sensor module (176) of FIG. 1. The distance sensor (501) of FIG. 5 may correspond to the distance sensor (201) of FIG. 2, the distance sensor (321) of FIG. 3, or the distance sensor (421) of FIG. 4.

[0079] According to one embodiment, a window (530) may be attached to one side of the distance sensor (501). For example, one side of the distance sensor (501) may refer to the side of the distance sensor (421) of FIG. 4 that is exposed in the electronic device (400) of FIG. 4. For example, the window (530) may be attached to the distance sensor (501) to cover the exposed area of ​​one side of the distance sensor (501). As a result, the window (530) can prevent the distance sensor (501) from being damaged by external impact to the electronic device (e.g., the electronic device (101) of FIG. 1).

[0080] According to one embodiment, the window (530) may include at least one filter (531, 532). For example, the window (530) may include a first filter (531) and a second filter (532). In FIG. 5, the window (530) is shown as including two physically separated filters (531, 532), but is not limited thereto. For example, the filters (531, 532) may be formed as a single unit, and additional filters (not shown) may be added depending on the structure of the distance sensor (501).

[0081] According to one embodiment, at least one filter (531, 532) may be placed in the window (530) to correspond to the light-emitting part (510) and the light-receiving part (520) of the distance sensor (501) when the distance sensor (501) and the window (530) are combined. For example, when the distance sensor (501) and the window (530) are combined, the first filter (531) may be placed to correspond to the light-emitting part (510) of the distance sensor (501). For example, when the distance sensor (501) and the window (530) are combined, the second filter (532) may be placed to correspond to the light-receiving part (520) of the distance sensor (501).

[0082] According to one embodiment, at least one filter (531, 532) may be formed of a light-transmitting material. In the present disclosure, "light-transmitting" may mean that at least a portion of incident light can pass through. For example, at least one filter (531, 532) may be formed of a material through which infrared light can pass. For example, at least a portion of light incident on one side of at least one filter (531, 532) may pass through at least one filter (531, 532). For example, at least a portion of light incident on one side of at least one filter (531, 532) may be reflected by at least one filter (531, 532).

[0083] According to one embodiment, light of a designated band emitted from the light-emitting unit (510) may pass through the first filter (531) and be emitted outside the electronic device (e.g., the electronic device (101) of FIG. 1). According to one embodiment, light incident on one side of the second filter (532) outside the electronic device (e.g., the electronic device (101) of FIG. 1) may pass through the second filter (532) and be detected by the light-receiving unit (520).

[0084] FIG. 6 is a cross-sectional view of an example of a distance sensor and a window combined according to one embodiment of the present disclosure.

[0085] The distance sensor (601) of FIG. 6 may correspond to the distance sensor (201) of FIG. 2, the distance sensor (321) of FIG. 3, the distance sensor (421) of FIG. 4, and the distance sensor (501) of FIG. 5. The window (603) of FIG. 6 may correspond to the window (530) of FIG. 5.

[0086] Referring to FIG. 6, a window (603) according to one embodiment may be coupled with a distance sensor (601) at a predetermined distance (602).

[0087] A light-emitting part (610) of a distance sensor (601) according to one embodiment may include a light-emitting element that emits light of a designated band. For example, the light-emitting part (610) may include a laser diode that emits infrared light. For example, the light-emitting part (610) may include a vertical cavity surface emitting laser (VCSEL) that emits infrared light.

[0088] A distance sensor (601) according to one embodiment may include a light receiving unit (620) including a light receiving element (640). For example, the light receiving element (640) of the light receiving unit (620) may include a photodiode (PD) that detects infrared light. For example, the light receiving element (640) may include a CMOS sensor.

[0089] A distance sensor (601) according to one embodiment may include at least one filter (651, 652). The at least one filter (651, 652) of FIG. 6 may correspond to at least one filter (531, 532) of FIG. 5. For example, the first filter (651) of FIG. 6 may correspond to the first filter (531) of FIG. 5. For example, the second filter (652) of FIG. 6 may correspond to the second filter (532) of FIG. 5. The at least one filter (651, 652) may be configured to transmit light of a designated band and block light of another band.

[0090] A distance sensor (601) according to one embodiment may include a lens (660). For example, the lens (660) may be positioned adjacent to one side of the second filter (652). For example, the lens (660) may include a convex lens. For example, the lens (660) may be formed to refract light (e.g., first reflected light (621)) incident on the lens (660) so that it is incident on the light receiving element (640). In FIG. 6, the distance sensor (601) is shown as including only one lens (660), but is not limited thereto. For example, the distance sensor (601) may include a lens (not shown) positioned between the light-emitting part (610) and the first filter (651).

[0091] A distance sensor (601) according to one embodiment may include a support member (690) formed to surround at least a portion of a light-emitting part (610) and a light-receiving part (620). For example, the support member (690) may be formed to support a first filter (651), a second filter (652), and a lens (660) so as to face each other at a predetermined distance from the light-emitting part (610) and the light-receiving part (620). For example, one side of the support member (690) may include at least one step formed to allow the first filter (651), the second filter (652), and the lens (660) to be placed.

[0092] According to one embodiment, the light-emitting part (610) of the distance sensor (601) can emit a first emitted light (611) that passes through a first filter (651). For example, the first emitted light (611) that passes through the first filter (651) can pass through a window (603). For example, the first emitted light (611) that passes through the window (603) can be reflected by an external object (e.g., the external object (750) of FIG. 7). For example, the first reflected light (621) that is reflected by the external object (e.g., the external object (750) of FIG. 7) can pass through a second filter (652). For example, the first reflected light (621) that passes through the second filter (652) can pass through a lens (660). For example, the first reflected light (621) that passes through the lens (660) can be incident on the light receiving element (640).

[0093] According to one embodiment, the light receiving unit (620) of the distance sensor (601) can detect a first reflected light (621) reflected by an external object (e.g., the external object (750) of FIG. 7). For example, the light receiving element (640) of the light receiving unit (620) can detect the first reflected light (621). For example, the light receiving element (640) of the light receiving unit (620) can generate an electronic signal based on the amount of photons contained in the detected first reflected light (621).

[0094] According to one embodiment, the light receiving unit (620) may include a plurality of zones. For example, the plurality of zones may each include physically separated zones. For example, each of the plurality of zones may correspond to at least one light receiving element (640) within the light receiving unit (620). For example, the distance sensor (601) may acquire distance information (e.g., distance information (1420) of FIG. 14) of an external object (e.g., external object (750) of FIG. 7) for each of the plurality of zones. The operation of the distance sensor (601) acquiring distance information (e.g., distance information (1420) of FIG. 14) for each of the plurality of zones may be associated with FIG. 14. This will be explained in detail with reference to FIG. 14.

[0095] FIG. 7 illustrates an example of a signal obtained through a distance sensor by an electronic device according to one embodiment of the present disclosure.

[0096] Referring to FIG. 7, an electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may acquire a signal (702) associated with the flight-time of light of a specified band through a distance sensor (710). For example, operation (701) may be understood as an overview to explain an example of the distance sensor (710) acquiring the signal (702) associated with the flight-time. For example, the signal (702) may include data obtained by processing information acquired through the distance sensor (710) into the form of a histogram. For example, in the signal (702), the horizontal axis of the histogram may be defined as a bin representing a predetermined unit of time (e.g., 1 ns). For example, in signal (702), the vertical axis of the histogram can be defined as a unit (e.g., count per second, cps) that defines the number of photons detected per unit time or the number of photon detection events.

[0097] According to one embodiment, a signal (702) obtained by an electronic device (e.g., the electronic device (101) of FIG. 1) through a distance sensor (710) may include information related to the distance of an external object (750). For example, a first emitted light (751) emitted through the light-emitting part (720) of the distance sensor (710) may be reflected by the external object (750). For example, a first reflected light (752) reflected by the external object (750) may be detected by a light-receiving part (730). For example, a first part (b) of the signal (702) may include a signal indicating the flight time (e.g., 40ns) and the number of photons (e.g., 50kcps) from the time the first emitted light (751) is emitted by the light-emitting part (720) until the first reflected light (752) is detected by the light-receiving part (730). For example, the signal (770) included in the first part (b) of the signal (702) may include information related to the distance of an external object (750).

[0098] According to one embodiment, a signal (702) obtained by an electronic device (e.g., the electronic device (101) of FIG. 1) through a distance sensor (710) may include a crosstalk signal (e.g., a first crosstalk signal value (760)). In this disclosure, "crosstalk" may be referred to as a term meaning a signal containing a noise component, which is an unintended signal. For example, the signal (702) may include a first crosstalk signal value (760) generated by a window (740). For example, the first crosstalk signal value (760) included in a second portion (a) of the signal (702) may include a signal generated based on a second reflected light (742) reflected by a window (740) from a second emitted light (741) of a designated band emitted from a light-emitting unit (720). For example, the second reflected light (742) reflected by the window (740) can be detected by the light receiving unit (730).

[0099] According to one embodiment, the electronic device (e.g., the electronic device (101) of FIG. 1) determines distance information based on a first interference signal value (760) rather than a signal (770) detected by an external object (750), so that the accuracy of the distance information obtained through the distance sensor (710) may be lowered due to the first interference signal value (760).

[0100] FIG. 8 illustrates an example of correcting a first crosstalk signal value detected through a distance sensor according to one embodiment of the present disclosure.

[0101] The signal (801) of Fig. 8 can correspond to the signal (702) of Fig. 7.

[0102] The horizontal and vertical axes of the histogram shown in FIG. 8 may correspond to the horizontal and vertical axes of the histogram in FIG. 7.

[0103] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can remove (820) a first crosstalk signal value (810) included in a signal (801). For example, the electronic device (e.g., the electronic device (101) of FIG. 1) can correct the first crosstalk signal value (810) based on a correction value of a distance sensor (e.g., the distance sensor (201) of FIG. 2). In the present disclosure, the "correction value" may include a parameter used to correct a signal (e.g., the signal (801) of FIG. 8) obtained through a distance sensor (e.g., the distance sensor (201) of FIG. 2). For example, the electronic device (e.g., the electronic device (101) of FIG. 1) can store a correction value corresponding to the identified first crosstalk signal value (810) in a memory (e.g., the memory (130) of FIG. 1). For example, an electronic device (e.g., the electronic device (101) of FIG. 1) can remove a first crossover signal value (810) included in a signal (801) based on a correction value stored in a memory (e.g., the memory (130) of FIG. 1). For example, the operation of the electronic device (e.g., the electronic device (101) of FIG. 1) removing the first crossover signal value (810) may include an operation of subtracting a correction value stored for a specified index from the detected signal.

[0104] According to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1) can obtain sensor information (802) in which the first crosstalk signal value (810) is removed from a signal (801) containing the first crosstalk signal value (810). As a result, the electronic device (e.g., the electronic device (101) of FIG. 1) can obtain more accurate distance information for an external object (e.g., the external object (750) of 7).

[0105] According to one embodiment, a correction value stored in a memory (e.g., memory (130) of FIG. 1) for removing (820) the first crosstalk signal value (810) may be determined during the manufacturing stage of an electronic device (e.g., electronic device (101) of FIG. 1). For example, the correction value stored in a memory (e.g., memory (130) of FIG. 1) for removing (820) the first crosstalk signal value (810) may be determined experimentally in correspondence with a distance sensor (e.g., distance sensor (201) of FIG. 2) of an electronic device (e.g., electronic device (101) of FIG. 1) or a window (e.g., window (530) of FIG. 5) coupled to a distance sensor (e.g., distance sensor (201) of FIG. 2) for calibration of a distance sensor (e.g., distance sensor (201) of FIG. 2).

[0106] FIG. 9 illustrates an example in which an external cover is coupled to a distance sensor according to one embodiment of the present disclosure.

[0107] The electronic device (901) of FIG. 9 may correspond to the electronic device (101) of FIG. 1 or the electronic device (400) of FIG. 4.

[0108] According to one embodiment, a cover (911) may be attached to at least a portion of a window (910) attached to a distance sensor (e.g., distance sensor (421) of FIG. 4) of an electronic device (901). The cover (911) is attached to the window (910) attached to the distance sensor (e.g., distance sensor (421) of FIG. 4) to prevent the distance sensor (e.g., distance sensor (421) of FIG. 4) from being damaged by external impact. A portion of the light emitted from the light-emitting part (e.g., light-emitting part (510) of FIG. 5) of the distance sensor (e.g., distance sensor (421) of FIG. 4) may be reflected by the cover (911) and detected by a light-receiving part (e.g., light-receiving part (520) of FIG. 5). The value of the crosstalk signal detected by the light-receiving part (e.g., light-receiving part (520) of FIG. 5) may change due to the light reflected by the cover (911).

[0109] The cover (911) of FIG. 9 illustrates an example of an external product coupled to a distance sensor (e.g., the distance sensor (421) of FIG. 4), and the shape of the external product coupled to the distance sensor (e.g., the distance sensor (421) of FIG. 4) is not limited to the example shown in FIG. 9.

[0110] FIG. 10 illustrates an example in which a crosstalk signal value in a signal obtained through a distance sensor according to one embodiment of the present disclosure changes.

[0111] The horizontal and vertical axes of the histogram shown in FIG. 10 may correspond to the horizontal and vertical axes of the histogram in FIG. 7.

[0112] The signal (1001) of FIG. 10 may correspond to the signal (702) of FIG. 7 or the signal (801) of FIG. 8. The first interference signal value (1010) included in the signal (1001) of FIG. 10 may correspond to the first interference signal value (760) of FIG. 7 or the first interference signal value (810) of FIG. 8.

[0113] The first signal (1002) of FIG. 10 can be understood as an example of a signal obtained through a distance sensor (e.g., distance sensor (201) of FIG. 2) while the cover (911) is attached to the window (e.g., window (910) of FIG. 9).

[0114] According to one embodiment, the first signal (1002) may include a second interference signal value (1020). For example, the second interference signal value (1020) may include an interference signal caused by a window (e.g., the window (910) of FIG. 9) and a cover (e.g., the cover (911) of FIG. 9). For example, the second interference signal value (1020) may include a value different from the first interference signal value (1010). For example, the second interference signal value (1020) may include a value greater than the first interference signal value (1010).

[0115] According to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1) may obtain distance information with low reliability due to a signal containing a crosstalk signal. In this disclosure, "reliability" may be referred to as a term meaning the accuracy of distance information obtained through a distance sensor (e.g., the distance sensor (201) of FIG. 2). For example, the criteria for determining reliability may include a standard divided into multiple values. For example, the signal-to-noise ratio (SNR) may be used to measure reliability. For example, a confidence level based on a depth 16 format may be used as a criterion for determining reliability. The confidence level may refer to a standard that indicates a reliability range divided into values ​​from 0 to 7, as shown in Table 1 below. For example, a confidence level of 0 may indicate 100% reliability. For example, a confidence level of 1 may indicate 0% reliability. For example, if the confidence level is 2, it can indicate a confidence of 1 / 7. For example, if the confidence level is 3, it can indicate a confidence of 2 / 7.

[0116] [Table 1]

[0117]

[0118] According to one embodiment, if the reliability of distance information obtained through a distance sensor (e.g., distance sensor (201) of FIG. 2) is low, the focus adjustment function (e.g., auto focusing) of a camera module (e.g., camera module (180) of FIG. 1) may not be fully performed. For example, if the reliability of distance information measured through a distance sensor (e.g., distance sensor (201) of FIG. 2) is low, an unnecessary switching of the camera may occur.

[0119] FIG. 11 illustrates a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure calibrates a distance sensor.

[0120] The memory (e.g., memory (130) of FIG. 1) of the electronic device (e.g., electronic device (101) of FIG. 1) performing the operation 1110 of FIG. 11 can store a correction value for correcting a first crosstalk signal value (e.g., first crosstalk signal value (1010) of FIG. 10) detected from a distance sensor (e.g., distance sensor (201) of FIG. 2).

[0121] Referring to FIG. 11, an electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can obtain first sensor information by correcting a first signal (e.g., the first signal (1002) of FIG. 10) obtained through a distance sensor (e.g., the distance sensor (201) of FIG. 2) based on a correction value that corrects a first crosstalk signal value (e.g., the first signal (1002) of FIG. 1) stored in a memory (e.g., the memory (130) of FIG. 1)) in operation 1110. For example, the signal included in the first sensor information may include a signal in which a second crosstalk signal value (e.g., the second crosstalk signal value (1020) of FIG. 10) included in the first signal (e.g., the first signal (1002) of FIG. 10) is corrected by an amount corresponding to the first crosstalk signal value (e.g., the first crosstalk signal value (1010) of FIG. 10).

[0122] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may determine, in operation 1120, whether the first sensor information satisfies a specified condition. The specified condition may include a condition for determining whether it is necessary to adjust a correction value to correct a value detected through a distance sensor (e.g., the distance sensor (201) of FIG. 2). For example, the specified condition may be associated with an environment for performing an operation to correct the distance sensor (e.g., the distance sensor (201) of FIG. 2). For example, the specified condition may be set differently for each first sensor information obtained through a plurality of regions included in the distance sensor (e.g., the distance sensor (201) of FIG. 2). The operation of the electronic device (e.g., the electronic device (101) of FIG. 1) determining the specified condition may be associated with the operation illustrated in FIG. 16 and FIG. 17. This will be described in detail with reference to FIG. 16 and FIG. 17.

[0123] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may perform the operation 1110 of acquiring the first sensor information again based on the result of judgment in operation 1120 that the first sensor information deviates from the specified condition. For example, if the first sensor information deviates from the specified condition, the electronic device (e.g., the electronic device (101) of FIG. 1) may acquire the sensor information again based on a correction value stored in a memory (e.g., the memory (130) of FIG. 1).

[0124] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may determine a weight related to a correction value based on the first sensor information in operation 1130, based on the first sensor information satisfying a specified condition as a result of judgment in operation 1120. For example, the weight may include a parameter that adjusts a correction value that corrects a first crosstalk signal value (e.g., the first crosstalk signal value (1010) of FIG. 10) stored in a memory (e.g., the memory (130) of FIG. 1). For example, the electronic device (e.g., the electronic device (101) of FIG. 1) may determine the weight based on the first crosstalk signal value (e.g., the first crosstalk signal value (1010) of FIG. 10)) and the first signal (1002). The operation 1130 in which the electronic device (e.g., the electronic device (101) of FIG. 1) determines the weight may be associated with the example shown in FIG. 15. This will be explained in detail with reference to Fig. 15.

[0125] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can, in operation 1140, adjust a correction value stored in a memory (e.g., the memory (130) of FIG. 1) based on a weight determined in operation 1130 to a value that corrects a second interference signal value (e.g., the second interference signal value (1020) of FIG. 10) that is different from a first interference signal value (e.g., the first interference signal value (1010) of FIG. 10). For example, the electronic device (e.g., the electronic device (101) of FIG. 1) can obtain an adjusted correction value that corrects the second interference signal value (e.g., the second interference signal value (1020) of FIG. 10) through an operation of multiplying the first interference signal value (e.g., the first interference signal value (1010) of FIG. 10) by a determined weight. For example, an electronic device (e.g., the electronic device (101) of FIG. 1) can store the adjusted correction value in memory (e.g., the memory (130) of FIG. 1).

[0126] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can obtain second sensor information by correcting a second signal obtained from a distance sensor (e.g., the distance sensor (201) of FIG. 2) based on a correction value adjusted in operation 1140 in operation 1150. For example, the second sensor information may include a signal corrected based on a correction value that corrects a second crosstalk signal value (e.g., the second crosstalk signal value (1020) of FIG. 10)) from a second signal obtained from a distance sensor (e.g., the distance sensor (201) of FIG. 2).

[0127] FIG. 12 illustrates the result of calculating a correction value of a distance sensor according to one embodiment of the present disclosure.

[0128] The horizontal and vertical axes of the histogram shown in FIG. 12 may correspond to the horizontal and vertical axes of the histogram in FIG. 7.

[0129] According to one embodiment, data (1201, 1202) illustrates the result of calculating a crosstalk signal value that needs to be corrected in order to perform calibration of a distance sensor (e.g., distance sensor (201) of FIG. 2) in a specific environment. For example, the crosstalk signal value (1210) of the first data (1201) illustrates the result obtained when a specified condition for performing calibration of the distance sensor (e.g., distance sensor (201) of FIG. 2) is satisfied. For example, the crosstalk signal value (1220, 1230) of the second data (1202) illustrates the result calculated when a specified condition for performing calibration of the distance sensor (e.g., distance sensor (201) of FIG. 2) is not met. For example, cases where the specified conditions for performing calibration of the distance sensor (e.g., the distance sensor (201) of FIG. 2) are not met may include cases where an external object (e.g., the external object (750) of FIG. 7) is present within a threshold distance from the distance sensor (e.g., the distance sensor (201) of FIG. 2). For example, cases where the specified conditions for performing calibration of the distance sensor (e.g., the distance sensor (201) of FIG. 2) are not met may include cases where an external object (e.g., the external object (750) of FIG. 7) is present within 50 cm of the distance sensor (e.g., the distance sensor (201) of FIG. 2).

[0130] According to one embodiment, when the specified conditions for performing calibration of a distance sensor (e.g., distance sensor (201) of FIG. 2) are not met, an electronic device (e.g., electronic device (101) of FIG. 1) may obtain data (1202) containing errors. For example, when the specified conditions for performing calibration of a distance sensor (e.g., distance sensor (201) of FIG. 2) are not met, the electronic device (e.g., electronic device (101) of FIG. 1) may obtain data (1202) containing unnecessary crosstalk signal values ​​(1230), unlike the data (1201) obtained when the specified conditions are met.

[0131] According to one embodiment, when correcting a signal (e.g., a first signal (e.g., a first signal (1002) in FIG. 10)) obtained through a distance sensor (e.g., a distance sensor (201) in FIG. 2) based on data (1202) containing errors, a signal associated with the distance of an external object (e.g., an external object (750) in FIG. 7) for which distance information is to be obtained may be removed together due to an unnecessary crosstalk signal value (1230). For example, when correcting a signal (e.g., a first signal (e.g., a first signal (1002) in FIG. 10)) obtained through a distance sensor (e.g., a distance sensor (201) in FIG. 2) based on data (1202) containing errors, a signal obtained based on light reflected and received by an external object (e.g., an external object (750) in FIG. 7) may be removed.

[0132] FIG. 13 illustrates a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure determines whether specified conditions are satisfied.

[0133] Operations 1310 to 1320 of FIG. 13 may correspond to operation 1120 of FIG. 11.

[0134] Referring to FIG. 13, an electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can determine whether the first information obtained through the first region satisfies the first condition in operation 1310.

[0135] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may perform operation 1110 of FIG. 11 based on the fact that, in operation 1310, the first information obtained through the first area deviates from the first condition. For example, the electronic device (e.g., the electronic device (101) of FIG. 1) may perform an operation of obtaining sensor information based on a correction value stored in a memory (e.g., the memory (130) of FIG. 1) based on the fact that, in operation 1310, the first information obtained through the first area deviates from the first condition.

[0136] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can determine whether second information satisfies a second condition in operation 1320 based on whether first information obtained through a first region in operation 1310 satisfies a first condition.

[0137] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may perform operation 1110 of FIG. 11 based on the second information deviating from the second condition in operation 1320. For example, the electronic device (e.g., the electronic device (101) of FIG. 1) may perform an operation of acquiring sensor information based on a correction value stored in a memory (e.g., the memory (130) of FIG. 1) based on the determination that the second information acquired through the second area deviated from the second condition in operation 1320.

[0138] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can perform operation 1130 of FIG. 11 based on the second information satisfying the second condition in operation 1320. For example, the electronic device (e.g., the electronic device (101) of FIG. 1) can perform an operation of determining a weight related to a correction value based on first sensor information based on the second information satisfying the second condition in operation 1320.

[0139] In the present disclosure, the "first region" may include at least one of a plurality of regions included in a light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the first region of the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) may include a region of the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) set to identify a change in a crosstalk signal value.

[0140] In the present disclosure, the "second region" may include a plurality of regions excluding the "first region" among a plurality of regions included in a light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the second region of the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) may include a region of the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) set to acquire distance information. The second region may further include a first region.

[0141] In the present disclosure, "first information" may be referred to as a term meaning information obtained through a first area of ​​a light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the first information may include information obtained through a first area of ​​the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) among the information included in the first sensor information. For example, the first information may include information obtained based on light detected through a first area of ​​the light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the first information may include distance information obtained based on light detected through a first area of ​​the light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the first information may include illuminance information obtained based on light detected through a first area of ​​the light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the first information may include reliability information obtained based on light detected through a first area of ​​a light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the first information may include a crosstalk signal value obtained based on light detected through a first area of ​​a light receiving unit (e.g., the light receiving unit (220) of FIG. 2).

[0142] In the present disclosure, "second information" may be referred to as a term meaning information obtained through a second area of ​​a light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the second information may include information obtained through a second area of ​​the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) among the information included in the first sensor information. For example, the second information may include information obtained based on light detected through a second area of ​​the light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the second information may include distance information obtained based on light detected through a second area of ​​the light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the second information may include illuminance information obtained based on light detected through a second area of ​​the light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the second information may include reliability information obtained based on light detected through a second area of ​​a light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the second information may include information related to a crosstalk signal value obtained based on light detected through a second area of ​​a light receiving unit (e.g., the light receiving unit (220) of FIG. 2).

[0143] In the present disclosure, "first condition" may be referred to as a term meaning whether first information obtained based on light detected through a first region of a light receiving unit (e.g., the light receiving unit (220) of FIG. 2) is included within a set threshold value. The operation of an electronic device (e.g., the electronic device (101) of FIG. 1) determining the first condition may be associated with the operation of the electronic device (e.g., the electronic device (101) of FIG. 1) illustrated in FIG. 16. This will be explained in detail with reference to FIG. 16.

[0144] In the present disclosure, "second condition" may be referred to as a term meaning whether second information obtained based on light detected through a second region of a light receiving unit (e.g., the light receiving unit (220) of FIG. 2) is included within a set threshold value. The operation of an electronic device (e.g., the electronic device (101) of FIG. 1) determining the second condition may be associated with the operation of the electronic device (e.g., the electronic device (101) of FIG. 1) illustrated in FIG. 17. This will be explained in detail with reference to FIG. 17.

[0145] FIG. 14 illustrates an example of distance information obtained for each distance sensor area of ​​an electronic device according to one embodiment of the present disclosure.

[0146] The electronic device (1401) of FIG. 14 may correspond to the electronic device (101) of FIG. 1, the electronic device (400) of FIG. 4, or the electronic device (901) of FIG. 9.

[0147] Referring to FIG. 14, an electronic device (1401) according to one embodiment may include a distance sensor (1410) positioned adjacent to at least one camera (1431, 1432, 1433, 1434).

[0148] An electronic device (1401) according to one embodiment may include a distance sensor (1410) in which the zone of the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) is divided into a plurality of zones. For example, the zone of the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) may include a plurality of physically separated zones. For example, the zone of the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) may be divided into 64 zones, but the number of separated zones is not limited thereto.

[0149] An electronic device (1401) according to one embodiment can obtain distance information (1420) based on light detected through each of a plurality of regions of a light receiving unit (e.g., the light receiving unit (220) of FIG. 2). Each data included in the distance information (1420) of FIG. 14 may correspond to a distance value obtained based on light detected through each of the plurality of regions of the light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the distance information (1420) may include distance values ​​corresponding to each of the plurality of regions within the light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the distance information (1420) may store 64 distance values, but the distance values ​​that can be stored in the distance information (1420) are not limited as shown in FIG. 14.

[0150] An electronic device (1401) according to one embodiment may select at least one of a plurality of regions of a light receiving unit (e.g., the light receiving unit (220) of FIG. 2) as a first region (1413). For example, the electronic device (1401) may select the first region (1413) from at least one region (1411, 1412, 1413, 1414) among the plurality of regions that does not acquire distance information. For example, the first region may include a region for monitoring changes in crosstalk signal values. For example, the electronic device (1401) may select the region with the lowest reliability of distance measurement among the plurality of regions of the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) as the first region (1413). For example, the electronic device (1401) may select the area furthest apart from at least one camera (1431, 1432, 1433, 1434) among the plurality of areas as the first area (1413).

[0151] FIG. 14 illustrates an example in which an electronic device (1401) according to one embodiment selects one of a plurality of regions as a first region (1413), but the method of selection, number, and location of the "first region" are not limited thereto. For example, the "first region" may be set during the manufacture of a distance sensor (e.g., the distance sensor (201) of FIG. 2). For example, the "first region" may include a plurality of regions. For example, the "first region" may include a region positioned closest to at least one camera (1431, 1432, 1433, 1434) among a plurality of regions of a light receiving unit (e.g., the light receiving unit (220) of FIG. 2). For example, the "first region" may include a region belonging to a separate module (e.g., an IC circuit) other than the light receiving unit (e.g., the light receiving unit (220) of FIG. 2). At this time, a separate module including the first area may provide a function for monitoring changes in the interference signal value.

[0152] FIG. 15 illustrates an example of a difference value obtained by an electronic device according to one embodiment of the present disclosure.

[0153] The horizontal and vertical axes of the histogram shown in FIG. 15 may correspond to the horizontal and vertical axes of the histogram in FIG. 7.

[0154] Referring to FIG. 15, data (1501) acquired by an electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may represent the result of comparing a peak signal (1520) within a first signal with a first crosstalk signal value (1510). In the present disclosure, the "peak signal" of a specific signal may be referred to as a term including a signal having the largest value within a specific signal. For example, the peak signal (1520) within the first signal may indicate a crosstalk signal included in the first sensor information acquired through a distance sensor (e.g., the distance sensor (201) of FIG. 2) by performing operation 1110 of FIG. 11. For example, the first crosstalk signal value (1510) within the data (1501) may correspond to the first crosstalk signal value (760) of FIG. 7.

[0155] The difference value (1540) of the data (1502) acquired by an electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may indicate the difference (1530) between the peak signal (1520) in the first signal and the first crosstalk signal value (1510). For example, the difference value (1540) may correspond to a signal in which a portion of the peak signal (1520) in the first signal is corrected through a correction value in which the electronic device (e.g., the electronic device (101) of FIG. 1) corrects the first crosstalk signal value (1510).

[0156] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can calculate a weight associated with a correction value based on a first interference signal value (1510) and a difference value (1540). The operation of the electronic device (e.g., the electronic device (101) of FIG. 1) determining the weight may be associated with the operation 1130 of FIG. 11. For example, the electronic device (e.g., the electronic device (101) of FIG. 1) can calculate a weight for calculating a correction value corresponding to a second interference signal value based on the first interference signal value and the difference value (1540). For example, the electronic device (e.g., the electronic device (101) of FIG. 1) can calculate the weight through an operation such as Equation 1 below.

[0157]

[0158] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can adjust a correction value stored in a memory (e.g., the memory (130) of FIG. 1) based on a calculated weight to a correction value that corrects a second crosstalk signal value. The operation of the electronic device (e.g., the electronic device (101) of FIG. 1) adjusting the correction value may be associated with the operation 1140 of FIG. 11. For example, the electronic device (e.g., the electronic device (101) of FIG. 1) can determine the second crosstalk signal value through an operation such as Equation 2 below.

[0159]

[0160] For example, an electronic device (e.g., the electronic device (101) of FIG. 1) can adjust a correction value stored in a memory (e.g., the memory (130) of FIG. 1) to a correction value that corrects a determined second crosstalk signal value.

[0161] FIG. 16 illustrates a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure determines a first condition.

[0162] Operations 1610 to 1670 in the flowchart (1600) of FIG. 16 may be included in operation 1120 of FIG. 11. Operations 1610 to 1670 in the flowchart (1600) of FIG. 16 may correspond to operation 1310 of FIG. 13. The flowchart (1600) illustrated in FIG. 16 illustrates an example for explaining a method for an electronic device (e.g., the electronic device (101) of FIG. 1) to determine whether a first condition is satisfied in one embodiment, and the detailed conditions for determining whether the first condition is satisfied in one embodiment may be changed from the example illustrated in FIG. 16.

[0163] Referring to FIG. 16, an electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can determine, in operation 1610, whether the difference between a reference value stored in a memory (e.g., the memory (130) of FIG. 1) and a peak signal within a first signal (e.g., the peak signal (1520) of FIG. 15) is greater than or equal to a first threshold value. The 'reference value' stored in the memory (e.g., the memory (130) of FIG. 1) may refer to a peak signal within a signal obtained by the electronic device (e.g., the electronic device (101) of FIG. 1) through a first area (e.g., the first area (1413) of FIG. 14) of a distance sensor (e.g., the distance sensor (201) of FIG. 2) during calibration of a distance sensor (e.g., the distance sensor (201) of FIG. 2) that has already been performed. For example, the reference value may correspond to a calibration value adjusted according to the previously performed operation 1140 when the electronic device (e.g., the electronic device (101) of FIG. 1) repeatedly performs operations 1110 to 1150 of FIG. 11. This will be described later in connection with operation 1920 of FIG. 19. For example, the first threshold value may be set to a positive value. For example, operation 1610 may be understood as an operation to identify whether the crosstalk signal value obtained through the first area (e.g., the first area (1413) of FIG. 14) has changed by a certain amount in the negative direction. For example, if the difference between a reference value stored in a memory (e.g., memory (130) of FIG. 1) and a peak signal within a first signal (e.g., peak signal (1520) of FIG. 15) is greater than or equal to a first threshold value, an electronic device (e.g., electronic device (101) of FIG. 1) can identify that the crosstalk signal value obtained through a first region (e.g., first region (1413) of FIG. 14) has changed in a negative direction.

[0164] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may, in operation 1620, set a correction value to a specified initial setting value based on the fact that in operation 1610, the difference between a reference value stored in memory (e.g., the memory (130) of FIG. 1) and a peak signal in a first signal (e.g., the peak signal (1520) in FIG. 15) is greater than or equal to a first threshold value. For example, the specified initial setting value may include a process correction value applied during the manufacture of the electronic device (e.g., the electronic device (101) of FIG. 1) or the lowest crosstalk signal value in process dispersion data. For example, in operation 1620, the operation of setting the correction value to a specified initial setting value may be understood as an operation to prevent unintended excessive correction.

[0165] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) in operation 1630,

[0166] Based on determining that the difference between a reference value stored in memory (e.g., memory (130) in FIG. 1) and a peak signal within a first signal (e.g., peak signal (1520) in FIG. 15) in operation 1610 is less than a first threshold, it can be determined whether the intensity of light of a designated band detected through a first region is less than a second threshold. For example, operation 1620 can be understood as an operation that determines conditions related to illuminance by a light source outside an electronic device (e.g., electronic device (101) in FIG. 1). For example, the electronic device (e.g., electronic device (101) in FIG. 1) can determine whether the intensity of light of a designated band (e.g., infrared) obtained through a first region (e.g., first region (1413) in FIG. 14) within a light receiving unit (e.g., light receiving unit (220) in FIG. 2) is less than a second threshold. For example, the second threshold may include, but is not limited to, 35 kcps. For example, the second threshold may be set to a different value depending on the shape of the electronic device (e.g., the electronic device (101) of FIG. 1) or the performance, placement, or shape of the distance sensor (e.g., the distance sensor (201) of FIG. 2).

[0167] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can determine, in operation 1640, whether the distance calculated through the first region is less than a third threshold value. For example, operation 1640 can be understood as an operation to determine whether the distance information obtained through the distance sensor (e.g., the distance sensor (201) of FIG. 2) includes a crosstalk signal from a window (e.g., the window (530) of FIG. 5) or a cover (e.g., the cover (911) of FIG. 9) coupled to the distance sensor (e.g., the distance sensor (201) of FIG. 2). For example, if the distance calculated through the first area (e.g., the first area (1413) in FIG. 14) is within 50 mm under conditions where an external object (e.g., external object (750) in FIG. 7) is located at a distance (e.g., 2 m), it may mean that a crosstalk signal is included by a window (e.g., window (530) in FIG. 5) or a cover (e.g., cover (911) in FIG. 9). For example, the third threshold value may include, but is not limited to, 50 mm. For example, the third threshold value may be set to a different value depending on the shape of the electronic device (e.g., electronic device (101) in FIG. 1), or the performance, placement, or shape of the distance sensor (e.g., distance sensor (201) in FIG. 2).

[0168] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can determine, in operation 1650, whether a peak signal (e.g., the peak signal (1520) in the first signal of FIG. 15) in the first signal obtained through a first region is less than a fourth threshold value. For example, operation 1650 can be understood as an operation to identify when an external object (e.g., the external object (750) of FIG. 7) exists within a third threshold value (e.g., 50 mm) from a distance sensor (e.g., the distance sensor (201) of FIG. 2). Operation 1650 can be understood as performing an operation corresponding to operation 1730 of FIG. 17 with respect to the first signal obtained through the first region, and will be described later to avoid redundant explanation.

[0169] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can determine, in operation 1660, whether the reliability of distance information calculated through a first region is below a fifth threshold. The reliability may correspond to the reliability described above with reference to FIG. 10. For example, the electronic device (e.g., the electronic device (101) of FIG. 1) can determine whether the reliability is below the fifth threshold based on a reliability level.

[0170] For example, operation 1660 can be understood as an operation to identify when a black external object is present within a third threshold (e.g., 50 mm) from a distance sensor (e.g., distance sensor (201) of FIG. 2). For example, when a black external object is present within a third threshold (e.g., 50 mm) from a distance sensor (e.g., distance sensor (201) of FIG. 2), the black external object absorbs light of a designated band (e.g., infrared) output from a light-emitting unit (e.g., light-emitting unit (210) of FIG. 2), so that a signal corresponding to light reflected from an external object located relatively far away (e.g., external object (750) of FIG. 7) among the sensor information (e.g., flight-time histogram) obtained from the distance sensor (e.g., distance sensor (201) of FIG. 2) may not be detected. For example, if a black external object is present within a third threshold (e.g., 50 mm) from a distance sensor (e.g., distance sensor (201) of FIG. 2), distance information calculated based on light reflected from the black external object located within the third threshold (e.g., 50 mm) can be obtained. In this case, the distance sensor (e.g., distance sensor (201) of FIG. 2) detects light reflected from the black external object within a third threshold (e.g., 50 mm) from the distance (e.g., distance sensor (201) of FIG. 2), but fails to detect light reflected from an external object located at a relatively far distance (e.g., external object (750) of FIG. 7), so the SNR may be measured as relatively high.If there is no black external object within a third threshold value (e.g., 50 mm) from a distance sensor (e.g., distance sensor (201) of FIG. 2), a signal corresponding to light reflected from an external object located at a relatively distant distance (e.g., external object (750) of FIG. 7), a signal corresponding to reflected light (e.g., reflected light (742) of FIG. 7) reflected by a window (e.g., window (740) of FIG. 7), or a signal due to reflected light reflected by a cover (e.g., cover (911) of FIG. 9) may be detected together. In this case, the signal corresponding to the reflected light (e.g., reflected light (742) of FIG. 7) reflected by the window (e.g., window (740) of FIG. 7) or the signal due to the reflected light reflected by the cover (e.g., cover (911) of FIG. 9) may be measured as lower than when a black external object is located within a third threshold value (e.g., 50 mm) from the distance (e.g., distance sensor (201) of FIG. 2) due to the signal corresponding to the light reflected from an external object located at a relatively distant distance (e.g., external object (750) of FIG. 7). Here, the measurement of a relatively low SNR may correspond to the measurement of a relatively low reliability of the distance information.

[0171] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can determine, in operation 1670, whether the absolute value of the difference between a reference value stored in memory (e.g., memory (130) of FIG. 1) and a peak signal within a first signal (e.g., the peak signal (1520) within a first signal in FIG. 15) is greater than or equal to a sixth threshold value. For example, operation 1670 can be understood as an operation determining whether there is a change in the crosstalk signal value obtained through a first area (e.g., the first area (1413) of FIG. 14). The 'reference value' in operation 1670 may correspond to the reference value mentioned in operation 1610. The peak signal within the first signal (e.g., the peak signal (1520) within a first signal in FIG. 15) is obtained through a first area (e.g., the first area (1413) of FIG. 14)) and may include a crosstalk signal to which a correction value has not been applied. For example, an electronic device (e.g., the electronic device (101) of FIG. 1) can identify that the crosstalk signal value has changed based on the fact that, in operation 1670, the absolute value of the difference between the reference value stored in memory (e.g., the memory (130) of FIG. 1) and the peak signal in the first signal (e.g., the peak signal (1520) in FIG. 15) is greater than or equal to the sixth threshold value.

[0172] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may perform operation 1320 of FIG. 13 based on the fact that in operation 1670, the absolute value of the difference between a reference value stored in memory (e.g., the memory (130) of FIG. 1) and a peak signal within a first signal (e.g., the peak signal (1520) within the first signal of FIG. 15) is greater than or equal to a sixth threshold value. For example, the electronic device (e.g., the electronic device (101) of FIG. 1) may perform an operation (e.g., operation 1320 of FIG. 13) of determining whether the second information described with reference to FIG. 13 satisfies the second condition based on the judgment result of operation 1670 being determined to satisfy ('yes').

[0173] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may store the value of the peak signal (e.g., the peak signal (1520) of FIG. 1) in the memory (e.g., the memory (130) of FIG. 1) in the first signal in operation 1670, based on determining that the absolute value of the difference between the reference value stored in the memory (e.g., the memory (130) of FIG. 1) and the value of the peak signal (e.g., the peak signal (1520) of FIG. 1) in the first signal is greater than or equal to the sixth threshold value. The value of the peak signal within the first signal (e.g., the peak signal within the first signal of FIG. 15 (1520)) stored in the memory (e.g., the memory (130) of FIG. 1) can be used as a 'reference value' when the electronic device (e.g., the electronic device (101) of FIG. 1) performs operations 1610 and 1670 of FIG. 16 for calibration of a subsequent distance sensor (e.g., the distance sensor (201) of FIG. 2). For example, the value of the peak signal within the first signal (e.g., the peak signal within the first signal of FIG. 15 (1520)) stored in the memory (e.g., the memory (130) of FIG. 1) can be set as a 'reference value' used in operations 1610 and 1670 of FIG. 16 as long as certain conditions are satisfied. The operation of setting the value of the peak signal (e.g., the peak signal (1520) in the first signal of FIG. 15) within the first signal stored in the memory (e.g., the memory (130) of FIG. 1) as a reference value may be associated with the operation 1920 of FIG. 19 to be described later.

[0174] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can perform operation 1110 of FIG. 11 based on deviating from each condition in operations 1610 to 1670. For example, the electronic device (e.g., the electronic device (101) of FIG. 1) can perform an operation of reacquiring sensor information based on a correction value stored in a memory (e.g., the memory (130) of FIG. 1) based on deviating from each condition in operations 1610 to 1670.

[0175] The sequence of operations 1610 to 1670 performed by an electronic device according to one embodiment in FIG. 16 (e.g., the electronic device (101) of FIG. 1) is not limited to that shown in FIG. 16. Additionally, some of the operations performed by the electronic device according to one embodiment in FIG. 16 (e.g., the electronic device (101) of FIG. 1) may be omitted or new operations may be added.

[0176] FIG. 17 illustrates a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure determines a second condition.

[0177] Operations 1710 to 1750 of FIG. 17 may be included in operation 1120 of FIG. 11. Operations 1710 to 1750 of FIG. 17 may correspond to operation 1320 of FIG. 13. For example, operations 1710 to 1750 of FIG. 17 may correspond to an operation of determining whether second information among sensor information satisfies a second condition among specified conditions. The flowchart illustrated in FIG. 17 illustrates an example for explaining a method in which an electronic device (e.g., the electronic device (101) of FIG. 1) determines whether the second condition is satisfied in one embodiment, and the detailed conditions for determining whether the second condition is satisfied in one embodiment may be changed from the example illustrated in FIG. 17.

[0178] Referring to FIG. 17, an electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may determine, in operation 1710, whether the intensity of light of a designated band detected through a second region is less than a second threshold. For example, operation 1710 may be understood as an operation that determines conditions related to illuminance by a light source outside the electronic device (e.g., the electronic device (101) of FIG. 1). For example, the electronic device (e.g., the electronic device (101) of FIG. 1) may determine whether the intensity of light of a designated band (e.g., infrared) obtained through a second region different from a first region (e.g., the first region (1413) of FIG. 14) within a light receiving unit (e.g., the light receiving unit (220) of FIG. 2) is less than a second threshold. Operation 1710 may be understood as performing an operation corresponding to operation 1630 of FIG. 16 with respect to the second information.

[0179] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can determine, in operation 1720, whether the distance calculated through the first region is less than the third threshold value. Operation 1720 can be understood as performing an operation corresponding to operation 1640 with respect to second information obtained through the second region.

[0180] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can determine, in operation 1730, whether a peak signal in a first signal obtained through a second region (e.g., the peak signal (1520) in FIG. 15) in the first signal is less than a fourth threshold value. For example, operation 1730 can be understood as an operation to identify when an external object (e.g., the external object (750) of FIG. 7) is present within a third threshold value (e.g., 50 mm) from a distance sensor (e.g., the distance sensor (201) of FIG. 2). For example, when an external object (e.g., external object (750) in Fig. 7) is present within a third threshold (e.g., 50 mm) from a distance sensor (e.g., distance sensor (201) in Fig. 2), the peak signal in the first signal (e.g., peak signal (1520) in the first signal in Fig. 15) may be relatively larger than when no external object is present within a third threshold (e.g., 50 mm) from a distance sensor (e.g., distance sensor (201) in Fig. 2). For example, Table 2 below is an example of an experimental result in which the peak signal in the first signal (e.g., peak signal (1520) in the first signal in Fig. 15) obtained through a second region exceeds a fourth threshold when an external object (e.g., external object (750) in Fig. 7) is present within a third threshold (e.g., 50 mm) from a distance sensor (e.g., distance sensor (201) in Fig. 2).

[0181] [Table 2]

[0182]

[0183] For example, the fourth threshold may be set to 1200 kcps, but is not limited thereto. For example, the fourth threshold may be set differently depending on the shape of the electronic device (e.g., the electronic device (101) of FIG. 1) or the performance, placement, or shape of the distance sensor (e.g., the distance sensor (201) of FIG. 2).

[0184] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can determine, in operation 1740, whether the reliability of distance information calculated through a second area is less than or equal to a fifth threshold. Operation 1740 can be understood as an operation that performs a determination corresponding to operation 1660 of FIG. 16 with respect to second information obtained through a second area.

[0185] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) can determine, in operation 1750, whether light of a periodically specified band (e.g., infrared) is detected by an illuminance sensor (e.g., the illuminance sensor (430) of FIG. 4). For example, operation 1750 can be understood as an operation that identifies when an external object (e.g., the external object (750) of FIG. 7) is present within a predetermined distance from a distance sensor (e.g., the distance sensor (421) of FIG. 2). For example, when an external object (e.g., external object (750) of FIG. 7) is present within a predetermined distance from a distance sensor (e.g., distance sensor (421) of FIG. 2), an illuminance sensor (e.g., illuminance sensor (430) of FIG. 4) positioned adjacent to the distance sensor (e.g., distance sensor (421) of FIG. 4) can periodically detect light of a designated band emitted from a light-emitting unit (e.g., light-emitting unit (210) of FIG. 2) and reflected by the external object (e.g., external object (750) of FIG. 7) within a predetermined distance from the distance sensor (e.g., distance sensor (421) of FIG. 2). Operation 1750 may be associated with an example illustrated in FIG. 18. This will be explained in detail with reference to FIG. 18. According to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1) may perform operation 1130 of FIG. 11 by determining that there is no external object (e.g., external object (750) of FIG. 7) within a predetermined distance from a distance sensor (e.g., the distance sensor (421) of FIG. 2) based on the fact that light of a periodically specified band (e.g., infrared) is not detected by an illuminance sensor (e.g., the illuminance sensor (430) of FIG. 4) in operation 1750.

[0186] An electronic device according to one embodiment (e.g., the electronic device (101) of FIG. 1) may perform operation 1110 of FIG. 11 based on each condition being not satisfied in operations 1710 to 1750. For example, the electronic device (e.g., the electronic device (101) of FIG. 1) may perform an operation of reacquiring sensor information based on a correction value stored in a memory (e.g., the memory (130) of FIG. 1) based on each condition not being satisfied in operations 1710 to 1750.

[0187] The sequence of operations 1710 to 1750 performed by an electronic device according to one embodiment in FIG. 17 (e.g., the electronic device (101) of FIG. 1) is not limited to that shown in FIG. 17. Additionally, some of the operations performed by the electronic device according to one embodiment in FIG. 17 (e.g., the electronic device (101) of FIG. 1) may be omitted or new operations may be added.

[0188] FIG. 18 illustrates an example of the result of an electronic device according to one embodiment of the present disclosure detecting light of a specified band through an illuminance sensor.

[0189] According to one embodiment, an illuminance sensor (e.g., the illuminance sensor (430) of FIG. 4) can measure the intensity of light around an electronic device (e.g., the electronic device (101) of FIG. 1) and convert it into an electrical signal. For example, the illuminance sensor (e.g., the illuminance sensor (430) of FIG. 4) can identify the intensity of light (e.g., infrared) of a specified band and convert it into an electrical signal. The illuminance sensor (e.g., the illuminance sensor (430) of FIG. 4) may include, for example, a flicker sensor for detecting a flicker phenomenon.

[0190] The example illustrated in FIG. 18 may be associated with the operation 1750 of FIG. 17. For example, FIG. 18 may represent the result of light of a designated band (e.g., infrared) being periodically detected through an illuminance sensor (e.g., illuminance sensor (430) of FIG. 4) when an external object (e.g., external object (750) of FIG. 7) is present within a predetermined distance from a distance sensor (e.g., distance sensor (421) of FIG. 2). For example, the first region (1810) of FIG. 18 may represent the result of light of a designated band periodically emitted from a light-emitting unit (e.g., light-emitting unit (210) of FIG. 2) being reflected by an external object (e.g., external object (750) of FIG. 7) within a predetermined distance and being periodically detected by an illuminance sensor (e.g., illuminance sensor (430) of FIG. 4). For example, the second region (1820) of FIG. 18 may represent a case where light is not detected by the illuminance sensor (e.g., the illuminance sensor (430) of FIG. 4) in an environment where no external object (e.g., the external object (750) of FIG. 7) exists within a predetermined distance from the distance sensor (e.g., the distance sensor (201) of FIG. 2). The third region (1830) of FIG. 18 may represent a result where light of a designated band periodically emitted from the light-emitting part (e.g., the light-emitting part (210) of FIG. 2), similar to the first region (1810), is reflected by an external object (e.g., the external object (750) of FIG. 7) within a predetermined distance and is periodically detected by the illuminance sensor (e.g., the illuminance sensor (430) of FIG. 4).

[0191] FIG. 19 is a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure determines a weight.

[0192] Operations 1910 and 1920 of FIG. 19 may be included in operation 1130 of FIG. 11.

[0193] Referring to FIG. 19, according to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1) can manage weights stored in a memory (e.g., the memory (130) of FIG. 1). Here, the weights stored in the memory (e.g., the memory (130) of FIG. 1) may include weights having a minimum value among the weights repeatedly acquired while the electronic device (e.g., the electronic device (101) of FIG. 1) performs a series of operations to calibrate a distance sensor (e.g., the distance sensor (201) of FIG. 1) with respect to weights corresponding to each of the multiple regions within the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) or weights corresponding to clustered regions. For example, operations 1910 and 1920 can be understood as operations in which an electronic device (e.g., the electronic device (101) of FIG. 1) repeatedly acquires weights, selects the weight having the minimum value among the acquired weights, and stores it in memory (e.g., the memory (130) of FIG. 1). As a result, in a series of operations for calibrating a distance sensor (e.g., the distance sensor (201) of FIG. 2), a weight in which the influence of the external environment (e.g., foreign matter) is minimally reflected can be determined as the weight for acquiring the correction value. Operations 1910 to 1920 can be performed for each of the multiple regions included in the second region within the distance sensor (e.g., the distance sensor (201) of FIG. 2). For example, an electronic device (e.g., the electronic device (101) of FIG. 1) can determine weights by clustering multiple regions within a light receiving unit (e.g., the light receiving unit (220) of FIG. 2) into multiple parts. An example of how an electronic device (e.g., the electronic device (101) of FIG. 1) determines weights by clustering multiple regions within a light receiving unit (e.g., the light receiving unit (220) of FIG. 2) into multiple parts will be explained in detail with reference to FIG. 20.

[0194] According to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1) can determine, in operation 1910, whether a weight calculated based on a first crosstalk signal value (e.g., the first crosstalk signal value (1510) of FIG. 15) and a difference value (e.g., the difference value (1540) of FIG. 15), as described above with reference to FIG. 15, is smaller than a weight stored in a memory (e.g., the memory (130) of FIG. 1). For example, operation 1910 can be understood as an operation in which the electronic device (e.g., the electronic device (101) of FIG. 1) determines whether a recently acquired weight is smaller than weights already acquired.

[0195] According to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1) may store a determined weight in memory in operation 1920 based on the fact that, in operation 1910, the calculated weight is smaller than the weight stored in memory (e.g., the memory (130) of FIG. 1). For example, the weight stored in memory (e.g., the memory (130) of FIG. 1) may be deleted and the determined weight may be stored in memory. The operation of storing the determined weight in memory (e.g., the memory (130) of FIG. 1) may be associated with the example illustrated in FIG. 20. This will be described in detail with reference to FIG. 20.

[0196] Although only the case where operation 1920 performs the operation of storing the calculated weight in memory is illustrated in FIG. 19, the operation performed in operation 1920 is not limited thereto. For example, it may include an operation to update the 'reference value' used in operations 1610 and 1670 of FIG. 16. For example, an electronic device (e.g., electronic device (101) of FIG. 1) may, in operation 1920, update the 'reference value' mentioned in operations 1610 and 1670 of FIG. 16 to the value of the peak signal (e.g., peak signal (1520) in the first signal of FIG. 15) in the first signal stored in memory (e.g., memory (130) of FIG. 1). The updated 'reference value' can be used as the 'reference value' for operations 1610 and 1670 of FIG. 16 when the electronic device (e.g., the electronic device (101) of FIG. 1) subsequently performs a series of operations to calibrate the distance sensor (e.g., the distance sensor (201) of FIG. 2).

[0197] According to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1) may perform an operation (e.g., operation 1110 of FIG. 11) of reacquiring sensor information based on a correction value stored in memory (e.g., the memory (130) of FIG. 1) based on the fact that, in operation 1910, the weight determined in operation 1130 of FIG. 11 is greater than or equal to the weight stored in memory (e.g., the memory (130) of FIG. 1).

[0198] FIG. 20 illustrates an example in which an electronic device according to one embodiment of the present disclosure stores a determined weight in memory.

[0199] The example illustrated in FIG. 20 may be associated with operation 1920 and operation 1920 of FIG. 19. For example, the operation of an electronic device (e.g., electronic device (101) of FIG. 1) described with reference to FIG. 20 may be understood as an example describing the operation of an electronic device (e.g., electronic device (101) of FIG. 1) according to one embodiment repeatedly acquiring weights, selecting a weight having the minimum value among the acquired weights, and storing it in memory (e.g., memory (130) of FIG. 1).

[0200] According to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1) may store weights (2000) associated with correction values ​​of each of a plurality of regions within a light receiving unit (e.g., the light receiving unit (220) of FIG. 2) in a region of a memory (e.g., the memory (130) of FIG. 1). The weights (2000) may be stored to correspond to each of the plurality of regions within the light receiving unit (e.g., the light receiving unit (220) of FIG. 2), and the memory space (e.g., the memory (130) of FIG. 1) and the format in which the weights (2000) are stored are not limited to the example of the weights (2000) shown in FIG. 20.

[0201] According to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1) may maintain weights (2000) corresponding to each of a plurality of regions stored in memory (e.g., the memory (130) of FIG. 1) at a smaller value compared to calculated weights. For example, if the calculated first weights are smaller than the first weights (2010) stored in memory (e.g., the memory (130) of FIG. 1), the electronic device (e.g., the electronic device (101) of FIG. 1) may store the calculated first weights in the memory space (e.g., the memory (130) of FIG. 1) where the first weights (2010) are stored. For example, an electronic device (e.g., the electronic device (101) of FIG. 1) may retain the second weights (2020) stored in memory (e.g., the memory (130) of FIG. 1) if the second weights calculated are greater than or equal to the second weights (2020) stored in memory (e.g., the memory (130) of FIG. 1).

[0202] According to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1) may determine weights stored in a memory (e.g., the memory (130) of FIG. 1) by clustering multiple regions within a light receiving unit (e.g., the light receiving unit (220) of FIG. 2) into multiple parts. For example, if a specified condition for a first part among multiple regions within the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) is satisfied, the first weights (2010) corresponding to the first part may be updated together. For example, if the specified condition for a first part among multiple regions within the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) is not met, the first weights (2010) corresponding to the first part may be maintained together. Here, the specified condition for the first part among the plurality of regions may include, but is not limited to, cases where each of the regions clustered into the first part among the plurality of regions within the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) satisfies the condition for updating the weight. For example, the specified condition for the first part among the plurality of regions may include cases where a number of regions exceeding a set ratio among the regions clustered into the first part satisfies the condition for updating the weight. Furthermore, the method of clustering the plurality of regions within the light receiving unit (e.g., the light receiving unit (220) of FIG. 2) and the size of each clustered part are not limited as described above with reference to FIG. 20.

[0203] FIG. 21 illustrates an example in which an electronic device according to one embodiment of the present disclosure provides a user interface.

[0204] The electronic device (2101) of FIG. 21 may correspond to the electronic device (101) of FIG. 1, the electronic device (400) of FIG. 4, or the electronic device (901) of FIG. 9.

[0205] An electronic device (2101) according to one embodiment may provide a first user interface (UI) (2110) that guides the acquisition of first sensor information. For example, referring to FIG. 21, when it is determined that calibration of a distance sensor (e.g., distance sensor (201) of FIG. 2) is required, the first user interface (2110) that guides the acquisition of first sensor information may be displayed on a display (e.g., display module (160) of FIG. 1). For example, an electronic device (e.g., electronic device (101) of FIG. 1) may determine whether calibration of a distance sensor (e.g., distance sensor (201) of FIG. 2) is required based on driving a camera module (e.g., camera module (180) of FIG. 1). For example, an electronic device (e.g., the electronic device (101) of FIG. 1) may determine that calibration of the distance sensor (e.g., the distance sensor (201) of FIG. 2) is required when the change in the crosstalk signal value obtained through the distance sensor (e.g., the distance sensor (201) of FIG. 2) is greater than a threshold value.

[0206] An electronic device (2101) according to one embodiment may provide a second user interface (2120) that indicates that the calibration of the distance sensor (e.g., the distance sensor (201) of FIG. 2) is complete when the calibration of the distance sensor (e.g., the distance sensor (201) of FIG. 2) is complete. For example, when the calibration of the distance sensor (e.g., the distance sensor (201) of FIG. 2) is complete, text indicating that the calibration of the distance sensor (e.g., the distance sensor (201) of FIG. 2) is complete may be displayed on a display (e.g., the display module (160) of FIG. 1) as the second user interface (2120).

[0207] In FIG. 21, only an example is illustrated of displaying a user interface (2110, 2120) on a display (e.g., the display module (160) of FIG. 1) through text, but the method of providing the user interface (2110, 2120) is not limited thereto. For example, the electronic device (2101) may provide a voice that guides the acquisition of first sensor information.

[0208] FIG. 22 illustrates a flowchart of an operation in which an electronic device according to one embodiment of the present disclosure controls the calibration of a distance sensor.

[0209] According to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1) may include a camera module (2201), a processor (2202), and a distance sensor (2203). The camera module (2201) of FIG. 22 may correspond to the camera module (180) of FIG. 1. The processor (2022) of FIG. 22 may correspond to the processor (120) of FIG. 1. The distance sensor (2203) of FIG. 22 may be included in the sensor module (176) of FIG. 1. Additionally, the distance sensor (2203) of FIG. 22 may correspond to the distance sensor (201) of FIG. 2, the distance sensor (321) of FIG. 3, the distance sensor (421) of FIG. 4, the distance sensor (501) of FIG. 5, the distance sensor (601) of FIG. 6, or the distance sensor (710) of FIG. 7, or the distance sensor (1410) of FIG. 14.

[0210] According to one embodiment, the camera module (2201) may instruct the processor (2202) to request an operation of the distance sensor (2203) in operation 2210. For example, the "operation" of the distance sensor (2203) may include at least one of the following: an operation in which the light-emitting part (e.g., the light-emitting part (210) of FIG. 2) of the distance sensor (2203) emits light; an operation in which the light-receiving part (e.g., the light-receiving part (220) of FIG. 2) detects light; an operation in which the signal for the light detected from the light-receiving part (e.g., the light-receiving part (220) of FIG. 2) is corrected; or an operation in which sensor information corresponding to the corrected signal is output.

[0211] According to one embodiment, the processor (2202) can command the distance sensor (2203) to perform an operation in operation 2220.

[0212] According to one embodiment, the distance sensor (2203) can transmit the first sensor information obtained in operation 2230 to the processor (2202). For example, the first sensor information may include the sensor information obtained in operation 1110 of FIG. 1.

[0213] According to one embodiment, the processor (2202) may transmit distance information included in the first sensor information transmitted from the distance sensor (2203) to the camera module (2201) in operation 2240. For example, the first sensor information may include distance information included in the sensor information obtained in operation 1110 of FIG. 11.

[0214] According to one embodiment, the processor (2202) can determine whether the first information included in the first sensor information satisfies the first condition in operation 2250. For example, operation 2250 may correspond to operation 1310 of FIG. 13. For example, operation 2250 may correspond to operations 1610 to 1670 of FIG. 16.

[0215] According to one embodiment, the processor (2202) can determine whether the second information included in the first sensor information satisfies the second condition in operation 2260. For example, operation 2260 may correspond to operation 1320 of FIG. 13. For example, operation 2250 may correspond to operations 1710 to 1750 of FIG. 17.

[0216] According to one embodiment, the processor (2202) may determine a weight associated with a correction value in operation 2270. For example, operation 2260 may correspond to operation 1130 of FIG. 11.

[0217] According to one embodiment, the processor (2202) may transmit a correction value adjusted based on weights to the distance sensor (2203) in operation 2280. For example, the "adjusted correction value" may correspond to the correction value adjusted in operation 1140 of FIG. 11.

[0218] FIG. 23 illustrates an example of sensor information regarding a subject at a first distance obtained through a distance sensor before and after calibration of the distance sensor according to one embodiment of the present disclosure. FIG. 24 illustrates an example of sensor information regarding a subject at a second distance obtained through a distance sensor before and after calibration of the distance sensor according to one embodiment of the present disclosure.

[0219] FIGS. 23 and 24 may show the effect of the electronic device of the present disclosure (e.g., the electronic device (101) of FIG. 1) performing the operation of calibrating a distance sensor.

[0220] FIG. 23 illustrates the experimental results before and after calibration of the distance sensor (e.g., the distance sensor (201) of FIG. 2) with a gray reflector positioned 300 mm away from the distance sensor (e.g., the distance sensor (201) of FIG. 2).

[0221] Referring to the first experimental result (2301) before calibration of the distance sensor of FIG. 23 (e.g., the distance sensor (201) of FIG. 2), the first distance information (2311) obtained through the distance sensor (e.g., the distance sensor (201) of FIG. 2) according to one embodiment may include first distance values ​​(2331) measured to be relatively smaller than 300 mm. For example, the first reliability (2312) of the first distance information (2311) obtained through the distance sensor (e.g., the distance sensor (201) of FIG. 2) may include first reliability values ​​(2332) that are different from 0 and are greater than or equal to 5.

[0222] Referring to the second experimental result (2302) after calibration of the distance sensor of FIG. 23 (e.g., the distance sensor (201) of FIG. 2), the second distance information (2321) obtained through the distance sensor (e.g., the distance sensor (201) of FIG. 2) according to one embodiment may include second distance values ​​(2341) in which the error with 300 mm is measured to be smaller than that of the first distance information (2311). For example, referring to the second reliability values ​​(2342) of the second reliability (2332), after calibration of the distance sensor (e.g., the distance sensor (201) of FIG. 2), 0 indicating 100% can be obtained as the second reliability values ​​(2342) for the second distance values ​​(2341).

[0223] FIG. 24 illustrates the experimental results before and after calibration of the distance sensor (e.g., the distance sensor (201) of FIG. 2) with an external object (e.g., the external object (750) of FIG. 7) positioned 2000 mm away from the distance sensor (e.g., the distance sensor (201) of FIG. 2).

[0224] Referring to the first experimental result (2401) before calibration of the distance sensor of FIG. 24 (e.g., the distance sensor (201) of FIG. 2), the third reliability (2412) of the third distance information (2411) obtained through the distance sensor (e.g., the distance sensor (201) of FIG. 2) according to one embodiment may include third reliability values ​​(2432) that are less than or equal to a specified threshold value (e.g., 4). Among the third distance information (2411), the distance information having third reliability values ​​(2432) that are less than or equal to the specified threshold value may be changed to values ​​(e.g., 0) indicating that the reliability is less than or equal to the specified threshold value.

[0225] Referring to the fourth experimental result (2402) after calibration of the distance sensor of FIG. 24 (e.g., the distance sensor (201) of FIG. 2), the second distance information (2321) obtained through the distance sensor (e.g., the distance sensor (201) of FIG. 2) according to one embodiment may include fourth distance values ​​(2441) in which the error with the actual distance to an external object (e.g., 2000 mm) is measured to be smaller than that of the third distance information (2411). For example, referring to the fourth reliability values ​​(2442) of the fourth reliability (2422), after calibration of the distance sensor (e.g., the distance sensor (201) of FIG. 2), a value of 0 indicating 100% can be obtained as the second reliability values ​​(2442) for the fourth distance values ​​(2441).

[0226] One embodiment of the present disclosure aims to obtain sensor information correcting a changed crosstalk signal value by adjusting a correction value for the distance sensor in the event that the crosstalk signal value detected through the distance sensor changes due to the replacement of the distance sensor, the attachment of a window, cover, or foreign matter. However, the purpose of the present disclosure is not limited thereto.

[0227] An electronic device according to one embodiment may include a distance sensor comprising a light-emitting part configured to emit light of a designated band and a light-receiving part configured to detect light of the designated band, a memory for storing instructions, and at least one processor comprising a processing circuitry.

[0228] A memory according to one embodiment can store a correction value for calibrating a first crosstalk signal value detected from a distance sensor.

[0229] Instructions according to one embodiment may be executed collectively or individually by at least one processor to enable an electronic device to correct a first signal acquired through a distance sensor based on a correction value stored in the memory and acquire first sensor information.

[0230] Instructions according to one embodiment may be executed collectively or individually by at least one processor, so that an electronic device may be executed collectively or individually by at least one processor to determine whether the first sensor information satisfies a specified condition.

[0231] Instructions according to one embodiment may be executed collectively or individually by at least one processor to enable an electronic device to determine a weight related to a correction value based on the first sensor information based on the first sensor information satisfying a specified condition.

[0232] Instructions according to one embodiment may be executed collectively or individually by at least one processor to enable an electronic device to adjust a correction value based on weights to a value that corrects a second crosstalk signal value different from a first crosstalk signal value.

[0233] Instructions according to one embodiment may be executed collectively or individually by at least one processor to enable an electronic device to correct a second signal obtained from a distance sensor based on an adjusted correction value and obtain second sensor information.

[0234] The effect according to one embodiment of the present disclosure may include, when a crosstalk signal value detected through a distance sensor changes, the effect of an electronic device adjusting a correction value to calibrate the distance sensor to obtain sensor information that has corrected the changed crosstalk signal value, but the effect according to the present disclosure is not limited thereto.

[0235] One embodiment of the present disclosure aims to perform calibration of a distance sensor under suitable conditions. However, the purpose of the present disclosure is not limited thereto.

[0236] A specified condition according to one embodiment may include at least one of the following: the intensity of light in a specified band around an electronic device, distance information calculated based on first sensor information, the reliability of the distance information, or a condition associated with a crosstalk signal value included in the first sensor information.

[0237] One embodiment of the present disclosure aims to determine whether calibration of a distance sensor is required by repeatedly acquiring sensor information when appropriate conditions for performing calibration of the distance sensor are not met. However, the purpose of the present disclosure is not limited thereto.

[0238] Instructions according to one embodiment are executed collectively or individually by at least one processor, so that when the first sensor information deviates from a specified condition, the electronic device may acquire the first sensor information again based on a correction value stored in the memory.

[0239] One embodiment of the present disclosure aims to perform calibration of a distance sensor when a change in a crosstalk signal value detected through the distance sensor is identified. However, the purpose of the present disclosure is not limited thereto.

[0240] According to one embodiment, the first sensor information may include first information obtained through a first area of ​​the light receiving unit and second information obtained through a second area distinguished from the first area.

[0241] A specified condition according to one embodiment may include a first condition associated with the first information and a second condition associated with the second information.

[0242] Instructions according to one embodiment may be executed collectively or individually by at least one processor to enable an electronic device to determine whether the first information satisfies the first condition.

[0243] Instructions according to one embodiment may be executed collectively or individually by at least one processor to enable an electronic device to determine whether the second information satisfies the second condition based on whether the first information satisfies the first condition.

[0244] Instructions according to one embodiment may be executed collectively or individually by at least one processor to enable an electronic device to determine the weight based on the second information satisfying the second condition.

[0245] One embodiment of the present disclosure is intended to perform calibration of a distance sensor under conditions where the intensity of illumination around an electronic device is relatively weak. However, the purpose of the present disclosure is not limited thereto.

[0246] A specified condition according to one embodiment may include the intensity of light in a specified band detected through the distance sensor being less than a threshold value.

[0247] One embodiment of the present disclosure aims to perform calibration of a distance sensor in a situation where no external object exists at a relatively close distance to the distance sensor. However, the purpose of the present disclosure is not limited thereto.

[0248] An electronic device according to one embodiment may include an illuminance sensor.

[0249] Instructions according to one embodiment may be executed collectively or individually by at least one processor to determine whether light of the specified band is detected through the illuminance sensor, and based on the detection of light of the specified band through the illuminance sensor, compare the receiving period of light of the specified band received by the illuminance sensor with the light emission period of the light-emitting part, and if the difference between the receiving period and the light emission period is less than or equal to a threshold value as a result of the comparison, determine that the specified condition is not met.

[0250] One embodiment of the present disclosure aims to determine a weight for calculating a correction value corresponding to a changed crosstalk signal value. However, the purpose of the present disclosure is not limited thereto.

[0251] Instructions according to one embodiment may be executed collectively or individually by at least one processor so that the electronic device determines the weight based on the first crosstalk signal value and the difference value.

[0252] According to one embodiment, the difference value may indicate the difference between the peak signal in the first signal and the first crosstalk signal value.

[0253] Instructions according to one embodiment are executed collectively or individually by at least one processor, so that when the determined weight is smaller than the weight stored in memory, the electronic device can store the determined weight in memory.

[0254] One embodiment of the present disclosure aims to link the focus adjustment function of a camera module with the operation of a distance sensor. However, the purpose of the present disclosure is not limited thereto.

[0255] An electronic device according to one embodiment may include a camera module.

[0256] Instructions according to one embodiment are executed collectively or individually by at least one processor, so that an electronic device can acquire distance information from the distance sensor based on driving the camera module.

[0257] Distance information according to one embodiment can be calculated based on second sensor information.

[0258] Instructions according to one embodiment may be executed collectively or individually by at least one processor to enable an electronic device to control the focus adjustment function of a camera module based on distance information.

[0259] One embodiment of the present disclosure aims to provide a user interface for a calibration operation of a distance sensor to a user. However, the purpose of the present disclosure is not limited thereto.

[0260] Instructions according to one embodiment may be executed collectively or individually by at least one processor to enable the electronic device to provide a user interface (UI) that guides the acquisition of first sensor information.

[0261] A method of operation of an electronic device according to one embodiment may include an operation of obtaining first sensor information by correcting a first signal obtained through a distance sensor based on a correction value that calibrates a first crosstalk signal value detected from a distance sensor comprising a light-emitting part configured to emit light of a designated band and a light-receiving part configured to detect light of the designated band.

[0262] A method of operation of an electronic device according to one embodiment may include an operation of determining whether the first sensor information satisfies a specified condition.

[0263] A method of operation of an electronic device according to one embodiment may include an operation of determining a weight related to a correction value based on first sensor information, based on first sensor information satisfying a specified condition.

[0264] A method of operation of an electronic device according to one embodiment may include an operation of adjusting a correction value based on weights to a value that corrects a second crosstalk signal value different from a first crosstalk signal value.

[0265] A method of operation of an electronic device according to one embodiment may include an operation of obtaining second sensor information by correcting a second signal obtained from a distance sensor based on an adjusted correction value.

[0266] A method of operation of an electronic device according to one embodiment may include an operation of reacquiring the first sensor information based on a correction value stored in the memory when the first sensor information deviates from a specified condition.

[0267] According to one embodiment, the first sensor information includes first information obtained through a first area of ​​the light receiving unit and second information obtained through a second area distinguished from the first area, and the specified condition may include a first condition associated with the first information and a second condition associated with the second information.

[0268] An operation for determining whether the first sensor information satisfies the specified condition according to one embodiment may include an operation for determining whether the first information satisfies the first condition, an operation for determining whether the second information satisfies the second condition based on the first information satisfying the first condition, and an operation for determining the weight based on the second information satisfying the second condition.

[0269] A specified condition according to one embodiment may include the intensity of light in a specified band detected through a distance sensor being less than a threshold value.

[0270] The operation of determining whether the first sensor information according to one embodiment satisfies the specified condition may include: determining whether light of the specified band is detected through the illuminance sensor of the electronic device; comparing the receiving period of the light of the specified band received by the illuminance sensor with the light emission period of the light-emitting part based on the detection of light of the specified band through the illuminance sensor; and determining that the specified condition is not met if the difference between the receiving period and the light emission period is less than or equal to a threshold value as a result of the comparison.

[0271] An operation to determine a weight according to one embodiment may include an operation to determine the weight based on the first crosstalk signal value and the difference value.

[0272] A method of operation of an electronic device according to one embodiment may include the operation of storing the determined weight in the memory when the determined weight is smaller than the weight stored in the memory.

[0273] A method of operation of an electronic device according to one embodiment may further include, based on the operation of a camera module of the electronic device, an operation of acquiring distance information based on second sensor information, and an operation of controlling a focus adjustment function of the camera module based on the distance information.

[0274] A method of operation of an electronic device according to one embodiment may include providing a user interface (UI) that guides the acquisition of first sensor information.

[0275] Methods according to the claims or embodiments described in the specification of the present disclosure may be implemented in the form of hardware, software, or a combination of hardware and software.

[0276] When implemented in software, a computer-readable storage medium may be provided for storing one or more programs (software modules). One or more programs stored in the computer-readable storage medium are configured for execution by one or more processors within an electronic device. One or more programs include instructions that cause the electronic device to execute methods according to the claims or embodiments described in the specification of this disclosure.

[0277] In the present disclosure, the function or operation performed by an electronic device may be performed by one or more processors executing one or more instructions stored in memory. The function or operation of the electronic device mentioned in the present disclosure may be performed by a single processor executing one or more instructions, or by a combination of multiple processors executing one or more instructions. A processor mentioned in the present disclosure is understood to include a circuit for performing operations or controlling other components of the electronic device. For example, the one or more processors may include a central processing unit (CPU), a micro-processor unit (MPU), an application processor (AP), a communication processor (CP), a neural processing unit (NPU), a system on chip (SoC), or an integrated circuit (IC) configured to execute one or more instructions. The one or more processors may be configured to perform the operation of the electronic device described above.

[0278] In the present disclosure, a program (software module, software) may be stored in a random access memory, a non-volatile memory including flash memory, a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic disc storage device, a compact disc-ROM (CD-ROM), digital versatile discs (DVDs), or other forms of optical storage devices, or a magnetic cassette. Alternatively, it may be stored in a memory composed of some or all of these. The memory may be composed of a single storage medium or a combination of multiple storage media. The one or more instructions may be stored in a single storage medium or distributed across multiple storage media.

[0279] Additionally, the above program may be stored on an attachable storage device that can be accessed via a communication network such as the Internet, an intranet, a local area network (LAN), a wide LAN (WLAN), or a storage area network (SAN), or a combination thereof. Such a storage device may be connected to a device performing an embodiment of the present disclosure through an external port. Additionally, a separate storage device on a communication network may be connected to a device performing an embodiment of the present disclosure.

[0280] In the specific embodiments of the present disclosure described above, the components included in the disclosure are expressed in a singular or plural form according to the specific embodiments presented. However, the singular or plural expression is selected to suit the situation presented for convenience of explanation, and the present disclosure is not limited to singular or plural components; even if a component is expressed in the plural form, it may be composed of a singular form, and even if a component is expressed in the singular form, it may be composed of a plural form.

[0281] Additionally, in the present disclosure, terms such as “part,” “module,” etc. may be a hardware component, such as a processor or circuit, and / or a software component executed by a hardware component, such as a processor.

[0282] "Parts" and "modules" may be implemented by a program that is stored on an addressable storage medium and can be executed by a processor. For example, "parts" and "modules" may be implemented by components such as software components, object-oriented software components, class components, and task components, as well as by processes, functions, attributes, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuits, data, databases, data structures, tables, arrays, and variables.

[0283] The specific embodiments described in this disclosure are merely examples and do not limit the scope of this disclosure in any way. For the sake of brevity, descriptions of prior electronic configurations, control systems, software, and other functional aspects of said systems may be omitted.

[0284] Additionally, in the present disclosure, “comprising at least one of a, b, or c” may mean “comprising only a, comprising only b, comprising only c, or comprising a combination of two or more (comprising a and b, comprising b and c, comprising a and c, or comprising all of a, b, and c).”

[0285] Meanwhile, although specific embodiments have been described in the detailed description of the present disclosure, it is understood that various modifications are possible within the scope of the present disclosure. Therefore, the scope of the present disclosure should not be limited to the described embodiments, but should be defined by the claims set forth below as well as equivalents thereof.

Claims

1. In an electronic device, A distance sensor comprising a light-emitting unit configured to emit light of a designated band and a light-receiving unit configured to detect light of the designated band; Memory for storing instructions; and It includes at least one processor comprising processing circuitry, and The above memory stores a correction value for calibrating a first crosstalk signal value detected from the distance sensor, and The above instructions are executed collectively or individually by the at least one processor, and the electronic device: Based on the correction value stored in the memory, the first signal obtained through the distance sensor is corrected to obtain first sensor information, and Determining whether the above first sensor information satisfies a specified condition, Based on the fact that the first sensor information satisfies the specified condition, a weight related to the correction value is determined based on the first sensor information, and Based on the above weights, the correction value is adjusted to a value that corrects a second crosstalk signal value different from the first crosstalk signal value, and An electronic device that corrects a second signal obtained from the distance sensor based on the above-mentioned adjusted correction value to obtain second sensor information.

2. In Paragraph 1, An electronic device, wherein the above-mentioned specified conditions include at least one of the following: the intensity of light in the specified band around the electronic device, distance information calculated based on the first sensor information, the reliability of the distance information, or a condition associated with a crosstalk signal value included in the first sensor information.

3. In Paragraph 1, The above instructions are executed collectively or individually by the at least one processor, so that the electronic device acquires the first sensor information again based on a correction value stored in the memory when the first sensor information deviates from the specified condition.

4. In Paragraph 1, The first sensor information includes first information obtained through a first area of ​​the light receiving unit and second information obtained through a second area distinguished from the first area. The above-mentioned specified conditions include a first condition associated with the first information and a second condition associated with the second information, and The above instructions are executed collectively or individually by the at least one processor, and the electronic device: Determining whether the above first information satisfies the above first condition, and Based on the fact that the first information satisfies the first condition, it is determined whether the second information satisfies the second condition, and An electronic device that determines the weight based on the fact that the second information satisfies the second condition.

5. In Paragraph 1, An electronic device wherein the above-mentioned condition includes the fact that the intensity of light in the above-mentioned band detected through the distance sensor is less than a threshold value.

6. In Paragraph 1, It further includes an illuminance sensor, and The above instructions are executed collectively or individually by the at least one processor, and the electronic device: It is determined whether light of the specified band is detected through the above illuminance sensor, and Based on the detection of light of the specified band through the above illuminance sensor, the receiving period during which light of the specified band is received by the illuminance sensor is compared with the light emission period of the light-emitting part, and An electronic device that determines that the difference between the receiving period and the emitting period is less than or equal to a threshold value as a result of the above comparison, thereby deviating from the specified condition.

7. In Paragraph 1, The above instructions are executed collectively or individually by the at least one processor so that the electronic device determines the weight based on the first crosstalk signal value and the difference value, and The above difference value indicates the difference between the peak signal (1520) in the first signal and the first crosstalk signal value, an electronic device.

8. In Paragraph 1, The above instructions are executed collectively or individually by the at least one processor, so that the electronic device stores the determined weight in the memory when the determined weight is smaller than the weight stored in the memory.

9. In Paragraph 1, Includes additional camera modules, and The above instructions are executed collectively or individually by the at least one processor, and the electronic device: Based on the operation of the above camera module, distance information is obtained from the distance sensor, and the distance information is calculated based on the second sensor information, and An electronic device that controls the focus adjustment function of the camera module based on the above distance information.

10. In Paragraph 1, The above instructions are executed collectively or individually by the at least one processor, thereby enabling the electronic device to provide a user interface (UI) that guides the acquisition of the first sensor information.

11. In a method of operating an electronic device, An operation of obtaining first sensor information by correcting a first signal obtained through the distance sensor based on a correction value stored in memory, wherein the first signal is calibrated based on a correction value that calibrates a first crosstalk signal value detected from a distance sensor comprising a light-emitting unit configured to emit light of a designated band and a light-receiving unit configured to detect light of the designated band; An operation to determine whether the above-mentioned first sensor information satisfies a specified condition; An operation to determine a weight related to the correction value based on the first sensor information, based on the first sensor information satisfying the specified condition; An operation of adjusting the correction value based on the above weights to a value that corrects a second interference signal value different from the first interference signal value; and A method comprising the operation of obtaining second sensor information by correcting a second signal obtained from the distance sensor based on the above-mentioned adjusted correction value.

12. In Paragraph 11, A method comprising at least one of the conditions specified above, the intensity of light in the specified band around the electronic device, distance information calculated based on the first sensor information, the reliability of the distance information, or a condition associated with a crosstalk signal value included in the first sensor information.

13. In Paragraph 11, A method further comprising the operation of reacquiring the first sensor information based on a correction value stored in the memory when the first sensor information deviates from the specified condition.

14. In Paragraph 11, The first sensor information includes first information obtained through a first area of ​​the light receiving unit and second information obtained through a second area distinguished from the first area. The above-mentioned specified conditions include a first condition associated with the first information and a second condition associated with the second information, and The operation of determining whether the above-mentioned first sensor information satisfies the above-mentioned specified condition is: An operation to determine whether the above first information satisfies the above first condition; An operation to determine whether the second information satisfies the second condition based on the first information satisfying the first condition; and A method comprising an operation to determine the weight based on the second information satisfying the second condition.

15. In Paragraph 11, A method comprising the above specified condition that the intensity of light in the above specified band detected through the distance sensor is less than a threshold value.

Citation Information

Patent Citations

  • Camera module, camera mounting device and calibration method of camera module

    JP2020086284A

  • Container for easy refilling of contents

    KR1020240178718A

  • Foldable button long padding

    KR1020250027465A

  • Space music stand device

    KR102462798B1

  • Link prediction method and apparatus using accurate edge prediction model based on positive-unlabeled data learning

    KR102784508B1