Distance measurement method and system, computer readable medium and electronic device

By delaying the reception of reflected light signals and performing interference cancellation processing, the accuracy problem of distance measurement under ambient light interference is solved, avoiding the need to add logic circuits or hardware structures, and keeping the area and power consumption of the measurement system unchanged.

CN112596069BActive Publication Date: 2024-08-27OPPO CHONGQING INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011410334.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-04
Publication Date
2024-08-27
Estimated Expiration
2040-12-04

AI Technical Summary

Technical Problem

Existing direct time-of-flight measurement technology is difficult to accurately measure distance under ambient light interference. It often requires additional logic circuits or hardware structures, resulting in increased chip area and power consumption, affecting measurement accuracy.

Method used

By emitting a light signal to the target area and delaying the reception of the reflected light signal, multiple delay measurement statistics are obtained, interference elimination processing is performed to filter the ambient light signal, and the flight time is calculated to determine the true distance, avoiding the addition of logic circuits or hardware structures.

Benefits of technology

It achieves the accurate elimination of ambient light interference and ensures the accuracy of measurement distance without increasing the chip area and power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112596069B
    Figure CN112596069B
Patent Text Reader

Abstract

The present disclosure provides a distance measurement method and system, a computer-readable medium and an electronic device, and relates to the field of laser distance measurement technology. The method comprises: emitting a light signal to a target area, so that the light signal is reflected at the target area and generates a reflected light signal; wherein the reflected light signal comprises an ambient light signal; delaying the reception of the reflected light signal to obtain a plurality of delay measurement statistics; performing interference elimination processing on the plurality of delay measurement statistics to obtain a reflected light signal that eliminates the interference of the ambient light signal; obtaining the flight time according to the reflected light signal that eliminates the interference of the ambient light signal, so as to calculate the true distance to the target area according to the flight time. The present disclosure can avoid the problem that the reflected light signal cannot be accurately measured due to the ambient light pile-up effect, and improve the accuracy of the measured true distance while reducing the measurement cost.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the rapid development of science and technology, direct time of flight (DToF) measurement technology has attracted more and more attention. In direct time of flight measurement technology, the basic single-photon ranging can be completed by combining the single photon avalanche diode (SPAD) photosensitive unit and the time to digital converter (TDC). However, when more than one photon is received in a statistical cycle (such as interference from ambient light), it takes a certain amount of time for the SPAD to reset and resume working after receiving the photon. During this period, even if a photon is incident on the SPAD, it will not be counted, resulting in the peak value of the real signal being obscured by the accumulation effect of ambient light, and the real distance cannot be measured.

[0003] At present, in the relevant technical solutions, either the maximum peak position is calculated through algorithm back-labeling, or a hardware structure for filtering ambient light is added. On the one hand, the technical solution of calculating the maximum peak position through algorithm back-labeling requires the addition of additional digital logic circuits, which increases the chip area of ​​the measurement system, reduces the scope of application and portability of the measurement system, and increases power consumption; on the other hand, the technical solution of adding a hardware structure for filtering ambient light is that the added hardware structure is not coupled with the back-end control circuit, and the corresponding sensor needs to be added for independent control, which increases the chip area and power consumption. At the same time, it is not closely coordinated with the original measurement system, reduces the measurement efficiency, and may also affect the accuracy of the measurement. Summary of the invention

[0004] The purpose of the present disclosure is to provide a distance measurement method, a distance measurement system, a computer-readable medium and an electronic device, thereby at least to a certain extent avoiding the problem that the solution for eliminating the related environmental pile-up effect requires additional logic circuits or hardware structures, resulting in increased chip area and power consumption and poor measurement accuracy.

[0005] According to a first aspect of the present disclosure, a distance measurement method is provided, comprising:

[0006] Transmitting a light signal to a target area, so that the light signal is reflected at the target area and generates a reflected light signal; wherein the reflected light signal includes an ambient light signal;

[0007] delaying receiving the reflected light signal to obtain a plurality of delay measurement statistics;

[0008] Performing interference elimination processing on the plurality of delay measurement statistical data to obtain a reflected light signal that eliminates interference from the ambient light signal;

[0009] The flight time is obtained according to the reflected light signal after eliminating the interference of the ambient light signal, so as to calculate the real distance to the target area according to the flight time.

[0010] According to a second aspect of the present disclosure, there is provided a distance measurement system, comprising:

[0011] A transmitting module, used for transmitting a light signal to a target area, so that the light signal is reflected at the target area to generate a reflected light signal;

[0012] A receiving module, used to receive the reflected light signal; wherein the reflected light signal includes ambient light;

[0013] A control module is electrically connected to the transmitting module and the receiving module, and includes a time delay unit and a distance calculation unit, wherein:

[0014] The time delay unit is used to perform timing when the transmitting module transmits the pulse light signal, and control the receiving module to delay receiving the reflected light signal to obtain a plurality of delay measurement statistics;

[0015] The distance calculation unit is electrically connected to the time delay unit, and is used to obtain the flight time corresponding to the reflected light signal eliminating the ambient light interference according to the multiple delay measurement statistical data, so as to calculate the real distance to the target area according to the flight time.

[0016] According to a third aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.

[0017] According to a fourth aspect of the present disclosure, there is provided an electronic device, characterized in that it includes:

[0018] Processor; and

[0019] The memory is used to store one or more programs. When the one or more programs are executed by one or more processors, the one or more processors implement the above method.

[0020] An embodiment of the present disclosure provides a distance measurement method, which transmits a light signal to a target area so that the light signal is reflected at the target area and generates a reflected light signal containing an ambient light signal; delays the reception of the reflected light signal to obtain a plurality of delayed measurement statistics; performs interference elimination processing on the plurality of delayed measurement statistics to obtain a reflected light signal that eliminates the interference of the ambient light signal; obtains the flight time according to the reflected light signal that eliminates the interference of the ambient light signal, and calculates the real distance to the target area according to the flight time. On the one hand, by delaying the reception of the reflected light signal, the accumulated ambient light signal in the received reflected light signal can be filtered, and then the real distance can be measured and calculated, without adding a new logic circuit or hardware structure, while eliminating the accumulated ambient light signal, the area and power consumption of the measurement chip remain unchanged; on the other hand, by delaying the reception of the reflected light signal, a plurality of delayed measurement statistics are obtained, and then the real peak value corresponding to the reflected light signal that eliminates the interference of the ambient light signal can be determined through the plurality of delayed measurement statistics, and then the flight time is determined through the real peak value to calculate the real distance. Since there is no need to add a new logic circuit or hardware structure, the measured flight time will not be affected, and the accuracy of the measured real distance is guaranteed.

[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0023] Figure 1 A schematic diagram showing an electronic device to which the embodiments of the present disclosure can be applied;

[0024] Figure 2 A schematic diagram schematically illustrates a statistical data without ambient light interference in an exemplary embodiment of the present disclosure;

[0025] Figure 3 A schematic diagram schematically illustrates a statistical data with ambient light interference in an exemplary embodiment of the present disclosure;

[0026] Figure 4 A flow chart schematically illustrates a distance measurement method in an exemplary embodiment of the present disclosure;

[0027] Figure 5A flowchart of controlling a photosensitive pixel array by addressing signals in an exemplary embodiment of the present disclosure is schematically shown;

[0028] Figure 6 A flowchart for generating an address selection signal in an exemplary embodiment of the present disclosure is schematically shown;

[0029] Figure 7 A flowchart for determining flight time in an exemplary embodiment of the present disclosure is schematically shown;

[0030] Figure 8 A flowchart of measuring a real distance based on a distance measurement method in an exemplary embodiment of the present disclosure is schematically shown;

[0031] Fig. 9 A schematic diagram schematically illustrates statistical data with ambient light interference obtained according to a distance measurement method in an exemplary embodiment of the present disclosure;

[0032] Fig.10 The figure schematically shows the composition of a distance measurement system in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0033] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0034] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0035] An exemplary embodiment of the present disclosure provides an electronic device for implementing a distance measurement method. The electronic device includes at least a processor and a memory, the memory is used to store executable instructions of the processor, and the processor is configured to perform the distance measurement method by executing the executable instructions.

[0036] Below Figure 1 Taking the mobile terminal 100 in FIG. 1 as an example, the structure of the electronic device is exemplarily described. It should be understood by those skilled in the art that, in addition to the components specifically used for mobile purposes, Figure 1 The structure in the figure can also be applied to fixed type devices. In other embodiments, the mobile terminal 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware. The interface connection relationship between the components is only shown schematically and does not constitute a structural limitation on the mobile terminal 100. In other embodiments, the mobile terminal 100 may also adopt the same Figure 1 Different interface connection methods, or a combination of multiple interface connection methods.

[0037] like Figure 1 As shown, the mobile terminal 100 may specifically include: a processor 110, an internal memory 121, an external memory interface 122, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 171, a receiver 172, a microphone 173, an earphone interface 174, a sensor module 180, a display screen 190, a camera module 191, an indicator 192, a motor 193, a button 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a depth sensor 1801, a pressure sensor 1802, a gyroscope sensor 1803, etc.

[0038] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor and / or a neural network processor (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0039] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the mobile terminal 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0040] The processor 110 is provided with a memory which can store instructions for implementing six modular functions: detection instructions, connection instructions, information management instructions, analysis instructions, data transmission instructions and notification instructions, and the execution is controlled by the processor 110 .

[0041] The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 190, the camera module 191 and the wireless communication module 160.

[0042] The wireless communication function of the mobile terminal 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Among them, antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals; mobile communication module 150 can provide solutions for wireless communication including 2G / 3G / 4G / 5G applied on mobile terminal 100; modulation and demodulation processor can include modulator and demodulator; wireless communication module 160 can provide solutions for wireless communication including wireless local area network (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT) and the like applied on mobile terminal 100. In some embodiments, antenna 1 of mobile terminal 100 is coupled with mobile communication module 150, and antenna 2 is coupled with wireless communication module 160, so that mobile terminal 100 can communicate with network and other devices through wireless communication technology.

[0043] The mobile terminal 100 implements the display function through a GPU, a display screen 190, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 190 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0044] The mobile terminal 100 can realize the shooting function through the ISP, the camera module 191, the video codec, the GPU, the display screen 190 and the application processor, etc. Among them, the ISP is used to process the data fed back by the camera module 191; the camera module 191 is used to capture static images or videos; the digital signal processor is used to process digital signals, and can process other digital signals in addition to digital image signals; the video codec is used to compress or decompress digital videos, and the mobile terminal 100 can also support one or more video codecs.

[0045] The external memory interface 122 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile terminal 100. The external memory card communicates with the processor 110 through the external memory interface 122 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0046] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the mobile terminal 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory (Universal Flash Storage, UFS), etc. The processor 110 executes various functional applications and data processing of the mobile terminal 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0047] The mobile terminal 100 can implement audio functions such as music playing and recording through the audio module 170 , the speaker 171 , the receiver 172 , the microphone 173 , the earphone interface 174 and the application processor.

[0048] The depth sensor 1801 is used to obtain the depth information of the scene. In some embodiments, the depth sensor can be provided in the camera module 191. The depth sensor 1801 can be a DToF lens, which can measure the real distance according to the flight time of the pulsed laser. Specifically, the DToF lens can include a SPAD pixel array, which is used to receive the photons of the reflected light to generate current and count through the TDC circuit. Of course, this exemplary embodiment is not limited to this.

[0049] The pressure sensor 1802 is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 1802 can be arranged on the display screen 190. There are many types of pressure sensors 1802, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.

[0050] The gyro sensor 1803 may be used to determine the motion posture of the mobile terminal 100. In some embodiments, the angular velocity of the mobile terminal 100 around three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 1803. The gyro sensor 1803 may be used for shooting anti-shake, navigation, somatosensory game scenes, and the like.

[0051] In addition, sensors with other functions may be set in the sensor module 180 according to actual needs, such as an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0052] The mobile terminal 100 may also include other devices that provide auxiliary functions. For example, the key 194 includes a power key, a volume key, etc., and the user can generate key signal input related to the user settings and function control of the mobile terminal 100 through key input. For example, the indicator 192, the motor 193, the SIM card interface 195, etc.

[0053] In the related technical solution, the basic single-photon ranging can be completed by combining the single-photon avalanche diode SPAD photosensitive unit and the time-to-digital conversion circuit TDC. This ranging method is also called time-correlated single photon counting (TCSPC). TCSPC uses a high-repetition-rate pulsed laser as the light source and uses a single-photon detector, such as SPAD, to perform multiple repeated measurements. The time information corresponding to the detection of the photon is recorded by the time-to-digital converter (TDC). Its working process can be referred to Figure 2 As shown, each statistical histogram 201 corresponding to a measurement cycle (such as the first cycle, the second cycle, the third cycle, and the fourth cycle, etc.) generally receives no more than one photon. When a cycle starts, an optical signal is emitted and the timing unit is triggered. If a photon is detected, the count in the corresponding time window (each grid in the measurement cycle statistical histogram 201 corresponds to a time unit) is increased by 1. If no photon is detected in the cycle, no count is made. After accumulating the counts of the statistical histogram 201 corresponding to multiple measurement cycles, the waveform information 202 can be reconstructed in the form of a histogram in the storage area.

[0054] The main problems of TCSPC under strong background light can be referred to Figure 3 As shown. When more than one photon is received in a statistical cycle, it takes a certain amount of time for the SPAD to reset and resume working after receiving the photon. Even if a photon is incident on the SPAD during this period, it will not be counted, and the obtained statistical histogram 301 is obtained. Therefore, the waveform information 302 obtained according to the statistical histogram 301 can often only count the first incident photon in a statistical cycle, causing the waveform information 302 to deviate from the actual distribution of light intensity over time. The maximum value of the entire waveform information 302 is transferred to the initial time unit (the first grid in the waveform information 302), and the peak value of the actual reflected light signal is covered by the background light signal, causing the DToF system to fail under strong light and unable to accurately measure the actual distance.

[0055] In order to solve the problem of the background light accumulation effect mentioned above, in a technical solution, the distorted shape of the waveform histogram can be equivalent to the baseline of the signal. Due to the interference of the background light, it changes from the original horizontal line to a slanted line (exponential tailing) that is high at the front and low at the back. Therefore, the baseline in the tilt of the distorted waveform histogram can be found through a preset algorithm. The intensity of the baseline in each time unit is the weight of the time unit. The count corresponding to each time unit from left to right is multiplied by the corresponding weight coefficient to "flatten" the baseline, thereby highlighting the peak of the entire histogram and calculating the true distance. However, in this technical solution, although the peak value can be effectively restored, it requires the use of circuits such as addition, multiplication or floating-point operations, which will lead to an increase in the number of transistors, increase the difficulty of chip design, increase the complexity of the logic circuit part, and increase the power consumption of the chip.

[0056] In another technical solution, the main idea is to first detect the external light intensity through a detection unit. If the external light intensity is found to be greater than a certain intensity, the incident background light intensity is directly reduced from the source by adding an attenuation device. For example, a photon transmission element can be added in front of the SPAD, so that the light intensity incident on the SPAD can be actively or passively controlled according to the changes in the external ambient light, so that the SPAD works under the optimal incident light intensity. However, this solution actively adjusts the attenuation plate without coupling with the back-end control circuit, and is an additional sensor for independent control. The feedback coordination with the SPAD is not flexible, which reduces the measurement efficiency. It is also possible to dynamically adjust the pixel level of SPAD sensitivity by controlling the bias voltage of a single SPAD in view of the disadvantage of reduced sensitivity of SPAD under strong light, but the SPAD circuit in this solution needs to be redesigned, and transistor switches of no less than the number of pixels need to be added, which increases complexity and power consumption. Lenses of different sizes can also be made, which are suitable for working in different environments of strong and weak light, but in this solution, once the lens is designed and finalized, it cannot be changed. When it needs to be adjusted, it consumes a large hardware cost. At the same time, some pixels will inevitably fail to work in strong and weak light environments, and a certain resolution will be lost. The sensitivity of the SPAD can also be adjusted by controlling the laser emission power. However, this technical solution is limited by the process of the laser emission device. The emitted laser pulse width and intensity cannot be infinitely small. Therefore, the laser emitted in the presence of highly reflective objects or at close distances is still relatively too strong, exceeding the working range of the SPAD, resulting in poor measurement results.

[0057] Based on one or more of the above problems, in this exemplary embodiment, a distance measurement method is first provided, which can be applied to terminal devices, such as smart phones, tablet computers, handheld camera devices, etc., but this exemplary embodiment is not limited thereto. The distance measurement method of the exemplary embodiment of the present disclosure is specifically described below.

[0058] Figure 4 A flow chart of a distance measurement method in this exemplary embodiment is shown, comprising the following steps S410 to S440:

[0059] In step S410 , an optical signal is emitted to a target area, so that the optical signal is reflected at the target area and a reflected optical signal is generated.

[0060] In an exemplary embodiment, the target area may refer to an area within a certain distance where the distance needs to be measured. For example, the target area may be a three-dimensional human face, or an indoor environment. Of course, it may also be other areas where the distance needs to be measured. This exemplary embodiment does not specifically limit this. The optical signal may be a pulsed laser signal. The pulsed laser signal may be diffusely reflected or totally reflected at the target area to obtain a reflected light signal. At this time, when the ambient light signal in the current environment is strong, the reflected light signal may include the ambient light signal in the current environment and a real and effective reflected light signal. Among them, the ambient light signal may be a received optical signal that is not related to the measured distance. For example, the ambient light signal may be an optical signal generated by a lighting lamp in an indoor environment, or an optical signal obtained by reflecting the optical signal in the target area. It may also be an optical signal generated by sunlight in an outdoor environment, or an optical signal obtained by reflecting the optical signal in the target area. This exemplary embodiment does not specifically limit this.

[0061] In step S420, the reflected light signal is received with delay to obtain a plurality of delay measurement statistics.

[0062] In an exemplary embodiment, delayed reception of reflected light signals may refer to delaying the start of a receiving module for receiving reflected light signals for a period of time after transmitting light signals to reduce the collection of background light, that is, obtaining multiple delayed measurement statistics through asynchronous signal measurement. Delay measurement statistics may refer to statistics obtained through photon counting processing after delayed reception of reflected light signals, and multiple delayed measurement statistics at different delay times are obtained by delaying reception of reflected light signals of different statistical periods with different delay times.

[0063] In step S430, interference elimination processing is performed on the plurality of delay measurement statistical data to obtain a reflected light signal with interference from the ambient light signal eliminated.

[0064] In an exemplary embodiment, interference elimination processing may refer to a processing procedure of eliminating interference from ambient light signals and obtaining real and effective reflected light signals by performing corresponding operations on multiple delay measurement statistical data. For example, interference elimination processing may be a process of plotting multiple delay measurement statistical data into a statistical histogram and superimposing the statistical histograms, or it may be a processing procedure of screening out real and effective reflected light signals from multiple delay measurement statistical data. Of course, it may also be other processing procedures that can eliminate interference from ambient light signals and obtain real and effective reflected light signals. This exemplary embodiment does not make any special limitation on this.

[0065] In step S440, the flight time is obtained according to the reflected light signal after eliminating the interference of the ambient light signal, so as to calculate the real distance to the target area according to the flight time.

[0066] In an exemplary embodiment, the flight time may refer to the time from when the emitted optical signal is emitted to when it is received by the receiving module, that is, the time taken for the optical signal to be emitted from the terminal device and reflected back to the terminal device in the target area. The real and effective flight time of the optical signal can be obtained based on the reflected optical signal with the interference of the ambient optical signal eliminated, and then the real distance between the terminal device and the target area can be calculated by combining the optical signal transmission speed (i.e., the speed of light, which is a known fixed data) and the flight time of the emitted optical signal.

[0067] For example, the actual distance between the terminal device and the target area can be calculated by using equation (1):

[0068]

[0069] Wherein, d may represent the actual distance between the terminal device and the target area, t may represent the flight time of the optical signal obtained by eliminating the interference of the reflected light signal of the ambient light signal, and c may represent the transmission speed of the optical signal, which is generally 300,000,000 meters per second.

[0070] In an exemplary embodiment, a plurality of delay measurement statistics can be obtained by delaying the reception of reflected light signals by a photosensitive pixel array. The photosensitive pixel array refers to a pixel array composed of a single-photon avalanche diode SPAD. SPAD is a photoelectric detection avalanche diode with single-photon detection capability. This avalanche diode can respond to a single photon, that is, when in working state, as long as a single photon is incident on the active area, a saturated large current signal can be generated. In actual use, when the SPAD receives a single photon signal and generates a large current, the system will pass this photon signal to the corresponding counting circuit. The counting circuit also has a timing function. The logic circuit will record the arrival time of this photon within the corresponding time. Finally, this time actually represents the flight time of the photon being emitted and reflected back to the photosensitive pixel array through the target area.

[0071] Specifically, you can Figure 5 The steps in the above code implement the process of obtaining multiple delay measurement statistics through the photosensitive pixel array. Figure 5 As shown, it may specifically include:

[0072] Step S510, emitting an optical signal to a target area while timing to obtain an emission time, and delaying the emission time according to preset delay data to generate an address selection signal;

[0073] Step S520, controlling the photosensitive pixel array to turn on through the addressing signal, and receiving the reflected light signal through the turned-on photosensitive pixel array to obtain a plurality of delay measurement statistical data.

[0074] The emission time may be the time obtained by timing when the emission module emits an optical signal to the target area, the preset delay data may refer to data obtained according to a preset configuration file, or calculated according to relevant data for delaying the reception of the reflected optical signal, and the delay data may include a delay time and a delay statistical number, wherein the delay time may be a delay time corresponding to different statistical periods, for example, the delay time for the first statistical period may be t1 (at this time t1 may be 0, of course, the value of t1 is generally less than the statistical period), and the delay time for the second statistical period may be t2 (at this time t2 is equal to The value of t1 is different, such as t1+k, where k can represent the delay step, for example, k can be 1ns or 2ns, and can be customized according to actual conditions. This example embodiment is not limited to this. Of course, the value of t2 is generally smaller than the statistical period). The delay time for the third statistical period can be t3 (at this time, t3 has different values ​​from t1 and t2, such as t1+2k. Of course, the value of t3 is generally smaller than the statistical period), and so on. Of course, this is only a schematic example. Different delay times can also be set according to the application situation. This example embodiment does not make any special limitations on this.

[0075] The addressing signal can be a switching signal that controls the working state of a SPAD pixel in the photosensitive pixel array. While the light signal is being emitted, the clock is timing and after a preset delay time, an addressing signal is generated and sent to the corresponding SPAD pixel to put it in working state. The photosensitive pixel array is a matrix array of a*b, similar to the pixel array on a CMOS (Complementary Metal Oxide Semiconductor) image sensor (CIS) chip, and is controlled by the corresponding addressing signal and bias voltage. The addressing signal controls whether its working state is on or off, and the bias voltage controls its sensitivity. In this example embodiment, the reliability of the pixel when working is taken into consideration, and only the addressing signal is used to control whether the corresponding SPAD pixel is in working state, thereby improving the measurement efficiency while ensuring the measurement accuracy.

[0076] Furthermore, you can Figure 6 The steps in the control of the photosensitive pixel array are realized, refer to Figure 6 As shown, it may specifically include:

[0077] Step S610, determining a maximum measurement range, and determining a statistical period according to the maximum measurement range;

[0078] Step S620, determining a plurality of different delay times according to the statistical period and the preset delay step length;

[0079] Step S630, generating an address selection signal after delaying the transmission time in each statistical period according to the different delay times.

[0080] The maximum measurement range may be the maximum measurement distance required to be measured in the current environment, for example, the maximum measurement range may be 10m or 5m, and this exemplary embodiment is not limited thereto. Specifically, the maximum measurement range may be determined according to preset parameters or a measurement range set by a user, or the maximum measurement range may be estimated and calculated according to measurement statistics initially obtained, and this exemplary embodiment does not make any special limitation thereto.

[0081] The statistical period can be the statistical period of the statistical histogram determined according to the maximum measurement range. For example, if the maximum measurement range is 10m, then the statistical period of the statistical histogram should not be less than the round-trip flight time of the optical signal of 10m, that is, (2*10) (that is, the round-trip distance) / 3e8 (the speed of light) to obtain a statistical period of at least 67ns. At this time, the delay time should not be greater than 67ns.

[0082] The delay step may be the difference between different delay times. For example, the delay time for the first statistical cycle may be t1 (at this time t1 may be 0, of course, the value of t1 is generally less than the statistical cycle), and the delay time for the second statistical cycle may be t2=t1+k, where k may represent the delay step, for example, k may be 1ns or 2ns, and may be customized according to actual conditions. This exemplary embodiment is not limited thereto, and so on. Of course, this is only a schematic example, and different delay times may also be set according to application conditions. This exemplary embodiment does not specifically limit this. The delay step may be flexibly adjusted according to actual conditions to improve the accuracy of the measurement result (such as reducing the delay step) or to improve the efficiency of the measurement (such as increasing the delay step).

[0083] In an exemplary embodiment, the Figure 7 The flight time is calculated by the steps in Figure 7 As shown, it may specifically include:

[0084] Step S710, controlling the photosensitive pixel array to turn on according to the addressing signal corresponding to the different delay times in each statistical cycle, and receiving the reflected light signal through the turned-on photosensitive pixel array to obtain a plurality of statistical histograms;

[0085] Step S720 , superimposing and calculating the multiple statistical histograms to obtain peak data corresponding to the reflected light signal with the interference of the ambient light signal eliminated, and determining the flight time according to the peak data.

[0086] The statistical histogram may be a statistical data obtained by receiving the reflected light signal through the photosensitive pixel array controlled by the addressing signal and performing photon counting statistics through the time-to-digital conversion circuit TDC. A plurality of delayed measurement statistical data are obtained by delaying the reception of the reflected light signal. Then, a plurality of statistical histograms are obtained by plotting the delayed measurement statistical data. By superimposing and calculating the plurality of statistical histograms, the peak data corresponding to the reflected light signal with the interference of the ambient light signal eliminated can be obtained. The peak data is the flight time of the received reflected light signal from emission to reception. Then, the actual distance to the target area can be calculated based on the flight time. For details, refer to the calculation of the relationship (1), which will not be repeated here.

[0087] Preferably, the number of delay statistics corresponding to the delay time can be determined, and the number of delay statistics corresponding to different delay times is the same; and then, according to the number of delay statistics, the delay measurement statistics corresponding to the reflected light signal under the delay time can be repeatedly counted. Among them, the number of delay statistics means that in order to determine an accurate distance, the total number of statistics should be no less than hundreds of times, and can reach hundreds of thousands of times at most. For example, assuming that the measurement frame rate is 30fps, that is, the depth information (that is, the real distance) is measured 30 times per second, then the average time used for each measurement is about 30ms. If the current maximum measurement range is 10m, then each statistical cycle is 67ns, and the possible number of statistics for a depth information is 30ms / 67ns, which is about 440,000 times. Of course, without affecting the measurement efficiency, the more delay statistics, the more accurate the calculated measurement result.

[0088] Optionally, after superimposing multiple statistical histograms to obtain a statistical histogram containing peak data corresponding to the reflected light signal that eliminates the interference of the ambient light signal, a simple filtering circuit can be added to the back end to improve the accuracy of the peak data of the statistical histogram. This method is relatively simple and can be implemented through the structure of the hardware delay register, which can make the peak data after filtering more accurate and improve the accuracy of ranging.

[0089] Figure 8 A flow chart of measuring a real distance based on a distance measurement method in an exemplary embodiment of the present disclosure is schematically shown.

[0090] refer to Figure 8As shown, step S801, an optical signal is emitted through a transmitting module, for example, a short pulse optical signal is emitted through a driving circuit corresponding to a vertical cavity surface emitting laser (VCSEL). For a maximum measurement range of 10m, the pulse peak optical power of the short pulse optical signal in the DToF system can be 2 to 3W, and the pulse width can be 0.5ns to 2ns, and at the same time, the receiving module is notified to start timing;

[0091] Step S802, the clock is started and after a delay time t1 (of course, the delay time t1 at this time can be 0s, that is, the photosensitive pixel array is controlled to be in a working state at the same time as the light signal is emitted, and the delay time t1 should generally be less than a statistical cycle of a statistical histogram), an address selection signal is generated and sent to the photosensitive pixel array to control the corresponding SPAD pixels in the photosensitive pixel array to be in a working state;

[0092] Step S803, after the light signal is reflected at the target area, a reflected light signal that may contain an ambient light signal is generated. When the photons of the reflected light signal reach the photosensitive pixel array, the SPAD pixels in the working state trigger an avalanche current, and at this time, the TDC circuit performs counting statistics at the corresponding time;

[0093] Step S804, determining whether the delay statistical number n1 is reached under the delay time t1 (the delay statistical number n1 may be the statistical number when the delay is the delay time t1), if yes, executing step S805, otherwise returning to step S801, and continuing to count the counting data at the delay time t1;

[0094] Step S805, transmitting an optical signal through the transmitting module and notifying the receiving module to start timing;

[0095] Step S806, after the clock is timed and the delay time t2 is delayed (of course, the value of the delay time t2 at this time is different from the delay time t1, and the delay time t2 is obtained by a preset delay step on the basis of the delay time t1, and the delay step can be 1ns or 2ns, and the present exemplary embodiment is not limited thereto), an address selection signal is generated and sent to the photosensitive pixel array to control the corresponding SPAD pixels in the photosensitive pixel array to put them in a working state;

[0096] Step S807, after the light signal is reflected at the target area, a reflected light signal that may contain an ambient light signal is generated. When the photons of the reflected light signal reach the photosensitive pixel array, the SPAD pixels in the working state trigger an avalanche current, and at this time, the TDC circuit performs counting statistics at the corresponding time;

[0097] Step S808, determining whether the delay statistical number n2 is reached under the delay time t2 (the delay statistical number n2 may be the statistical number when the delay is the delay time t2, and the delay statistical number n2 and the delay statistical number n1 are generally the same, so that the weights of each time period of the finally obtained statistical histogram can be ensured to be the same, so as to correctly obtain the peak information of the reflected light signal, that is, the real and effective flight time), if so, executing step S809, otherwise returning to step S805, and continuing to count the counting data at the delay time t2;

[0098] Step S809, similarly, the delay time is increased in sequence, and the total number of delays can be determined by the length of the statistical cycle and the delay time of each delay. For example, assuming that the maximum measurement range is 10m, each statistical cycle is 67ns. If the delay step length is 1ns each time, there are 67 different delay times in total, that is, delay 0s, repeat the statistics for a certain number of times n1, then delay 1ns, repeat the statistics for a certain number of times n2, then delay 2ns, repeat the statistics for a certain number of times n3, delay 3ns, repeat the statistics for a certain number of times n4... and so on;

[0099] Step S810, after completing all the above-mentioned asynchronous delay statistics (for example, after a total of 10,000 statistics), the data of the statistical histogram finally obtained should be the superposition value of the delay measurement statistical data of all statistical periods, and then a real and valid flight time can be output, and then the real distance can be calculated based on the flight time and the optical signal transmission speed (ie, the speed of light).

[0100] certainly, Figure 8 The steps in the figure are only one specific implementation process of eliminating background light by using the asynchronous statistical time-correlated single photon method. There are many other implementation methods of this exemplary embodiment. For example, the start time of receiving the signal can be delayed in sequence, and each delay is only detected once, and finally the delay starts from the beginning after a whole cycle. That is, in the above steps, steps S801 to S803 and steps S805 to S807 are first performed, and these processes are repeated for a delay of n times (because n1 is equal to n2 is equal to n3...).

[0101] Fig. 9 A schematic diagram schematically illustrates statistical data with ambient light interference obtained according to a distance measurement method in an exemplary embodiment of the present disclosure.

[0102] refer to Fig. 9As shown, in the case of ambient light signal interference, the statistical histogram 901 under different statistical periods is obtained by asynchronously delaying the statistics of the reflected light signal, and the statistical histogram 901 under different statistical periods is superimposed and calculated to obtain the statistical histogram 902 with the ambient light signal interference eliminated. The waveform peak in the statistical histogram 902 with the ambient light signal interference eliminated is the flight time of the emitted light signal after reaching the target area and returning to the receiving module, and then the real distance is calculated based on the flight time and the speed of light data.

[0103] In summary, in this exemplary embodiment, a light signal is emitted to a target area so that the light signal is reflected at the target area and generates a reflected light signal containing an ambient light signal; a plurality of delayed measurement statistics are obtained by delaying the reception of the reflected light signal; interference elimination processing is performed on the plurality of delayed measurement statistics to obtain a reflected light signal that eliminates the interference of the ambient light signal; and a flight time is obtained according to the reflected light signal that eliminates the interference of the ambient light signal, so as to calculate the real distance to the target area according to the flight time. On the one hand, only by delaying the reception of the reflected light signal, the ambient light signal accumulated in the received reflected light signal can be filtered, and then the real distance can be measured and calculated, without adding a new logic circuit or hardware structure. While eliminating the accumulated ambient light signal, the area and power consumption of the measurement chip remain unchanged, and the implementation is relatively simple; on the other hand, a plurality of delayed measurement statistics are obtained according to the delayed reception of the reflected light signal, and then the real peak value corresponding to the reflected light signal that eliminates the interference of the ambient light signal can be determined through the plurality of delayed measurement statistics, and then the flight time is determined according to the real peak value to calculate the real distance. Since no new logic circuit or hardware structure is required to be added, the measured flight time will not be affected, and the accuracy of the measured real distance is guaranteed.

[0104] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0105] For further reference, Fig.10 As shown, in the implementation of this example, a distance measurement system 1000 is also provided, which may include a transmitting module 1010, a receiving module 1020 and a control module 1030. Among them:

[0106] The transmitting module 1010 may be used to transmit an optical signal to a target area, so that the optical signal is reflected at the target area to generate a reflected optical signal;

[0107] The receiving module 1020 may be configured to receive the reflected light signal; wherein the reflected light signal includes ambient light;

[0108] The control module 1030 is electrically connected to the transmitting module 1010 and the receiving module 1020, and may include a time delay unit 1031 and a distance calculation unit 1032, wherein:

[0109] The time delay unit 1031 may be used to perform timing when the transmitting module transmits the pulse light signal, and control the receiving module to delay receiving the reflected light signal to obtain a plurality of delay measurement statistics;

[0110] The distance calculation unit 1032 is electrically connected to the time delay unit 1030, and can be used to obtain the flight time corresponding to the reflected light signal eliminating the ambient light interference according to the multiple delay measurement statistical data, so as to calculate the real distance to the target area according to the flight time.

[0111] In an exemplary embodiment, the receiving module 1020 may include a photosensitive pixel array, and the photosensitive pixel array may be used to delay the reception of the reflected light signal to obtain a plurality of delay measurement statistics.

[0112] In an exemplary embodiment, the control module 1030 may include an address selection signal generating unit, which is electrically connected to the time delay unit 1030, and can be used to generate an address selection signal after delaying the emission moment according to preset delay data while timing the emission moment while emitting a light signal to the target area, so as to control the opening of the photosensitive pixel array through the address selection signal.

[0113] In an exemplary embodiment, the address selection signal generating unit can also be used to: determine the maximum measurement range, and determine the statistical period based on the maximum measurement range; determine multiple different delay times based on the statistical period and a preset delay step; and generate an address selection signal after delaying the transmission moment in each statistical period based on the different delay times.

[0114] In an exemplary embodiment, the distance calculation unit 1032 may further include a histogram calculation subunit, and the histogram calculation subunit may be used to:

[0115] Controlling the photosensitive pixel array to turn on according to the addressing signal corresponding to the different delay times in each statistical cycle, and receiving the reflected light signal through the turned-on photosensitive pixel array to obtain a plurality of statistical histograms;

[0116] The multiple statistical histograms are superimposed and calculated to obtain peak data corresponding to the reflected light signal with the interference of the ambient light signal eliminated, and the flight time is determined according to the peak data.

[0117] The specific details of each module in the above system have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.

[0118] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0119] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification, for example, it can execute Figures 4 to 8 Any one or more steps in .

[0120] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0121] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0122] In addition, program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0123] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0124] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A distance measurement method, characterized in that: include: Transmitting a light signal to a target area, so that the light signal is reflected at the target area and generates a reflected light signal; wherein the reflected light signal includes an ambient light signal; Obtaining a plurality of delay measurement statistics by delaying reception of the reflected light signal by a photosensitive pixel array; the delay measurement statistics include a statistical histogram; Controlling the light-sensitive pixel array to be turned on according to the addressing signal corresponding to the different delay times in each statistical cycle, and receiving the reflected light signal through the turned-on light-sensitive pixel array to obtain a plurality of statistical histograms; The multiple statistical histograms are superimposed and calculated to obtain peak data corresponding to the reflected light signal with the ambient light signal interference eliminated, and the flight time is determined according to the peak data, so as to calculate the real distance to the target area according to the flight time.

2. The method according to claim 1, characterized in that The delaying of receiving the reflected light signal by the photosensitive pixel array to obtain a plurality of delay measurement statistics includes: The light signal is emitted to the target area, and the emission time is obtained by timing, and the emission time is delayed according to the preset delay data to generate the address selection signal; The photosensitive pixel array is controlled to be turned on by the addressing signal, and the reflected light signal is received by the turned-on photosensitive pixel array to obtain a plurality of delay measurement statistical data.

3. The method according to claim 2, characterized in that The delay data includes a delay time; and the generating of the address selection signal after delaying the transmission time according to the preset delay data includes: Determining a maximum measurement range, and determining a statistical period according to the maximum measurement range; Determine a plurality of different delay times according to the statistical period and a preset delay step; According to the different delay times, the transmitting moment in each statistical period is delayed to generate an address selection signal.

4. The method according to claim 3, characterized in that The delay data includes the number of delay statistics, and the generating of the address selection signal after delaying the transmission time in each statistical period according to the different delay times also includes: Determine the number of delay statistics corresponding to the delay time; the number of delay statistics corresponding to the different delay times is the same; According to the delay statistics number, delay measurement statistics corresponding to the reflected light signal at the delay time are counted multiple times.

5. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

6. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 4 by executing the executable instructions.

7. A distance measurement system, characterized in that: include: A transmitting module, used for transmitting a light signal to a target area, so that the light signal is reflected at the target area to generate a reflected light signal; A receiving module, used to receive the reflected light signal; wherein the reflected light signal includes ambient light; A control module is electrically connected to the transmitting module and the receiving module, and includes a time delay unit and a distance calculation unit, wherein: The time delay unit is used to perform timing when the transmitting module transmits a pulse light signal, and control the receiving module to delay receiving the reflected light signal through the photosensitive pixel array to obtain a plurality of delay measurement statistics; the delay measurement statistics include a statistical histogram; The distance calculation unit is electrically connected to the time delay unit, and is used to control the photosensitive pixel array to turn on according to the addressing signal corresponding to the different delay times in each statistical period, and receive the reflected light signal through the turned-on photosensitive pixel array to obtain multiple statistical histograms; the multiple statistical histograms are superimposed and calculated to obtain peak data corresponding to the reflected light signal with the interference of the ambient light signal eliminated, and the flight time is determined according to the peak data, so as to calculate the actual distance to the target area according to the flight time.

8. The system according to claim 7, characterized in that The control module includes an address selection signal generating unit, which is electrically connected to the time delay unit and is used to generate an address selection signal after delaying the emission moment according to preset delay data while timing the emission moment while emitting a light signal to a target area, so as to control the opening of the photosensitive pixel array through the address selection signal.

9. The system according to claim 8, characterized in that The address selection signal generating unit is also used for: Determining a maximum measurement range, and determining a statistical period according to the maximum measurement range; Determine a plurality of different delay times according to the statistical period and a preset delay step; According to the different delay times, the transmitting moment in each statistical period is delayed to generate an address selection signal.