WO2022161481A1 - Time of flight distance measurement method and system, and device - Google Patents

Time of flight distance measurement method and system, and device Download PDF

Info

Publication number
WO2022161481A1
WO2022161481A1 PCT/CN2022/074832 CN2022074832W WO2022161481A1 WO 2022161481 A1 WO2022161481 A1 WO 2022161481A1 CN 2022074832 W CN2022074832 W CN 2022074832W WO 2022161481 A1 WO2022161481 A1 WO 2022161481A1
Authority
WO
WIPO (PCT)
Prior art keywords
photons
time
histogram
total number
search
Prior art date
Application number
PCT/CN2022/074832
Other languages
French (fr)
Chinese (zh)
Inventor
刘浏
闫敏
Original Assignee
深圳奥锐达科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳奥锐达科技有限公司 filed Critical 深圳奥锐达科技有限公司
Publication of WO2022161481A1 publication Critical patent/WO2022161481A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • G01S17/10Systems determining position data of a target for measuring distance only using transmission of interrupted, pulse-modulated waves
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/4802Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00 using analysis of echo signal for target characterisation; Target signature; Target cross-section

Definitions

  • the present invention relates to the technical field of ranging, in particular to a time-of-flight ranging method and related systems and equipment.
  • the time of flight principle 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 aerial vehicles, AR/VR and other fields.
  • the distance measurement system based on the time-of-flight principle usually includes an emitter and a collector. The emitter is used to emit a pulsed beam to illuminate the target field of view, and the collector is used to collect the reflected beam, and the time-of-flight of the beam from the emission to the reflected reception is calculated to calculate the distance of the object. .
  • the time-to-digital converter is used to record the flight time of photons from emission to collection and generate photon signals, and use the photon signals to find the corresponding time bin (time interval) in the histogram circuit, so that the The photon count value is increased by 1.
  • the histogram of the photon count corresponding to the time signal can be obtained by statistics, the pulse peak position in the histogram can be determined, and the distance of the object can be calculated according to the flight time corresponding to the pulse peak position.
  • the size of the time interval is related to the resolution of the system.
  • the transmission of data and subsequent computations are complex and time-consuming.
  • the purpose of the present invention is to overcome the deficiencies of the above-mentioned prior art, and to propose a time-of-flight ranging method, system and device to solve at least one technical problem in the above-mentioned prior art.
  • the present invention adopts the following technical solutions:
  • a time-of-flight ranging method comprising: acquiring an initial histogram, wherein the initial histogram includes continuous time intervals, the time intervals include pulses collected by a collector after a pulse beam emitted by a transmitter is reflected by a target The count value of photons in the light beam; determine a search interval, the search interval includes a plurality of time intervals, and the number of the plurality of time intervals is determined according to the pulse width of the pulse beam and the size of the time interval; based on the search interval pair
  • the initial histogram is searched, and the search interval with the largest total number of photons and the corresponding histogram index are extracted; the histogram index corresponds to the first time interval in the search interval; the search interval with the largest total number of photons is used as the second
  • the histogram calculates the second flight time, and calculates the target flight time according to the second flight time and the first flight time corresponding to the first flight time in the initial histogram of the histogram index of the search
  • the searching the initial histogram based on the search interval, and extracting the search interval with the largest total number of photons and the corresponding histogram index includes: calculating a sliding sum method in each search interval.
  • the total number of photons is searched in sequence, where the total number of photons in the first search interval of the initial search is taken as the total number of first photons, and the total number of photons in each search interval of the subsequent search is recorded as the total number of second photons; if the total number of first photons is less than the total number of second photons, update the value of the total number of first photons to the current value of the total number of second photons, and then perform the next search until the last search interval is reached, and extract the search interval with the largest total number of photons and its corresponding The histogram index of .
  • the method further includes: calculating the signal-to-noise ratio of the signal corresponding to the search interval with the largest number of extracted photons, and judging whether the extraction result is accurate according to the signal-to-noise ratio.
  • the determining whether the extraction result is accurate according to the signal-to-noise ratio includes:
  • the ratio threshold is obtained according to the method of pre-calibration or experimental measurement.
  • the calculation process of the signal-to-noise ratio includes:
  • SNR is the signal-to-noise ratio
  • PluseBinDate represents the total number of photons at the pulse position
  • DCValue represents the number of noise photons
  • PluseBinNum represents the number of time intervals corresponding to the pulse, that is, the number of time intervals in the search interval.
  • the calculating the number of noise photons according to the initial histogram includes:
  • the total value of photon counts in the local area is averaged according to the number of time intervals in the local area, and recorded as the number of noise photons.
  • the calculating the number of noise photons according to the initial histogram includes:
  • a region other than the pulse position in the initial histogram is selected, and the total value of photon counts in this region is averaged according to the number of time intervals in this region, and recorded as the number of noise photons.
  • the present invention also proposes a time-of-flight ranging system, comprising:
  • a transmitter for emitting a pulsed beam towards an object
  • a collector for collecting photons in the pulsed beam reflected back by the object and forming a photon signal
  • a processing circuit connected with the transmitter and the collector, is used for processing the photon signal to form an initial histogram, and processing the initial histogram according to the aforementioned time-of-flight ranging method to obtain the object's distance information.
  • the present invention further provides a time-of-flight ranging device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the foregoing when the processor executes the computer program Time-of-flight ranging method.
  • the ranging method of the present invention determines the position of the pulse signal by searching the initial histogram, and extracts the pulse signal for independent calculation, which can greatly save the calculation time, and the setting of the judgment conditions has ensured
  • the extracted pulse signal is an effective signal, which makes the calculated flight time more accurate.
  • FIG. 1 is a schematic diagram of a time-of-flight ranging system according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a time-of-flight ranging method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an initial histogram in an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a second histogram in an embodiment of the present invention.
  • FIG. 5 is a flowchart of a time-of-flight ranging method according to another embodiment of the present invention.
  • the time-of-flight ranging system 10 includes a transmitter 11 , a collector 12 , and a processing circuit 13 connected to the transmitter and the collector at the same time.
  • the transmitter 11 includes a light source 111 composed of one or more lasers, an emission optical element 112 and a driver 113, etc.
  • the light source 111 is used to transmit a pulsed beam 30 to the target object 20, and at least part of the pulsed beam is reflected by the target object to form a reflected beam 40. to collector 12.
  • the collector 12 includes a pixel array 121 composed of a plurality of pixels for collecting photons in the reflected beam 40 and outputting photon signals, and the processing circuit 13 synchronizes the trigger signals of the transmitter 11 and the collector 12 to calculate the photons in the beam from the emission. flight time required to receive.
  • the light source 111 is a VCSEL array light source chip formed by growing multiple VCSEL light sources on a single semiconductor substrate.
  • the light source 111 can emit a pulse beam at a certain frequency (pulse period) under the control of the driver 113, and the pulse beam is projected onto the target scene through the emission optical element 112 to form an illumination spot, wherein the frequency is set according to the measurement distance.
  • the collector 12 includes the pixel array 121, the filter unit 122, the receiving optical element 123, etc.
  • the receiving optical element 123 images the spot beam reflected by the target onto the pixel array 121
  • the pixel array 121 includes a plurality of pixels for collecting photons
  • the The pixel may be one of the single-photon devices that collect photons, such as APD, SPAD, SiPM, etc.
  • the photon collected by the pixel array 121 is regarded as a photon detection event and a photon signal is output.
  • the pixel array 121 comprises a plurality of SPADs that can respond to an incident single photon and output a photon signal indicative of the corresponding arrival time of the received photon at each SPAD.
  • a readout circuit (not shown in the figure) composed of one or more of a signal amplifier, a time-to-digital converter (TDC), a digital-to-analog converter (ADC) and other devices connected to the pixel array 121 .
  • TDC time-to-digital converter
  • ADC digital-to-analog converter
  • these circuits can be integrated with the pixels as a part of the collector or as a part of the processing circuit 13 , which will be regarded as a part of the processing circuit 13 for the convenience of description later.
  • the processing circuit 13 is used for receiving the photon signal and processing to calculate the flight time of the photon from emission to reception, and further calculates the distance information of the target.
  • the processing circuit 13 includes a TDC circuit and a histogram memory, the TDC circuit receives the photon signal for determining the time of flight of the photon from emission to acquisition, and generates a time code representing the time of flight information, and uses the time code to find the histogram
  • the corresponding position in the memory, and the value stored in the corresponding position of the histogram memory is increased by "1"
  • the initial histogram is constructed according to the position of the histogram memory as the time bin (time interval).
  • the ranging method in which the processing circuit 13 receives the photon signal and processes it to calculate the time-of-flight of the photon from emission to reception includes the following steps S1 to S4:
  • the processing circuit 13 controls the transmitter 11 to emit a pulse beam toward the target area, and part of the pulse beam reflected by the target is incident on the collector 12, and the collector 12 collects photons in the reflected pulse beam and generates
  • the photon signal containing the time-of-flight of the photon is received by the processing circuit 13 and processed to form an initial histogram.
  • the initial histogram includes consecutive time intervals, each time interval representing the count value of photons collected by the collector during the detection period.
  • the histogram which may be referred to as detection data, is used to represent the temporal distribution of photons collected by the collector 12 during the detection period.
  • FIG. 3 shows an exemplary initial histogram of an embodiment of the present invention.
  • the time interval 301 is in the range of ten to several tens of picoseconds, and the photon signal of a pulsed beam is correspondingly distributed in multiple consecutive time intervals in the histogram, for example, the corresponding pulse of a pulsed beam in the histogram
  • the position is the interval 304
  • the time of the time interval where the pulse peak position is located is selected as the flight time of the pulse beam
  • the middle amount of the time interval is generally selected as the time of the time interval.
  • the pulse width of the pulse beam is 2ns
  • the size of the time interval in the histogram is 100ps
  • the photon signal of one pulse is correspondingly distributed in 20 consecutive time intervals in the histogram, that is, in the initial histogram
  • the number of time intervals at the mid-pulse position is 20 (only 5 are exemplarily drawn in the figure).
  • the numerical value of this embodiment is used as an example for description, but the numerical value cannot be used as a limitation of the present invention.
  • the number of noise photons is calculated from the initial histogram.
  • the number of noise photons is calculated by intercepting a local area from an initial histogram. As shown in the initial histogram shown in FIG. 3 , a local area away from the pulse peak position is selected according to the pulse peak position in the initial histogram for calculating noise. number of photons. For example, taking the time interval at the middle position of the initial histogram as the dividing line, if the pulse peak position is in the second half of the initial histogram, select a local area in the first half of the initial histogram to calculate the number of noise photons, that is, select the local area and calculate the number of noise photons.
  • the average number of photons in all time intervals in this area is recorded as the number of noise photons.
  • the pulse peak position is in the first half of the initial histogram, select a local area from the second half to calculate the number of noise photons.
  • the number of noise photons is calculated according to all the time intervals of the initial histogram, that is, the total number of photons in the whole time interval is excluded from the sum of the number of photons at the pulse peak position, and the average value is recorded as the number of noise photons.
  • the specific calculation process as follows:
  • DCValue represents the number of noise photons
  • BinValueSum represents the total number of photons in all time intervals
  • PluseBinDate represents the total number of photons at the pulse position
  • BinNum represents the number of all time intervals
  • PluseBinNum represents the number of time intervals corresponding to the pulse.
  • S2 Determine pulse extraction conditions according to the number of noise photons, and search the initial histogram according to the pulse extraction conditions to extract at least one search interval and a corresponding histogram index that meet the pulse extraction conditions;
  • the search interval includes a plurality of time intervals, the number of time intervals in the search interval is determined according to the pulse width of the pulse beam emitted by the transmitter, and the histogram index corresponds to the first time interval in the search interval.
  • an index is added to the initial histogram to sort all the time intervals, then the corresponding time interval can be quickly located and the flight time corresponding to the time interval can be determined according to the histogram index.
  • the histogram is searched, the search interval satisfying the pulse extraction condition is determined, and all the time intervals in the search interval and the histogram index corresponding to the first time interval in the search interval are extracted.
  • the buffer register is set to use FIFO (first-in, first-out) mode.
  • the pulse extraction condition is set as the pulse extraction threshold Th, and the pulse extraction threshold is calculated according to the number of noise photons calculated in step S1.
  • the search interval conforms to the pulse extraction condition, and if the search interval is extracted, it is considered that a pulse has been searched in the initial histogram.
  • the main purpose of the search is to completely extract multiple time intervals reflecting a certain pulse signal in the initial histogram for separate calculation.
  • the search interval includes multiple time intervals, and the number of time intervals depends on the pulse width and the size of the time interval. Sure.
  • the search interval is set to include 20 time intervals (that is, the photon signal corresponding to one pulse), and the interval 302 shown in FIG. 3 is recorded as a search interval (only 5 time intervals are drawn exemplarily).
  • the total number of noise photons contained in any search interval is determined according to the number of noise photons calculated in step S1 (the number of noise photons calculated in step S1 is multiplied by the number of time intervals in the search interval to obtain the total number of noise photons in the search interval), and set A number of photons slightly higher than the total number of noise photons is used as the pulse extraction threshold. If the total number of photons in a certain search interval is greater than the pulse extraction threshold, the search interval is extracted and stored in the buffer register.
  • the search of the initial histogram adopts the sliding sum method, that is, select any time interval as the starting point, select the time interval satisfying the preset number to form a search interval, calculate the total number of photons in the search interval, and judge whether the total number of photons is greater than the pulse extraction. threshold. If it is greater than the pulse extraction threshold, the search interval is considered to be a pulsed beam signal, and all the time intervals in the search interval and the corresponding histogram index are extracted and stored in the pre-stored buffer register, and the histogram index corresponds to the search interval. the first time interval.
  • the sliding sum method is specifically:
  • ValueSum(index) represents the total number of photons in the search interval with a certain index index as the starting point
  • value(index+i) represents the number of photons in the time interval of index (index+i).
  • the first time interval starts to perform sliding summation, then the index is set to the histogram index index1 of the first time interval, that is, from the first time interval as the starting point, 20 consecutive time intervals are selected for photon count summation. If the total number of photons is less than the pulse extraction threshold, the index is adjusted to index2, and the second time interval is used as the starting point to select 20 time intervals to calculate the total number of photons.
  • the search interval and the corresponding histogram index index2 are extracted and stored in the buffer register. , as shown in the search interval 304 in FIG. 3 . And continue to adjust the index to index3 to search with the third time interval as the starting point, until the index is adjusted to the last histogram index and the search is completed.
  • the pulse extraction condition is set as the pulse extraction threshold, since a certain search interval extracted may be a false trigger caused by a noise signal, in order to improve the extraction accuracy, it is necessary to filter the extracted search intervals. also includes:
  • Step S21 setting filtering conditions, and filtering the extracted search interval.
  • the screening condition is the received pulse signal strength
  • the proposed search interval is screened according to the total number of received pulse signal photons or the pulse signal-to-noise ratio. For example, taking the total number of photons receiving the pulse signal as the screening condition, for the extracted search interval, if the total number of photons in a certain search interval is much lower than the total number of photons in other search intervals, the search interval is considered to be a noise signal, and the corresponding The search range is eliminated. Another example is to select the pulse signal-to-noise ratio to filter the extracted search interval.
  • the calculation formula of the signal-to-noise ratio SNR is:
  • PluseBinDate is used to represent the total number of photons at the pulse position, that is, ValueSum in step S1
  • PluseBinNum represents the number of time intervals corresponding to the pulse, that is, the size of the search interval.
  • the filtering condition is the correlation between the received pulse waveform and the transmitted pulse waveform.
  • Each extracted search interval can restore a received waveform. If it is a valid signal, the correlation between the received waveform and the transmitted pulse waveform is high. Based on this, the low correlation can be eliminated by calculating the correlation between the received waveform and the transmitted pulse waveform.
  • the search interval corresponding to the received waveform is the noise signal.
  • the pulse filter conditions to filter the extracted search interval, the influence of the noise signal can be reduced; on this basis, the pulse extraction threshold in step S2 can be appropriately relaxed to allow the extraction to a certain extent. noise signal, which is conducive to the extraction of weak pulse signals.
  • step S3 can be executed to calculate the flight time.
  • multiple search areas are still retained after screening. For example, 2-3 search areas may still be retained, and multiple search areas need to be sorted to select the target.
  • the time-of-flight calculation is performed on the search interval corresponding to the echo signal, which specifically includes:
  • Step S22 Sort the filtered search intervals according to the preset multi-echo mode, and select a corresponding search interval.
  • the preset multi-echo mode includes the number of echoes and sorting characteristics, and needs to be selected according to the actual application scenario and requirements.
  • the sorting feature includes echo intensity or echo time.
  • the echo intensity can be represented by the total number of photons in each search interval. The strongest echo or the weakest echo can be determined according to the total number of photons; the echo time can be used in each search interval.
  • the corresponding histogram index is represented, and the nearest echo or the farthest echo can be determined according to the order of the indices.
  • the material of the protective cover is generally transparent glass.
  • the transmitter emits a pulsed beam through the protective cover and projects to the target field of view, part of the pulsed beam is reflected by the protective cover. Enter the collector, and finally form an echo signal in the histogram.
  • the sorting feature of the multi-echo mode combined with the echo time can be preset, and the nearest echo is regarded as the protection For the echo signal reflected back by the cover, it is not necessary to perform time-of-flight calculation on the search interval corresponding to the echo, and the calculation of step S3 is performed from the second echo.
  • a false echo signal will be generated before the true echo of the target. In this case, a longer echo needs to be selected to avoid false echoes If the influence of the echo signal is not affected, you can set the dual echo and the farthest echo to sort the echo signals accordingly. You can directly select the farthest echo to calculate the flight time, and avoid the interference of false echoes.
  • the emitted pulse beam when there is glass in the acquisition target or a target located behind the glass is acquired, most of the emitted pulse beam will pass through the glass and irradiate on the target due to the reflectivity and transmittance of the glass itself, but there are still some A part of the pulse beam is reflected by the glass to form a reflected beam and incident into the collector, and two echo signals are formed in the histogram. Due to the low reflectivity of the glass, the intensity difference between the two echo signals formed is large, then The search interval corresponding to the strongest echo is selected for time-of-flight calculation by setting the echo intensity sorting.
  • the preset multi-echo mode and pulse sorting mode can be arbitrarily set according to the actual situation, and finally one or more search intervals are selected to perform the calculation of step S3.
  • the pulse extraction condition further includes calculating the correlation between the received pulse waveform and the transmitted pulse waveform, or calculating the pulse signal-to-noise ratio in the search interval.
  • the threshold value of waveform correlation degree or signal-to-noise ratio is set, and the search interval higher than the threshold value and the corresponding histogram index are determined and extracted and stored in the buffer register. If the conditions are met, steps S21 and S22 need not be executed again.
  • the formula for calculating the correlation between the received pulse waveform and the transmitted pulse waveform is:
  • weight(i) represents the weight applied to the ith time interval
  • histogram is also searched by the method of sliding summation. The search process is the same as above, and will not be repeated here.
  • the calculation formula of the pulse signal-to-noise ratio method is:
  • step S3 Calculate the second flight time using the search interval finally extracted in step S2 as the second histogram, and calculate the first flight time corresponding to the first flight time in the initial histogram according to the second flight time and the histogram index Time calculates the time-of-flight of a pulsed beam from launch to reception.
  • FIG. 4 is a schematic diagram of a second histogram in an embodiment of the present invention.
  • the corresponding flight time is calculated separately as the second histogram, which is recorded as the second flight time.
  • the size of the time interval is 100ps
  • the number of n is 20
  • the ordinate range of the second histogram is 0-2ns.
  • the second flight time is calculated by using the centroid method, and the specific calculation formula is:
  • t 2 represents the second flight time
  • T j represents the flight time corresponding to each time interval
  • C j represents the number of photons contained in each time interval
  • j represents the sequence number of the time interval
  • n represents all the time intervals in the search interval quantity.
  • the first time of flight t 1 corresponding to the first time interval 305 in the search interval in the initial histogram can be correspondingly obtained, then the time of flight of the pulse beam from emission to reception is the first flight time Sum with the second flight time.
  • the second histogram before using the second histogram to calculate the second time of flight, the second histogram can be filtered according to the number of noise photons calculated in step S1, so as to reduce the influence of noise photons and improve the accuracy of the calculation.
  • step S4 use the time of flight of the pulsed beam calculated in step S3 to calculate the distance of the object from the time of flight to the receiving.
  • FIG. 5 is a flowchart of a distance measurement method according to another embodiment of the present invention.
  • the distance measurement method includes the following steps:
  • the processing circuit 13 controls the transmitter 11 to emit a pulse beam toward the target area, and part of the pulse beam reflected by the target is incident on the collector 12 , and the collector 12 collects photons in the reflected pulse beam. and generate a photon signal including the time of flight of the photon, the processing circuit 13 receives the photon signal and processes it to form an initial histogram, the initial histogram includes continuous time intervals, and each time interval is used to represent the photon collected by the collector during the detection period. count value.
  • S52 Determine a search interval, where the search interval includes a plurality of time intervals, and the number of the time intervals is determined according to the pulse width of the pulse beam.
  • the search interval is set to include 20 time intervals, as shown in interval 302 in FIG.
  • the time interval according to this example, should include 20 time intervals) can be recorded as a search interval.
  • an index is added to the initial histogram to sort all the time intervals, then the corresponding time interval can be quickly located and the flight time corresponding to the time interval can be determined according to the histogram index. Then, the initial histogram is searched according to the search interval determined in step S52, and the search interval with the largest total number of photons and the corresponding histogram index are extracted. The total number of photons in each search interval is calculated by the sliding sum method, the total number of photons in the initial search is taken as the total number of first photons, and the total number of photons in subsequent searches is recorded as the total number of second photons.
  • index represents the histogram index
  • index represents the histogram index of the first time interval in the search interval
  • PluseBinNum represents the size of the search interval
  • the search for the initial histogram starts from the first time interval in the histogram, and the index is set to the histogram index index1 of the first time interval, that is, from the first time interval as the starting point, select continuous 20 time intervals are used as the first search interval to perform photon count summation, record the summation result as the first total number of photons and pre-store, and then select the second search interval as the starting point to calculate the total number of photons is the total number of second photons.
  • the search for the initial histogram may start at any time interval selected for the histogram.
  • the method may further include: calculating the signal-to-noise ratio of the signal corresponding to the search interval with the largest total number of extracted photons, and judging whether the extraction result is accurate according to the signal-to-noise ratio.
  • a search interval can still be extracted for calculating the flight time, which may cause measurement errors. Therefore, the searched interval can also be judged to verify the accuracy of the extraction result.
  • the preset threshold may be determined by methods such as pre-calibration, experimental measurement, and the like.
  • the number of noise photons is calculated from the initial histogram.
  • the number of noise photons is calculated by intercepting a local area from an initial histogram. As shown in the initial histogram shown in FIG. 3 , a local area away from the pulse peak position is selected according to the pulse peak position in the initial histogram for calculating noise. number of photons. For example, taking the time interval at the middle position of the initial histogram as the dividing line, if the pulse peak position is in the second half of the initial histogram, select a local area in the first half of the initial histogram to calculate the number of noise photons, that is, select the local area and calculate the number of noise photons. The average number of photons in all time intervals in this area is recorded as the number of noise photons. Similarly, if it is located in the first half, select a local area from the second half to calculate the number of noise photons.
  • the number of noise photons is calculated according to all the time intervals of the initial histogram, that is, the total number of photons in the entire time interval is removed from the sum of the number of photons at the pulse position, and the average value is recorded as the number of noise photons.
  • the specific calculation process is as follows :
  • DCValue represents the number of noise photons
  • BinValueSum represents the total number of photons in all time intervals
  • PluseBinDate represents the total number of photons at the pulse position, that is, the total number of photons in the search interval
  • BinNum represents the number of all time intervals
  • PluseBinNum represents the corresponding pulses
  • the number of time intervals that is, the number of time intervals in the search interval (that is, the size of the search interval).
  • step S54 is performed according to the extracted search interval; if not, the distance measurement of the next frame is performed.
  • a time-of-flight ranging device including: a memory, a processor, and a computer program stored in the memory and executable on the processor; wherein the processor When the computer program is executed, steps S1-S4 of the time-of-flight ranging method described in the foregoing embodiments are implemented; or step S51 of the time-of-flight ranging method described in the foregoing embodiments is realized when the processor executes the computer program -S54.
  • Embodiments of the present invention may include or utilize a special purpose or general purpose computer including computer hardware, as discussed in more detail below. Embodiments within the scope of the present invention also include physical and other computer-readable media for carrying or storing computer-executable instructions and/or data structures. Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computer system. Computer-readable media that store computer-executable instructions are physical storage media. Computer-readable media carrying computer-executable instructions are transmission media. Thus, by way of example and not limitation, embodiments of the present invention may include at least two distinct computer-readable media: physical computer-readable storage media and transmission computer-readable media.
  • An embodiment of the present application further provides a computer device, the computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer During the program, at least steps S1-S4 of the time-of-flight ranging method described in the foregoing embodiments are implemented, or when the processor executes the computer program, steps S51-S51-5 of the time-of-flight ranging method described in the foregoing embodiments are realized. S54.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

A time of flight distance measurement method and system, and a device. The method comprises: acquiring an initial histogram, wherein the initial histogram comprises a continuous time interval, and the time interval includes a count value of photons in a pulse beam that is emitted by a transmitter, reflected by a target and collected by a collector (S51); determining a search section, wherein the search section comprises a plurality of time intervals, and the number of time intervals is determined according to the pulse width of the pulse beam and the size of the time interval (S52); performing a search on the initial histogram on the basis of the search section, and extracting a search section with the maximum total number of photons, and a corresponding histogram index, wherein the histogram index corresponds to the first time interval in the search section (S53); and calculating a second time of flight by means of taking the search section with the maximum total number of photons as a second histogram, and calculating a target time of flight according to the second time of flight, and a first time of flight, in the initial histogram, corresponding to the histogram index of the search section with the maximum total number of photons (S54).

Description

一种飞行时间测距方法、系统和设备A time-of-flight ranging method, system and device
本申请要求于2020年1月28日提交中国专利局,申请号为202110120018.5,发明名称为“一种飞行时间测距方法、系统和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on January 28, 2020 with the application number 202110120018.5 and the invention title is "a time-of-flight ranging method, system and device", the entire contents of which are incorporated by reference in this application.
技术领域technical field
本发明涉及测距技术领域,尤其涉及一种飞行时间测距方法和相关的系统与设备。The present invention relates to the technical field of ranging, in particular to a time-of-flight ranging method and related systems and equipment.
背景技术Background technique
利用飞行时间原理(ToF,Time of Flight)可以对目标进行距离测量以获取包含目标的深度值的深度图像,而基于飞行时间原理的距离测量系统已被广泛应用于消费电子、无人架驶、AR/VR等领域。基于飞行时间原理的距离测量系统通常包括发射器和采集器,利用发射器发射脉冲光束照射目标视场并利用采集器采集反射光束,计算光束由发射到反射接收的飞行时间进而来计算物体的距离。其中,时间数字转换器(TDC)用于记录光子从发射到被采集的飞行时间并生成光子信号,利用该光子信号寻找直方图电路中相应的时间bin(时间间隔),使得该时间间隔内的光子计数值加1,当进行大量重复脉冲探测后,可以统计得到时间信号对应的光子计数的直方图,确定直方图中的脉冲峰值位置,根据脉冲峰值位置处对应的飞行时间计算物体的距离。The time of flight principle (ToF, Time of Flight) 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 aerial vehicles, AR/VR and other fields. The distance measurement system based on the time-of-flight principle usually includes an emitter and a collector. The emitter is used to emit a pulsed beam to illuminate the target field of view, and the collector is used to collect the reflected beam, and the time-of-flight of the beam from the emission to the reflected reception is calculated to calculate the distance of the object. . Among them, the time-to-digital converter (TDC) is used to record the flight time of photons from emission to collection and generate photon signals, and use the photon signals to find the corresponding time bin (time interval) in the histogram circuit, so that the The photon count value is increased by 1. After a large number of repetitive pulse detections are performed, the histogram of the photon count corresponding to the time signal can be obtained by statistics, the pulse peak position in the histogram can be determined, and the distance of the object can be calculated according to the flight time corresponding to the pulse peak position.
基于飞行时间原理的测距系统中,时间间隔的大小与系统的分辨率相关,为了提升系统的分辨率通常需要设置较小的时间间隔,相应的时间间隔的数量增多并导致存储的数据量,导致数据的传输以及随后实施的计算较为复杂且耗时。In the ranging system based on the time-of-flight principle, the size of the time interval is related to the resolution of the system. In order to improve the resolution of the system, it is usually necessary to set a smaller time interval, and the number of corresponding time intervals increases and leads to the amount of stored data. As a result, the transmission of data and subsequent computations are complex and time-consuming.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于克服上述现有技术的不足,提出一种飞行时间测距方法、系统和设备,以解决上述现有技术中至少一种技术问题。The purpose of the present invention is to overcome the deficiencies of the above-mentioned prior art, and to propose a time-of-flight ranging method, system and device to solve at least one technical problem in the above-mentioned prior art.
为达上述目的,本发明采用以下技术方案:For achieving the above object, the present invention adopts the following technical solutions:
一种飞行时间测距方法,包括:获取初始直方图,所述初始直方图包括连续的时间间隔,所述时间间隔内包含由发射器发出的脉冲光束被目标反射后、经由采集器采集的脉冲光束中光子的计数值;确定搜索区间,所述搜索区间包括多个时间间隔,所述多个时间间隔的数量根据所述脉冲光束的脉宽和时间间隔的大小确定;基于所述搜索区间对初始直方图进行搜索,提取出光子总数最大的搜索区间以及对应的直方图索引;所述直方图索引对应所述搜索区间内第一个时间间隔;将所述光子总数最大的搜索区间作为第二直方图计算第二飞行时间,并根据所述第二飞行时间以及光子总数最大的搜索区间的直方图索引在所述初始直方图中对应的第一飞行时间来计算目标飞行时间。A time-of-flight ranging method, comprising: acquiring an initial histogram, wherein the initial histogram includes continuous time intervals, the time intervals include pulses collected by a collector after a pulse beam emitted by a transmitter is reflected by a target The count value of photons in the light beam; determine a search interval, the search interval includes a plurality of time intervals, and the number of the plurality of time intervals is determined according to the pulse width of the pulse beam and the size of the time interval; based on the search interval pair The initial histogram is searched, and the search interval with the largest total number of photons and the corresponding histogram index are extracted; the histogram index corresponds to the first time interval in the search interval; the search interval with the largest total number of photons is used as the second The histogram calculates the second flight time, and calculates the target flight time according to the second flight time and the first flight time corresponding to the first flight time in the initial histogram of the histogram index of the search interval with the largest total number of photons.
在一些实施例中,所述确定搜索区间包括:在所述初始直方图中,以任一时间间隔作为起点的连续n个时间间隔构成一个所述搜索区间;其中,n=W/△t,W表示脉冲光束的脉宽,△t表示时间间隔的大小。In some embodiments, the determining the search interval includes: in the initial histogram, continuous n time intervals starting from any time interval constitute one of the search intervals; wherein, n=W/Δt, W represents the pulse width of the pulsed beam, and Δt represents the size of the time interval.
在一些实施例中,所述基于所述搜索区间对初始直方图进行搜索,提取出光子总数最大的搜索区间以及对应的直方图索引,包括:采用滑动求和的方法计算每个搜索区间内的光子总数,依序进行搜索,其中,以初始搜索的第一个搜索区间的光子总数作为第一光子总数,后续搜索的各搜索区间的光子总数均记为第二光子总数;若第一光子总数小于第二光子总数,则将第一光子总数的数值更新为当前的第二光子总数的数值,再进行下一次搜索,直至搜索至最后一个搜索区间,提取出光子总数最大的搜索区间及其对应的直方图索引。In some embodiments, the searching the initial histogram based on the search interval, and extracting the search interval with the largest total number of photons and the corresponding histogram index, includes: calculating a sliding sum method in each search interval. The total number of photons is searched in sequence, where the total number of photons in the first search interval of the initial search is taken as the total number of first photons, and the total number of photons in each search interval of the subsequent search is recorded as the total number of second photons; if the total number of first photons is less than the total number of second photons, update the value of the total number of first photons to the current value of the total number of second photons, and then perform the next search until the last search interval is reached, and extract the search interval with the largest total number of photons and its corresponding The histogram index of .
在一些实施例中,还包括:计算提取出的光子总数最大的搜索区间所对应的信号的信噪比,根据信噪比判断提取结果是否准确。In some embodiments, the method further includes: calculating the signal-to-noise ratio of the signal corresponding to the search interval with the largest number of extracted photons, and judging whether the extraction result is accurate according to the signal-to-noise ratio.
在一些实施例中,所述根据信噪比判断提取结果是否准确包括:In some embodiments, the determining whether the extraction result is accurate according to the signal-to-noise ratio includes:
判断所述信噪比是否符合预设的信噪比阈值,若符合,则提取结果准确;若 不符合,则提取结果不准确,进行下一帧的测量;其中,所述预设的信噪比阈值根据预先标定或者实验测量的方法获得。Judging whether the signal-to-noise ratio meets the preset signal-to-noise ratio threshold, if so, the extraction result is accurate; if not, the extraction result is inaccurate, and the measurement of the next frame is performed; wherein, the preset signal-to-noise ratio The ratio threshold is obtained according to the method of pre-calibration or experimental measurement.
在一些实施例中,所述信噪比的计算过程包括:In some embodiments, the calculation process of the signal-to-noise ratio includes:
首先,根据初始直方图计算噪声光子数;First, calculate the number of noise photons according to the initial histogram;
然后,利用下式计算所述信噪比:Then, the signal-to-noise ratio is calculated using the following formula:
Figure PCTCN2022074832-appb-000001
Figure PCTCN2022074832-appb-000001
其中,SNR即为信噪比;PluseBinDate表示脉冲位置处的光子数总和;DCValue表示所述噪声光子数;PluseBinNum表示脉冲对应时间间隔的数量,即搜索区间内时间间隔的数量。Among them, SNR is the signal-to-noise ratio; PluseBinDate represents the total number of photons at the pulse position; DCValue represents the number of noise photons; PluseBinNum represents the number of time intervals corresponding to the pulse, that is, the number of time intervals in the search interval.
在一些实施例中,所述根据初始直方图计算噪声光子数包括:In some embodiments, the calculating the number of noise photons according to the initial histogram includes:
从所述初始直方图中选取远离脉冲峰值位置的一局部区域;Selecting a local area away from the pulse peak position from the initial histogram;
将所述局部区域内的光子计数总值按照该局部区域内时间间隔的数量求均值,记为所述噪声光子数。The total value of photon counts in the local area is averaged according to the number of time intervals in the local area, and recorded as the number of noise photons.
在一些实施例中,所述根据初始直方图计算噪声光子数包括:In some embodiments, the calculating the number of noise photons according to the initial histogram includes:
选取所述初始直方图中除脉冲位置处以外的区域,并将该区域内的光子计数总值按照该区域内时间间隔的数量求均值,记为所述噪声光子数。A region other than the pulse position in the initial histogram is selected, and the total value of photon counts in this region is averaged according to the number of time intervals in this region, and recorded as the number of noise photons.
本发明还提出一种飞行时间测距系统,包括:The present invention also proposes a time-of-flight ranging system, comprising:
发射器,用于朝向物体发射脉冲光束;a transmitter for emitting a pulsed beam towards an object;
采集器,用于采集被物体反射回的所述脉冲光束中的光子并形成光子信号;a collector for collecting photons in the pulsed beam reflected back by the object and forming a photon signal;
处理电路,与所述发射器以及所述采集器连接,用于对所述光子信号进行处理以形成初始直方图,并按照前述的飞行时间测距方法处理所述初始直方图,以获得物体的距离信息。A processing circuit, connected with the transmitter and the collector, is used for processing the photon signal to form an initial histogram, and processing the initial histogram according to the aforementioned time-of-flight ranging method to obtain the object's distance information.
本发明另还提出一种飞行时间测距设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算 机程序时实现前述飞行时间测距方法。The present invention further provides a time-of-flight ranging device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the foregoing when the processor executes the computer program Time-of-flight ranging method.
本发明技术方案的有益效果为:本发明的测距方法通过对初始直方图进行搜索确定脉冲信号位置,并将脉冲信号提取出来单独进行计算,可以大大节省计算的时间,并且设置判断条件已确保提取出的脉冲信号为有效信号,从而使得计算的飞行时间更为准确。The beneficial effects of the technical solution of the present invention are as follows: the ranging method of the present invention determines the position of the pulse signal by searching the initial histogram, and extracts the pulse signal for independent calculation, which can greatly save the calculation time, and the setting of the judgment conditions has ensured The extracted pulse signal is an effective signal, which makes the calculated flight time more accurate.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本发明实施例的飞行时间测距系统的示意图;1 is a schematic diagram of a time-of-flight ranging system according to an embodiment of the present invention;
图2是本发明实施例的飞行时间测距方法的流程图;2 is a flowchart of a time-of-flight ranging method according to an embodiment of the present invention;
图3是本发明实施例中初始直方图的示意图;3 is a schematic diagram of an initial histogram in an embodiment of the present invention;
图4是本发明实施例中第二直方图的示意图;4 is a schematic diagram of a second histogram in an embodiment of the present invention;
图5是本发明另一实施例的飞行时间测距方法流程图。FIG. 5 is a flowchart of a time-of-flight ranging method according to another embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应 该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. In addition, unless otherwise expressly specified and limited, the terms "installed", "connected", "connected", "fixed" and other terms should be understood in a broad sense, for example, it may be a fixed connection, a detachable connection, or a fixed connection. It can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be an internal connection between two elements or an interaction relationship between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
另需要理解的是,术语“长度”、“宽度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”和“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。It is also to be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top" ”, “bottom”, “inside” and “outside” and other indicated orientations or positional relationships are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying the indicated A device or element must have a particular orientation, be constructed and operate in a particular orientation, and therefore should not be construed as limiting the invention.
如图1所示,本发明实施例的飞行时间测距系统10包括发射器11、采集器12和同时连接于发射器与采集器的处理电路13。发射器11包括由一个或多个激光器组成的光源111、发射光学元件112以及驱动器113等,光源111用于向目标物体20发射脉冲光束30,至少部分脉冲光束经过目标物体反射形成反射光束40回到采集器12。采集器12包括由多个像素组成的像素阵列121,用于采集反射光束40中的光子并输出光子信号,处理电路13同步发射器11与采集器12的触发信号以计算光束中的光子从发射到接收所需要的飞行时间。As shown in FIG. 1 , the time-of-flight ranging system 10 according to the embodiment of the present invention includes a transmitter 11 , a collector 12 , and a processing circuit 13 connected to the transmitter and the collector at the same time. The transmitter 11 includes a light source 111 composed of one or more lasers, an emission optical element 112 and a driver 113, etc. The light source 111 is used to transmit a pulsed beam 30 to the target object 20, and at least part of the pulsed beam is reflected by the target object to form a reflected beam 40. to collector 12. The collector 12 includes a pixel array 121 composed of a plurality of pixels for collecting photons in the reflected beam 40 and outputting photon signals, and the processing circuit 13 synchronizes the trigger signals of the transmitter 11 and the collector 12 to calculate the photons in the beam from the emission. flight time required to receive.
在一个实施例中,光源111是在单块半导体基底上生成多个VCSEL光源以形成的VCSEL阵列光源芯片。其中,光源111可以在驱动器113的控制下以一定频率(脉冲周期)向外发射脉冲光束,脉冲光束经过发射光学元件112投射到目标场景上形成照明斑点,其中频率根据测量距离进行设定。In one embodiment, the light source 111 is a VCSEL array light source chip formed by growing multiple VCSEL light sources on a single semiconductor substrate. The light source 111 can emit a pulse beam at a certain frequency (pulse period) under the control of the driver 113, and the pulse beam is projected onto the target scene through the emission optical element 112 to form an illumination spot, wherein the frequency is set according to the measurement distance.
采集器12包括所述像素阵列121、过滤单元122和接收光学元件123等,接收光学元件123将目标反射的斑点光束成像到像素阵列121上,像素阵列121包括多个采集光子的像素,所述像素可以是APD、SPAD、SiPM等采集光子的 单光子器件中的一种,像素阵列121采集到光子的情况被视为光子检测事件发生并输出光子信号。在一个实施例中,像素阵列121包括由多个SPAD组成,SPAD可以对入射的单个光子进行响应并输出指示所接收光子在每个SPAD处相应到达时间的光子信号。一般地,还包括有与像素阵列121连接的信号放大器、时数转换器(TDC)、数模转换器(ADC)等器件中的一种或多种组成的读出电路(图中未示出),这些电路既可以与像素整合在一起,作为采集器的一部分,也可以作为处理电路13的一部分,后面为便于描述,将统一视作处理电路13的一部分。The collector 12 includes the pixel array 121, the filter unit 122, the receiving optical element 123, etc. The receiving optical element 123 images the spot beam reflected by the target onto the pixel array 121, and the pixel array 121 includes a plurality of pixels for collecting photons, the The pixel may be one of the single-photon devices that collect photons, such as APD, SPAD, SiPM, etc. The photon collected by the pixel array 121 is regarded as a photon detection event and a photon signal is output. In one embodiment, the pixel array 121 comprises a plurality of SPADs that can respond to an incident single photon and output a photon signal indicative of the corresponding arrival time of the received photon at each SPAD. Generally, it also includes a readout circuit (not shown in the figure) composed of one or more of a signal amplifier, a time-to-digital converter (TDC), a digital-to-analog converter (ADC) and other devices connected to the pixel array 121 . ), these circuits can be integrated with the pixels as a part of the collector or as a part of the processing circuit 13 , which will be regarded as a part of the processing circuit 13 for the convenience of description later.
处理电路13用于接收光子信号并进行处理计算出光子从发射到接收的飞行时间,并进一步计算出目标的距离信息。在一个实施例中,处理电路13包括TDC电路以及直方图存储器,TDC电路接收光子信号用于确定光子从发射到采集的飞行时间,并生成表征飞行时间信息的时间码,利用时间码寻找直方图存储器中的对应位置,并使得直方图存储器的对应位置处存储的数值加“1”,根据直方图存储器的位置作为时间bin(时间间隔)构造初始直方图。The processing circuit 13 is used for receiving the photon signal and processing to calculate the flight time of the photon from emission to reception, and further calculates the distance information of the target. In one embodiment, the processing circuit 13 includes a TDC circuit and a histogram memory, the TDC circuit receives the photon signal for determining the time of flight of the photon from emission to acquisition, and generates a time code representing the time of flight information, and uses the time code to find the histogram The corresponding position in the memory, and the value stored in the corresponding position of the histogram memory is increased by "1", and the initial histogram is constructed according to the position of the histogram memory as the time bin (time interval).
如图2所示,处理电路13接收光子信号并进行处理计算出光子从发射到接收的飞行时间的测距方法包括如下步骤S1~S4:As shown in FIG. 2 , the ranging method in which the processing circuit 13 receives the photon signal and processes it to calculate the time-of-flight of the photon from emission to reception includes the following steps S1 to S4:
S1、根据初始直方图计算噪声光子数。在基于飞行时间的距离测量系统中,处理电路13控制发射器11朝向目标区域发射脉冲光束,被目标反射的部分脉冲光束入射到采集器12,采集器12采集反射的脉冲光束中的光子并生成包含光子的飞行时间的光子信号,处理电路13接收光子信号并进行处理形成初始直方图。该初始直方图包括连续的时间间隔,每个时间间隔用于表示在检测时段内采集器采集到光子的计数值。S1. Calculate the number of noise photons according to the initial histogram. In the distance measurement system based on time of flight, the processing circuit 13 controls the transmitter 11 to emit a pulse beam toward the target area, and part of the pulse beam reflected by the target is incident on the collector 12, and the collector 12 collects photons in the reflected pulse beam and generates The photon signal containing the time-of-flight of the photon is received by the processing circuit 13 and processed to form an initial histogram. The initial histogram includes consecutive time intervals, each time interval representing the count value of photons collected by the collector during the detection period.
直方图可以被称为检测数据,用于表示在检测时段内采集器12采集到光子的时间分布。图3所示是本发明实施例的一种示例性初始直方图。一般地,时间间隔301的大小为十几到几十皮秒,则一个脉冲光束的光子信号在直方图中对应分布在多个连续的时间间隔内,比如一个脉冲光束在直方图中对应的脉冲位 置为区间304,则选取脉冲峰值位置所处时间间隔的时间作为脉冲光束的飞行时间,一般选择时间间隔的中间量为该时间间隔的时间。在本发明中,假设脉冲光束的脉宽为2ns,直方图中时间间隔的大小为100ps,则一个脉冲的光子信号在直方图中对应分布在连续的20个时间间隔内,即在初始直方图中脉冲位置处的时间间隔的数量为20(图中仅示例性地画出5个)。在下文的具体描述中均以本实施例的数值为例进行描述,但该数值不能作为对本发明的限制。The histogram, which may be referred to as detection data, is used to represent the temporal distribution of photons collected by the collector 12 during the detection period. FIG. 3 shows an exemplary initial histogram of an embodiment of the present invention. Generally, the time interval 301 is in the range of ten to several tens of picoseconds, and the photon signal of a pulsed beam is correspondingly distributed in multiple consecutive time intervals in the histogram, for example, the corresponding pulse of a pulsed beam in the histogram If the position is the interval 304, the time of the time interval where the pulse peak position is located is selected as the flight time of the pulse beam, and the middle amount of the time interval is generally selected as the time of the time interval. In the present invention, it is assumed that the pulse width of the pulse beam is 2ns, and the size of the time interval in the histogram is 100ps, then the photon signal of one pulse is correspondingly distributed in 20 consecutive time intervals in the histogram, that is, in the initial histogram The number of time intervals at the mid-pulse position is 20 (only 5 are exemplarily drawn in the figure). In the following specific description, the numerical value of this embodiment is used as an example for description, but the numerical value cannot be used as a limitation of the present invention.
在测距过程中,当采集器被触发开始采集光子时,由于环境光信号、干扰光信号以及采集器自身产生的噪声等影响,导致直方图中存在大量的噪声光子,噪声光子分布在部分或者全部的时间间隔内,对计算脉冲光束的飞行时间存在干扰。During the ranging process, when the collector is triggered to start collecting photons, there are a large number of noise photons in the histogram due to the influence of ambient light signals, interfering light signals and noise generated by the collector itself, and the noise photons are distributed in part or During the entire time interval, there is interference with the calculation of the time-of-flight of the pulsed beam.
鉴于此,首先,根据初始直方图计算噪声光子数。在一个实施例中,从初始直方图中截取局部区域计算噪声光子数,如图3所示的初始直方图中,根据初始直方图中脉冲峰值位置选择远离脉冲峰值位置的局部区域用于计算噪声光子数。比如以初始直方图中间位置的时间间隔为分界线,若脉冲峰值位置处于初始直方图的后半部分,则在初始直方图的前半部分选择局部区域计算噪声光子数,即选定局部区域后计算该区域内全部时间间隔的光子数均值记为噪声光子数,同理,若脉冲峰值位置处于初始直方图的前半部分,则从后半部分选择局部区域计算噪声光子数。In view of this, first, the number of noise photons is calculated from the initial histogram. In one embodiment, the number of noise photons is calculated by intercepting a local area from an initial histogram. As shown in the initial histogram shown in FIG. 3 , a local area away from the pulse peak position is selected according to the pulse peak position in the initial histogram for calculating noise. number of photons. For example, taking the time interval at the middle position of the initial histogram as the dividing line, if the pulse peak position is in the second half of the initial histogram, select a local area in the first half of the initial histogram to calculate the number of noise photons, that is, select the local area and calculate the number of noise photons. The average number of photons in all time intervals in this area is recorded as the number of noise photons. Similarly, if the pulse peak position is in the first half of the initial histogram, select a local area from the second half to calculate the number of noise photons.
在一个实施例中,根据初始直方图全部的时间间隔计算噪声光子数,即将全部时间间隔内光子数总和剔除掉脉冲峰值位置处的光子数总和后求平均值记为噪声光子数,具体计算过程如下:In one embodiment, the number of noise photons is calculated according to all the time intervals of the initial histogram, that is, the total number of photons in the whole time interval is excluded from the sum of the number of photons at the pulse peak position, and the average value is recorded as the number of noise photons. The specific calculation process as follows:
DCValue=(BinValueSum-PluseBinDate)/(BinNum-PluseBinNum)≈(BinValueSum-PluseBinDate)/BinNumDCValue=(BinValueSum-PluseBinDate)/(BinNum-PluseBinNum)≈(BinValueSum-PluseBinDate)/BinNum
其中,DCValue表征噪声光子数,BinValueSum表征全部时间间隔内的光子数总和,PluseBinDate表征脉冲位置处的光子数总和,BinNum表征全部时间间隔的数量,PluseBinNum表征脉冲对应时间间隔的数量。Among them, DCValue represents the number of noise photons, BinValueSum represents the total number of photons in all time intervals, PluseBinDate represents the total number of photons at the pulse position, BinNum represents the number of all time intervals, and PluseBinNum represents the number of time intervals corresponding to the pulse.
S2、根据所述噪声光子数确定脉冲提取条件,根据所述脉冲提取条件对所述初始直方图进行搜索,以提取出符合所述脉冲提取条件的至少一个搜索区间以及对应的直方图索引;所述搜索区间包括多个时间间隔,所述搜索区间内时间间隔的数量根据发射器发射的脉冲光束的脉宽确定,所述直方图索引对应所述搜索区间内第一个时间间隔。S2. Determine pulse extraction conditions according to the number of noise photons, and search the initial histogram according to the pulse extraction conditions to extract at least one search interval and a corresponding histogram index that meet the pulse extraction conditions; The search interval includes a plurality of time intervals, the number of time intervals in the search interval is determined according to the pulse width of the pulse beam emitted by the transmitter, and the histogram index corresponds to the first time interval in the search interval.
在本发明实施例中,对初始直方图添加索引用于对全部的时间间隔进行排序,则根据直方图索引可以快速定位到对应的时间间隔以及确定该时间间隔对应的飞行时间。确定脉冲提取条件后对直方图进行搜索、确定满足脉冲提取条件的搜索区间,并提取出该搜索区间内的全部时间间隔以及该搜索区间内第一个时间间隔对应的直方图索引。将搜索区间以及对应的直方图索引存储到预先设定的缓冲寄存器中,缓冲寄存器设定为采用FIFO(先进先出)模式,当提取出多个搜索区间时,可以通过直方图索引区分每个搜索区间并快速定位每个搜索区间在初始直方图上的位置。In the embodiment of the present invention, an index is added to the initial histogram to sort all the time intervals, then the corresponding time interval can be quickly located and the flight time corresponding to the time interval can be determined according to the histogram index. After the pulse extraction condition is determined, the histogram is searched, the search interval satisfying the pulse extraction condition is determined, and all the time intervals in the search interval and the histogram index corresponding to the first time interval in the search interval are extracted. Store the search interval and the corresponding histogram index in the preset buffer register. The buffer register is set to use FIFO (first-in, first-out) mode. When multiple search intervals are extracted, each can be distinguished by the histogram index. Search for bins and quickly locate each search bin on the initial histogram.
在一个实施例中,设定脉冲提取条件为脉冲提取阈值Th,脉冲提取阈值根据步骤S1中计算出的噪声光子数计算得到,当某一搜索区间内的光子总数大于脉冲提取阈值时,则认为该搜索区间符合脉冲提取条件,将该搜索区间提取出来,即认为在初始直方图中搜索到一个脉冲。通过搜索主要为了将初始直方图中反映某个脉冲信号的多个时间间隔完整的提取出来用于进行单独计算,则搜索区间包括多个时间间隔,时间间隔的数量根据脉宽及时间间隔的大小确定。当脉宽为2ns,时间间隔大小为100ps时,则设定搜索区间包括20个时间间隔(即对应一个脉冲的光子信号),如图3所示的区间302记为一个搜索区间(图中仅示例性地画出5个时间间隔)。In one embodiment, the pulse extraction condition is set as the pulse extraction threshold Th, and the pulse extraction threshold is calculated according to the number of noise photons calculated in step S1. When the total number of photons in a certain search interval is greater than the pulse extraction threshold, it is considered that The search interval conforms to the pulse extraction condition, and if the search interval is extracted, it is considered that a pulse has been searched in the initial histogram. The main purpose of the search is to completely extract multiple time intervals reflecting a certain pulse signal in the initial histogram for separate calculation. The search interval includes multiple time intervals, and the number of time intervals depends on the pulse width and the size of the time interval. Sure. When the pulse width is 2ns and the time interval is 100ps, the search interval is set to include 20 time intervals (that is, the photon signal corresponding to one pulse), and the interval 302 shown in FIG. 3 is recorded as a search interval (only 5 time intervals are drawn exemplarily).
下面详细介绍确定脉冲提取阈值以及如何对初始直方图进行搜索。具体的,根据步骤S1计算出的噪声光子数确定任一搜索区间内包含的噪声光子总数(步骤S1计算的噪声光子数乘以搜索区间的时间间隔数量得到搜索区间的噪声光子总数),并设置一个略高于该噪声光子总数的光子数作为脉冲提取阈值,若某一 搜索区间内的光子总数大于脉冲提取阈值,则提取出该搜索区间并存入缓冲寄存器中。Determining the pulse extraction threshold and how to search the initial histogram are described in detail below. Specifically, the total number of noise photons contained in any search interval is determined according to the number of noise photons calculated in step S1 (the number of noise photons calculated in step S1 is multiplied by the number of time intervals in the search interval to obtain the total number of noise photons in the search interval), and set A number of photons slightly higher than the total number of noise photons is used as the pulse extraction threshold. If the total number of photons in a certain search interval is greater than the pulse extraction threshold, the search interval is extracted and stored in the buffer register.
对初始直方图的搜索采用滑动求和的方法,即选择任一时间间隔作为起点,选择满足预设数量的时间间隔构成搜索区间并计算该搜索区间内的光子总数并判断光子总数是否大于脉冲提取阈值。若大于脉冲提取阈值,则认为该搜索区间为一个脉冲光束信号,提取出该搜索区间内的全部时间间隔以及对应的直方图索引存储到预先留存的缓冲寄存器中,直方图索引对应该搜索区间内的第一个时间间隔。The search of the initial histogram adopts the sliding sum method, that is, select any time interval as the starting point, select the time interval satisfying the preset number to form a search interval, calculate the total number of photons in the search interval, and judge whether the total number of photons is greater than the pulse extraction. threshold. If it is greater than the pulse extraction threshold, the search interval is considered to be a pulsed beam signal, and all the time intervals in the search interval and the corresponding histogram index are extracted and stored in the pre-stored buffer register, and the histogram index corresponds to the search interval. the first time interval.
所述滑动求和的方法具体为:The sliding sum method is specifically:
Figure PCTCN2022074832-appb-000002
Figure PCTCN2022074832-appb-000002
其中,ValueSum(index)表示某个索引index为起点的搜索区间内的光子总数,value(index+i)表示索引(index+i)的时间间隔内的光子数,假设从初始直方图的第一个时间间隔开始进行滑动求和,则index设定为第一时间间隔的直方图索引index1,即从第一个时间间隔作为起点,选取连续20个时间间隔进行光子计数求和。若光子总数小于脉冲提取阈值,则index调整为index2以第二个时间间隔作为起点选取20个时间间隔计算光子总数,若大于,则提取该搜索区间以及对应的直方图索引index2存储到缓冲寄存器中,如图3所示的搜索区间304。并且继续将index调整为index3以第三个时间间隔作为起点进行搜索,直至将index调整到最后一个直方图索引则搜索完成。Among them, ValueSum(index) represents the total number of photons in the search interval with a certain index index as the starting point, and value(index+i) represents the number of photons in the time interval of index (index+i). The first time interval starts to perform sliding summation, then the index is set to the histogram index index1 of the first time interval, that is, from the first time interval as the starting point, 20 consecutive time intervals are selected for photon count summation. If the total number of photons is less than the pulse extraction threshold, the index is adjusted to index2, and the second time interval is used as the starting point to select 20 time intervals to calculate the total number of photons. If it is greater, the search interval and the corresponding histogram index index2 are extracted and stored in the buffer register. , as shown in the search interval 304 in FIG. 3 . And continue to adjust the index to index3 to search with the third time interval as the starting point, until the index is adjusted to the last histogram index and the search is completed.
在对提取的多个搜索区间进行存储的过程中,当存储的搜索区间超出缓冲寄存器的存储上限后则进行写入阻塞,同时需要对提取到的搜索区间数量进行计数,如果多帧计数结果大于或等于缓冲寄存器的存储上限,说明设定的脉冲提取阈值过低,需要对阈值增加一个修正项ΔTh,设定脉冲提出阈值为Th+ΔTh,用于降低虚警概率以减少噪声产生的虚警。In the process of storing multiple extracted search intervals, when the stored search interval exceeds the storage upper limit of the buffer register, write blocking is performed, and the number of extracted search intervals needs to be counted. If the multi-frame count result is greater than or equal to the storage upper limit of the buffer register, indicating that the set pulse extraction threshold is too low, a correction term ΔTh needs to be added to the threshold, and the pulse extraction threshold is set to Th+ΔTh, which is used to reduce the false alarm probability and reduce the false alarm caused by noise. .
在设定脉冲提取条件为脉冲提取阈值时,由于提取出的某个搜索区间会是噪声信号产生的误触发,为提升提取的精确度,还需要对提取出的多个搜索区间 进行筛选,具体的还包括:When the pulse extraction condition is set as the pulse extraction threshold, since a certain search interval extracted may be a false trigger caused by a noise signal, in order to improve the extraction accuracy, it is necessary to filter the extracted search intervals. also includes:
步骤S21、设定筛选条件,对提取出的搜索区间进行筛选。Step S21 , setting filtering conditions, and filtering the extracted search interval.
在一个实施例中,筛选条件为接收脉冲信号强度,具体的根据接收脉冲信号光子总数或者是脉冲信噪比对提出的搜索区间进行筛选。比如以接收脉冲信号的光子总数作为筛选条件,对于提取出的搜索区间,若某个搜索区间内光子总数远低于其他搜索区间的光子总数,则认为该搜索区间是噪声信号,并将对应的搜索区间剔除掉。再比如选择脉冲信噪比对提取出的搜索区间进行筛选,信噪比SNR的计算公式为:In one embodiment, the screening condition is the received pulse signal strength, and specifically, the proposed search interval is screened according to the total number of received pulse signal photons or the pulse signal-to-noise ratio. For example, taking the total number of photons receiving the pulse signal as the screening condition, for the extracted search interval, if the total number of photons in a certain search interval is much lower than the total number of photons in other search intervals, the search interval is considered to be a noise signal, and the corresponding The search range is eliminated. Another example is to select the pulse signal-to-noise ratio to filter the extracted search interval. The calculation formula of the signal-to-noise ratio SNR is:
Figure PCTCN2022074832-appb-000003
Figure PCTCN2022074832-appb-000003
其中,PluseBinDate用于表示脉冲位置处的光子总数,即步骤S1里面的ValueSum,PluseBinNum表征脉冲对应时间间隔的数量,即搜索区间的大小。通过计算每个提取出的搜索区间的信噪比,剔除掉信噪比过低的搜索区间。Among them, PluseBinDate is used to represent the total number of photons at the pulse position, that is, ValueSum in step S1, and PluseBinNum represents the number of time intervals corresponding to the pulse, that is, the size of the search interval. By calculating the signal-to-noise ratio of each extracted search interval, the search interval with too low signal-to-noise ratio is eliminated.
在一个实施例中,筛选条件为接收脉冲波形与发射脉冲波形的相关度。每个提取出来的搜索区间可还原出一个接收波形,若为有效信号则接收波形与发射脉波形相关度较高,基于此则可以通过计算接收波形与发射脉冲波形的相关度来剔除相关度低的接收波形对应的搜索区间,即噪声信号。In one embodiment, the filtering condition is the correlation between the received pulse waveform and the transmitted pulse waveform. Each extracted search interval can restore a received waveform. If it is a valid signal, the correlation between the received waveform and the transmitted pulse waveform is high. Based on this, the low correlation can be eliminated by calculating the correlation between the received waveform and the transmitted pulse waveform. The search interval corresponding to the received waveform is the noise signal.
可以理解的是,通过设置脉冲筛选条件对提取出的搜索区间进行筛选,可以减少噪声信号的影响;在此基础上,可以对步骤S2中的脉冲提取阈值做适当的放宽,容许提取到一定程度的噪声信号,这样有利于提取到微弱的脉冲信号。It can be understood that by setting the pulse filter conditions to filter the extracted search interval, the influence of the noise signal can be reduced; on this basis, the pulse extraction threshold in step S2 can be appropriately relaxed to allow the extraction to a certain extent. noise signal, which is conducive to the extraction of weak pulse signals.
当进行脉冲筛选后可执行步骤S3进行飞行时间的计算。但由于一些系统设计的原因或者特殊的应用场景导致经过筛选后仍然保留了多个搜索区间,比如可能仍然保留了2-3个搜索区间,则还需要对多个搜索区间进行排序,以选择目标回波信号对应的搜索区间进行飞行时间计算,具体的包括:After the pulse screening is performed, step S3 can be executed to calculate the flight time. However, due to some system design reasons or special application scenarios, multiple search areas are still retained after screening. For example, 2-3 search areas may still be retained, and multiple search areas need to be sorted to select the target. The time-of-flight calculation is performed on the search interval corresponding to the echo signal, which specifically includes:
步骤S22、根据预先设置的多回波模式对筛选后的搜索区间进行排序,挑选出对应的搜索区间。Step S22: Sort the filtered search intervals according to the preset multi-echo mode, and select a corresponding search interval.
其中,预先设置的多回波模式包括回波数量以及排序特征,需要根据实际的 应用场景与需求进行选择。排序特征包括回波强度或者回波时间,回波强度可用每个搜索区间内的光子总数表征,根据光子总数即可判断出最强回波或最弱回波;回波时间可用每个搜索区间对应的直方图索引表征,根据索引的顺序即可判断出最近回波或最远回波。Among them, the preset multi-echo mode includes the number of echoes and sorting characteristics, and needs to be selected according to the actual application scenario and requirements. The sorting feature includes echo intensity or echo time. The echo intensity can be represented by the total number of photons in each search interval. The strongest echo or the weakest echo can be determined according to the total number of photons; the echo time can be used in each search interval. The corresponding histogram index is represented, and the nearest echo or the farthest echo can be determined according to the order of the indices.
在一个实施例中,当距离测量系统设置一个保护外罩时,保护外罩的材料一般为透明的玻璃,发射器发射脉冲光束穿过保护外罩投射到目标视场时,部分脉冲光束被保护外罩反射后进入采集器中,最终在直方图中形成一个回波信号,根据保护外罩紧邻测距系统这一特性,即可预先设置多回波模式结合回波时间的排序特征,将最近回波认为是保护外罩反射回来的回波信号,不需要对该回波对应的搜索区间进行飞行时间计算,从第二个回波开始执行步骤S3的计算。In one embodiment, when the distance measurement system is provided with a protective cover, the material of the protective cover is generally transparent glass. When the transmitter emits a pulsed beam through the protective cover and projects to the target field of view, part of the pulsed beam is reflected by the protective cover. Enter the collector, and finally form an echo signal in the histogram. According to the characteristic that the protective cover is close to the ranging system, the sorting feature of the multi-echo mode combined with the echo time can be preset, and the nearest echo is regarded as the protection For the echo signal reflected back by the cover, it is not necessary to perform time-of-flight calculation on the search interval corresponding to the echo, and the calculation of step S3 is performed from the second echo.
在一个实施例中,受到雨雾天气等影响或者测距系统表面粘水等条件下,在目标的真实回波前会产生误回波信号,此时则需要选择更远的回波来避免误回波信号的影响,则可以相应的设置双回波结合最远回波对回波信号进行排序,可直接选择最远回波用于解算飞行时间,而避免误回波的干扰。In one embodiment, under conditions such as rain and fog or sticky water on the surface of the ranging system, a false echo signal will be generated before the true echo of the target. In this case, a longer echo needs to be selected to avoid false echoes If the influence of the echo signal is not affected, you can set the dual echo and the farthest echo to sort the echo signals accordingly. You can directly select the farthest echo to calculate the flight time, and avoid the interference of false echoes.
在一个实施例中,当采集目标中有玻璃或者采集位于玻璃后面的目标时,由于玻璃本身具有反射率和透过率,大部分的发射脉冲光束会透过玻璃照射到目标上,但依然有一部分脉冲光束被玻璃反射后形成反射光束入射到采集器中,在直方图中形成两个回波信号,由于玻璃的反射率较低,则形成的两个回波信号中强度差别较大,则通过设置回波强度排序选择出最强回波对应的搜索区间用于飞行时间计算。In one embodiment, when there is glass in the acquisition target or a target located behind the glass is acquired, most of the emitted pulse beam will pass through the glass and irradiate on the target due to the reflectivity and transmittance of the glass itself, but there are still some A part of the pulse beam is reflected by the glass to form a reflected beam and incident into the collector, and two echo signals are formed in the histogram. Due to the low reflectivity of the glass, the intensity difference between the two echo signals formed is large, then The search interval corresponding to the strongest echo is selected for time-of-flight calculation by setting the echo intensity sorting.
可以理解的是,预先设置的多回波模式及脉冲排序方式可以根据实际情况任意设置,最终选择一个或者多个搜索区间执行步骤S3的计算。It can be understood that the preset multi-echo mode and pulse sorting mode can be arbitrarily set according to the actual situation, and finally one or more search intervals are selected to perform the calculation of step S3.
在一些实施例中,脉冲提取条件还包括计算接收脉冲波形与发射脉冲波形的相关度,或者计算搜索区间的脉冲信噪比。根据步骤S1中计算的噪声光子数设定波形相关度或者信噪比的阈值,确定并提取出高于阈值的搜索区间以及对应的直方图索引存储在缓冲寄存器中,并且若采用这两种提取条件时则不需要 再执行步骤S21和S22。在一个实施例中,接收脉冲波形与发射脉冲波形的相关度计算公式为:In some embodiments, the pulse extraction condition further includes calculating the correlation between the received pulse waveform and the transmitted pulse waveform, or calculating the pulse signal-to-noise ratio in the search interval. According to the number of noise photons calculated in step S1, the threshold value of waveform correlation degree or signal-to-noise ratio is set, and the search interval higher than the threshold value and the corresponding histogram index are determined and extracted and stored in the buffer register. If the conditions are met, steps S21 and S22 need not be executed again. In one embodiment, the formula for calculating the correlation between the received pulse waveform and the transmitted pulse waveform is:
Figure PCTCN2022074832-appb-000004
Figure PCTCN2022074832-appb-000004
其中,weight(i)表示对第i个时间间隔施加的权重,同样对直方图采用滑动求和的方法进行搜索,搜索过程同上,在此不再赘述。Among them, weight(i) represents the weight applied to the ith time interval, and the histogram is also searched by the method of sliding summation. The search process is the same as above, and will not be repeated here.
在一个实施例中个,脉冲信噪比方法的计算公式为:In one embodiment, the calculation formula of the pulse signal-to-noise ratio method is:
Figure PCTCN2022074832-appb-000005
Figure PCTCN2022074832-appb-000005
具体的搜索过程与同上述描述,在此不再赘述。The specific search process is the same as that described above, and will not be repeated here.
S3、将步骤S2最终提取出的所述搜索区间作为第二直方图计算第二飞行时间,并根据所述第二飞行时间以及所述直方图索引在所述初始直方图中对应的第一飞行时间计算脉冲光束由发射到接收的飞行时间。S3. Calculate the second flight time using the search interval finally extracted in step S2 as the second histogram, and calculate the first flight time corresponding to the first flight time in the initial histogram according to the second flight time and the histogram index Time calculates the time-of-flight of a pulsed beam from launch to reception.
图4所示是本发明一个实施例中第二直方图的示意图。对于提取出的至少一个搜索区间作为第二直方图单独计算对应的飞行时间,记为第二飞行时间。在本发明的一个实施例中,时间间隔的大小为100ps,n的数量为20,则第二直方图的纵坐标范围为0-2ns。具体的,利用质心法计算第二飞行时间,具体的计算公式为:FIG. 4 is a schematic diagram of a second histogram in an embodiment of the present invention. For the extracted at least one search interval, the corresponding flight time is calculated separately as the second histogram, which is recorded as the second flight time. In an embodiment of the present invention, the size of the time interval is 100ps, the number of n is 20, and the ordinate range of the second histogram is 0-2ns. Specifically, the second flight time is calculated by using the centroid method, and the specific calculation formula is:
Figure PCTCN2022074832-appb-000006
Figure PCTCN2022074832-appb-000006
其中,t 2表征第二飞行时间,T j表征每个时间间隔对应的飞行时间,C j表征每个时间间隔内包含的光子数,j表征时间间隔的序号,n表征搜索区间内全部时间间隔的数量。 Among them, t 2 represents the second flight time, T j represents the flight time corresponding to each time interval, C j represents the number of photons contained in each time interval, j represents the sequence number of the time interval, and n represents all the time intervals in the search interval quantity.
同时,根据存储的直方图索引可以对应得到该搜索区间内第一个时间间隔305在初始直方图中对应的第一飞行时间t 1,则脉冲光束由发射到接收的飞行时间为第一飞行时间与第二飞行时间之和。 At the same time, according to the stored histogram index, the first time of flight t 1 corresponding to the first time interval 305 in the search interval in the initial histogram can be correspondingly obtained, then the time of flight of the pulse beam from emission to reception is the first flight time Sum with the second flight time.
其中,在利用第二直方图进行第二飞行时间计算前,可以根据步骤S1中计 算的噪声光子数对第二直方图进行滤波处理,减少噪声光子的影响,提高解算的精度。Wherein, before using the second histogram to calculate the second time of flight, the second histogram can be filtered according to the number of noise photons calculated in step S1, so as to reduce the influence of noise photons and improve the accuracy of the calculation.
S4、最后,利用步骤S3计算得到的脉冲光束从发射到接收的飞行时间计算处物体的距离。S4. Finally, use the time of flight of the pulsed beam calculated in step S3 to calculate the distance of the object from the time of flight to the receiving.
图5所示是本发明另一个实施例的一种距离测量方法的流程图,参考图5,该距离测量方法包括如下步骤:FIG. 5 is a flowchart of a distance measurement method according to another embodiment of the present invention. Referring to FIG. 5 , the distance measurement method includes the following steps:
S51、获取初始直方图,所述初始直方图包括连续的时间间隔,所述时间间隔内包含由发射器发出的脉冲光束被目标反射后、经由采集器采集的所述脉冲光束中光子的计数值。S51. Acquire an initial histogram, where the initial histogram includes a continuous time interval, and the time interval includes the count value of photons in the pulsed beam collected by the collector after the pulsed beam emitted by the transmitter is reflected by the target .
结合图1所示,在距离测量系统中,处理电路13控制发射器11朝向目标区域发射脉冲光束,被目标反射的部分脉冲光束入射到采集器12,采集器12采集反射的脉冲光束中的光子并生成包含光子的飞行时间的光子信号,处理电路13接收光子信号并进行处理形成初始直方图,初始直方图包括连续的时间间隔,每个时间间隔用于表示在检测时段内采集器采集到光子的计数值。As shown in FIG. 1 , in the distance measurement system, the processing circuit 13 controls the transmitter 11 to emit a pulse beam toward the target area, and part of the pulse beam reflected by the target is incident on the collector 12 , and the collector 12 collects photons in the reflected pulse beam. and generate a photon signal including the time of flight of the photon, the processing circuit 13 receives the photon signal and processes it to form an initial histogram, the initial histogram includes continuous time intervals, and each time interval is used to represent the photon collected by the collector during the detection period. count value.
S52、确定搜索区间,所述搜索区间包括多个时间间隔,所述时间间隔的数量根据所述脉冲光束的脉宽确定。S52. Determine a search interval, where the search interval includes a plurality of time intervals, and the number of the time intervals is determined according to the pulse width of the pulse beam.
具体的,在所述初始直方图中,一个脉冲的光子信号在直方图中对应分布在连续的n个时间间隔内,连续n个时间间隔构成一个所述搜索区间;其中,n=W/△t,W表示脉冲光束的脉宽,△t表示时间间隔的大小。比如当脉冲光束的脉宽为2ns,直方图中时间间隔的大小为100ps时,则设定搜索区间包括20个时间间隔,如图3所示的区间302(区间302仅示例性绘出5个时间间隔,按照此例应包含20个时间间隔)可记为一个搜索区间。Specifically, in the initial histogram, the photon signal of a pulse is correspondingly distributed in consecutive n time intervals in the histogram, and the consecutive n time intervals constitute a search interval; wherein, n=W/Δ t, W represent the pulse width of the pulsed beam, Δt represents the size of the time interval. For example, when the pulse width of the pulse beam is 2ns and the size of the time interval in the histogram is 100ps, the search interval is set to include 20 time intervals, as shown in interval 302 in FIG. The time interval, according to this example, should include 20 time intervals) can be recorded as a search interval.
S53、基于所述搜索区间对初始直方图进行搜索,提取出光子总数最大的搜索区间以及对应的直方图索引;所述直方图索引对应所述搜索区间内第一个时间间隔。S53. Search the initial histogram based on the search interval, and extract the search interval with the largest total number of photons and the corresponding histogram index; the histogram index corresponds to the first time interval in the search interval.
在本实施例中,对初始直方图添加索引用于对全部的时间间隔进行排序,则 根据直方图索引可以快速定位到对应的时间间隔以及确定该时间间隔对应的飞行时间。则根据步骤S52中确定的搜索区间对初始直方图进行搜索,提取出光子总数最大的搜索区间以及对应的直方图索引。采用滑动求和的方法计算每个搜索区间内的光子总数,以初始搜索的光子总数作为第一光子总数,后续搜索的光子总数记为第二光子总数,若第一光子总数小于第二光子总数,则将第一光子总数的数值更新为第二光子总数再进行下一次搜索,其中,计算光子总数的方法为:In this embodiment, an index is added to the initial histogram to sort all the time intervals, then the corresponding time interval can be quickly located and the flight time corresponding to the time interval can be determined according to the histogram index. Then, the initial histogram is searched according to the search interval determined in step S52, and the search interval with the largest total number of photons and the corresponding histogram index are extracted. The total number of photons in each search interval is calculated by the sliding sum method, the total number of photons in the initial search is taken as the total number of first photons, and the total number of photons in subsequent searches is recorded as the total number of second photons. If the total number of first photons is less than the total number of second photons , then update the value of the first total number of photons to the second total number of photons and then perform the next search, where the method for calculating the total number of photons is:
Figure PCTCN2022074832-appb-000007
Figure PCTCN2022074832-appb-000007
其中,index表示直方图索引,index表征搜索区间内第一时间间隔的直方图索引,PluseBinNum表征搜索区间的大小。Wherein, index represents the histogram index, index represents the histogram index of the first time interval in the search interval, and PluseBinNum represents the size of the search interval.
在一个实施例中,对初始直方图的搜索从直方图中第一个时间间隔开始,则index设定为第一时间间隔的直方图索引index1,即从第一个时间间隔作为起点,选取连续20个时间间隔作为第一个搜索区间进行光子计数求和,将求和的结果记为第一光子总数预存储,接下来以第二个时间间隔为起点选择第二个搜索区间计算光子总数记为第二光子总数。比较第一光子总数与第二光子总数的大小:若第一光子总数小于第二光子总数,则将第一光子总数的数值更新为第二光子总数的数值,反之则不更新。再以第三个时间间隔选择第三个搜索区间计算光子总数并与最新的第一光子总数比较大小,若第一光子总数小于当前的第二光子总数(即第三个搜索区间的光子总数),则将第一光子总数的数值更新为当前的第二光子总数的数值,再进行下一次搜索,以此循环直至完成对整个直方图的搜索,提取出光子总数最大的搜索区间以及对应的直方图索引。可以理解的是,在一些实施例中,对初始直方图的搜索可以选择直方图任意一个时间间隔开始。In one embodiment, the search for the initial histogram starts from the first time interval in the histogram, and the index is set to the histogram index index1 of the first time interval, that is, from the first time interval as the starting point, select continuous 20 time intervals are used as the first search interval to perform photon count summation, record the summation result as the first total number of photons and pre-store, and then select the second search interval as the starting point to calculate the total number of photons is the total number of second photons. Compare the size of the total number of the first photons and the total number of the second photons: if the total number of the first photons is smaller than the total number of the second photons, the value of the total number of the first photons is updated to the value of the total number of the second photons, otherwise it is not updated. Then select the third search interval at the third time interval to calculate the total number of photons and compare the size with the latest total number of first photons. If the total number of first photons is less than the current total number of second photons (that is, the total number of photons in the third search interval) , the value of the total number of first photons is updated to the current value of the total number of second photons, and then the next search is performed, and this cycle is repeated until the entire histogram is searched, and the search interval with the largest total number of photons and the corresponding histogram are extracted. Figure index. It will be appreciated that, in some embodiments, the search for the initial histogram may start at any time interval selected for the histogram.
S54、将光子总数最大的搜索区间作为第二直方图计算第二飞行时间,并根据第二飞行时间以及光子总数最大的搜索区间的直方图索引在初始直方图中对应的第一飞行时间,来计算脉冲光束从发射到接收的飞行时间,即目标飞行时间。假设第二飞行时间为t 2,而光子总数最大的搜索区间的直方图索引在初始直方图 中所对应的飞行时间为t 1,则最终的飞行时间t=t 1+t 2,根据t即可测算物体的距离。 S54. Calculate the second flight time by using the search interval with the largest total number of photons as the second histogram, and calculate the second flight time according to the second flight time and the first flight time corresponding to the first flight time in the initial histogram according to the histogram index of the search interval with the largest photon total number. Calculate the flight time of the pulsed beam from launch to reception, that is, the target flight time. Assuming that the second flight time is t 2 , and the histogram index of the search interval with the largest total number of photons corresponds to the flight time t 1 in the initial histogram, then the final flight time t=t 1 +t 2 , according to t, namely The distance of an object can be measured.
进一步地,在步骤S53中,还可包括:计算所述提取出光子总数最大的搜索区间所对应的信号的信噪比,根据信噪比判断提取结果是否准确。Further, in step S53, the method may further include: calculating the signal-to-noise ratio of the signal corresponding to the search interval with the largest total number of extracted photons, and judging whether the extraction result is accurate according to the signal-to-noise ratio.
在搜索以及提取过程中,由于采用光子总数最大值的提取条件,当原始直方图中未探测到回波信号时,仍可以提取到一个搜索区间用于计算飞行时间,由此可产生测量错误。因此,还可以对搜索出的区间进行判断以验证提取结果的准确性。During the search and extraction process, due to the extraction condition of the maximum total number of photons, when no echo signal is detected in the original histogram, a search interval can still be extracted for calculating the flight time, which may cause measurement errors. Therefore, the searched interval can also be judged to verify the accuracy of the extraction result.
具体的,通过计算提取出的搜索区间所对应的信号的信噪比,若信噪比符合预设的阈值,则认为提取结果准确。所述预设阈值可以通过预先标定、实验测量等方法确定。Specifically, by calculating the signal-to-noise ratio of the signal corresponding to the extracted search interval, if the signal-to-noise ratio meets the preset threshold, it is considered that the extraction result is accurate. The preset threshold may be determined by methods such as pre-calibration, experimental measurement, and the like.
首先,根据初始直方图计算噪声光子数。在一个实施例中,从初始直方图中截取局部区域计算噪声光子数,如图3所示的初始直方图中,根据初始直方图中脉冲峰值位置选择远离脉冲峰值位置的局部区域用于计算噪声光子数。比如以初始直方图中间位置的时间间隔为分界线,若脉冲峰值位置处于初始直方图的后半部分,则在初始直方图的前半部分选择局部区域计算噪声光子数,即选定局部区域后计算该区域内全部时间间隔内的光子数均值记为噪声光子数,同理,若位于前半部分,则从后半部分选择局部区域计算噪声光子数。First, the number of noise photons is calculated from the initial histogram. In one embodiment, the number of noise photons is calculated by intercepting a local area from an initial histogram. As shown in the initial histogram shown in FIG. 3 , a local area away from the pulse peak position is selected according to the pulse peak position in the initial histogram for calculating noise. number of photons. For example, taking the time interval at the middle position of the initial histogram as the dividing line, if the pulse peak position is in the second half of the initial histogram, select a local area in the first half of the initial histogram to calculate the number of noise photons, that is, select the local area and calculate the number of noise photons. The average number of photons in all time intervals in this area is recorded as the number of noise photons. Similarly, if it is located in the first half, select a local area from the second half to calculate the number of noise photons.
在一个实施例中,根据初始直方图全部的时间间隔计算噪声光子数,即将全部时间间隔内光子数总和剔除掉脉冲位置处的光子数总和后求平均值记为噪声光子数,具体计算过程如下:In one embodiment, the number of noise photons is calculated according to all the time intervals of the initial histogram, that is, the total number of photons in the entire time interval is removed from the sum of the number of photons at the pulse position, and the average value is recorded as the number of noise photons. The specific calculation process is as follows :
DCValue=(BinValueSum-PluseBinDate)/(BinNum-PluseBinNum)≈(BinValueSum-PluseBinDate)/BinNumDCValue=(BinValueSum-PluseBinDate)/(BinNum-PluseBinNum)≈(BinValueSum-PluseBinDate)/BinNum
其中,DCValue表征噪声光子数,BinValueSum表征全部时间间隔内的光子数总和,PluseBinDate表征脉冲位置处的光子数总和,即搜索区间内的光子数总和,BinNum表征全部时间间隔的数量,PluseBinNum表征脉冲对应时间间隔的 数量,即搜索区间内时间间隔的数量(也即搜索区间的大小)。Among them, DCValue represents the number of noise photons, BinValueSum represents the total number of photons in all time intervals, PluseBinDate represents the total number of photons at the pulse position, that is, the total number of photons in the search interval, BinNum represents the number of all time intervals, and PluseBinNum represents the corresponding pulses The number of time intervals, that is, the number of time intervals in the search interval (that is, the size of the search interval).
再计算提取出的搜索区间的信噪比,信噪比计算公式为:Then calculate the signal-to-noise ratio of the extracted search interval, and the calculation formula of the signal-to-noise ratio is:
Figure PCTCN2022074832-appb-000008
Figure PCTCN2022074832-appb-000008
若信噪比符合预设的阈值,则认为提取结果准确,根据提取出的搜索区间执行步骤S54,若不符合,则进行下一帧的距离测量。If the signal-to-noise ratio meets the preset threshold, it is considered that the extraction result is accurate, and step S54 is performed according to the extracted search interval; if not, the distance measurement of the next frame is performed.
作为本发明另一实施例,还提供一种飞行时间测距设备,包括:存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序;其中,所述处理器执行所述计算机程序时实现前述实施例所述的飞行时间测距方法的步骤S1-S4;或者所述处理器执行所述计算机程序时实现前述实施例所述的飞行时间测距方法的步骤S51-S54。As another embodiment of the present invention, a time-of-flight ranging device is also provided, including: a memory, a processor, and a computer program stored in the memory and executable on the processor; wherein the processor When the computer program is executed, steps S1-S4 of the time-of-flight ranging method described in the foregoing embodiments are implemented; or step S51 of the time-of-flight ranging method described in the foregoing embodiments is realized when the processor executes the computer program -S54.
本发明的实施例可以包括或利用包括计算机硬件的专用或通用计算机,如下面更详细讨论的。在本发明的范围内的实施例还包括用于携带或存储计算机可执行指令和/或数据结构的物理和其他计算机可读介质。这样的计算机可读介质可以是可以被通用或专用计算机系统访问的任何可用介质。存储计算机可执行指令的计算机可读介质是物理存储介质。携带计算机可执行指令的计算机可读介质是传输介质。因此,作为示例而非限制,本发明的实施例可以包括至少两种截然不同的计算机可读介质:物理计算机可读存储介质和传输计算机可读介质。Embodiments of the present invention may include or utilize a special purpose or general purpose computer including computer hardware, as discussed in more detail below. Embodiments within the scope of the present invention also include physical and other computer-readable media for carrying or storing computer-executable instructions and/or data structures. Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computer system. Computer-readable media that store computer-executable instructions are physical storage media. Computer-readable media carrying computer-executable instructions are transmission media. Thus, by way of example and not limitation, embodiments of the present invention may include at least two distinct computer-readable media: physical computer-readable storage media and transmission computer-readable media.
本申请实施例还提供一种计算机设备,所述计算机设备包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时至少实现前述实施例方案中所述的飞行时间测距方法的步骤S1-S4,或者所述处理器执行所述计算机程序时实现前述实施例所述的飞行时间测距方法的步骤S51-S54。An embodiment of the present application further provides a computer device, the computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer During the program, at least steps S1-S4 of the time-of-flight ranging method described in the foregoing embodiments are implemented, or when the processor executes the computer program, steps S51-S51-5 of the time-of-flight ranging method described in the foregoing embodiments are realized. S54.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精 神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection of the present invention. within the range.

Claims (10)

  1. 一种飞行时间测距方法,其特征在于,包括:A time-of-flight ranging method, comprising:
    获取初始直方图,所述初始直方图包括连续的时间间隔,所述时间间隔内包含由发射器发出的脉冲光束被目标反射后、经由采集器采集的脉冲光束中光子的计数值;acquiring an initial histogram, where the initial histogram includes a continuous time interval, the time interval includes the count value of photons in the pulsed beam collected by the collector after the pulsed beam emitted by the transmitter is reflected by the target;
    确定搜索区间,所述搜索区间包括多个时间间隔,所述多个时间间隔的数量根据所述脉冲光束的脉宽和时间间隔的大小确定;determining a search interval, the search interval includes a plurality of time intervals, and the number of the plurality of time intervals is determined according to the pulse width of the pulsed beam and the size of the time interval;
    基于所述搜索区间对初始直方图进行搜索,提取出光子总数最大的搜索区间以及对应的直方图索引;所述直方图索引对应所述搜索区间内第一个时间间隔;The initial histogram is searched based on the search interval, and the search interval with the largest total number of photons and the corresponding histogram index are extracted; the histogram index corresponds to the first time interval in the search interval;
    将所述光子总数最大的搜索区间作为第二直方图计算第二飞行时间,并根据所述第二飞行时间以及光子总数最大的搜索区间的直方图索引在所述初始直方图中对应的第一飞行时间来计算目标飞行时间。Using the search interval with the largest total number of photons as the second histogram to calculate the second flight time, and according to the second flight time and the histogram index of the search interval with the largest total number of photons in the initial histogram corresponding to the first flight time to calculate the target flight time.
  2. 如权利要求1所述的飞行时间测距方法,其特征在于,所述确定搜索区间包括:The time-of-flight ranging method according to claim 1, wherein the determining the search interval comprises:
    在所述初始直方图中,以任一时间间隔作为起点的连续n个时间间隔构成一个所述搜索区间;其中,n=W/△t,W表示脉冲光束的脉宽,△t表示时间间隔的大小。In the initial histogram, continuous n time intervals starting from any time interval constitute a search interval; wherein, n=W/Δt, W represents the pulse width of the pulsed beam, and Δt represents the time interval the size of.
  3. 如权利要求1所述的飞行时间测距方法,其特征在于,所述基于所述搜索区间对初始直方图进行搜索,提取出光子总数最大的搜索区间以及对应的直方图索引,包括:The time-of-flight ranging method according to claim 1, wherein the initial histogram is searched based on the search interval, and the search interval with the largest total number of photons and the corresponding histogram index are extracted, including:
    采用滑动求和的方法计算每个搜索区间内的光子总数,依序进行搜索,其中,以初始搜索的第一个搜索区间的光子总数作为第一光子总数,后续搜索的各搜索区间的光子总数均记为第二光子总数;若第一光子总数小于第二光子总数,则将第一光子总数的数值更新为当前的第二光子总数的数值,再进行下一次搜索,直至搜索至最后一个搜索区间,提取出光子总数最大的搜索区间及其对应的直 方图索引。The sliding sum method is used to calculate the total number of photons in each search interval, and the search is performed in sequence. The total number of photons in the first search interval of the initial search is taken as the total number of first photons, and the total number of photons in each search interval of the subsequent search is taken as the total number of photons. All are recorded as the total number of second photons; if the total number of first photons is less than the total number of second photons, update the value of the total number of first photons to the current value of the total number of second photons, and then perform the next search until the last search is reached. The search interval with the largest total number of photons and its corresponding histogram index are extracted.
  4. 如权利要求3所述的飞行时间测距方法,其特征在于,还包括:计算提取出的光子总数最大的搜索区间所对应的信号的信噪比,根据信噪比判断提取结果是否准确。The time-of-flight ranging method according to claim 3, further comprising: calculating the signal-to-noise ratio of the signal corresponding to the search interval with the largest total number of extracted photons, and judging whether the extraction result is accurate according to the signal-to-noise ratio.
  5. 如权利要求4所述的飞行时间测距方法,其特征在于,所述根据信噪比判断提取结果是否准确包括:The time-of-flight ranging method according to claim 4, wherein the determining whether the extraction result is accurate according to the signal-to-noise ratio comprises:
    判断所述信噪比是否符合预设的信噪比阈值,若符合,则提取结果准确;若不符合,则提取结果不准确,进行下一帧的测量;其中,所述预设的信噪比阈值根据预先标定或者实验测量的方法获得。Judging whether the signal-to-noise ratio meets the preset signal-to-noise ratio threshold, if so, the extraction result is accurate; if not, the extraction result is inaccurate, and the measurement of the next frame is performed; wherein, the preset signal-to-noise ratio The ratio threshold is obtained according to the method of pre-calibration or experimental measurement.
  6. 如权利要求4所述的飞行时间测距方法,其特征在于,所述信噪比的计算过程包括:The time-of-flight ranging method according to claim 4, wherein the calculation process of the signal-to-noise ratio comprises:
    首先,根据初始直方图计算噪声光子数;First, calculate the number of noise photons according to the initial histogram;
    然后,利用下式计算所述信噪比:Then, the signal-to-noise ratio is calculated using the following formula:
    Figure PCTCN2022074832-appb-100001
    Figure PCTCN2022074832-appb-100001
    其中,SNR即为信噪比;PluseBinDate表示脉冲位置处的光子数总和;DCValue表示所述噪声光子数;PluseBinNum表示脉冲对应时间间隔的数量,即搜索区间内时间间隔的数量。Among them, SNR is the signal-to-noise ratio; PluseBinDate represents the total number of photons at the pulse position; DCValue represents the number of noise photons; PluseBinNum represents the number of time intervals corresponding to the pulse, that is, the number of time intervals in the search interval.
  7. 如权利要求6所述的飞行时间测距方法,其特征在于,所述根据初始直方图计算噪声光子数包括:The time-of-flight ranging method according to claim 6, wherein the calculating the number of noise photons according to the initial histogram comprises:
    从所述初始直方图中选取远离脉冲峰值位置的一局部区域;Selecting a local area away from the pulse peak position from the initial histogram;
    将所述局部区域内的光子计数总值按照该局部区域内时间间隔的数量求均值,记为所述噪声光子数。The total value of photon counts in the local area is averaged according to the number of time intervals in the local area, and recorded as the number of noise photons.
  8. 如权利要求6所述的飞行时间测距方法,其特征在于,所述根据初始直方图计算噪声光子数包括:The time-of-flight ranging method according to claim 6, wherein the calculating the number of noise photons according to the initial histogram comprises:
    选取所述初始直方图中除脉冲位置处以外的区域,并将该区域内的光子计数总值按照该区域内时间间隔的数量求均值,记为所述噪声光子数。A region other than the pulse position in the initial histogram is selected, and the total value of photon counts in this region is averaged according to the number of time intervals in this region, and recorded as the number of noise photons.
  9. 一种飞行时间测距系统,其特征在于,包括:A time-of-flight ranging system, comprising:
    发射器,用于朝向物体发射脉冲光束;a transmitter for emitting a pulsed beam towards an object;
    采集器,用于采集被物体反射回的所述脉冲光束中的光子并形成光子信号;a collector, used to collect photons in the pulsed beam reflected back by the object and form a photon signal;
    处理电路,与所述发射器以及所述采集器连接,用于对所述光子信号进行处理以形成初始直方图,并按照权利要求1-8任一项所述的飞行时间测距方法处理所述初始直方图,以获得物体的距离信息。A processing circuit, connected with the transmitter and the collector, is used for processing the photon signal to form an initial histogram, and processing the data according to the time-of-flight ranging method according to any one of claims 1-8. The initial histogram is described to obtain the distance information of the object.
  10. 一种飞行时间测距设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于:所述处理器执行所述计算机程序时实现权利要求1-8任一项所述的飞行时间测距方法。A time-of-flight ranging device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: the processor implements the claims when executing the computer program The time-of-flight ranging method described in any one of 1-8.
PCT/CN2022/074832 2021-01-28 2022-01-28 Time of flight distance measurement method and system, and device WO2022161481A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110120018.5 2021-01-28
CN202110120018.5A CN112817001B (en) 2021-01-28 2021-01-28 Time-of-flight ranging method, system and equipment

Publications (1)

Publication Number Publication Date
WO2022161481A1 true WO2022161481A1 (en) 2022-08-04

Family

ID=75859872

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/074832 WO2022161481A1 (en) 2021-01-28 2022-01-28 Time of flight distance measurement method and system, and device

Country Status (2)

Country Link
CN (1) CN112817001B (en)
WO (1) WO2022161481A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024040912A1 (en) * 2022-08-26 2024-02-29 上海禾赛科技有限公司 Laser radar echo signal processing method and apparatus, and laser radar detection system
CN117741682A (en) * 2024-02-19 2024-03-22 荣耀终端有限公司 Distance detection method, distance measurement system, electronic device, and readable storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817001B (en) * 2021-01-28 2023-12-01 深圳奥锐达科技有限公司 Time-of-flight ranging method, system and equipment
CN113253240B (en) * 2021-05-31 2021-09-24 中国人民解放军国防科技大学 Space target identification method based on photon detection, storage medium and system
CN115657056A (en) * 2021-07-07 2023-01-31 奥比中光科技集团股份有限公司 Distance measurement system and method, device and equipment for determining relative precision of distance measurement system
CN113484870B (en) * 2021-07-20 2024-05-14 Oppo广东移动通信有限公司 Ranging method and device, terminal and non-volatile computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110596724A (en) * 2019-09-19 2019-12-20 深圳奥锐达科技有限公司 Method and system for measuring flight time distance during dynamic histogram drawing
CN110596722A (en) * 2019-09-19 2019-12-20 深圳奥锐达科技有限公司 System and method for measuring flight time distance with adjustable histogram
CN111413706A (en) * 2019-01-16 2020-07-14 爱贝欧汽车系统有限公司 Method and device for optical distance measurement
US20200341144A1 (en) * 2019-04-26 2020-10-29 Ouster, Inc. Independent per-pixel integration registers for lidar measurements
CN112099033A (en) * 2020-09-11 2020-12-18 深圳市力合微电子股份有限公司 Ranging method for balancing resources and positioning accuracy
CN112255636A (en) * 2020-09-04 2021-01-22 奥诚信息科技(上海)有限公司 Distance measuring method, system and equipment
CN112817001A (en) * 2021-01-28 2021-05-18 深圳奥锐达科技有限公司 Time-of-flight ranging method, system and equipment
CN112924981A (en) * 2021-01-28 2021-06-08 深圳奥锐达科技有限公司 Time-of-flight ranging method, system and equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10206173B4 (en) * 2002-02-14 2006-08-31 Bruker Daltonik Gmbh High-resolution detection for time-of-flight mass spectrometers
US7334195B2 (en) * 2003-10-14 2008-02-19 Microsoft Corporation System and process for presenting search results in a histogram/cluster format
JP6171975B2 (en) * 2014-02-21 2017-08-02 株式会社豊田中央研究所 Histogram creation device and laser radar device
CN106296725B (en) * 2015-06-12 2021-10-19 富泰华工业(深圳)有限公司 Moving target real-time detection and tracking method and target detection device
WO2018211762A1 (en) * 2017-05-15 2018-11-22 シャープ株式会社 Light sensor, electronic device, computation apparatus, and method for measuring distance between light sensor and sensing object
CN107588936B (en) * 2017-08-28 2019-11-12 陕西科技大学 A method of the auto pedal rebound time is measured using virtual instrument technology

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111413706A (en) * 2019-01-16 2020-07-14 爱贝欧汽车系统有限公司 Method and device for optical distance measurement
US20200341144A1 (en) * 2019-04-26 2020-10-29 Ouster, Inc. Independent per-pixel integration registers for lidar measurements
CN110596724A (en) * 2019-09-19 2019-12-20 深圳奥锐达科技有限公司 Method and system for measuring flight time distance during dynamic histogram drawing
CN110596722A (en) * 2019-09-19 2019-12-20 深圳奥锐达科技有限公司 System and method for measuring flight time distance with adjustable histogram
CN112255636A (en) * 2020-09-04 2021-01-22 奥诚信息科技(上海)有限公司 Distance measuring method, system and equipment
CN112099033A (en) * 2020-09-11 2020-12-18 深圳市力合微电子股份有限公司 Ranging method for balancing resources and positioning accuracy
CN112817001A (en) * 2021-01-28 2021-05-18 深圳奥锐达科技有限公司 Time-of-flight ranging method, system and equipment
CN112924981A (en) * 2021-01-28 2021-06-08 深圳奥锐达科技有限公司 Time-of-flight ranging method, system and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024040912A1 (en) * 2022-08-26 2024-02-29 上海禾赛科技有限公司 Laser radar echo signal processing method and apparatus, and laser radar detection system
CN117741682A (en) * 2024-02-19 2024-03-22 荣耀终端有限公司 Distance detection method, distance measurement system, electronic device, and readable storage medium

Also Published As

Publication number Publication date
CN112817001B (en) 2023-12-01
CN112817001A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
WO2022160610A1 (en) Time of flight-based distance measurement method, system, and device
WO2022161481A1 (en) Time of flight distance measurement method and system, and device
WO2022160611A1 (en) Time fusion-based distance measurement method, system, and device
US9417326B2 (en) Pulsed light optical rangefinder
US20210382964A1 (en) Method and apparatus for processing a histogram output from a detector sensor
US20220196812A1 (en) Time of flight sensor
CN110554404B (en) Gm-APD array laser radar imaging method and system under strong background noise
US20200158836A1 (en) Digital pixel
CN112731425B (en) Histogram processing method, distance measurement system and distance measurement equipment
EP3370079B1 (en) Range and parameter extraction using processed histograms generated from a time of flight sensor - pulse detection
US11994586B2 (en) Using time-of-flight and pseudo-random bit sequences to measure distance to object
EP4016124A1 (en) Time of flight calculation with inter-bin delta estimation
WO2022188884A1 (en) Distance measurement method, system and device
US20220179078A1 (en) Time-of-flight ranging device and time-of-flight ranging method
CN114488173A (en) Distance detection method and system based on flight time
CN112255635A (en) Distance measuring method, system and equipment
US20230296739A1 (en) Methods and devices for identifying peaks in histograms
US20230375678A1 (en) Photoreceiver having thresholded detection
WO2022160622A1 (en) Distance measurement method, device, and system
US11085999B2 (en) Telemetry method and system using an imager
US20230236297A1 (en) Systems and Methods for High Precision Direct Time-of-Flight Lidar in the Presence of Strong Pile-Up
US20220308173A1 (en) Anti flicker filter for dtof sensor
EP4390459A1 (en) Optoelectronic device with time-of-flight sensor using dynamic time windows
WO2022077149A1 (en) Sensing device based on direct time-of-flight measurement
CN114518581A (en) Distance measurement method and electronic equipment

Legal Events

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

Ref document number: 22745353

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22745353

Country of ref document: EP

Kind code of ref document: A1