Detection method and related apparatus

By dividing the detector pixels into uniform sub-pixels and using a predetermined compensation table, the problem of inaccurate error compensation caused by changes in spot distribution in the lidar system is solved, improving the accuracy of error compensation and system precision.

WO2024192546A1PCT designated stage expired Publication Date: 2024-09-26YINWANG INTELLIGENT TECHNOLOGIES CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/082046
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In the lidar system, changes in spot distribution lead to inaccurate target parameter error compensation. Existing technology is difficult to effectively solve the error compensation problem caused by aging of system equipment, temperature changes and target object distance changes.

Method used

By dividing the pixels on the detector into multiple sub-pixels, the light spots in the sub-pixels are evenly distributed, and a predetermined compensation table is used to perform error compensation based on the echo parameters of the sub-pixels to ensure that the geometric parameters of the sub-pixels are the same. Accurate compensation.

Benefits of technology

It improves the accuracy of error compensation, avoids the problem of inaccurate error compensation caused by changes in light spot distribution, simplifies the error compensation process, and enhances the accuracy of the lidar system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023082046_26092024_PF_FP
    Figure CN2023082046_26092024_PF_FP
Patent Text Reader

Abstract

The present application relates to the technical field of photoelectricity, and provides a detection method and a related apparatus. The method comprises: receiving an echo light beam, wherein the echo light beam irradiates a first pixel of a detector, and the first pixel comprises N sub-pixels; determining N first sub-light signals according to the N sub-pixels, wherein N is a positive integer; determining N first echo parameters according to the N first sub-light signals, wherein the first echo parameters are used for representing the signal strength of the first sub-light signals; and determining a first light signal according to the N first echo parameters, wherein the first light signal corresponds to the echo light beam. The solution can avoid the situation that the distribution of light spots formed by the echo light beam on the detector is changed when the light spots are offset due to uneven distribution of the light spots, which leads to inaccurate error compensation for target parameters calculated by a lidar system, and the solution can improve the accuracy of error compensation.
Need to check novelty before this filing date? Find Prior Art

Description

A detection method and related device Technical Field

[0001] The present application relates to the field of optoelectronic technology, and more particularly, to a detection method and related devices. Background Art

[0002] Laser detection and ranging (Lidar) has the characteristics of high resolution and strong resistance to active interference, and is therefore widely used in various technical fields. In a Lidar system, the Lidar emits a laser beam towards the target object to be detected. After the laser beam contacts the target object, it will be reflected and received by the signal detector in the form of an echo beam. The echo beam hits the pixel array of the signal detector to form a light spot, and the pixel array converts the echo beam from an optical signal to an electrical signal. Then, based on this electrical signal, some parameters are determined, and then the target parameters such as the distance between the current Lidar and the target object and the reflectivity of the target object can be solved to realize functions such as target ranging and target recognition.

[0003] In a LiDAR system, the target parameters calculated based on the echo signals corresponding to a specified spot distribution often contain errors. Therefore, errors can be compensated for the target parameters corresponding to the aforementioned spot distribution using an error compensation table. However, due to system equipment aging, temperature fluctuations, and changes in the distance between the target object and the laser, the spot distribution often changes. Therefore, if the target parameters are still compensated using the aforementioned error compensation table, the accuracy of the compensation cannot be guaranteed.

[0004] Therefore, how to compensate for the errors of the target parameters calculated by the lidar system and increase the accuracy of the error compensation as much as possible is an urgent problem that needs to be solved.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a detection method and related devices, which can avoid the uneven distribution of the light spot formed on the detector due to the echo light beam, causing the light spot to shift, resulting in a change in the light spot distribution, and further causing inaccurate error compensation for the target parameters calculated by the lidar system, thereby helping to increase the accuracy of error compensation.

[0007] In a first aspect, a detection method is provided, which is applied to a detector, the method comprising: receiving an echo light beam, the echo light beam hitting a first pixel of the detector; the first pixel comprising N sub-pixels, and determining N first sub-light signals based on the N sub-pixels, where N is a positive integer; determining N first echo parameters based on the N first sub-light signals, the first echo parameters being used to characterize the signal strength of the first sub-light signals; and determining a first light signal based on the N first echo parameters, the first light signal corresponding to the echo light beam.

[0008] For example, the return beam ultimately appears as a light spot on the detector's pixel array. Therefore, when the light spot occupies multiple pixels, the light signal determined based on the return beam corresponds to a portion of the light spot. When the light spot occupies only the first pixel, the light signal determined based on the return beam corresponds to the entire light spot.

[0009] For example, taking a first pixel as an example, the first pixel can be divided into N sub-pixels with the same geometric parameters. The embodiments of the present application do not limit the specific geometric parameters. In addition, the first pixel can also be divided into N sub-pixels with different geometric parameters. The first pixel can also be divided into sub-pixels with a first geometric parameter as part and sub-pixels with a second geometric parameter as part, etc.

[0010] For example, the pixel array may adjust the division mode of each pixel on the pixel array in real time according to the current light spot distribution, so that the light spot distribution in each sub-pixel is uniform, thereby further increasing the accuracy of subsequent error compensation.

[0011] It should be understood that the first optical signal is an optical signal compensated based on the first echo parameter corresponding to each first sub-optical signal, and the target parameter carried by the first optical signal can be accurately compensated.

[0012] Based on the above technical solution, the first pixel is divided into N sub-pixels. Since the sub-pixels are very small, the spot distribution in the sub-pixels is uniform or approximately uniform. When detecting the distance to the target object or the reflectivity of the target object, the spot distribution in the sub-pixel remains unchanged regardless of how factors such as the distance to the target object and the temperature of the laser change. Therefore, based on this method, it helps to avoid the problem of being unable to accurately compensate for errors based on a compensation table due to changes in the spot distribution. That is, this method can achieve the premise that the geometric parameters of the N sub-pixels are the same, and the accurate compensation amount can be obtained through a compensation table, thereby improving the accuracy of error compensation and being easy to implement.

[0013] In combination with the first aspect, in certain implementations of the first aspect, a first sub-histogram is determined based on the first sub-optical signal, the first sub-histogram including a signal intensity change trend of the first sub-optical signal within multiple unit time periods; and a first echo parameter is determined based on the first sub-histogram.

[0014] Based on the above technical solution, the first echo parameter representing the signal intensity of the first sub-light signal is calculated by using the first sub-histogram. This method is easy to implement.

[0015] In combination with the first aspect, in certain implementations of the first aspect, N first sub-compensation amounts are determined based on the N first echo parameters; and a first compensation amount is determined based on the N first sub-compensation amounts, where the first compensation amount is used to determine the compensation amount of the above-mentioned first optical signal.

[0016] For example, the first sub-compensation amount can be determined by looking up a compensation table. The compensation table can be determined in advance through experiments. Different sub-pixel geometric parameters correspond to different compensation tables. Based on this, when the geometric parameters of N sub-pixels are the same, the first compensation amount can be determined using a single compensation table.

[0017] For example, for different compensation amounts, the method of determining the above-mentioned first compensation amount is also different: the N first sub-compensation amounts can be weighted and accumulated, and the weighted accumulation can include two cases. One case is that the weight is 1. In this case, the weighted accumulation process is actually a direct accumulation process. The other case is that the weight is not 1; in addition, the N first sub-compensation amounts can also be accumulated to obtain the average value.

[0018] Based on the above technical solution, since the above-mentioned N first echo parameters are determined based on the N first sub-light signals received by the N sub-pixels, since the sub-pixels are very small, even if the light spot corresponding to the echo light beam is offset, for the N sub-pixels, when N is large enough, the distribution of part of the light spot on the sub-pixel is approximately uniform, so regardless of whether the light spot is offset, the distribution of part of the light spot corresponding to the N sub-pixels is maintained as a uniform distribution. Therefore, regardless of whether the light spot is offset, the distribution of part of the light spot corresponding to the N sub-pixels is maintained as a uniform distribution. Therefore, the N first sub-compensation amounts determined based on the N first echo parameters are accurate, and thus the first compensation amount is accurate, which increases the accuracy of error compensation.

[0019] In combination with the first aspect, in certain implementations of the first aspect, a corresponding first compensation table is screened out based on the geometric parameters of the sub-pixel; based on the first echo parameter, the first compensation table is searched to determine the first sub-compensation amount corresponding to the first echo parameter. The first compensation table is determined in advance through experiments, and the first compensation table includes a mapping relationship between the first echo parameter and the first sub-compensation amount.

[0020] Based on the above technical solution, it is possible to determine the first compensation amount through a compensation table under the premise that the geometric parameters of N sub-pixels are the same, thereby improving the accuracy of error compensation and being easy to implement.

[0021] In combination with the first aspect, in certain implementations of the first aspect, the geometric parameters of the sub-pixel include the shape and / or area of ​​the sub-pixel.

[0022] Based on the above technical solution, by using the shape and / or area of ​​a sub-pixel as its geometric parameter, the first compensation table corresponding to different sub-pixels can be reasonably determined, which helps to ensure the accuracy of error compensation.

[0023] In combination with the first aspect, in some implementations of the first aspect, the first echo parameter includes at least one of the following: an echo area, an echo peak, an echo pulse width of the first sub-light signal, and a rising edge slope of a curve image in the first sub-histogram.

[0024] Based on the above technical solution, the first sub-compensation amount can be determined based on at least one of the echo area, echo peak, echo pulse width of the first sub-light signal and the rising edge slope of the curve image in the first sub-histogram, which provides multiple ways to determine the compensation amount and increases the flexibility of the solution.

[0025] In combination with the first aspect, in certain implementations of the first aspect, a first result value is determined based on a second optical signal, wherein the second optical signal is an original optical signal determined based on the above-mentioned echo light beam; the first result value is compensated by a first compensation amount to determine a first target parameter value, which corresponds to the above-mentioned first optical signal.

[0026] For example, the first result value may be the distance to the target object, or the energy value of the second light signal used to calculate the reflectivity of the target object. However, the first result value is an uncompensated result value.

[0027] Based on the above technical solution, compensating the first result value based on the first compensation amount determined by the above method helps to improve the accuracy of the first target parameter value.

[0028] In combination with the first aspect, in some implementations of the first aspect, a first histogram is determined based on the second optical signal, the first histogram including a signal strength change trend of the second optical signal within multiple unit time periods; and a first result value is determined based on the first histogram.

[0029] For example, the echo area, echo pulse width, echo peak value of the second optical signal and the rising edge slope of the curve image in the first histogram can be determined according to the first histogram.

[0030] For example, the echo area is the integral value of the curve image in the first histogram; the echo pulse width can be divided into a first pulse width and a second pulse width. The first pulse width, also known as the full pulse width, is the difference between the horizontal coordinates of the starting point and the ending point of the curve image in the first histogram; the second pulse width is the pulse width corresponding to a certain proportional threshold, that is, the pulse width of the curve image in the first histogram taken horizontally at a preset position, wherein the preset position can be 1 / 2 of the curve image (in which case the second pulse width is also called the half-maximum pulse width), or 1 / 3 or other reasonable positions. For example, when the preset position is 1 / 2 of the curve image, assuming that the vertical coordinate of the peak point of the curve image is y, then the vertical coordinates of the two endpoints of the half-maximum pulse width are y / 2, and the difference between the horizontal coordinates of these two endpoints is the half-maximum pulse width; the echo peak value is the vertical coordinate of the peak point of the curve image in the first histogram. Based on any of the echo area, echo pulse width, and echo peak value of the second optical signal, the signal strength of the second optical signal can be characterized.

[0031] For example, in order to more accurately determine the signal strength of the second optical signal, it is also necessary to determine the background light value of the current environment and eliminate the error of the background light value with respect to the signal strength of the second optical signal.

[0032] It should be understood that since the first optical sub-signal is part of the second optical signal, the curve trend of the first sub-histogram is substantially consistent with the curve trend of the first histogram. Therefore, based on the first sub-histogram, first echo parameters can also be determined. The first echo parameters include at least one of the echo area, echo pulse width, and echo peak value of the first optical sub-signal.

[0033] For example, the first histogram can be intercepted based on the first detection threshold, so that the first result value is calculated based on the portion of the image above the first detection threshold. The first detection threshold is a reasonable preset value. Correspondingly, since the first sub-histogram is the first histogram compressed according to the corresponding ratio, the first sub-histogram can also correspond to a second detection threshold, which is proportionally reduced based on the first detection threshold. Alternatively, since the starting time and ending time of the first histogram can be determined based on the first histogram and the first detection threshold, and the starting time and ending time also correspond to the starting time and ending time of the first sub-histogram, there is no need to determine the second detection threshold, and the interception of the first sub-histogram can be completed.

[0034] Based on the above technical solution, the first result value can be determined relatively intuitively and simply through the first histogram corresponding to the second optical signal, which helps to improve calculation efficiency.

[0035] In combination with the first aspect, in certain implementations of the first aspect, when the first result value is the distance to the target object, the moment when the laser beam is emitted to the target object is determined as the first moment; based on the first histogram, the second moment is determined; based on the time difference between the second moment and the first moment, the flight time corresponding to the second light signal is determined; and the above-mentioned first result value is determined based on the speed of light and the flight time.

[0036] Based on the above technical solution, the second moment is determined by the first histogram, which makes the acquisition of the second moment relatively simple, and helps to improve the efficiency of calculating the first result value.

[0037] In combination with the first aspect, in certain implementations of the first aspect, based on the first histogram, the start time of detecting the second optical signal is determined as the second time; or, based on the first histogram, the peak time of the first histogram is determined as the second time; or, based on the first histogram, the second time is determined by constant fraction timing (CFD); or, based on the first histogram, the echo time of the second optical signal is determined, and then the second time is determined according to the echo time corresponding to the second optical signal using a centroid algorithm.

[0038] Based on the above technical solution, multiple ways of obtaining the second moment are provided, which increases the flexibility of the method.

[0039] In combination with the first aspect, in certain implementations of the first aspect, when the first result value is the energy value of the second optical signal, the echo area and / or echo peak value of the second optical signal are determined according to the first histogram; the signal strength of the second optical signal is determined according to the echo area and / or echo peak value of the second optical signal; and the first result value is determined according to the signal strength of the second optical signal.

[0040] Based on the above technical solution, the signal strength of the second optical signal is determined by the first histogram. This method is relatively simple and helps to improve the efficiency of calculating the first result value.

[0041] In combination with the first aspect, in certain implementations of the first aspect, before determining the first compensation amount based on N first echo parameters, a first compensation table is determined, including: obtaining a second target parameter value and a geometric parameter of a sub-pixel, the second target parameter value being an accurate target parameter value; determining a first sub-light signal obtained by the sub-pixel; determining a second result value based on the first echo parameter corresponding to the first sub-light signal, the second result value being a result value that needs to be compensated; determining a first sub-compensation amount based on the second result value and the second target parameter value; recording the first echo parameter corresponding to the first sub-light signal to determine a mapping relationship between the first echo parameter and the first sub-compensation amount; and adding the mapping relationship to the first compensation table corresponding to the geometric parameter of the sub-pixel.

[0042] For example, when the above-mentioned second target parameter value is the distance to the target object, the target object distance is an accurate distance value measured in advance; when the above-mentioned second target parameter value is the energy value of the second light signal corresponding to the echo light beam reflected by the target object, the energy value is an accurate energy value measured in advance.

[0043] For example, the geometric parameters of the sub-pixels are determined in the process of determining the first pixel division method, and the geometric parameters of the sub-pixels can be stored in the memory.

[0044] For example, when the second result value is the distance to the target object that has not been compensated, based on the description of the corresponding embodiment above, it can be seen that the second result value can be calculated based on the flight time of the first sub-light signal. When the second result value is the energy value of the first sub-light signal that has not been compensated, based on the description of the corresponding embodiment above, it can be seen that the second result value can be calculated based on the signal strength of the first sub-light signal.

[0045] For example, when the first sub-compensation is a distance sub-compensation, the distance sub-compensation can be determined by subtracting the second target parameter value from the second result value. When the first sub-compensation is an energy sub-compensation for the first sub-optical signal, the energy sub-compensation can be estimated based on the second target parameter value and the second result value.

[0046] For example, by modifying the second target parameter value and repeating the experiment mentioned in the above method, the determined multiple mapping relationships are added to the first compensation table, and the first compensation table is continuously expanded to be continuously improved.

[0047] Based on the above technical solution, a corresponding first compensation table is determined for sub-pixels with different geometric parameters through preliminary experiments. This allows accurate compensation of the distance compensation amount to be achieved based on a single first compensation table determined through these experiments, even when a first pixel is divided into multiple sub-pixels with identical geometric parameters. Even if the geometric parameters of the multiple sub-pixels into which the first pixel is divided are not identical, for example, two different geometric parameters, only two first compensation tables are required to accurately compensate for the distance compensation amount. This solves the problem of accurate error compensation in the prior art.

[0048] In combination with the first aspect, in certain implementations of the first aspect, the N sub-pixels are divided based on single photon avalanche diodes (SPADs) in the pixel array.

[0049] For example, the aforementioned SPAD includes a pixel activation area. Each pixel in the pixel activation area can be pre-set using SPAD initial parameters to divide the pixel into multiple sub-pixels. The initial parameters include geometric parameters of each sub-pixel, such as the length and width of each pixel, and numbering each sub-pixel. It also supports numbering each pixel. This allows for distinguishing the portion of the light signal corresponding to each sub-pixel.

[0050] Based on the above technical solution, the above first pixel is divided by SPAD, which provides the necessary prerequisite for the subsequent sub-pixel-based compensation solution and is the basis for accurate error compensation.

[0051] In combination with the first aspect, in certain implementations of the first aspect, the echo light beam hits the pixel array to form a light spot, and the distribution of part of the light spot on each sub-pixel is uniform.

[0052] Based on the above technical solution, regardless of whether the light spot is offset or diffused, the distribution of the light spot on the sub-pixel can be guaranteed to be uniform, which can further increase the accuracy of subsequent error compensation.

[0053] In a second aspect, a detection device is provided, which is applied to a detector. The device includes: a receiving unit, used to receive an echo light beam, which hits a first pixel of the detector, and the first pixel includes N sub-pixels; a determination unit, used to determine N first sub-light signals based on the above-mentioned N sub-pixels, where N is a positive integer; determine N first echo parameters based on the N first sub-light signals, and the first echo parameters are used to characterize the signal strength of the first sub-light signal; and determine a first light signal based on the above-mentioned N first echo parameters, and the first light signal corresponds to the above-mentioned echo light beam.

[0054] Based on the above technical solution, the first pixel is divided into N sub-pixels. Since the sub-pixels are very small, the spot distribution in the sub-pixels is uniform or approximately uniform. When detecting the distance to the target object or the reflectivity of the target object, the spot distribution in the sub-pixel remains unchanged regardless of how factors such as the distance to the target object and the temperature of the laser change. Therefore, based on this method, it helps to avoid the problem of being unable to accurately compensate for errors based on a compensation table due to changes in the spot distribution. That is, this method can achieve the premise that the geometric parameters of the N sub-pixels are the same, and the accurate compensation amount can be obtained through a compensation table, thereby improving the accuracy of error compensation and being easy to implement.

[0055] In combination with the second aspect, in certain implementations of the second aspect, the above-mentioned determination unit is specifically used to: determine a first sub-histogram based on the first sub-light signal, the first sub-histogram including a signal intensity change trend of the first sub-light signal within multiple unit time periods; and determine a first echo parameter based on the first sub-histogram.

[0056] Based on the above technical solution, the first echo parameter representing the signal intensity of the first sub-light signal is calculated by using the first sub-histogram. This method is easy to implement.

[0057] In combination with the second aspect, in certain implementations of the second aspect, the above-mentioned determination unit is also used to: determine N first sub-compensation amounts based on N first echo parameters; determine a first compensation amount based on the N first sub-compensation amounts, and the first compensation amount is used to determine the compensation amount of the above-mentioned first optical signal.

[0058] Based on the above technical solution, since the above-mentioned N first echo parameters are determined based on the N first sub-light signals received by the N sub-pixels, since the sub-pixels are very small, even if the light spot corresponding to the echo light beam is offset, for the N sub-pixels, when N is large enough, the distribution of part of the light spot on the sub-pixel is approximately uniform, so regardless of whether the light spot is offset, the distribution of part of the light spot corresponding to the N sub-pixels is maintained as a uniform distribution. Therefore, regardless of whether the light spot is offset, the distribution of part of the light spot corresponding to the N sub-pixels is maintained as a uniform distribution. Therefore, the N first sub-compensation amounts determined based on the N first echo parameters are accurate, and thus the first compensation amount is accurate, which increases the accuracy of error compensation.

[0059] In combination with the second aspect, in certain implementations of the second aspect, the above-mentioned determination unit is specifically used to: screen out the corresponding first compensation table based on the geometric parameters of the sub-pixel; search the first compensation table based on the first echo parameter, and determine the first sub-compensation amount corresponding to the first echo parameter. The first compensation table is determined in advance through experiments, and the first compensation table includes a mapping relationship between the first echo parameter and the first sub-compensation amount.

[0060] Based on the above technical solution, it is possible to determine the first compensation amount through a compensation table under the premise that the geometric parameters of N sub-pixels are the same, thereby improving the accuracy of error compensation and being easy to implement.

[0061] In combination with the second aspect, in certain implementations of the second aspect, the geometric parameters of the sub-pixel include the shape and / or area of ​​the sub-pixel.

[0062] Based on the above technical solution, by using the shape and / or area of ​​a sub-pixel as its geometric parameter, the first compensation table corresponding to different sub-pixels can be reasonably determined, which helps to ensure the accuracy of error compensation.

[0063] In combination with the second aspect, in some implementations of the second aspect, the above-mentioned first echo parameter includes at least one of the following: echo area, echo peak value, echo pulse width of the first sub-light signal, and rising edge slope of the curve image in the first sub-histogram.

[0064] Based on the above technical solution, the first sub-compensation amount can be determined based on at least one of the echo area, echo peak, echo pulse width of the first sub-light signal and the rising edge slope of the curve image in the first sub-histogram, which provides multiple ways to determine the compensation amount and increases the flexibility of the solution.

[0065] In combination with the second aspect, in certain implementations of the second aspect, the above-mentioned determination unit is also used to: determine a first result value based on a second optical signal, where the second optical signal is an original optical signal determined based on the above-mentioned echo light beam; compensate the first result value by a first compensation amount to determine a first target parameter value, where the first target parameter value corresponds to the above-mentioned first optical signal.

[0066] Based on the above technical solution, compensating the first result value based on the first compensation amount determined by the above method helps to improve the accuracy of the first target parameter value.

[0067] In combination with the second aspect, in certain implementations of the second aspect, the above-mentioned determination unit is specifically used to: determine a first histogram based on the second optical signal, the first histogram including the signal strength change trend of the second optical signal in multiple unit time periods; and determine a first result value based on the first histogram.

[0068] Based on the above technical solution, the first result value can be determined relatively intuitively and simply through the first histogram corresponding to the second optical signal, which helps to improve calculation efficiency.

[0069] In combination with the second aspect, in certain implementations of the second aspect, when the above-mentioned first result value is the distance to the target object, the above-mentioned determination unit is specifically used to: determine the moment when the laser beam is emitted to the target object as the first moment; determine the second moment based on the first histogram; determine the flight time corresponding to the second light signal based on the time difference between the second moment and the first moment; determine the above-mentioned first result value based on the speed of light and the flight time.

[0070] Based on the above technical solution, the second moment is determined by the first histogram, which makes the acquisition of the second moment relatively simple, and helps to improve the efficiency of calculating the first result value.

[0071] In combination with the second aspect, in certain implementations of the second aspect, the above-mentioned determination unit is specifically used to: based on the first histogram, determine the starting moment of detecting the second optical signal as the second moment; or, based on the first histogram, determine the peak moment of the first histogram as the second moment; or, based on the first histogram, determine the second moment by using a constant ratio timing CFD method; or, based on the first histogram, determine the echo time corresponding to the second optical signal, and then determine the second moment according to the echo time corresponding to the second optical signal by using a centroid algorithm.

[0072] Based on the above technical solution, multiple ways of obtaining the second moment are provided, which increases the flexibility of the method.

[0073] In combination with the second aspect, in certain implementations of the second aspect, when the first result value is the energy value of the second optical signal, the above-mentioned determination unit is specifically used to: determine the echo area and / or echo peak value of the second optical signal based on the first histogram; determine the signal strength of the second optical signal based on the echo area and / or echo peak value of the second optical signal; and determine the first result value based on the signal strength of the second optical signal.

[0074] Based on the above technical solution, the signal strength of the second optical signal is determined by the first histogram. This method is relatively simple and helps to improve the efficiency of calculating the first result value.

[0075] In combination with the second aspect, in certain implementations of the second aspect, before the above-mentioned determination unit determines the first compensation amount based on N first echo parameters, the above-mentioned determination unit is also used to: determine a first compensation table, including: obtaining a second target parameter value and the geometric parameters of the sub-pixel, the second target parameter value is an accurate target parameter value; determining the first sub-light signal obtained by the sub-pixel; determining a second result value based on the first echo parameter corresponding to the first sub-light signal, the second result value is the result value that needs to be compensated; determining the first sub-compensation amount based on the second result value and the second target parameter value; recording the first echo parameter corresponding to the first sub-light signal to determine the mapping relationship between the first echo parameter and the first sub-compensation amount; and adding the mapping relationship to the first compensation table corresponding to the geometric parameters of the sub-pixel.

[0076] Based on the above technical solution, a corresponding first compensation table is determined for sub-pixels with different geometric parameters through preliminary experiments. This allows accurate compensation of the distance compensation amount to be achieved based on a single first compensation table determined through these experiments, even when a first pixel is divided into multiple sub-pixels with identical geometric parameters. Even if the geometric parameters of the multiple sub-pixels into which the first pixel is divided are not identical, for example, two different geometric parameters, only two first compensation tables are required to accurately compensate for the distance compensation amount. This solves the problem of accurate error compensation in the prior art.

[0077] In combination with the second aspect, in certain implementations of the second aspect, the N sub-pixels are divided based on single photon avalanche diodes (SPADs) in the pixel array.

[0078] Based on the above technical solution, the above first pixel is divided by SPAD, which provides the necessary prerequisite for the subsequent sub-pixel-based compensation solution and is the basis for accurate error compensation.

[0079] In combination with the second aspect, in certain implementations of the second aspect, the echo light beam hits the pixel array to form a light spot, and the distribution of part of the light spot on each sub-pixel is uniform.

[0080] Based on the above technical solution, regardless of whether the light spot is offset or diffused, the distribution of the light spot on the sub-pixel can be guaranteed to be uniform, which can further increase the accuracy of subsequent error compensation.

[0081] In a third aspect, a detection device is provided, comprising a processor and a memory, wherein the processor and the memory are connected, wherein the memory is used to store program code, and the processor is used to call the program code to execute a method in any possible implementation mode of the method design of the first aspect above.

[0082] In a fourth aspect, a chip system is provided, which is applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from the memory of the electronic device and send signals to the processor, and the signals include computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the method in any possible implementation of the method design of the first aspect above.

[0083] In a fifth aspect, a computer-readable storage medium is provided, storing a computer program or instruction, which is used to implement the method in any possible implementation manner in the method design of the first aspect.

[0084] In a sixth aspect, a computer program product is provided. When the computer program code or instructions are executed on a computer, the computer executes a method in any possible implementation of the method design of the first aspect.

[0085] In a seventh aspect, an embodiment of the present application provides a vehicle, which includes a device as in any possible implementation of the second aspect and the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] FIG1 is a schematic diagram of a Lidar system provided in an embodiment of the present application.

[0087] FIG2 is a schematic diagram showing the relationship between a light spot offset and a target object distance provided in an embodiment of the present application.

[0088] FIG3 is a flow chart of a detection method provided in an embodiment of the present application.

[0089] FIG4 is a schematic diagram of pixel division provided in an embodiment of the present application.

[0090] FIG5 is a schematic diagram of a first histogram provided in an embodiment of the present application.

[0091] FIG6 is a schematic diagram of a first subhistogram provided in an embodiment of the present application.

[0092] FIG7 is a schematic diagram of a method for determining a first histogram provided in an embodiment of the present application.

[0093] FIG8 is a flow chart of a method for determining a first result value provided in an embodiment of the present application.

[0094] FIG9 is a flowchart of another method for determining a first result value proposed in an embodiment of the present application.

[0095] FIG10 is a flowchart of another method for determining a first compensation table provided in an embodiment of the present application.

[0096] FIG11 is a schematic diagram of the relationship between a first sub-compensation amount and a first echo parameter determined through experiments according to an embodiment of the present application.

[0097] FIG12 is a schematic diagram of a detection system proposed in an embodiment of the present application.

[0098] FIG13 is a schematic block diagram of a detection device 1300 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0099] The following describes the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " represents "or." For example, A / B can represent A or B. "And / or" in this document is merely a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, or B exists alone.

[0100] In the embodiments of the present application, prefixes such as "first" and "second" are used only to distinguish different description objects and have no limiting effect on the position, order, priority, quantity or content of the described objects. The use of prefixes such as ordinal numbers to distinguish description objects in the embodiments of the present application does not constitute a restriction on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and the use of such prefixes should not constitute an unnecessary restriction. In addition, in the description of this embodiment, unless otherwise specified, the meaning of "plurality" is two or more.

[0101] As an active sensor, Lidar is an indispensable key part in fields such as autonomous driving, robotics, and drones.

[0102] Figure 1 shows a schematic diagram of a Lidar system proposed in an embodiment of the present application. Lidar generally includes a controller, a modulator, a signal transmitter, a signal detector, a processor, and a memory.

[0103] Among them, the controller can be used to control the modulator and signal transmitter to emit a laser beam of specified signal intensity; it can also be used to control the signal detector to receive the echo beam; it can also be used to control the processor to process and calculate the relevant parameters carried by the echo beam.

[0104] The modulator is used to modulate the laser beam so that the Lidar can emit a laser beam with a specified signal intensity.

[0105] A signal transmitter generally includes a light source (also called a laser) and a transmitting optical lens, which is used to emit a laser beam toward a target object. The transmitting optical lens is used to refract the laser beam emitted by the light source and transmit the laser beam along a specified optical path to the target object.

[0106] A signal detector typically consists of a detector (also called a receiver) and a receiving optical lens. These components detect and receive the echo beam, convert the optical signal into an electrical signal, determine the signal strength of the echo beam within each time period, and generate a histogram of the echo beam. This histogram represents the signal strength of the echo beam within each time period. The receiving optical lens refracts the echo beam reflected from the target object to a designated location on the detector.

[0107] In some possible embodiments, the above-mentioned detector can be a single photon avalanche diode (SPAD) detector, which is included in a pixel array of the detector, which is used to receive the above-mentioned echo light beam, and a light spot is formed on one or more pixels of the pixel array, and the echo light beam is converted from an optical signal to an electrical signal.

[0108] The processor is configured to process the echo beam, determine relevant parameters, perform error compensation on the relevant parameters, and finally solve for a first target parameter value, wherein the first target parameter value includes: a distance to a target object, a reflectivity of the target object, etc.

[0109] Memory is used to store intermediate results during signal processing.

[0110] In some possible embodiments, the LiDAR based on the above architecture can detect the distance between the target object and the laser. For the convenience of description, this embodiment of the application simply refers to this distance as the target object distance. The working principle of measuring the target object distance is as follows:

[0111] The signal transmitter emits a laser beam toward the target object. The laser beam is reflected by the target object and reflected to the signal detector in the form of an echo beam. Correspondingly, a light spot is formed on one or more pixels in the pixel array of the signal detector, and the echo beam is converted from an optical signal to an electrical signal. The processor can then determine the time difference between the start of the transmission signal and the final reception based on a built-in timer (such as the system clock), and then determine the signal's flight time. Based on this flight time and the speed of light, the distance to the target object can be solved.

[0112] In some possible embodiments, the LiDAR based on the above architecture can detect the reflectivity of the target object. Its working principle is as follows:

[0113] The signal transmitter emits a laser beam toward the target object. The laser beam is reflected by the target object and reflected into the signal receiver in the form of an echo beam, forming a light spot on the pixel array of the signal receiver. The signal detector then detects the echo beam, responds to the echo beam and determines the signal intensity, that is, determines the energy value corresponding to the echo beam. In addition, the distance to the target object needs to be determined. The processor then determines the reflectivity of the target object based on the energy value and the distance to the target object. Target objects with different surface materials belong to different categories, so the reflectivity of the target object can be used to identify the type of target object.

[0114] For example, if the target parameters are distance and reflectivity, these parameters are calculated based on the conversion of the return beam's final light spot on the detector's pixel array into an electrical signal. If the light spot's imaging position on the pixel array is located at the target receiving position without offset (the target receiving position can be the focal plane of the receiving light spot), and the light spot does not diffuse across the pixel array, the light spot distribution will remain unchanged. When these prerequisites are met, the target parameters calculated based on the electrical signal corresponding to the light spot are accurate.

[0115] Among them, light spot offset refers to the offset of the position of the light spot on the plane of the pixel array. Since the receiving range of the pixel array is fixed, the light spot offset will cause some light signals to be unable to be received; light spot dispersion means that the imaging position of the light spot is not on the plane of the pixel array. After the light spot dispersion, there will be a deviation between the responded light signal intensity and the actual light signal intensity.

[0116] Taking the Lidar system as an example, Figure 2 shows a schematic diagram of the relationship between the off-axis Lidar spot offset and the distance to the target object proposed in an embodiment of the present application. It can be seen that for an off-axis Lidar, when the distance between the target object and the laser changes, the spot will also shift in the horizontal direction. The closer the distance between the Lidar and the target object, the greater the spot offset. Although the spot offset is only on the order of microns, the micron-level offset will also cause a large error in the final calculated distance to the target object. Therefore, it is necessary to compensate for the error in the calculation result.

[0117] For off-axis Lidar, the Lidar's transmitting path and receiving path do not overlap. If the target object is far enough away from the Lidar, the Lidar's transmitting path and receiving path can be approximately two parallel paths. At this time, the degree of dispersion and offset of the light spot imaged on the pixel array is very small, or even negligible. If the target object is close to the Lidar, the Lidar's transmitting path and receiving path are two non-parallel paths, causing the light spot of the pixel array to have relatively large dispersion and offset. Calculating target parameters based on the electrical signals corresponding to the diffused and offset light spots will introduce errors, so the calculation results also need to be error compensated.

[0118] Furthermore, factors such as thermal expansion and contraction of LiDAR components, or aging, can cause deformation of the radar's transmitter lens and shift the imaging position of the light spot on the pixel array. Since the pixel array's receiving position and response range are fixed, shifting the light spot's receiving position on the pixel array can prevent some light signals from being received by the pixel array. Therefore, target parameter calculations based on a shifted light spot will introduce errors, necessitating error compensation.

[0119] In some possible embodiments, the above calculation results can be error compensated using a specific error compensation table, such as a distance compensation table or an energy compensation table for calculating reflectivity. Based on the echo signal parameters received by the pixel array, the corresponding error compensation value is searched in the error compensation table. However, this is all based on the premise that the light spot distribution remains unchanged. Typically, the light spot imaged on the pixel array is uneven. When the light spot distribution imaged on the pixel array is uneven, the light spot position shifts or the light spot diffuses, which can cause the light spot distribution to change. After the light spot distribution changes, error compensation based on the error compensation table corresponding to the above light spot distribution is also inaccurate. This will be explained below using specific embodiments.

[0120] Taking ranging as an example, the compensation process based on the above method can be divided into two parts, as follows:

[0121] 1) Compensate for errors caused by changes in target distance. For example, if the actual target distance is 15m, the overall distribution of the light spot corresponding to the echo beam is uneven, with dispersion and offset occurring, resulting in a change in the light spot distribution and a detected target distance of 14.8m. Assuming that the system stores distance compensation table 1 and that it accurately compensates for the current error, the error value corresponding to the current echo beam signal strength, 0.2m, is retrieved from table 1 to correct the error in the detected target distance.

[0122] However, when the target is detected a second time, the actual target distance becomes 10m. The light spot will further diffuse, causing the light spot distribution to change again, resulting in a target distance of 9.5m. Given this light spot distribution, if the same distance compensation table 1 used in the previous error correction is used, the error value corresponding to the current echo beam signal intensity will typically be inaccurate, for example, 0.4m. To ensure accurate compensation, a separate distance compensation table 2 tailored to the current light spot distribution must be saved to ensure accurate error compensation.

[0123] 2) Compensate for errors caused by LiDAR temperature changes. For example, if the current LiDAR temperature is 10°C and the actual target distance is 200m, assuming the light spot position does not shift due to target distance, the LiDAR temperature will cause the light spot position to shift, resulting in a change in the light spot distribution. The detected target distance is 198m. Assuming that the system stores Distance Compensation Table 3 and that it can accurately compensate for the error in the current situation, the error value corresponding to the signal strength of the current echo beam, 2m, is searched in Distance Compensation Table 3 to correct the error in the detected target distance.

[0124] However, when the target is detected for the second time, the actual target distance remains unchanged, but the temperature of the laser radar becomes 25°C. Due to thermal expansion and contraction, the lens of the laser radar's transmitter or receiver is offset. At this time, the light spot position will further offset, causing the light spot distribution to change again, and then the detection target distance is 196m. For the light spot distribution at this time, if the distance compensation table 3 used for the last error correction is still used, the error value corresponding to the signal intensity of the current echo beam is usually inaccurate from the distance compensation table 3. For example, 3m. If compensation is accurate, it is necessary to save a distance compensation table 4 for the current light spot distribution to ensure the accuracy of error compensation. Otherwise, there will be problems of insufficient compensation or excessive compensation.

[0125] The above problems will also occur when the reflectivity of the target object is detected based on the above method.

[0126] As can be seen from the above description, the changes in the spot distribution are diverse, and accurate compensation cannot be achieved using a single error compensation table. Therefore, a large number of error compensation tables corresponding to different spot distributions need to be saved, which wastes resources and makes accurate error compensation difficult to achieve in practical applications.

[0127] In view of this, an embodiment of the present application proposes a detection method, which further splits each pixel in the pixel array that receives the light spot, and splits each pixel into multiple sub-pixels. Since the sub-pixels are very small, the light spot distribution within the sub-pixel range is uniform or approximately uniform. Then, based on the error compensation table determined by preliminary experiments, the compensation amount corresponding to the above sub-pixels is determined, which ensures that the compensation amount corresponding to each sub-pixel is accurate. Then, based on the compensation amount corresponding to each sub-pixel, the compensation amount of the entire pixel is determined. Since the compensation amount corresponding to each sub-pixel is accurate, the compensation amount of the entire pixel determined thereby is also accurate. In this way, error compensation for the target parameters calculated by the lidar system is achieved, and the accuracy of error compensation is also increased.

[0128] It should be understood that when the light spot geometric parameter is less than or equal to one pixel, the compensation amount of one pixel calculated based on the above method is accurate, so the target parameter result calculated subsequently is also accurate; when the light spot geometric parameter is multiple pixels, since the compensation amount of each pixel calculated based on the above method is accurate, the weighted summation is performed based on the compensation amount of each pixel, and the target parameter result is compensated based on the result, so that the target parameter result calculated subsequently is also accurate.

[0129] FIG3 shows a flow chart of a detection method proposed in an embodiment of the present application.

[0130] This method is applied to a detector. Before executing the method, it is necessary to emit a laser beam to a target object and receive an echo beam (or echo signal) formed by the laser beam being reflected by the target object.

[0131] S310: Receive an echo light beam, where the echo light beam hits a first pixel of a detector, where the first pixel includes N sub-pixels.

[0132] In some possible embodiments, the echo light beam may hit a pixel array of a detector.

[0133] In some possible embodiments, since the aforementioned return beam ultimately appears as a light spot on the pixel array, when the light spot occupies multiple pixels, the light signal determined based on the return beam corresponds to a portion of the light spot; and when the light spot occupies only the first pixel, the light signal determined based on the return beam corresponds to the entire light spot.

[0134] It should be understood that the first pixel may be pre-divided into N sub-pixels, where N is a positive integer.

[0135] FIG4 shows a schematic diagram of a pixel division proposed in an embodiment of the present application.

[0136] In some possible embodiments, taking a first pixel as an example, the first pixel can be divided into N sub-pixels having the same geometric parameters. The embodiments of the present application do not limit the specific geometric parameters. In addition, the first pixel can also be divided into N sub-pixels having different geometric parameters. The first pixel can also be divided into sub-pixels having a first geometric parameter as part and sub-pixels having a second geometric parameter as part.

[0137] It should be understood that the larger the number N of parts of the first pixel division, the smaller the area of ​​the sub-pixel, so that the distribution of the partial light spot (also called sub-light spot) corresponding to each sub-pixel is approximately uniform. In addition, the above-mentioned pixel division process also divides the light spot, dividing a complete light spot into several sub-light spots, and ensuring that for each sub-light spot, its distribution on the pixel array is uniform. Therefore, for the uniformly distributed sub-light spots corresponding to each sub-pixel, regardless of whether the light spot on the pixel array is offset or diffused, the distribution of the sub-light spots corresponding to the sub-pixel remains unchanged and remains uniform. Since the distribution of the sub-light spots remains unchanged, when the geometric parameters of the sub-pixels are consistent, accurate error compensation of the target parameters solved based on the echo signals corresponding to the sub-light spots can be achieved based on a single error compensation table.

[0138] In some possible embodiments, the pixel array can adjust the division of each pixel on the pixel array in real time based on the current light spot distribution, so that the light spot distribution in each sub-pixel is uniform. Based on this technical solution, the accuracy of subsequent error compensation can be further increased.

[0139] In some possible embodiments, the first pixel can be divided by a SPAD in a pixel array. The SPAD includes a pixel activation area. Each pixel in the pixel activation area can be pre-set with SPAD initial parameters to divide the pixel into multiple sub-pixels. The initial parameters include geometric parameters of each sub-pixel, such as the length and width of each pixel, and a number is set for each sub-pixel. It is also possible to number each pixel. This allows for distinguishing the portion of the light signal corresponding to each sub-pixel.

[0140] For example, taking the first pixel as an example, the geometric parameter of the first pixel shape may be a 1*1 pixel square, and the relevant information of each sub-pixel may be described in the following manner.

[0141] Pixel 01:Son-Pixel 01={"Length":"0.5Pixel","Width":"0.5Pixel"};

[0142] Pixel 01:Son-Pixel 01={"Length":"0.5Pixel","Width":"0.5Pixel"};

[0143] Pixel 01:Son-Pixel 01={"Length":"0.5Pixel","Width":"0.5Pixel"};

[0144] Pixel 01:Son-Pixel 01={"Length":"0.5Pixel","Width":"0.5Pixel"};

[0145] It can be seen that the first pixel is divided into four sub-pixels of the same shape, and the shape geometric parameters of each sub-pixel are a square of 0.5*0.5 pixels.

[0146] S320: Determine N first sub-light signals according to the N sub-pixels.

[0147] S330: Determine N first echo parameters according to the N first optical sub-signals, where the first echo parameters are used to characterize signal strengths of the first optical sub-signals.

[0148] In some possible embodiments, the first echo parameter includes at least one of the following: an echo area, an echo peak value, an echo pulse width, and a rising edge slope of a curve image in the first sub-histogram of the first light sub-signal.

[0149] In some possible embodiments, the first echo parameter may be determined based on a first sub-histogram corresponding to the first sub-optical signal.

[0150] S340: Determine a first optical signal according to the N first echo parameters, where the first optical signal corresponds to the echo light beam.

[0151] It should be understood that the first optical signal is determined based on the first echo parameters corresponding to each first sub-optical signal, and the target parameters corresponding to the first optical signal are compensated accordingly.

[0152] Based on the above technical solution, the first pixel is divided into N sub-pixels. Since the sub-pixels are very small, the spot distribution in the sub-pixels is uniform or approximately uniform. When detecting the distance to the target object or the reflectivity of the target object, the spot distribution in the sub-pixel remains unchanged regardless of how factors such as the distance to the target object and the temperature of the laser change. Therefore, based on this method, it helps to avoid the problem of being unable to accurately compensate for errors based on a compensation table due to changes in the spot distribution. That is, this method can achieve the premise that the geometric parameters of the N sub-pixels are the same, and the accurate compensation amount can be obtained through a compensation table, thereby improving the accuracy of error compensation and being easy to implement.

[0153] It should be understood that when the light spot formed by the echo beam on the detector shifts, directly solving the corresponding target parameter based on the optical signal determined based on the echo beam and compensating for the target parameter is usually inaccurate. This is because the light spot shift will cause the light spot distribution to change, and each light spot distribution corresponds to a compensation table. The change in light spot distribution is often a dynamic process. Compensating for the target parameter based solely on a compensation table is inevitably inaccurate. Therefore, the embodiment of the present application proposes a compensation solution based on the first sub-light signal.

[0154] In some possible embodiments, after executing the above S340, a prerequisite is provided for determining the spot parameters corresponding to the first pixel for accurate compensation. The detection method provided in the embodiment of the present application can also perform the following steps: determine N first sub-compensation amounts based on the above N first echo parameters, and determine the first compensation amount based on the N first sub-compensation amounts, and the first compensation amount is used to determine the compensation amount of the above-mentioned first light signal.

[0155] In some possible embodiments, the first sub-compensation amount can be determined by looking up a compensation table. This compensation table can be determined in advance through experiments, and the table records the mapping relationship between the first echo parameter and the first sub-compensation amount. For example, the mapping relationship between the echo area of ​​the first sub-light signal and the first sub-compensation amount, or the mapping relationship between the echo pulse width of the first sub-light signal and the first sub-compensation amount, or the mapping relationship between the echo peak of the first sub-light signal and the first sub-compensation amount can be determined. The first compensation amount can then be determined by taking a weighted sum of the N first sub-compensations determined by the table lookup. Based on this technical solution, when the geometric parameters of N sub-pixels are the same, the first compensation amount can be determined using a single compensation table, which improves the accuracy of error compensation and is easy to implement.

[0156] In some possible embodiments, the specific method for determining the above-mentioned first compensation amount is different for different compensation amounts: for example, the N first sub-compensation amounts can be weighted and accumulated, and the weighted accumulation can include two cases. One case is that the weight is 1, and the weighted accumulation process is actually a direct accumulation process. The other case is that the weight is not 1; in addition, the N first sub-compensation amounts can also be accumulated to obtain an average value.

[0157] Based on the above technical solution, since the above-mentioned N first echo parameters are determined based on the N first sub-light signals received by the N sub-pixels, since the sub-pixels are very small, even if the light spot corresponding to the echo light beam is offset, for the N sub-pixels, when N is large enough, the distribution of part of the light spot on the sub-pixel is approximately uniform, so regardless of whether the light spot is offset, the distribution of part of the light spot corresponding to the N sub-pixels is maintained as a uniform distribution. Therefore, regardless of whether the light spot is offset, the distribution of part of the light spot corresponding to the N sub-pixels is maintained as a uniform distribution. Therefore, the N first sub-compensation amounts determined based on the N first echo parameters are accurate, and thus the first compensation amount is accurate, which increases the accuracy of error compensation.

[0158] In some possible embodiments, a first result value can be determined based on a second optical signal, where the second optical signal is the original optical signal determined based on the echo beam. The first result value can be the distance to the target object or the energy value of the second optical signal used to calculate the reflectivity of the target object. However, the first result value is an uncompensated result value. Therefore, a first compensation amount can be determined based on the method proposed in the above embodiment. The first compensation amount is then used to compensate the first result value to determine a first target parameter value corresponding to the first optical signal.

[0159] Based on the above technical solution, it helps to improve the accuracy of the above first target parameter value.

[0160] In some possible embodiments, the first result value may be determined based on a first histogram corresponding to the second light signal, where the first histogram includes a trend of signal intensity changes in response to the second light signal from the first pixel over multiple unit time periods. Furthermore, the echo area, echo pulse width, echo peak value, and rising edge slope of the curve image in the first histogram of the second light signal may be determined based on the first histogram. The first histogram is shown in FIG5 below.

[0161] Figure 5 shows a schematic diagram of a first histogram proposed in an embodiment of the present application. The abscissa of the first histogram represents the aforementioned multiple unit time periods, and the ordinate represents the signal intensity of the first pixel in response to the second light signal within the unit time period. Therefore, the first histogram intuitively presents the changing trend of the signal intensity of the second light signal over time.

[0162] In some possible embodiments, the echo area is the integral value of the curve image in the first histogram; the echo pulse width can be divided into a first pulse width and a second pulse width. The first pulse width, also known as the full pulse width, is the difference between the horizontal coordinates of the starting point and the ending point of the curve image in the first histogram; the second pulse width is the pulse width corresponding to a certain proportional threshold, that is, the pulse width of the curve image in the first histogram taken horizontally at a preset position. The preset position can be 1 / 2 of the curve image (in which case the second pulse width is also called the half-maximum pulse width), or 1 / 3 of the curve image, or other reasonable positions. For example, when the preset position is 1 / 2 of the curve image, assuming that the vertical coordinate of the peak point of the curve image is y, then the vertical coordinates of the two endpoints of the half-maximum pulse width are y / 2, and the difference between the horizontal coordinates of these two endpoints is the half-maximum pulse width; the echo peak value is the vertical coordinate of the peak point of the curve image in the first histogram. Based on any of the echo area, echo pulse width, and echo peak value of the second optical signal, the signal strength of the second optical signal can be represented.

[0163] In some possible embodiments, in order to more accurately determine the signal strength of the second optical signal, it is also necessary to determine the background light value of the current environment and eliminate the error caused by the background light value relative to the signal strength of the second optical signal. Based on this technical solution, the accuracy of error compensation can be further improved.

[0164] In some possible embodiments, the first echo parameter can be determined based on a first subhistogram corresponding to the first light sub-signal. Based on a method similar to that used in the above embodiment to determine the first histogram, a first subhistogram can be determined based on the first light sub-signal. The first subhistogram includes a trend in the signal intensity variation of the sub-pixels of the first light sub-signal in response to the first light sub-signal within the above-mentioned multiple unit time periods. Furthermore, the echo area, echo pulse width, echo peak value, and the rising edge slope of the curve image in the corresponding first subhistogram can also be determined based on the first subhistogram. These parameters all constitute the first echo parameter. The first subhistogram is shown in FIG6 .

[0165] FIG6 shows a schematic diagram of a first subhistogram according to an embodiment of the present application. The meanings of the abscissa and ordinate of the first subhistogram are the same as those of the first histogram described above. Similarly, the first subhistogram represents the temporal trend of the signal intensity of the first sub-light signal.

[0166] As shown in Figure 6, since the first optical sub-signal is part of the second optical signal, the curve trend of the first sub-histogram is substantially consistent with the curve trend of the first histogram. Therefore, based on the first sub-histogram, first echo parameters can also be determined. These first echo parameters include at least one of the echo area, echo pulse width, and echo peak value of the first optical sub-signal. The meanings of echo area, echo pulse width, and echo peak value have been described in the corresponding embodiments above and will not be repeated here.

[0167] Based on the above technical solution, the first echo parameter characterizing the signal strength of the first sub-light signal is calculated by the first sub-histogram. This method is easy to implement and highly flexible. The signal strength of the first sub-light signal can be characterized by any one of the parameters: echo area, echo pulse width, and echo peak value.

[0168] In some possible embodiments, the first histogram may be intercepted based on a first detection threshold, so that the first result value is calculated based on a portion of the image above the first detection threshold, wherein the first detection threshold is a reasonable preset value.

[0169] Correspondingly, since the first subhistogram is a compression of the first histogram according to a corresponding ratio, the first subhistogram can also correspond to a second detection threshold, where the second detection threshold is proportionally reduced based on the first detection threshold. Alternatively, since the start and end times of the first histogram can be determined based on the first histogram and the first detection threshold, and these start and end times also correspond to the start and end times of the first subhistogram, there is no need to determine the second detection threshold to complete the capture of the first subhistogram.

[0170] Based on the above technical solution, only the part of the histogram data that is greater than the detection threshold can be analyzed. Under the premise that the threshold value is set reasonably, the accuracy of the histogram analysis will not be affected, and the efficiency of the histogram analysis will be increased.

[0171] In some possible embodiments, the corresponding first histogram may also be determined by using the N first sub-histograms. FIG7 shows a schematic diagram of a method for determining a first histogram proposed in an embodiment of the present application.

[0172] Taking the first pixel described above as an example, the first pixel is divided into four sub-pixels with the same geometric parameters. Correspondingly, each sub-pixel receives a first sub-light signal. The four first sub-light signals are then detected separately to determine four first sub-histograms: first sub-histogram 1, first sub-histogram 2, first sub-histogram 3, and first sub-histogram 4. The memory is used to store the parameters required to generate the first sub-histograms and the data of the determined first sub-histograms. The multiple first sub-histograms are then accumulated by an accumulator to determine the first histogram.

[0173] In some possible embodiments, the process of determining the first sub-histogram may be completed in the detector or in the signal processing module, which is not limited in the embodiments of the present application.

[0174] For ease of understanding, a detection method proposed in an embodiment of the present application will be described in detail below.

[0175] Taking the first result value being the distance to the target object as an example, the first result value may be determined in the following manner.

[0176] FIG8 shows a flow chart of a method for determining a first result value proposed in an embodiment of the present application.

[0177] S810: Determine the moment of emitting a laser beam to the target object as the first moment.

[0178] S820: Determine a second moment according to the first histogram.

[0179] In some possible embodiments, the start time of detecting the second optical signal (i.e., the echo signal) can be used as the second time based on the first histogram; the peak time of the first histogram can be used as the second time directly; the second time can also be determined by CFD based on the first histogram; the second time can also be determined by a centroid algorithm based on the first histogram and the following formula (1), where formula (1) is used to calculate the echo time corresponding to the second optical signal. Formula (1) is specifically as follows:

[0180] Wherein, t represents the echo time, a represents the starting position of the first histogram, b represents the ending position of the first histogram, bin represents the abscissa of each point in the first histogram, and A(bin) represents the ordinate of each point in the first histogram.

[0181] S830: Determine a flight time corresponding to the second optical signal according to a time difference between the second moment and the first moment.

[0182] S840: Determine a first result value according to the speed of light and the flight time.

[0183] In some possible embodiments, the distance to the target object is obtained by multiplying the speed of light and the flight time and dividing by 2, that is, the first result value mentioned above. However, since the signal intensity of the second light signal also changes during the change of the distance to the target object, the corresponding light spot will also shift and / or diffuse, so it can be seen that the first result value is inaccurate. Therefore, after determining the above-mentioned first result value, it is necessary to determine the first compensation amount based on the first sub-light signal corresponding to each sub-pixel. The first echo parameter of the above-mentioned first sub-light signal includes the echo area of ​​the first sub-light signal. The above-mentioned first compensation amount can be determined by the following method:

[0184] In some possible embodiments, a first compensation table can be searched based on the echo areas of the N first optical sub-signals to determine N first sub-compensation amounts corresponding to the echo areas of the N first optical sub-signals. The N first sub-compensation amounts are distance compensation amounts calculated based on the N first optical sub-signals. As can be seen from the description of the above embodiments, the first compensation table can be a table pre-determined through experiments that records the mapping relationship between the echo areas of different first optical sub-signals and the first sub-compensation amounts. The N first sub-compensation amounts are then weighted and accumulated to determine the first compensation amount.

[0185] Taking the first result value being the energy value of the second optical signal as an example, the first result value can be determined in the following manner.

[0186] FIG9 shows a flow chart of another method for determining a first result value proposed in an embodiment of the present application.

[0187] S910: Determine the echo area and / or peak value of the second optical signal according to the first histogram.

[0188] S920: Determine the signal strength of the second optical signal according to the echo area and / or peak value of the second optical signal.

[0189] S930: Determine a first result value according to the signal strength of the second optical signal.

[0190] In some possible embodiments, when the radar's transmitter lens deforms or the distance to the target object changes, the corresponding light spot also shifts and / or diffuses, making the first result value inaccurate. Therefore, after determining the first result value, it is necessary to determine a first compensation amount based on the first sub-light signal corresponding to each sub-pixel. The first echo parameter of the first sub-light signal includes the echo area of ​​the first sub-light signal. The first compensation amount can be determined by the following method:

[0191] In some possible embodiments, a first compensation table can be searched based on the echo areas of the N first optical sub-signals to determine N first sub-compensation amounts corresponding to the echo areas of the N first optical sub-signals. The N first sub-compensation amounts are energy compensation amounts calculated based on the N first optical sub-signals. As can be seen from the description of the above embodiments, the first compensation table can be a table pre-determined through experiments that records the mapping relationship between the echo areas of different first optical sub-signals and the first sub-compensation amounts. The first compensation amount is then determined based on the N first sub-compensation amounts.

[0192] It can be seen that in actual applications, if the first sub-compensation amount corresponding to the first echo parameter of the first sub-optical signal is to be determined, it is necessary to predetermine the table mentioned in the above embodiment that records the mapping relationship between the first echo parameter and the first sub-compensation amount. In the embodiment of the present application, this table is defined as the first compensation table.

[0193] FIG10 shows a flow chart of a method for determining a first compensation table proposed in an embodiment of the present application.

[0194] In some possible embodiments, the first compensation table may be determined by the following experimental method:

[0195] S1010: Acquire a second target parameter value and a geometric parameter of a sub-pixel, where the second target parameter value is an accurate target parameter value.

[0196] In some possible embodiments, when the above-mentioned second target parameter value is the distance to the target object, the target object distance is an accurate distance value measured in advance; when the above-mentioned second target parameter value is the energy value of the second light signal reflected by the target object, the energy value is an accurate energy value measured in advance.

[0197] In some possible embodiments, the geometric parameters of the sub-pixels are determined in the process of determining the first pixel division method, and the geometric parameters of the sub-pixels may be stored in the memory.

[0198] In some possible embodiments, the geometric parameters of the sub-pixel include the shape and / or area of ​​the sub-pixel.

[0199] In some possible embodiments, different first compensation tables need to be determined correspondingly for sub-pixels with different geometric parameters.

[0200] S1020: Determine a first sub-light signal obtained through a sub-pixel.

[0201] It should be understood that the first sub-light signal is a portion of the second light signal that is reflected back from the target object after the laser beam is emitted to the target object.

[0202] S1030: Determine a second result value based on the first sub-optical signal, where the second result value is a result value that needs to be compensated.

[0203] It should be understood that when the second result value is the distance to the target object that has not been compensated, based on the description of the corresponding embodiment above, the second result value can be calculated based on the flight time of the first sub-light signal. When the second result value is the energy value of the first sub-light signal that has not been compensated, based on the description of the corresponding embodiment above, the second result value can be calculated based on the signal intensity of the first sub-light signal.

[0204] S1040: Determine a first sub-compensation amount according to the second target parameter value and the second result value.

[0205] In some possible embodiments, when the first sub-compensation is a distance sub-compensation, the distance sub-compensation may be determined by subtracting the second target parameter value from the second result value. When the first sub-compensation is an energy sub-compensation for the first sub-optical signal, the energy sub-compensation may be estimated based on the second target parameter value and the second result value.

[0206] S1050: Record the first echo parameter corresponding to the first sub-optical signal at this time to determine a mapping relationship between the first echo parameter and the first sub-compensation amount.

[0207] S1060: Add the above mapping relationship to the first compensation table corresponding to the geometric parameters of the above sub-pixel.

[0208] In some possible embodiments, the second target parameter value is modified, and based on the above method, the experiment is repeated, and the determined multiple mapping relationships are added to the first compensation table, and the first compensation table is continuously expanded to continuously improve it.

[0209] Based on the above technical solution, a corresponding first compensation table is determined for sub-pixels with different geometric parameters through preliminary experiments. This allows accurate compensation of the distance compensation amount to be achieved based on a single first compensation table determined through these experiments, even when a first pixel is divided into multiple sub-pixels with identical geometric parameters. Even if the geometric parameters of the multiple sub-pixels into which the first pixel is divided are not identical, for example, two different geometric parameters, only two first compensation tables are required to accurately compensate for the distance compensation amount. This solves the problem of accurate error compensation in the prior art.

[0210] In some possible embodiments, after the first compensation table is determined, when the first result value is the target object distance, the first compensation amount is correspondingly the distance compensation amount. The first sub-compensation amount can be found and the compensated first result value can be determined by the following method:

[0211] First, the geometric parameters of the sub-pixel are determined to select the corresponding first compensation table.

[0212] Then, the first echo parameter acquired by the sub-pixel is determined.

[0213] Then, according to the first echo parameter, the corresponding first sub-compensation amount is searched in the first compensation table.

[0214] Finally, the first compensation amount is determined based on the multiple first sub-compensation amounts, and the compensated target object distance is calculated according to the first result value and the first compensation amount.

[0215] In some possible embodiments, when the first compensation amount is a distance compensation amount, the first compensation amount can be determined by the following formula (2).

[0216] Wherein, Δx represents the first compensation amount, which in this embodiment is the distance compensation amount; N represents the number of sub-pixels when the first pixel is divided, corresponding to N first sub-histograms; area n represents the echo area of ​​the nth first subhistogram in the N first subhistograms, Δx n It represents the first sub-compensation amount corresponding to the echo area of ​​the nth first sub-histogram in the N first sub-histograms obtained by searching the first compensation table. In this embodiment, the first sub-compensation amount is also called the distance sub-compensation amount.

[0217] In some possible embodiments, the echo area of ​​the echo signal may be determined by the following formula (3):

[0218] Wherein, area is the echo area of ​​the echo signal, Δt is the time length of a unit time period for the first pixel to respond to the echo signal, and the echo signal may be the second optical signal or the first sub-optical signal.

[0219] In some possible embodiments, since the distance to the target object is determined based on the speed of light and the flight time corresponding to the second light signal, the distance compensation amount can be replaced by a time delay compensation amount; correspondingly, the distance subcompensation amount can be replaced by a time delay subcompensation amount. After determining the time delay compensation amount, the distance compensation amount can be determined by multiplying it by the speed of light.

[0220] In some possible embodiments, the distance compensation amount can be calculated based on the echo areas of the N first sub-light signals, specifically applying the above formulas (1) to (3). In addition, the distance compensation amount can also be calculated based on the echo peak value or echo pulse width of the N first sub-light signals. Although the specific formula used may be different from the above formulas (1) to (3), the principle is the same and will not be repeated here.

[0221] In some possible embodiments, after the first compensation table is determined, when the first result value is the energy value of the second optical signal, the first compensation amount is correspondingly the energy compensation amount. The first sub-compensation amount can be found and the compensated first result value can be determined by the following method:

[0222] First determine the distance to the target object.

[0223] In some possible embodiments, the target object distance may be the target object distance obtained after compensation based on the corresponding method proposed in the above embodiments.

[0224] Then, the geometric parameters of the sub-pixels are determined to select the corresponding first compensation table.

[0225] Then determine the first echo parameter collected by the sub-pixel.

[0226] Then, according to the first echo parameter, the corresponding first sub-compensation amount is searched in the first compensation table.

[0227] Finally, based on multiple first sub-compensation amounts, the above-mentioned first compensation amount is determined. Since the first result value and the first compensation amount are energy values, when determining the first result value and the first compensation amount, it is also necessary to combine the target object distance to calculate the compensated target object reflectivity.

[0228] In some possible embodiments, the mapping relationship between the echo area of ​​the above-mentioned first sub-light signal and the above-mentioned distance compensation amount and the mapping relationship between the echo area and the above-mentioned energy compensation amount can be recorded respectively in different compensation tables, or can be recorded in one compensation table, for example, both are recorded in the first compensation table. The embodiments of the present application are not limited to this.

[0229] When the first compensation amount is the energy compensation amount, the first compensation amount can be determined by the following formula (4).

[0230] Among them, peakest n It represents the first sub-compensation amount corresponding to the echo area of ​​the nth first sub-histogram obtained by searching the first compensation table. In this embodiment, the first sub-compensation amount is also called the energy sub-compensation amount; peakest represents the first compensation amount. In this embodiment, the first compensation amount is also called the energy compensation amount.

[0231] In some possible embodiments, the first compensation table may further include a mapping relationship between the echo pulse width or echo peak value of different first sub-optical signals and the first sub-compensation amount, where the echo pulse width or echo peak value of the first sub-optical signal is included in the first echo parameter. Based on this, the first compensation amount may be determined by searching the first compensation table based on the echo pulse width or echo peak value of the first sub-optical signal. The experimental method for determining the mapping relationship between the echo pulse width or echo peak value of different first sub-optical signals and the first sub-compensation amount is the same as that of the corresponding embodiment described above and is not further elaborated here.

[0232] Based on the above technical solution, when a first pixel is divided into multiple sub-pixels with identical geometric parameters, accurate compensation for the distance compensation amount can be achieved based on a single first compensation table determined through the above experiments. Even if the geometric parameters of the multiple sub-pixels into which the first pixel is divided are not identical, for example, two different geometric parameters, accurate compensation for the distance compensation amount can be achieved using only two of the above first compensation tables. This solves the problem of difficulty in accurately compensating for errors in the prior art.

[0233] FIG11 shows a schematic diagram of the relationship between the first sub-compensation amount and the first echo parameter, determined experimentally, according to an embodiment of the present application. FIG11(a) specifically shows the relationship between the distance sub-compensation amount corresponding to the first sub-light signal and the echo area; FIG11(b) specifically shows the relationship between the energy quantum compensation amount corresponding to the first sub-light signal and the echo area; FIG11(c) specifically shows the relationship between the energy quantum compensation amount corresponding to the first sub-light signal and the echo pulse width; and FIG11(d) specifically shows the relationship between the energy quantum compensation amount corresponding to the first sub-light signal and the echo peak value.

[0234] In some possible embodiments, the operation of determining the first sub-compensation amount by searching the first compensation table is relatively cumbersome and resource-intensive. However, as shown in FIG11 , the relationship between the first echo parameter and the first sub-compensation amount exhibits a linear trend. Therefore, a first function can be determined by fitting the mapping relationship recorded in the first compensation table using linear regression. When determining the first echo parameter of the first sub-optical signal, the first echo parameter is input into the first function to determine the first sub-compensation amount.

[0235] Based on the above technical solution, the efficiency of determining the first sub-compensation amount can be further improved, and the problems of low efficiency of table lookup operation and high resource consumption can be effectively avoided.

[0236] Figure 12 shows a schematic diagram of a detection system proposed in an embodiment of the present application. The system includes a controller, a modulator, a signal transmitter, a signal detector, and a signal processor.

[0237] Among them, the functions of the controller and the modulator are the same as those of the controller and the modulator in the embodiment corresponding to FIG1 . Please refer to the corresponding contents in the aforementioned embodiment and will not be repeated here.

[0238] In addition to the laser and the transmitting optical lens, the signal transmitter also includes a scanning mirror, which is used to reflect the laser beam emitted by the laser and scan the laser beam onto the target object, so that the echo light beam reflected by the target object can carry the overall relevant information of the target object. For example, through the light spot imaged by the echo light beam on the pixel array, the target parameter values ​​such as the reflectivity of the target object can be determined through the detection method proposed in the above embodiment.

[0239] The signal detector includes a pixel array, and each pixel in the pixel array is divided into a plurality of sub-pixels based on SPAD. Taking the first pixel as an example, it can be divided into N sub-pixels.

[0240] In addition, the signal detector can perform signal preprocessing on the light signal received through the pixel array. Taking the first pixel as an example, after the first pixel receives the echo light beam, it determines the second light signal, and then generates a first histogram based on the second light signal, and filters the first histogram through a finite impulse response (FIR) filter, and performs echo detection on the second light signal to obtain the above-mentioned first result value. For N sub-pixels, N first sub-histograms can be generated based on the N first sub-light signals received by the N sub-pixels, and the N first sub-histograms can be filtered accordingly, and the N first sub-histograms can be filtered accordingly, and the N first sub-light signals can be echo detected respectively to obtain the above-mentioned N first echo parameters.

[0241] The signal processor can be configured to determine N first sub-compensation amounts based on the first echo parameters corresponding to the N sub-pixels and the first compensation table. Alternatively, the N first echo parameters can be input into a first function to determine the N first sub-compensation amounts. These N first sub-compensation amounts can then be weighted and accumulated to determine a first compensation amount corresponding to the entire first pixel. The first compensation amounts can then be used to perform error compensation on the first amount to be compensated to determine a target result value.

[0242] In some possible embodiments, the signal detector and signal processor may also be integrated into one device, which is not limited in the present embodiment.

[0243] Based on the above technical solution, the first pixel is divided into N sub-pixels. Since the sub-pixels are very small, the light spot distribution in the sub-pixels is uniform or approximately uniform. When detecting the distance to the target object or the reflectivity of the target object, the light spot distribution in the sub-pixels remains unchanged regardless of how factors such as the distance to the target object, the laser temperature, and the detector temperature change. This can effectively avoid the problem of being unable to accurately compensate for errors based on a compensation table due to changes in the light spot distribution. When the geometric parameters of the N sub-pixels are the same, this method can determine the first compensation amount through a compensation table, thereby improving the accuracy of error compensation and being easy to implement.

[0244] In some possible embodiments, to prevent optical signal jitter from affecting target object detection, during target object detection, a laser beam may be emitted multiple times toward the target object, and echo detection may be performed multiple times based on the reflected echo beams, thereby obtaining multiple sets of first echo parameters. These multiple sets of first echo parameters are then accumulated to determine a set of second echo parameters, which can then be used to calculate target object detection parameters.

[0245] In some possible embodiments, to prevent optical signal jitter from affecting target object detection, during target object detection, a laser beam may be emitted multiple times toward the target object, and multiple first histograms may be determined based on the reflected echo beams. These multiple first histograms are then superimposed to determine a second histogram, and corresponding parameters may be determined based on this second histogram to calculate target object detection parameters. Similarly, the first subhistogram may also be processed using this histogram superposition method, with multiple first subhistograms determined.

[0246] Based on the above technical solution, it helps to further increase the accuracy of target object detection.

[0247] In addition, an embodiment of the present application also provides a device for implementing any of the above methods. For example, a detection device is provided, which includes a unit (or means) for implementing any of the above detection methods.

[0248] FIG13 shows a schematic block diagram of a detection device 1300 provided in an embodiment of the present application. As shown in FIG13 , the device 1300 includes:

[0249] A receiving unit 1310 is configured to receive an echo beam, where the echo beam hits a first pixel of a detector, where the first pixel includes N sub-pixels;

[0250] Determination unit 1320 is used to determine N first sub-light signals based on the above-mentioned N sub-pixels, where N is a positive integer; determine N first echo parameters based on the N first sub-light signals, where the first echo parameters are used to characterize the signal strength of the first sub-light signals; and determine a first light signal based on the above-mentioned N first echo parameters, where the first light signal corresponds to the echo light beam.

[0251] In some possible embodiments, the determining unit 1320 is specifically configured to: determine a first sub-histogram based on the first sub-optical signal, where the first sub-histogram includes a signal intensity variation trend of the first sub-optical signal within a plurality of unit time periods; and determine a first echo parameter based on the first sub-histogram.

[0252] In some possible embodiments, the determination unit 1320 is specifically configured to: determine N first sub-compensation amounts based on the N first echo parameters; and determine a first compensation amount based on the N first sub-compensation amounts, where the first compensation amount is used to determine the compensation amount for the first optical signal.

[0253] In some possible embodiments, the above-mentioned determination unit 1320 is specifically used to: screen out the corresponding first compensation table according to the geometric parameters of the sub-pixel; search the first compensation table according to the first echo parameter, and determine the first sub-compensation amount corresponding to the first echo parameter. The first compensation table is determined in advance through experiments, and the first compensation table includes a mapping relationship between the first echo parameter and the first sub-compensation amount.

[0254] In some possible embodiments, the geometric parameters of the sub-pixel include the shape and / or area of ​​the sub-pixel.

[0255] In some possible embodiments, the first echo parameter includes at least one of the following: an echo area, an echo peak value, an echo pulse width of the first sub-light signal, and a rising edge slope of a curve image in the first sub-histogram.

[0256] In some possible embodiments, the above-mentioned determination unit 1320 is also used to: determine a first result value based on a second optical signal, where the second optical signal is an original optical signal determined based on the above-mentioned echo light beam; compensate the first result value by a first compensation amount to determine a first target parameter value, where the first target parameter value corresponds to the above-mentioned first optical signal.

[0257] In some possible embodiments, the determining unit 1320 is specifically configured to: determine a first histogram based on the second optical signal, where the first histogram includes a signal strength variation trend of the second optical signal within a plurality of unit time periods; and determine a first result value based on the first histogram.

[0258] In some possible embodiments, when the above-mentioned first result value is the distance to the target object, the above-mentioned determination unit 1320 is specifically used to: determine the moment when the laser beam is emitted to the target object as the first moment; determine the second moment according to the first histogram; determine the flight time corresponding to the second light signal according to the time difference between the second moment and the first moment; and determine the above-mentioned first result value according to the speed of light and the flight time.

[0259] In some possible embodiments, the determination unit 1320 is specifically configured to: determine, based on the first histogram, the start time of detecting the second optical signal as the second time; or, based on the first histogram, determine the peak time of the first histogram as the second time; or, based on the first histogram, determine the second time by using a constant ratio timing CFD method; or, based on the first histogram, determine the echo time corresponding to the second optical signal, and then determine the second time according to the echo time of the second optical signal by using a centroid algorithm.

[0260] In some possible embodiments, when the first result value is the energy value of the second optical signal, the above-mentioned determination unit 1320 is specifically used to: determine the echo area and / or echo peak value of the second optical signal according to the first histogram; determine the signal strength of the second optical signal according to the echo area and / or echo peak value of the second optical signal; and determine the first result value according to the signal strength of the second optical signal.

[0261] In some possible embodiments, before the above-mentioned determination unit determines the first compensation amount based on N first echo parameters, the above-mentioned determination unit 1320 is also used to: determine a first compensation table, including: obtaining a second target parameter value and a geometric parameter of a sub-pixel, the second target parameter value is an accurate target parameter value; determining a first sub-light signal obtained by the sub-pixel; determining a second result value based on the first echo parameter corresponding to the first sub-light signal, the second result value is a result value that needs to be compensated; determining a first sub-compensation amount based on the second result value and the second target parameter value; recording the first echo parameter corresponding to the first sub-light signal to determine a mapping relationship between the first echo parameter and the first sub-compensation amount; and adding the mapping relationship to the first compensation table corresponding to the geometric parameter of the sub-pixel.

[0262] In some possible embodiments, the N sub-pixels are divided based on single photon avalanche diodes (SPADs) in a pixel array.

[0263] In some possible embodiments, the echo light beam hits the pixel array to form a light spot, and the distribution of a portion of the light spot on each sub-pixel is uniform.

[0264] In addition, an embodiment of the present application also proposes a vehicle, which includes the above-mentioned device 1300.

[0265] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0266] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0267] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0268] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0269] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0270] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0271] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A detection method, applied to a detector, characterized in that: The method comprises: receiving an echo light beam, wherein the echo light beam hits a first pixel of the detector; The first pixel includes N sub-pixels, and N first sub-light signals are determined according to the N sub-pixels, where N is a positive integer; Determine N first echo parameters according to the N first optical sub-signals, where the first echo parameters are used to characterize signal strengths of the first optical sub-signals; A first optical signal is determined according to the N first echo parameters, where the first optical signal corresponds to the echo light beam.

2. The method according to claim 1, characterized in that The determining, according to the N first light sub-signals, N first echo parameters comprises: Determine a first sub-histogram according to the first sub-optical signal, wherein the first sub-histogram includes a signal intensity variation trend of the first sub-optical signal within a plurality of unit time periods; The first echo parameter is determined according to the first sub-histogram.

3. The method according to claim 1 or 2, characterized in that: Determining the first optical signal according to the N first echo parameters includes: Determining N first sub-compensation amounts according to the N first echo parameters; A first compensation amount is determined according to the N first sub-compensation amounts, where the first compensation amount is used to determine the compensation amount of the first optical signal.

4. The method according to claim 3, characterized in that The determining, according to the N first echo parameters, N first sub-compensation amounts comprises: According to the geometric parameters of the sub-pixels, a corresponding first compensation table is screened out; According to the first echo parameter, the first compensation table is searched to determine the first sub-compensation amount corresponding to the first echo parameter. The first compensation table is determined in advance through experiments, and the first compensation table includes a mapping relationship between the first echo parameter and the first sub-compensation amount.

5. The method according to claim 4, characterized in that The geometric parameters of the sub-pixel include the shape and / or area of ​​the sub-pixel.

6. The method according to any one of claims 1 to 5, characterized in that The first echo parameter includes at least one of the following: an echo area, an echo peak value, an echo pulse width of the first sub-light signal, and a rising edge slope of a curve image in the first sub-histogram.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: determining a first result value according to a second optical signal, wherein the second optical signal is an original optical signal determined based on the echo optical beam; The first result value is compensated by the first compensation amount to determine a first target parameter value, where the first target parameter value corresponds to the first optical signal.

8. The method according to claim 7, characterized in that Determining the first result value according to the second optical signal includes: Determine a first histogram according to the second optical signal, wherein the first histogram includes the first The signal intensity variation trend of the second optical signal; The first result value is determined according to the first histogram.

9. The method according to claim 8, characterized in that When the first result value is the distance to the target object, determining the first result value according to the first histogram includes: Determine the moment of emitting the laser beam to the target object as the first moment; Determine a second moment according to the first histogram; determining a flight time corresponding to the second optical signal according to a time difference between the second moment and the first moment; The first result value is determined according to the speed of light and the flight time.

10. The method according to claim 9, characterized in that Determining the second time according to the first histogram includes: Based on the first histogram, determining the start time of detecting the second light signal as the second time; or, Based on the first histogram, taking the peak moment of the first histogram as the second moment; or, Determine the second time by means of constant fraction timing CFD based on the first histogram; or, Based on the first histogram, an echo time corresponding to the second optical signal is determined, and then the second moment is determined according to the echo time corresponding to the second optical signal through a centroid algorithm.

11. The method according to claim 8, characterized in that When the first result value is the energy value of the second optical signal, determining the first result value according to the first histogram includes: determining an echo area and / or an echo peak value of the second optical signal according to the first histogram; determining a signal strength of the second optical signal according to an echo area and / or an echo peak value of the second optical signal; The first result value is determined according to the signal strength of the second optical signal.

12. The method according to any one of claims 1 to 11, characterized in that Before determining the first compensation amount according to the N first echo parameters, the method further includes: Determine the first compensation table, including: Acquire a second target parameter value and a geometric parameter of the sub-pixel, wherein the second target parameter value is an accurate target parameter value; Determining a first sub-light signal acquired by the sub-pixel; determining a second result value based on the first echo parameter corresponding to the first sub-optical signal, where the second result value is a result value that needs to be compensated; determining a first sub-compensation amount according to the second result value and the second target parameter value; Recording the first echo parameter corresponding to the first sub-optical signal to determine a mapping relationship between the first echo parameter and the first sub-compensation amount; The mapping relationship is added to the first compensation table corresponding to the geometric parameters of the sub-pixel.

13. The method according to any one of claims 1 to 12, characterized in that The N sub-pixels are divided based on single photon avalanche diodes (SPADs) in the pixel array.

14. The method according to any one of claims 1 to 13, characterized in that The echo light beam hits the pixel array to form a light spot, and the distribution of part of the light spot on each sub-pixel is uniform.

15. A detection device, applied to a detector, characterized in that: The device comprises: A receiving unit, used for receiving an echo light beam, the echo light beam hits a first pixel of the detector, the first pixel includes N sub-pixels; A determination unit is used to determine N first sub-light signals according to the N sub-pixels, where N is a positive integer; determine N first echo parameters according to the N first sub-light signals, where the first echo parameters are used to characterize the signal strength of the first sub-light signals; and determine a first light signal according to the N first echo parameters, where the first light signal corresponds to the echo light beam.

16. The device according to claim 15, characterized in that The determining unit is specifically used for: Determine a first sub-histogram according to the first sub-optical signal, wherein the first sub-histogram includes a signal intensity variation trend of the first sub-optical signal within a plurality of unit time periods; The first echo parameter is determined according to the first sub-histogram.

17. The device according to claim 15 or 16, characterized in that The determining unit is specifically used for: Used to determine N first echo parameters according to the N first sub-optical signals, where the first echo parameters are used to characterize the signal strength of the first sub-optical signals; determine N first sub-compensation amounts according to the N first echo parameters; and determine a first compensation amount according to the N first sub-compensation amounts, where the first compensation amount is used to determine the compensation amount of the first optical signal.

18. The device according to claim 17, characterized in that The determining unit is specifically used for: According to the geometric parameters of the sub-pixels, a corresponding first compensation table is screened out; According to the first echo parameter, the first compensation table is searched to determine the first sub-compensation amount corresponding to the first echo parameter. The first compensation table is determined in advance through experiments, and the first compensation table includes a mapping relationship between the first echo parameter and the first sub-compensation amount.

19. The device according to claim 18, characterized in that The geometric parameters of the sub-pixel include the shape and / or area of ​​the sub-pixel.

20. The device according to any one of claims 15 to 19, characterized in that The first echo parameter includes at least one of the following: an echo area, an echo peak value, an echo pulse width of the first sub-light signal, and a rising edge slope of a curve image in the first sub-histogram.

21. The device according to any one of claims 15 to 20, characterized in that The determining unit is further configured to: determining a first result value according to the second optical signal, wherein the second optical signal is an original optical signal determined based on the echo optical beam; The first result value is compensated by the first compensation amount to determine a first target parameter value, where the first target parameter value corresponds to the first optical signal.

22. The device according to claim 21, characterized in that The determining unit is specifically used for: Determine a first histogram according to the second optical signal, wherein the first histogram includes a signal intensity variation trend of the second optical signal within a plurality of unit time periods; The first result value is determined according to the first histogram.

23. The device according to claim 22, characterized in that When the first result value is the distance to the target object, the determining unit is specifically configured to: Determine the moment of emitting the laser beam to the target object as the first moment; Determine a second moment according to the first histogram; Determine the flight time corresponding to the second light signal according to the time difference between the second moment and the first moment between; The first result value is determined according to the speed of light and the flight time.

24. The device according to claim 23, characterized in that The determining unit is specifically used for: Based on the first histogram, determining the start time of detecting the second light signal as the second time; or, Based on the first histogram, taking the peak moment of the first histogram as the second moment; or, Determine the second time by means of constant fraction timing CFD based on the first histogram; or, Based on the first histogram, an echo time corresponding to the second optical signal is determined, and then the second moment is determined according to the echo time corresponding to the second optical signal through a centroid algorithm.

25. The device according to claim 22, characterized in that When the first result value is the energy value of the second optical signal, the determining unit is specifically configured to: determining an echo area and / or an echo peak value of the second optical signal according to the first histogram; determining a signal strength of the second optical signal according to an echo area and / or an echo peak value of the second optical signal; The first result value is determined according to the signal strength of the second optical signal.

26. The device according to any one of claims 15 to 25, characterized in that Before the determining unit determines the first compensation amount according to the N first echo parameters, the determining unit is further configured to: Determine the first compensation table, including: Acquire a second target parameter value and a geometric parameter of the sub-pixel, wherein the second target parameter value is an accurate target parameter value; Determining a first sub-light signal acquired by the sub-pixel; determining a second result value based on the first echo parameter corresponding to the first sub-optical signal, where the second result value is a result value that needs to be compensated; determining a first sub-compensation amount according to the second result value and the second target parameter value; Recording the first echo parameter corresponding to the first sub-optical signal to determine a mapping relationship between the first echo parameter and the first sub-compensation amount; The mapping relationship is added to the first compensation table corresponding to the geometric parameters of the sub-pixel.

27. The device according to any one of claims 15 to 26, characterized in that The N sub-pixels are divided based on single photon avalanche diodes (SPADs) in the pixel array.

28. The device according to any one of claims 15 to 27, characterized in that The echo light beam hits the pixel array to form a light spot, and the distribution of part of the light spot on each sub-pixel is uniform.

29. A detection device, characterized in that: The method comprises a processor and a memory, wherein the processor and the memory are connected, wherein the memory is used to store program codes, and the processor is used to call the program codes to execute the method according to any one of claims 1 to 14.

30. A chip system, characterized in that: The chip system is applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the method as described in any one of claims 1 to 14.

31. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 14.

32. A computer program product, characterized in that When the computer program code or instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 14.

33. A vehicle, characterized in that: Comprising a device as claimed in any one of claims 15 to 29.

Citation Information

Patent Citations

  • DDoF-based calibration method, detection method and system

    CN114236506A

  • Calibration method and device of laser radar system

    CN114442106A

  • Laser ranging method and system based on pulse width compensation

    CN115343693A

  • Method And System For Error Compensation

    US20090202127A1