A distance measurement method, system and device
By using the edge detection processing method in the distance measurement system to determine the rising edge position of the photon emission and reflection signals, the problem of histogram distortion when the target to be detected is close and the reflectivity is high is solved, and the accuracy of distance measurement is improved.
Patent Information
- Application Number
- CN202010914316.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-03
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-09-03
AI Technical Summary
When the target to be detected is close and has a high reflectivity, in a distance measurement system based on the time-of-flight principle, the pulse waveform in the histogram is easily distorted, resulting in the inability to accurately determine the flight time of photons from emission to reception, making it difficult to accurately measure target distance.
By acquiring the photon emission signal and reflection signal, the target histogram is generated, and an edge detection processing method is used to determine the rising edge position. The distance of the target to be measured is calculated based on the time information of the rising edge position, including constructing a fitting function curve and obtaining the cumulative sum. Jump points in the function, and rectification of the initial histogram to correct distortion.
The accuracy of distance measurement is improved. Especially when the received waveform is distorted due to photon accumulation, the position of the rising edge of the pulse can be accurately determined, which enhances the accuracy of distance measurement.
Smart Images

Figure CN112255635B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of distance measurement technology, and in particular, relates to a distance measurement method, system and device. Background Art
[0002] The time of flight principle (TOF) can be used to measure the distance of the target to obtain a depth image containing the depth value of the target, and the distance measurement system based on the time of flight principle has been widely used in consumer electronics, unmanned vehicles and other fields. When calculating the distance of the target to be detected, the transmitter emits a pulse light beam to illuminate the target field of view and the collector collects the reflected light beam. The flight time of the light beam from emission to reflection reception is calculated, and the flight time is used as the address to access the corresponding memory. Multiple measurements are input into the memory to construct a histogram, and the peak position in the histogram is further determined. The distance of the target to be detected is calculated based on the time corresponding to the peak position.
[0003] However, when the target to be detected is close and has a high reflectivity, the pulse waveform drawn in the histogram will be distorted, and the exact flight time of the photon from emission to reception cannot be determined, making it difficult to determine the distance of the target to be detected. Summary of the invention
[0004] The embodiments of the present application provide a distance measurement method, system and device, which can solve the problem that when the distance of the target to be detected is close and the reflectivity is high, the pulse waveform drawn in the histogram is distorted, and the accurate flight time of the photon from emission to reception cannot be determined, making it difficult to determine the distance of the target to be detected.
[0005] In a first aspect, an embodiment of the present application provides a distance measurement method, including:
[0006] Acquire photon emission signals and photon reflection signals;
[0007] Acquire the flight time of the photons from emission to reception according to the photon emission signal and the photon reflection signal, and generate a target histogram according to the flight time; the abscissa of the target histogram is the flight time, and the ordinate of the target histogram represents the photon count value;
[0008] The time information corresponding to the rising edge position is acquired, and the distance information of the target to be measured is calculated according to the time information.
[0009] Further, the obtaining the rising edge position in the target histogram includes:
[0010] Determine a received waveform according to the target histogram, and construct a fitting function curve according to the received waveform;
[0011] A target point satisfying a preset slope value condition is obtained in the fitting function curve, and a rising edge position is determined according to the target point.
[0012] Further, the obtaining the rising edge position in the target histogram includes:
[0013] Obtaining a difference in photon count values between two adjacent time intervals in the target histogram;
[0014] The rising edge position is determined according to the difference.
[0015] Further, the obtaining the rising edge position in the target histogram includes:
[0016] Constructing a cumulative sum function corresponding to the target histogram;
[0017] Obtaining a jump point in the cumulative sum function;
[0018] The rising edge position is determined according to the position of the jump point.
[0019] Further, acquiring the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generating a target histogram according to the flight time, includes:
[0020] Acquire the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generate an initial histogram according to the flight time;
[0021] The initial histogram is corrected to obtain a target histogram.
[0022] Furthermore, the correcting the initial histogram to obtain a target histogram includes:
[0023] generating a correction function according to the initial histogram;
[0024] The initial histogram is corrected according to the inverse function of the correction function to obtain a target histogram.
[0025] Further, generating a target histogram according to the photon emission signal and the photon reflection signal includes:
[0026] Determine the flight time information of the photon from emission to collection according to the photon emission signal and the reflection signal;
[0027] A time code is determined based on the time-of-flight information, and a target histogram is generated based on the time code.
[0028] In a second aspect, an embodiment of the present application provides a distance measurement device, including:
[0029] A first acquisition unit, used to acquire a photon emission signal and a photon reflection signal;
[0030] A generating unit, used for acquiring the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generating a target histogram according to the flight time; the abscissa of the target histogram is the flight time, and the ordinate of the target histogram represents the photon count value;
[0031] A second acquisition unit, used to acquire the rising edge position in the target histogram;
[0032] The processing unit is used to obtain the time information corresponding to the rising edge position, and calculate the distance information of the target to be measured according to the time information.
[0033] Furthermore, the second acquisition unit is specifically used to:
[0034] Determine a received waveform according to the target histogram, and construct a fitting function curve according to the received waveform;
[0035] A target point satisfying a preset slope value condition is obtained in the fitting function curve, and a rising edge position is determined according to the target point.
[0036] Furthermore, the second acquisition unit is specifically used to:
[0037] Obtaining a difference in photon count values between two adjacent time intervals in the target histogram;
[0038] The rising edge position is determined according to the difference.
[0039] Furthermore, the second acquisition unit is specifically used to:
[0040] Constructing a cumulative sum function corresponding to the target histogram;
[0041] Obtaining a jump point in the cumulative sum function;
[0042] The rising edge position is determined according to the position of the jump point.
[0043] Furthermore, the generating unit comprises:
[0044] An initial generation unit, used to generate an initial histogram according to the photon emission signal and the photon reflection signal;
[0045] A correction unit is used to correct the initial histogram to obtain a target histogram.
[0046] Furthermore, the correction unit is specifically used for:
[0047] generating a correction function according to the initial histogram;
[0048] The initial histogram is corrected according to the inverse function of the correction function to obtain a target histogram.
[0049] Furthermore, the generating unit is specifically used for:
[0050] Determine the flight time information of the photon from emission to collection according to the photon emission signal and the reflection signal;
[0051] A time code is determined based on the time-of-flight information, and a target histogram is generated based on the time code.
[0052] In a third aspect, an embodiment of the present application provides a distance measurement system, including: a transmitter, a collector, and a processing device;
[0053] The transmitter is used to generate a photon emission signal and emit a pulse light beam to a target to be measured after receiving an emission instruction sent by the processing device;
[0054] The collector is used to collect photons in the pulse light beam reflected by the target to be measured and generate a photon reflection signal; the collector includes a pixel array;
[0055] The processing device is used to obtain the photon emission signal and the photon reflection signal corresponding to the target to be measured; obtain the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generate a target histogram according to the flight time; the abscissa of the target histogram is the flight time, and the ordinate of the target histogram represents the photon count value; obtain the time information corresponding to the rising edge position, and calculate the distance information of the target to be measured according to the time information.
[0056] In a fourth aspect, an embodiment of the present application provides a distance measurement device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the distance measurement method as described in the first aspect above is implemented.
[0057] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the distance measurement method as described in the first aspect above is implemented.
[0058] In an embodiment of the present application, a photon emission signal and a photon reflection signal are obtained; a target histogram is generated based on the photon emission signal and the photon reflection signal; a rising edge position in the target histogram is obtained; time information corresponding to the rising edge position is obtained, and the distance information of the target to be measured is calculated based on the time information. The above scheme adopts an edge detection processing method for determining the rising edge, and calculates the distance information of the target to be measured based on the time information corresponding to the rising edge position, which can improve the accuracy of the calculated distance, especially when the received waveform is distorted due to photon accumulation, it will not affect the pulse rising edge position, thereby further improving the accuracy of the calculated distance. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0060] Figure 1 is a schematic diagram of a distance measurement system provided by the first embodiment of the present application;
[0061] Figure 2 is a schematic flow chart of a distance measurement method provided in the second embodiment of the present application;
[0062] Figure 3 is a schematic diagram of a target histogram in a distance measurement method provided in the second embodiment of the present application;
[0063] Figure 4 is a schematic flowchart of a refinement of S102 in a distance measurement method provided in the second embodiment of the present application;
[0064] Figure 5 is a schematic flowchart of a refinement of S1022 in a distance measurement method provided in the second embodiment of the present application;
[0065] Figure 6 is a schematic flowchart of a refinement of S103 in a distance measurement method provided in the second embodiment of the present application;
[0066] Figure 7 is a schematic flowchart of a refinement of S103 in a distance measurement method provided in the second embodiment of the present application;
[0067] Figure 8 is a schematic flowchart of a refinement of S103 in a distance measurement method provided in the second embodiment of the present application;
[0068] Fig. 9is a schematic diagram of a distance measurement device provided in a third embodiment of the present application;
[0069] Fig.10 It is a schematic diagram of a distance measurement device provided in the fourth embodiment of the present application. DETAILED DESCRIPTION
[0070] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0071] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0072] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0073] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0074] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0075] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0076] See also Figure 1 , Figure 1 Schematic diagram of a distance measurement system provided in the first embodiment of the present application. Figure 1 The distance measurement system shown may include: a transmitter, a collector, and a processing device;
[0077] The transmitter is used to generate a photon emission signal and emit a pulse light beam to a target to be measured after receiving an emission instruction sent by the processing device;
[0078] The collector is used to collect photons in the pulse light beam reflected by the target to be measured and generate a photon reflection signal; the collector includes a pixel array;
[0079] The processing device is used to obtain the photon emission signal and the photon reflection signal corresponding to the target to be measured; obtain the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generate a target histogram according to the flight time; the abscissa of the target histogram is the flight time, and the ordinate of the target histogram represents the photon count value; obtain the time information corresponding to the rising edge position, and calculate the distance information of the target to be measured according to the time information.
[0080] Specifically, the distance measurement system 10 may include: a transmitter 11, a collector 12 and a processing device 13. The transmitter 11 includes a light source 111 composed of one or more lasers, which is used to transmit a pulse light beam 30 to the target 20 to be measured, and at least part of the pulse light beam is reflected by the target to form a reflected light beam 40 and return to the collector 12. The collector 12 includes a pixel array 121 composed of a plurality of pixels, which is used to collect photons in the reflected light beam 40 and generate a photon reflection signal. The processing device 13 synchronizes the photon emission signal and the photon reflection signal of the transmitter 11 and the collector 12 to calculate the flight time required for the photons in the light beam from emission to reception.
[0081] The transmitter 11 includes a light source 111, an emission optical element 112, and a driver 113. In one embodiment, the light source 111 is a VCSEL array light source chip formed by generating multiple VCSEL light sources on a single semiconductor substrate. The light source 111 can emit a pulse light beam at a certain frequency (pulse period) under the control of the processing device 13. The pulse light beam passes through the emission optical element 112 and is projected onto the target to be measured to form an illumination spot, wherein the frequency is set according to the measurement distance.
[0082] The collector 12 includes a pixel array 121, a filtering unit 122, and a receiving optical element 123, etc. The receiving optical element 123 images the spot light beam reflected by the target onto the pixel array 121. The pixel array 121 includes a plurality of pixels for collecting photons, and the pixels may be one of a single-photon device for collecting photons, such as an avalanche photodiode (APD), a single-photon avalanche diode (SPAD), and a silicon-based photomultiplier tube (SiPM). In one embodiment, the pixel array 121 includes a plurality of SPADs, which can respond to incident single photons and output a photon signal indicating the corresponding arrival time of the received photons at each SPAD. Generally, a readout circuit composed of one or more devices such as a signal amplifier, a time-to-digital converter (TDC), and a digital-to-analog converter (ADC) connected to the pixel array is also included. These circuits can be integrated with the pixels as part of the collector, or as part of the processing device 13.
[0083] In the actual distance measurement process, the photons collected by the pixel array include ambient photons and signal photons, wherein the ambient photons continue to exist in the time interval of the histogram, while the signal photons only appear in the time interval corresponding to the target position to form a pulse peak. However, since the SPAD array enters the dead time after receiving the photon and no longer detects the photon, when the target to be measured is close to the SPAD array, or when the target to be measured has a high reflectivity, the photons in the front part of the reflected pulse beam are incident on the SPAD array faster, causing the SPAD to avalanche and then enter the dead time, and the subsequent incident signal photons are no longer received by the SPAD, and the pulse peak position in the final histogram moves forward. Alternatively, under strong ambient light conditions, a large number of ambient photons are incident on the SPAD array, causing the SPAD to avalanche and then enter the dead time. At this time, the multiple incident signal photons will not be collected and received by the SPAD, and the peak position in the final histogram moves forward. There is a measurement error in determining the flight time based on the peak position in the distorted histogram compared to the actual flight time. The above situations that cause histogram distortion are collectively referred to as photon accumulation phenomena. This will result in the measured distance being inaccurate. To solve this problem, this embodiment proposes a distance measurement method, which is applied to a processing device.
[0084] The processing device 13 is used to obtain the photon emission signal and the photon reflection signal corresponding to the target to be measured; obtain the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generate a target histogram according to the flight time; obtain the rising edge position in the target histogram; obtain the time information corresponding to the rising edge position, and calculate the distance information of the target to be measured according to the time information. The details of the distance measurement method in the specific processing device can refer to the description of the second embodiment.
[0085] See also Figure 2 , Figure 2 : is a schematic flow chart of a distance measurement method provided in the second embodiment of the present application. In this embodiment, the execution subject of a distance measurement method is a processing device. The distance measurement method may include:
[0086] S101: Acquire a photon emission signal and a photon reflection signal.
[0087] The processing device acquires the photon emission signal sent by the emitter and the photon reflection signal collected by the collector. The photon emission signal and the photon reflection signal are used to calculate the flight time of the photon.
[0088] S102: Obtaining the flight time of the photons from emission to reception according to the photon emission signal and the photon reflection signal, and generating a target histogram according to the flight time; the abscissa of the target histogram is the flight time, and the ordinate of the target histogram represents the photon count value.
[0089] The processing device obtains the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generates a target histogram according to the flight time. The abscissa of the target histogram represents the flight time of the photon, and the ordinate of the target histogram represents the photon count value. Figure 3 As shown, Figure 3 is a schematic diagram of the target histogram. Figure 3 In the coordinate system, the horizontal axis x represents the flight time of each photon from emission to collection, and the vertical axis y represents the photon count value.
[0090] There is no limitation on the method of generating the target histogram here. In one embodiment, the processing device determines the flight time of the photon based on the photon emission signal and the photon reflection signal, uses the flight time of the photon as the horizontal coordinate and the photon count value as the vertical coordinate to generate the target histogram. In another embodiment, the device determines the flight time information of the photon from emission to collection based on the photon emission signal and the reflection signal, then determines the time code based on the flight time information, and generates the target histogram based on the time code. Among them, the time code is a code that identifies the flight time. In this embodiment, the processing device includes a histogram memory, and the processing device can determine the location of the histogram data storage in the histogram memory based on the time code, add "1" to the value stored at the corresponding position, and construct the target histogram based on the position of the histogram memory as the time interval. Among them, the target histogram contains measurement errors caused by the photon pile-up effect.
[0091] It is understandable that due to the existence of the photon accumulation effect, the peak position in the drawn histogram moves forward. For example, the peak position of the received waveform reflected from the target is located at the 7th time interval. The photon accumulation effect will cause the peak position to move forward to the 5th time interval. The flight time obtained at the peak position is less than the actual flight time. Therefore, in order to obtain an accurate target histogram, the histogram generated according to the photon emission signal and the photon reflection signal can be corrected, that is, the forward-moved waveform peak is corrected back to its correct position. S102 may include S1021~S1022, such as Figure 4 As shown, S1021 to S1022 are specifically as follows:
[0092] S1021: Acquire the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generate an initial histogram according to the flight time.
[0093] The detailed method of the processing device generating the initial histogram can refer to the relevant description in S102 that the processing device obtains the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generates the target histogram according to the flight time, which will not be repeated here.
[0094] S1022: Correcting the initial histogram to obtain a target histogram.
[0095] The processing device corrects the initial histogram to obtain a target histogram, and the specific correction method is not limited. The processing device can pre-store a preset strategy and correct the initial histogram according to the correction strategy to obtain the target histogram.
[0096] In one implementation, S1022 may include S10221 to S10222, such as Figure 5 As shown, S10221 to S10222 are as follows:
[0097] S10221: Generate a correction function according to the initial histogram.
[0098] The processing device generates a correction function according to the initial histogram, and the correction function is used to correct the distorted information in the initial histogram, that is, the measurement error generated in the initial histogram due to the photon accumulation effect. The correction function can be a time domain function or a frequency domain function.
[0099] The processing device can construct a time domain function using the relationship between the different detection efficiencies of the pixel array and the peak offset caused by the photon pile-up effect, or construct a time domain function using the relationship between different target distances and the peak offset caused by the photon pile-up effect, and use the time domain function as a correction function.
[0100] The processing device may also generate a frequency domain function corresponding to the initial histogram according to the initial histogram, and use the frequency domain function as a correction function.
[0101] S10222: Correcting the initial histogram according to the inverse function of the correction function to obtain a target histogram.
[0102] The processing device corrects the initial histogram according to the inverse function of the correction function, uses the inverse function of the correction function as a preprocessing parameter, and corrects the initial histogram to obtain a target histogram.
[0103] S103: Obtain the rising edge position in the target histogram.
[0104] The processing device obtains the rising edge position in the target histogram, wherein the rising edge position is the position in the histogram that changes from low to high. The schematic diagram of the rising edge position is as follows: Figure 3 As shown in 302 in FIG. The manner in which the processing device obtains the rising edge position is not limited here, and several specific manners for obtaining the rising edge position are described in detail below.
[0105] In one implementation, the processing device may obtain the rising edge position in the following manner, where S103 may include S1031 to S1032. Figure 6 As shown, S1031 to S1032 are as follows:
[0106] S1031: Determine a received waveform according to the target histogram, and construct a fitting function curve according to the received waveform.
[0107] The processing device determines the receiving waveform according to the target histogram, wherein the receiving waveform is the receiving waveform representing the reflected light beam. The schematic diagram of the receiving waveform can be referred to Figure 3As shown in 303 in FIG. After acquiring the received waveform, the processing device processes the received waveform and constructs a fitting function curve. The abscissa of the fitting function curve represents the flight time, and the ordinate represents the photon count value.
[0108] S1032: Acquire a target point in the fitting function curve that meets a preset slope value condition, and determine a rising edge position according to the target point.
[0109] The processing device obtains a target point in the fitting function curve that meets the preset slope value condition. The target point that meets the preset slope value condition is the point with the maximum slope in the fitting function curve. The time interval corresponding to the x value at the target point is the rising edge position of the target histogram.
[0110] In one implementation, the processing device may obtain the rising edge position in the following manner, and S103 may include S1033 to S1034, such as Figure 7 As shown, S1033 to S1034 are as follows:
[0111] S1033: Obtain the difference between the photon count values in two adjacent time intervals in the target histogram.
[0112] The processing device obtains the difference between the photon count values in two adjacent time intervals in the target histogram. In this embodiment, the rising edge position is determined by directly calculating the difference between the photon count values in at least two time intervals in the histogram. Among them, the photon count value in the time interval at the rising edge position is much larger than the photon count value in the previous time interval. Therefore, the processing device can set a difference threshold, continuously calculate the difference between the photon count values in two adjacent time intervals, or calculate the difference between the photon count values in two discontinuous time intervals, where discontinuous means a time interval with equal or unequal intervals. When the difference between the two time intervals meets the threshold, the time interval with a large photon count value is determined to be the rising edge position.
[0113] S1034: Determine the rising edge position according to the difference.
[0114] The processing device may set a difference threshold, and when the difference meets the threshold, the time interval with a large photon count value is determined as the rising edge position.
[0115] In one implementation, the processing device may obtain the rising edge position in the following manner, and S103 may include S1035 to S1037, such as Figure 8 As shown, S1035 to S1037 are as follows:
[0116] S1035: Construct a cumulative sum function corresponding to the target histogram.
[0117] The processing device constructs a cumulative sum function corresponding to the target histogram, the abscissa x of the cumulative sum function represents the flight time, and the ordinate y is configured to be the sum of the photon count values in all time bins before a certain time point, that is, y=sum(i), i=1,2...n, where n is the photon count value at the nth time interval.
[0118] S1036: Obtain a jump point in the cumulative sum function.
[0119] The constructed cumulative sum function has a jump point, and the processing device obtains the jump point in the cumulative sum function.
[0120] S1037: Determine the rising edge position according to the position of the jump point.
[0121] The processing device determines the position of the jump point as the rising edge position of the target histogram.
[0122] S104: Acquire time information corresponding to the rising edge position, and calculate distance information of the target to be measured according to the time information.
[0123] The processing device obtains the time information corresponding to the rising edge position, and the time information corresponding to the rising edge position is the flight time. The processing device can calculate the distance information of the target to be measured based on the time information and the speed of light.
[0124] It is understandable that in the prior art, the peak position is usually determined, and the time corresponding to the peak position is used as the flight time to find the distance information of the target. However, in the ranging process, the trigger signal of the light pulse is triggered synchronously with the timing signal, and the actual calculated flight time is the time of the light pulse emission (rising edge) as the start time, and the time at the reflected pulse peak (middle position) as the end time, and the calculated flight time has a time difference of half the pulse width. Therefore, in actual design, it is usually necessary to adjust the rising edge of the emitted light pulse at the transmitting end to be steeper, so that the rising edge of the emitted pulse is close to the pulse peak position, which can reduce the influence of the time difference on the final distance measurement result. In an embodiment of the present application, a photon emission signal and a photon reflection signal are obtained; a target histogram is generated according to the photon emission signal and the photon reflection signal; the rising edge position in the target histogram is obtained; the time information corresponding to the rising edge position is obtained, and the distance information of the target to be measured is calculated according to the time information. In the scheme of the present application, an edge detection processing method for determining the rising edge is adopted, and the distance information of the target to be measured is calculated according to the time information corresponding to the rising edge position, which can improve the accuracy of the calculated distance, especially when the received waveform is distorted due to photon accumulation, for example, the waveform narrowing and the peak shift forward will not affect the pulse rising edge position, thereby further improving the accuracy of the calculated distance, and can also reduce the regulation procedure for the transmitter to transmit the pulse.
[0125] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0126] See also Fig. 9 , Fig. 9 Schematic diagram of a distance measuring device provided in the third embodiment of the present application. The units included are used to perform Figure 2 , Figures 4 to 8 For details, please refer to the steps in the corresponding embodiment. Figure 2 , Figures 4 to 8 For the convenience of explanation, only the parts related to this embodiment are shown. Fig. 9 , the distance measuring device 9 comprises:
[0127] A first acquisition unit 910 is used to acquire a photon emission signal and a photon reflection signal;
[0128] A generating unit 920 is used to obtain the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generate a target histogram according to the flight time; the abscissa of the target histogram is the flight time, and the ordinate of the target histogram represents the photon count value;
[0129] A second acquisition unit 930 is used to acquire the rising edge position in the target histogram;
[0130] The processing unit 940 is used to obtain the time information corresponding to the rising edge position, and calculate the distance information of the target to be measured according to the time information.
[0131] Further, the second acquisition unit 930 is specifically configured to:
[0132] Determine a received waveform according to the target histogram, and construct a fitting function curve according to the received waveform;
[0133] A target point satisfying a preset slope value condition is obtained in the fitting function curve, and a rising edge position is determined according to the target point.
[0134] Further, the second acquisition unit 930 is specifically configured to:
[0135] Obtaining a difference in photon count values between two adjacent time intervals in the target histogram;
[0136] The rising edge position is determined according to the difference.
[0137] Further, the second acquisition unit 930 is specifically configured to:
[0138] Constructing a cumulative sum function corresponding to the target histogram;
[0139] Obtaining a jump point in the cumulative sum function;
[0140] The rising edge position is determined according to the position of the jump point.
[0141] Further, the generating unit 920 includes:
[0142] An initial generation unit, used to obtain the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generate an initial histogram according to the flight time;
[0143] A correction unit is used to correct the initial histogram to obtain a target histogram.
[0144] Furthermore, the correction unit is specifically used for:
[0145] generating a correction function according to the initial histogram;
[0146] The initial histogram is corrected according to the inverse function of the correction function to obtain a target histogram.
[0147] Further, the generating unit 920 is specifically configured to:
[0148] Determine the flight time information of the photon from emission to collection according to the photon emission signal and the reflection signal;
[0149] A time code is determined based on the time-of-flight information, and a target histogram is generated based on the time code.
[0150] Fig.10 Schematic diagram of a distance measuring device provided in the fourth embodiment of the present application. Fig.10 As shown, the distance measurement device 10 of this embodiment includes: a processor 100, a memory 101, and a computer program 102 stored in the memory 101 and executable on the processor 100, such as a distance measurement program. When the processor 100 executes the computer program 102, the steps in the above-mentioned distance measurement method embodiments are implemented, such as Figure 1 Alternatively, when the processor 100 executes the computer program 102, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Fig. 9 Functions of modules 910 to 940 are shown.
[0151] Exemplarily, the computer program 102 may be divided into one or more modules / units, which are stored in the memory 101 and executed by the processor 100 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 102 in the device 10 for establishing a network connection. For example, the computer program 102 may be divided into a first acquisition unit, a generation unit, a second acquisition unit, and a processing unit, and the specific functions of each unit are as follows:
[0152] A first acquisition unit, used to acquire a photon emission signal and a photon reflection signal;
[0153] A generating unit, configured to generate a target histogram according to the photon emission signal and the photon reflection signal; the abscissa of the target histogram represents the flight time of the photons corresponding to the photon signals, and the ordinate of the target histogram represents the photon count value;
[0154] A second acquisition unit, used to acquire the rising edge position in the target histogram;
[0155] The processing unit is used to obtain the time information corresponding to the rising edge position, and calculate the distance information of the target to be measured according to the time information.
[0156] The distance measurement device may include, but is not limited to, a processor 100 and a memory 101. Those skilled in the art will appreciate that Fig.10 This is only an example of the distance measuring device 10 and does not constitute a limitation of the distance measuring device 10. The distance measuring device 10 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the distance measuring device may also include input and output devices, network access devices, buses, etc.
[0157] The processor 100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0158] The memory 101 may be an internal storage unit of the distance measuring device 10, such as a hard disk or memory of the distance measuring device 10. The memory 101 may also be an external storage device of the distance measuring device 10, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the distance measuring device 10. Further, the distance measuring device 10 may also include both an internal storage unit of the distance measuring device 10 and an external storage device. The memory 101 is used to store the computer program and other programs and data required by the distance measuring device. The memory 101 may also be used to temporarily store data that has been output or is to be output.
[0159] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0160] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0161] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.
[0162] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0163] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0164] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0165] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0166] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0167] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0168] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0169] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A distance measurement method, characterized in that: Applied to a processing device, the method comprises: Acquire photon emission signals and photon reflection signals; Acquire the flight time of the photons from emission to reception according to the photon emission signal and the photon reflection signal, and generate a target histogram according to the flight time; the abscissa of the target histogram is the flight time, and the ordinate of the target histogram represents the photon count value; Obtaining a rising edge position in the target histogram; Acquire the time information corresponding to the rising edge position, and calculate the distance information of the target to be measured according to the time information; The step of acquiring the flight time of photons from emission to reception according to the photon emission signal and the photon reflection signal, and generating a target histogram according to the flight time, comprises: The flight time of the photons from emission to reception is obtained according to the photon emission signal and the photon reflection signal, and an initial histogram is generated according to the flight time; a correction function is generated according to the initial histogram; wherein the correction function is used to correct the measurement error caused by the photon pile-up effect in the initial histogram, and the correction function is a time domain function or a frequency domain function, and the time domain function is constructed by using the relationship between different detection efficiencies of the pixel array and the peak offset caused by the photon pile-up effect, or by using the relationship between different target distances and the peak offset caused by the photon pile-up effect; The initial histogram is corrected according to the inverse function of the correction function to obtain a target histogram.
2. The distance measurement method according to claim 1, characterized in that: The obtaining the rising edge position in the target histogram comprises: Determine a received waveform according to the target histogram, and construct a fitting function curve according to the received waveform; A target point satisfying a preset slope value condition is obtained in the fitting function curve, and a rising edge position is determined according to the target point.
3. The distance measurement method according to claim 1, characterized in that: The obtaining the rising edge position in the target histogram comprises: Obtaining a difference in photon count values between two adjacent time intervals in the target histogram; The rising edge position is determined according to the difference.
4. The distance measurement method according to claim 1, characterized in that: The obtaining the rising edge position in the target histogram comprises: Constructing a cumulative sum function corresponding to the target histogram; Obtaining a jump point in the cumulative sum function; The rising edge position is determined according to the position of the jump point.
5. The distance measurement method according to claim 1, characterized in that: The step of acquiring the flight time of the photons from emission to reception according to the photon emission signal and the photon reflection signal, and generating an initial histogram according to the flight time, comprises: Determine the flight time information of the photon from emission to collection according to the photon emission signal and the reflection signal; A time code is determined based on the time-of-flight information, and the initial histogram is generated based on the time code.
6. A distance measurement system, characterized in that: include: Transmitters, collectors, and processing equipment; The transmitter is used to generate a photon emission signal and emit a pulse light beam to a target to be measured after receiving an emission instruction sent by the processing device; The collector is used to collect photons in the pulse light beam reflected by the target to be measured and generate a photon reflection signal; The collector includes a pixel array; The processing device is used to obtain the photon emission signal and the photon reflection signal corresponding to the target to be measured; obtain the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generate a target histogram according to the flight time; the abscissa of the target histogram is the flight time, and the ordinate of the target histogram represents the photon count value; obtain the rising edge position in the target histogram; obtain the time information corresponding to the rising edge position, and calculate the distance information of the target to be measured according to the time information; Wherein, acquiring the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generating a target histogram according to the flight time, includes: Acquire the flight time of the photon from emission to reception according to the photon emission signal and the photon reflection signal, and generate an initial histogram according to the flight time; Correcting the initial histogram to obtain a target histogram; generating a correction function according to the initial histogram; wherein the correction function is used to correct the measurement error caused by the photon pile-up effect in the initial histogram, and the correction function is a time domain function or a frequency domain function, and the time domain function is constructed by using the relationship between different detection efficiencies of the pixel array and the peak offset caused by the photon pile-up effect, or by using the relationship between different target distances and the peak offset caused by the photon pile-up effect; The initial histogram is corrected according to the inverse function of the correction function to obtain a target histogram.
7. A distance measuring device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
