The present disclosure generally relates to the field of photoelectric detection technologies, and in particular, to a storage method for a detection data of a lidar, a data processing method, Light Detection and Ranging (LIDAR), and a computer-readable storage medium.
A lidar is a radar system that detects characteristic quantities such as a location and a velocity of a target object by emitting laser beams, which is an advanced detection method that combines laser technology with photoelectric detection technology. The lidar has been widely used in fields such as unmanned vehicles, traffic communication, unmanned aerial vehicles, intelligent robots, and resource exploration, by virtue of advantages such as a high resolution, desirable concealment, a strong anti-active jamming ability, desirable low-altitude detection performance, a small size, and a light weight.
In the lidar, a time digital converter is usually used to obtain a time information, including an arrival time of an echo and/or a time of flight (TOF) of the echo. In a measurement system based on a high-precision time-to-digital converter (TDC), a time information measured each time is accumulated into a histogram, which occupies a lot of storage space. Certain lidars use a device like a single photon avalanche diode (SPAD) as a detector. Avalanche of the SPAD may be triggered by a single photon. The TDC can provide a picosecond precision measurement for a timestamp of each trigger. In certain applications, a plurality of SPADs form a macro pixel, and output terminals of the plurality of SPADs are connected to the same TDC. The TDC provides a number cnt of SPADs simultaneously triggered in the macro pixel while providing timestamp of trigger moment.
In such a storage and ranging method, since a precision unit of the timestamp of trigger moment is in the order of picoseconds, it requires a large amount of memory and consumes an enormous amount of memory space to store a complete histogram when a long-TOF detection is required. In particular, in order to improve the long-range capability, a duration of measurement and a number of repeated measurements need to be increased, which makes a requirement of storage space increase.
The content of the background is merely technologies known to the inventor, and does not represent existing technologies in the art.
In view of at least one defect in the prior art, the present disclosure provides a storage method for a detection data of a radar, including:
S101: receiving a detection data, the detection data including a time information and an intensity information corresponding to the time information; and
S102: storing the intensity information with a first time precision according to a weight of the time information,
According to an aspect of the present disclosure, the weight includes a first weight and a second weight, the first weight being associated with a time interval between the time information and one adjacent first time scale, the second weight being associated with a time interval between the time information and another adjacent first time scale, and step S102 including: storing the intensity information with the first time precision according to the first weight and the second weight.
According to an aspect of the present disclosure, the first weight is n−x, and the second weight is x, x representing a time interval between the time information and an adjacent first time scale divided by the time resolution of the detection data of the lidar.
According to an aspect of the present disclosure, the first weight is a weight of the time information corresponding to a left adjacent first time scale, and the second weight is a weight of the time information corresponding to a right adjacent first time scale, x representing a time interval between the time information and the left adjacent first time scale divided by the time resolution of the detection data of the lidar.
According to an aspect of the present disclosure, the first weight is 1−(x/n), and the second preset weight is x, x representing a time interval between the time information and a left adjacent first time scale divided by the time resolution of the detection data of the radar.
According to an aspect of the present disclosure, n=2m, m being a positive integer.
According to an aspect of the present disclosure, the intensity information includes a trigger number of a detector unit.
According to an aspect of the present disclosure, a memory has a storage unit corresponding to each first time scale, and step S102 includes: storing the intensity information in two storage units corresponding to the two first time scales adjacent to the time information according to the first weight and the second weight.
According to an aspect of the present disclosure, step S102 further includes: during storage of the intensity information in one of the storage units according to the weight,
According to an aspect of the present disclosure, the storage method further includes: assigning an additional storage address to one of the storage units from a reserved register when it is determined that the storage unit has overflowed or is about to overflow.
According to an aspect of the present disclosure, the reserved register includes N groups of registers, N being a preset value, and each group of the registers being used for a storage unit that has overflowed or is about to overflow.
The present disclosure provides a data processing method for a lidar, including:
According to an aspect of the present disclosure, the lidar performs a plurality of sweeps in a field of view, and step S203 includes: accumulating and storing an intensity information obtained by the plurality of sweeps with the first time precision.
According to an aspect of the present disclosure, the data processing method further includes:
According to an aspect of the present disclosure, the data processing method further includes:
The present disclosure further provides a lidar, including:
According to an aspect of the present disclosure, the lidar is configured to perform a plurality of sweeps in a field of view, and the processor device is configured to accumulate and store an intensity information obtained by the plurality of sweeps with the first time precision.
According to an aspect of the present disclosure, the processor device is further configured to:
According to an aspect of the present disclosure, the processor device is further configured to:
According to an aspect of the present disclosure, the plurality of light emitters transmit detection beams to different fields of view, and the plurality of fields of view constitute a detection range of the lidar.
According to an aspect of the present disclosure, the detector unit includes a detector unit based on a Geiger mode, and the sampler device includes a time-to-digital converter (TDC).
According to an aspect of the present disclosure, each of the light emitters successively transmits a detection beam to a corresponding field of view, and after one of the light emitters transmits the detection beam, at least one detector unit corresponding to the field of view of the light emitter is activated to start detection.
The present disclosure further provides a computer-readable storage medium, having computer instructions stored thereon, the computer instructions, when executed by a processor, implement the above storage method.
The drawings forming a part of the present disclosure are used to provide further understanding of the present disclosure, and the exemplary embodiments and description of the present disclosure are used to explain the present disclosure but do not constitute an improper limitation on the present disclosure. In the drawings:
Only some exemplary embodiments are briefly described below. As a person skilled in the art can realize, the described embodiments may be modified in various different ways without departing from the spirit or the scope of the present disclosure. Therefore, the drawings and the description are to be considered as illustrative in nature but not restrictive.
In the description of the present disclosure, it should be understood that orientation or position relationships indicated by terms such as “center”, “longitudinal”, “transverse”, “length”, “width”, “thickness”, “upper”, “lower”, “front”, “rear”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “interior”, “exterior”, “clockwise”, and “counterclockwise” are based on orientation or position relationships shown in the drawings, are merely used for facilitating the description of the present disclosure and simplify the description, instead of indicating or implying that the indicated apparatus or element needs to have particular orientations or be constructed and operated in particular orientations, and therefore cannot be construed as a limitation on the present disclosure. Furthermore, the terms “first” and “second” are merely used for descriptive purpose, and should not be interpreted as indicating or implying relative significance or implicitly indicating a number of the indicated technical features. Thus, features defined by “first” and “second” may explicitly or implicitly include one or more features. In the description of the present disclosure, unless otherwise explicitly specified, “multiple” means two or more than two.
In the description of the present disclosure, it should be noted that unless otherwise specified or defined, terms such as “mount”, “couple”, and “connect” should be understood in a broad sense, for example, a fixed connection, a detachable connection; or an integral connection, or a mechanical connection, or an electrical connection or communication with each other; or a direct connection, an indirect connection through an intermediate medium, internal communication between two elements, or an interaction relationship between two elements. A person of ordinary skill in the art may understand the specific meanings of the above terms in the present disclosure according to specific situations.
In the present disclosure, unless otherwise explicitly specified and defined, a first feature being “over” “below” a second feature may mean that the first feature and the second feature are in direct contact, or the first feature and the second feature are not in direct contact but are in contact through another feature therebetween. Moreover, the first feature being “over”, “above”, and “on” the second feature includes that the first feature is directly above or obliquely above the second feature, or merely means that the first feature has a larger horizontal height than the second feature. The first feature being “under”, “below”, and “underneath” the second feature includes that the first feature is directly below or obliquely below the second feature, or merely means that the first feature has a smaller horizontal height than the second feature.
Many different implementations or examples are provided in the following disclosure to implement different structures of the present disclosure. To simplify the disclosure of the present disclosure, components and settings in particular examples are described below. Certainly, they are merely examples and are not intended to limit the present disclosure. In addition, the present disclosure may repeat reference numerals and/or reference letters in different examples. The repetition is for purpose of simplification and clarity, but does not indicate a relationship between the various embodiments and/or settings discussed. Moreover, the present disclosure provides examples of various particular processes and materials, but a person of ordinary skill in the art may realize application of other processes and/or use of other materials.
Preferred embodiments of the present disclosure are described below with reference to the drawings. It should be understood that the preferred embodiments described herein are merely used for illustrating and explaining the present disclosure and are not used for limiting the present disclosure.
In time-to-digital converters (TDCs) of certain lidars, each time scale of a time resolution needs to be configured with a corresponding storage location. Number information cnt of all triggered SPADs obtained after a plurality of measurements is stored at the storage location corresponding to the moment. Since a time resolution of the TDC is up to the order of picoseconds (ps), a register with a very large storage space is required. Detailed explanation is as follows.
An avalanche effect of the SPAD may be triggered by a single photon. Therefore, the SPAD is easily affected by ambient light noise. Moreover, photon detection efficiency (PDE) of the SPAD at a frequently-used optical band of detection of a lidar is low, and an intensity of a signal obtained by a single detection is very weak. As shown in
In a single sweep, a controller of the lidar activates a portion of macro pixels (in one row or one column or any shape of interest) by supplying a high voltage to the SPAD, and then a synchronization signal is sent to inform a laser emitter at an emitting end is ready to emit light, the laser emitter at the emitting end transmits an optical pulse for detection at a moment ta (a means an ath sweep). The optical pulse encounters an external obstacle, and is reflected by the obstacle and returns to the lidar, and can be received by a photodetector at a receiving end. When the photodetector is an array of SPADs, once the SPAD receive a photon, the SPADs generate avalanche electrical signals, which are transmitted to the TDC. The TDC outputs a time signal t1a indicating when the SPADs are triggered and a number signal cnt1a indicating a number of SPADs triggered at the same moment (1a means the first trigger of the ath sweep), a timestamp1a (briefly referred to as tp1a below) of t1a-ta is calculated through a subtraction program, and tp1a and the trigger number cnt1a signal of the timestamp are transmitted and stored in a memory. Each macro pixel includes a plurality of SPADs, and the SPADs may perform detection again after a dead time. Therefore, in one sweep, it is possible that at another moment the SPAD may be triggered again, and the memory stores tp2a and cnt2a of the current trigger (2a means the second trigger of the ath detection). A plurality of triggers in one sweep need to be stored according to a time information.
In a next sweep b, the controller of the lidar sends, according to a preset procedure, a signal again to control the emitter to transmit a detection light pulse at a moment tb. Once the SPAD receives a photon, avalanche electrical signals are sent to the TDC. The TDC outputs a time signal t1b indicating when the SPAD is triggered and a number signal cnt1b indicating a number of SPADs triggered at the same moment (the first trigger of the bth sweep), and subsequently the memory stores a timestamp1b t1b-tb (referred to as tp1b below) of the trigger time of the SPADS and the trigger number cnt1b signal of the timestamp. Each macro pixel includes a plurality of SPADs, and the SPADs may perform detection again after a dead time. Therefore, in one sweep, it is possible that at another moment the SPAD may be triggered again, and the memory stores tp2b and cnt2b of the current trigger.
In hundreds of measurements, the trigger number cnt obtained by each measurement is stored in the corresponding memory location according to the timestamp. When a new trigger number cnt arrives at the corresponding location of the same timestamp, the original stored value and the new trigger number cnt are accumulated and then updated to the location. After accumulation of a plurality of sweeps, a histogram is stored in the memory, as shown in
A data storage method is shown in
It may be learned from
In such a storage and ranging method, since a precision unit of the timestamp is picosecond, when a long-TOF detection is required, a very large memory is required to store a complete histogram, which occupies a very large storage space. In particular, in order to improve the long-range capability, a duration of measurement and a number of repeated measurements need to be increased, which makes a requirement for the storage space increase.
The inventor of the present disclosure conceived that a corresponding storage location is unnecessarily arranged at each time scale of the time resolution of the TDC, the detection data is not stored according to the time resolution; instead, the intensity information is stored with a lower time precision according to a weight of a time information. The present disclosure adopts a data storage method using weighted accumulation, which compresses an original signal while preserving a ranging precision, thereby greatly reducing the storage space required for storing the histogram. Specifically, the data storage method using weighted accumulation can reduce a total storage space to a range of 1/10 of an original storage space.
Specifically, a time precision for storing the intensity information in the present disclosure is a first time precision, and the first time precision may be n times the time resolution of the TDC. The intensity information is optical signal intensity information corresponding to the time information. For different photodetectors, different parameters may be used to characterize the optical signal intensity. For example, if a detector is an array of SPADs, a number of SPADs triggered simultaneously corresponding to the time information may be used as the intensity information. If the detector is a silicon photomultiplier (SiPM), an output level/current intensity corresponding to the time information may be used to represent the optical signal intensity information.
Detailed description is provided below with reference to the drawings.
Refer to
As shown in
Taking the detector unit shown in
In the embodiment of
Step S102: Store the intensity information with a first time precision according to a weight of the time information, the first time precision being a time interval between any two adjacent first time scales, and being n times a time resolution of the detection data of a lidar, and n>1; and the weight being associated with a time interval between the time information and at least one first time scale.
In
A person skilled in the art may easily understand that since the time resolution of the lidar is small and the interval of the first time scale is large, a time scale corresponding to the time resolution of the lidar may be referred to as “fine scale”, and the first time scale may be referred to as a “coarse scale”.
As shown in
According to a preferred embodiment of the present disclosure, the first weight is associated with a time interval between the moment x and a first time scale A adjacent to its left, and the first weight is, for example, (16−x), and the second weight is associated with a time interval between the moment x and a first time scale A+1 adjacent to its right, and the second weight is, for example, x. The moment x is represented by weights of x at two adjacent coarse scales (A, A+1). The weight of x at the coarse scale A is (16−x), and the weight of x at the coarse scale A+1 is x (x represents a time interval between the moment x and coarse scale A), to equivalently represent fine scales of the moment x. In other words, x is used as the weights, and data at the fine scales is stored at corresponding addresses of the two adjacent coarse scales to represent a value of the scale x instead of storing the scale x. The process is expressed as the following equation:
A*(16−x)+(A+1)*x=A*16+x
In the equation, the left side of an equal sign is a sum of weights applied according to a coarse scale storage and a starting value and an ending value of the coarse scale, and the right side of the equal sign is a specific value of the timestamp. The storage method using coarse scale+weight can represent the specific value of timestamp.
Similarly, when a signal obtained after triggering includes information such as the trigger number cnt representing a number or intensities of triggers in addition to the timestamp, intensity information cnt*(16−x) is added to the coarse scale A, and intensity information cnt*x is added to the coarse scale A+1, which are accumulated in a plurality of sweeps. Detailed description is provided below with reference to
Referring to
During a next sweep b, received signals tp2 and cnt2b are respectively assigned with weights cnt2b*(16−x2b) and cnt2b*x2b at the coarse scales A and A+1, and are stored in the registers corresponding to coarse scales A and A+1 after summed with the original stored data. A histogram is obtained by accumulating data from many sweeps. In a plurality of sweeps, all trigger numbers cnt of corresponding triggers occurring at the moments 0-15 are stored in the registers corresponding to the coarse scales A and A+1.
A contrast relationship between the coarse scale and the fine scale is shown in
In the embodiment of
In the above embodiment, the first weight is (16−x), and the second weight is x, but the present disclosure is not limited thereto. The first weight may be x, and the second weight may be (16−x), or the first weight may be 1−(x/n), and the second preset weight may be x/n, as long as the first weight is associated with the time interval between the moment x and one of the adjacent first time scale and the second weight is associated with the time interval between the moment x and the another adjacent first time scale.
The data storage method of the present disclosure can maintain a ranging precision while reducing a storage space. Detailed description is provided below.
For example, in
G0 represents an echo arrival time calculated by using the center of gravity method in case of binary storage.
After the time information and the intensity information of the photon are compressed and stored through weighted accumulation by using the above storage method 100, a corresponding weight value Bi assigned to an ith coarse scale is as follows:
When i>0 and i<n+1,
A center of gravity formula after weighted accumulation is:
G1 represents an echo arrival time calculated by using the center of gravity method in case of data storage by using the weighted accumulation method in the present disclosure. Combining alternately the numerator of the above formula according to Aji gives:
It can be determined that results of G1 and G0 are consistent. Similarly, a precision of a ranging result using a leading edge method is also free of losses caused by the compression.
Referring to
Therefore, according to a preferred embodiment of the present disclosure, a solution for saving more register space is provided. During the whole detection period, a time span of the echo pulse is very small, and noise exits at most other locations. Therefore, assigning the 16-bit register to each coarse scale would result in some wasted space. An 8-bit register may be used. As shown in
According to a preferred embodiment of the present disclosure, the reserved register includes N groups of registers, where N is a preset value, and each group of the registers is used for a storage unit that has overflowed or is about to overflow. A value of N is determined according to a maximum number of echo pulses allowed by the system. For example, when the system can calculate information of up to 3 echo pulses, set N=3. M is determined according to a maximum value of data storage. For example, a maximum register of 16 bits is originally required, in this case, 32 8-bit registers may be arranged as a group of reserved registers.
In the above way, for the detection data obtained by the plurality of sweeps, the intensity information in the detection data is stored with the first time precision according to the weight of the time information, the histogram may be formed according to the stored data, and the center on the time axis may be calculated by using the histogram. In this way, a more accurate location and TOF of the echo pulse can be obtained.
Therefore, the present disclosure further provides a data processing method. The data is stored in the storage unit of the memory through the storage method 100 described above. The processing method includes:
After the center of gravity of the value on the time axis is calculated, coordinates of the time axis corresponding to the center of gravity (such as coordinates of a fine scale) may be used as a TOF of an echo pulse to calculate a distance from a target object.
In another preferred embodiment, the processing method includes:
In a specific implementation, the preset threshold is a noise threshold.
In a specific implementation, the preset threshold is an average value of the noise threshold and a pulse peak.
The present disclosure further provides a data processing method 200 for a lidar. As shown in
Step S201: Acquire a receipt moment and an intensity information of an echo. For example, the receiving unit 22 shown in
Step S202: Determine a time information based on a transmission moment of a detection pulse and the receipt moment.
Based on the transmission moment of the detection pulse and the receipt moment of the echo, a time difference, namely, a TOF of the echo, may be obtained as the time information.
Step S203: Store the intensity information with a first time precision according to a weight of the time information, where the first time precision is a time interval between any two adjacent first time scales, and is n times a time resolution of the detection data of a lidar, and n>1; and the weight being associated with a time interval between the time information and at least one first time scale.
As described above with reference to
According to a preferred embodiment of the present disclosure, when the lidar performs detection in a field of view (such as a part in a three-dimensional environment), the lidar performs a plurality of sweeps in the field of view, and obtains distance information of the part according to detection information obtained by the plurality of sweeps. Step S203 includes: accumulating and storing intensity information obtained by the plurality of sweeps with the first time precision.
After the plurality of sweeps are completed, a value stored in the storage unit corresponding to each first time scale is read, and then, for example, a histogram may be generated, a center of gravity of the value on the time axis is calculated, time information corresponding to the center of gravity is used as a TOF, and a distance corresponding to the TOF is calculated.
In another preferred embodiment, a value stored in a storage unit corresponding to each first time scale is read after the plurality of sweeps are completed, and a leading edge time of an echo pulse is acquired. Specifically, values corresponding to a leading edge of the echo pulse are compared with a preset threshold, and time information corresponding to a value with an intensity equal to the preset threshold is used as the leading edge time.
In a specific implementation, the preset threshold is a noise threshold.
In a specific implementation, the preset threshold is an average value of the noise threshold and a pulse peak.
The present disclosure further provides a lidar 20, as shown in
According to an embodiment of the present disclosure, the lidar is configured to perform a plurality of sweeps in a field of view, and the processor device is configured to accumulate and store intensity information obtained by the plurality of sweeps with the first time precision.
According to an embodiment of the present disclosure, the processing unit is further configured to: read a value stored in a storage unit corresponding to each first time scale after the plurality of sweeps are completed; calculate a center of gravity of the value on a time axis; and use time information corresponding to the center of gravity as a TOF.
According to another embodiment of the present disclosure, the processing unit is further configured to: read a value stored in a storage unit corresponding to each first time scale after the plurality of sweeps are completed; a leading edge time of an echo pulse is acquired. Specifically, values corresponding to a leading edge of the echo pulse are compared with a preset threshold, and time information corresponding to a value with an intensity equal to the preset threshold is used as the leading edge time.
In a specific implementation, the preset threshold is a noise threshold.
In a specific implementation, the preset threshold is an average value of the noise threshold and a pulse peak.
According to an embodiment of the present disclosure, the plurality of light emitters correspond to different field of views, that is, the plurality of light emitters transmit detection beams to different field of views, and the plurality of field of views constitute a detection range of the lidar.
According to an embodiment of the present disclosure, each of the light emitters successively transmits a detection beam to a corresponding field of view, and after one of the light emitters transmits the detection beam, at least one detector unit corresponding to the field of view of the light emitter is activated and starts detection.
The present disclosure further relates to a computer-readable storage medium, including computer-executable instructions stored thereon, the computer-executable instructions, when executed by a processor, implementing the storage method 100 described above.
Finally, it should be noted that: the above description is merely preferred embodiments of the present disclosure, and is not intended to limit the present disclosure. Although the present disclosure has been described in detail with reference to the above embodiments, a person of ordinary skill in the art may make modifications to the technical solutions described in the above embodiments, or make equivalent replacements to some technical features in the technical solutions. Any modification, equivalent replacement, improvement, and the like made within the spirit and principle of the present disclosure shall fall within the protection scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202110351505.2 | Mar 2021 | CN | national |
This application is a bypass Continuation of International Patent Application No. PCT/CN2021/138329, filed Dec. 15, 2021, which claims priority to Chinese Patent Application No. 202110351505.2, filed Mar. 31, 2021; the disclosures of all of which are incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2021/138329 | Dec 2021 | US |
Child | 18477692 | US |