Distance measurement correction method based on DTOF single-point laser radar

Through the ranging correction method of DTOF single-point lidar, using TOF and Peak data of calibration points, combined with the principle of similar triangles and interpolation method, the problem of large ranging error and narrow application range of DTOF lidar is solved, achieving high accuracy and Fast measurement, suitable for a wide range of application scenarios.

CN118625291AInactive Publication Date: 2024-09-10ANHUI UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410879682.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing DTOF lidar distance measurement correction method has large errors, complex operations, and limited application range, and cannot meet the needs of a wide range of applications.

Method used

Using the ranging correction method based on DTOF single-point lidar, by calibrating the TOF and Peak data of 14 points, combined with the similar triangle principle and interpolation method, the true distance value of the target is calculated to adapt to different reflectivity conditions.

Benefits of technology

It improves the accuracy and speed of ranging, enhances the robustness and scope of application of the system, and is suitable for industrial, autonomous driving and other fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625291A
    Figure CN118625291A
Patent Text Reader

Abstract

The invention relates to the technical field of DTOF laser radar ranging, solves the technical problems that an existing distance correction algorithm for calibrating 200 points based on one reflectivity cannot be universally used, errors are large and operation is complex, and particularly relates to a DTOF single-point laser radar-based ranging correction method which comprises the following steps: calibrating a DTOF single-point laser radar module; a DTOF laser radar is aligned to a target needing to be measured, Normal0Tof data, Normal0Peak data, Atte100Tof data and Atte100Peak data are read from a DTOF single-point laser radar module through an upper computer, and the Atte100Tof data and the Atte100Peak data are read from the DTOF single-point laser radar module after 3M reflectivity is attenuated by 10% SPAD pixels. According to the invention, distance measurement has higher precision, speed and application range, automation of a higher degree can be realized, and the method is suitable for a wider application scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of DTOF laser radar ranging, and specifically designs a measurement method for converting a TOF value into a real distance value based on an arbitrary target reflectivity point. Background Art

[0002] Whether in industrial production or daily life, it is necessary to measure the distance of the target, such as in industry, autonomous driving, environmental monitoring and other fields. In recent years, the development of DTOF lidar technology has provided new possibilities for achieving simpler, faster and more accurate distance measurement. The previous distance measurement correction method was mainly based on a distance correction algorithm that calibrated 200 points based on a reflectivity. This would produce large errors when measuring readings, and it had limitations such as a narrow scope of application, complex operation, and low flexibility. Therefore, a more convenient and efficient DTOF lidar distance measurement method is needed to meet the increasingly wide range of application needs in life. Summary of the invention

[0003] In view of the shortcomings of the prior art, the present invention provides a ranging correction method based on DTOF single-point laser radar, which solves the technical problems that the current distance correction algorithm based on one reflectivity to calibrate 200 points cannot be universally applied to all reflectivities, has large errors and is complicated to operate; it enables ranging to have higher accuracy, speed and scope of application, and can achieve a higher degree of automation, suitable for a wider range of application scenarios.

[0004] In order to solve the above technical problems, the present invention provides the following technical solutions: a ranging correction method based on DTOF single-point laser radar, the method comprising the following steps:

[0005] S1. Calibrate the DTOF single-point laser radar module;

[0006] S2. Aim the DTOF laser radar at the target to be measured, and read the Normal_0_Tof data and Normal_0_Peak data in the DTOF single-point laser radar module through the host computer, as well as the Atte10_0_Tof data and Atte10_0_Peak data after the 3M reflectivity attenuation of 10% SPAD pixels;

[0007] S3, comparing the first Atte10_0_Tof data at the current moment and the second Atte10_0_Tof data after 3M reflectivity attenuation of 10% SPAD pixels at the maximum calibration point;

[0008] If the first Atte10_0_Tof data is greater than the second Atte10_0_Tof data, the undetermined true distance value dis_3m relative to the target is calculated;

[0009] Otherwise, go to step S4;

[0010] S4, comparing the first Atte10_0_Tof data at the current moment and the third Atte10_0_Tof data after the reflectivity of 3M SPAD pixels attenuates by 10% at the minimum calibration point;

[0011] If the first Atte10_0_Tof data is less than the third Atte10_0_Tof data, the undetermined true distance value dis_3m relative to the target is calculated;

[0012] If the first Atte10_0_Tof data is between the third Atte10_0_Tof data and the second Atte10_0_Tof data, traverse to find the interval of the calibration point, and calculate the undetermined real distance dis_3m relative to the target by interpolation method;

[0013] S5, taking the absolute value of the difference between the first Atte10_0_Tof data at the current moment and the theoretical Peak_3m value to obtain △Peak, and judging whether the to-be-determined real distance value dis_3m is the actual distance according to △Peak;

[0014] If △Peak is less than or equal to the threshold value P, the first Atte10_0_Tof data at the current moment is 3M reflectivity, that is, the real distance to be determined dis_3m is the actual distance dis_3m, and the process ends;

[0015] Otherwise, go to step S6;

[0016] S6, comparing the first Normal_0_Tof data at the current moment with the second Normal_0_Tof data after 10% of the SPAD pixels are attenuated by 90% reflectivity at the maximum calibration point;

[0017] If the first Normal_0_Tof data is greater than the second Normal_0_Tof data, the undetermined true distance value dis_90 relative to the target is calculated;

[0018] Otherwise, go to step S7;

[0019] S7, comparing the first Normal_0_Tof data at the current moment with the third Normal_0_Tof data after 10% of the SPAD pixels are attenuated by 90% reflectivity at the minimum calibration point;

[0020] If the first Normal_0_Tof data is less than the third Normal_0_Tof data, the undetermined true distance value dis_90 relative to the target is calculated;

[0021] If the first Normal_0_Tof data is between the third Normal_0_Tof data and the second Normal_0_Tof data, then traverse to find the interval of the calibration point, and calculate the undetermined true distance dis_90 relative to the target by interpolation method;

[0022] S8, replacing the reflectivity with 6% reflectivity, and repeating steps S6 and S7 to obtain a to-be-determined true distance value dis_6 of the first Normal_0_Tof data relative to the target at 6% reflectivity;

[0023] S9, calculating the average value dis_avg of the pending true distance value dis_90 and the pending true distance value dis_6;

[0024] If the average value dis_avg is greater than the right boundary of the 90% reflectivity calibration distance point, the theoretical Peak_90 value is equal to the Normal_0_Peak data of the maximum calibration point, and the theoretical Peak_6 value is equal to the Normal_0_Peak value of the maximum calibration point;

[0025] If the average value dis_avg is less than the left boundary of the 90% reflectivity calibration distance, the theoretical Peak_90 value is equal to the Normal_0_Peak value of the minimum calibration point, and the theoretical Peak_6 value is equal to the Normal_0_Peak value of the minimum calibration point;

[0026] If the average value dis_avg is within the range of the 90% reflectivity or 6% reflectivity calibration point, the specific interval is traversed to find out. At this time, max_dis is the maximum distance point of the interval, min_dis is the minimum distance point of the interval, max_peak is the maximum Peak value of the interval, min_Peak is the minimum Peak value of the interval, and the theoretical Peak_90 value and the theoretical Peak_6 value are calculated through the interpolation ratio, that is:

[0027] peak_90=(((dis_avg-min_dis)*(max_peak-min_peak)) / (max_dis-min_dis)+min_peak);

[0028] peak_6=(((dis_avg-min_dis)*(max_peak-min_peak)) / (max_dis-min_d is)+min_peak);

[0029] S10, calculating the actual distance dis of the first Normal_0_Tof data according to the theoretical Peak_90 value and the theoretical Peak_6 value;

[0030] If the undetermined true distance value dis_6 is greater than or equal to the undetermined true distance value dis_90, and the Peak value at the current moment is less than the Peak_90 value, the actual distance dis is calculated according to the formula, that is:

[0031] dis=(((peak_90-peak)*(dis_10-dis_90)) / (peak_90-peak_10)+dis_90);

[0032] If the Peak value at the current moment is greater than the Peak_90 value, the actual distance dis is the undetermined true distance value dis_90;

[0033] If the Peak value at the current moment is less than the Peak_6 value, the actual distance dis is the undetermined true distance value dis_6;

[0034] If other conditions are met, the actual distance dis is calculated by the Peak value interpolation ratio, that is:

[0035] dis=((peak-peak_6)*(dis_90-dis_6)) / (peak_90-peak_6)+dis_6.

[0036] Furthermore, in step S1, the calibration is specifically performed as follows:

[0037] According to the calibration of different reflectivity, the Normal_0_Tof data of the original TOF value and the Normal_0_Peak data of the Peak value output by the DTOF single-point lidar module corresponding to several distance points are obtained, as well as the Atte10_0_Tof data and Atte10_0_Peak data of the TOF value under SPAD pixels with different reflectivity attenuation.

[0038] Furthermore, the different reflectivities include 3M, 90%, and 6%, and the distance points include 14 calibration points, namely 30, 50, 70, 120, 150, 210, 250, 300, 600, 1500, 2490, 3210, 4200, and 5190, in units of mm.

[0039] Further, in step S3, the undetermined true distance value dis_3m is calculated using the similar triangle principle, and the calculation formula of the similar triangle principle is:

[0040] dis_3m=(((tof_value-max_tof)*(max_dis-min_dis)) / (max_tof-min_t of))+max_dis

[0041] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

[0042] Further, in step S4, the undetermined true distance value dis_3m is calculated using the similar triangle principle, and the calculation formula of the similar triangle principle is:

[0043] dis_3m=min_dis-(((min_tof-tof_value)*(max_dis-min_dis)) / (max_t of-min_tof))

[0044] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

[0045] Further, in step S4, the interpolation method is used to calculate the undetermined real distance dis_3m relative to the target, and the calculation formula is:

[0046] dis_3m=((tof_value-min_tof)*(max_dis-min_dis)) / (max_tof-min_to f)+min_dis

[0047] Since the Peak value is gradually decreasing, the theoretical Peak_3m value is:

[0048] peak_3m=max_peak-((dis_3m-min_dis)*(max_peak-min_peak)) / (max_d is-min_dis)

[0049] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points; max_peak is the Peak value of the right boundary between every two interval points; min_peak is the Peak value of the left boundary between every two interval points.

[0050] Further, in step S6, the undetermined true distance value dis_90 is calculated using the similar triangle principle, and the calculation formula of the similar triangle principle is:

[0051] dis_90=(((tof_value-max_tof)*(max_dis-min_dis)) / (max_tof-min_t of))+max_dis

[0052] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

[0053] Further, in step S7, the undetermined true distance value dis_90 is calculated using the similar triangle principle, and the calculation formula of the similar triangle principle is:

[0054] dis_90=min_dis-(((min_tof-tof_value)*(max_dis-min_dis)) / (max_t of-min_tof))

[0055] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

[0056] Further, in step S7, the interpolation method is used to calculate the undetermined real distance dis_90 relative to the target, and the calculation formula is:

[0057] dis_90=(((tof_value-min_tof)*(max_dis-min_dis)) / (max_tof-min_t of)+min_dis)

[0058] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

[0059] By means of the above technical solution, the present invention provides a ranging correction method based on DTOF single-point laser radar, which has at least the following beneficial effects:

[0060] High accuracy: DTOF LiDAR can accurately measure the distance between the target object and the sensor, and its accuracy is usually at the millimeter level;

[0061] High speed: DTOF laser radar can achieve fast measurement, and its working speed far exceeds many traditional measurement methods. It can complete the distance measurement of the target within a few milliseconds and display the distance value on the host computer;

[0062] Strong robustness: DTOF LiDAR has relatively little impact on the environment and is not affected by factors such as light and temperature, so it can work reliably in various complex environments;

[0063] High resolution: DTOF LiDAR can provide high-resolution distance data and accurately capture the subtle features of target objects;

[0064] Wide range of applications: DTOF lidar is widely used in industry, autonomous driving, security, aerospace and other fields, and can meet the needs of distance measurement in different fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0066] Figure 1 This is a schematic diagram of the host computer reading raw data in the present invention;

[0067] Figure 2 This is a schematic diagram of the similar triangle principle of the present invention;

[0068] Figure 3 Schematic diagram of three reflectances used for calibration and algorithm of the present invention;

[0069] Figure 4 Schematic diagram of the error of the test results of four reflectivity algorithms of the present invention;

[0070] Figure 5 It is a schematic diagram of the original Tof value and Peak value of 3M, 90%, and 6% of the original non-attenuated of the present invention;

[0071] Figure 6 It is a schematic diagram of the original Tof value and Peak value of 3M, 90%, and 6% attenuation of the present invention. DETAILED DESCRIPTION

[0072] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods, so that the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.

[0073] Please refer to Figure 1-Figure 6 This embodiment proposes a distance measurement correction method based on a DTOF single-point laser radar. Compared with the traditional method, it does not require the use of a complex calibration method, and the number of calibration points is reduced from the original 200 points to the current 14 points. This method has the advantages of simple and fast calibration, fast measurement, and greatly improved accuracy, stability and reliability of the measurement system. It is suitable for realizing autonomous navigation, obstacle avoidance, and object grasping. The method includes the following steps:

[0074] S1. Calibrate the DTOF single-point laser radar module. According to different reflectivities, calibrate the Normal_0_Tof data and the Normal_0_Peak data of the original TOF value output by the DTOF single-point laser radar module at several distance points, as well as the Atte10_0_Tof data and the Atte10_0_Peak data of the TOF value under the SPAD pixels with different reflectivity attenuation. The different reflectivities include 3M, 90%, and 6%. The distance points include 14 calibration points, which are 30, 50, 70, 120, 150, 210, 250, 300, 600, 1500, 2490, 3210, 4200, and 5190, respectively, in mm. These 14 calibration points are dense because this section is not linear, and the points found are basically at the inflection point. The reflectivity in nature is basically between 6% and 90% and there is a special reflectivity of 3M, so these three reflectivity are selected for calibration. The attenuation data of 3M is used to distinguish the 3M reflectivity from other reflectivities. The maximum calibration point is 5190mm and the minimum calibration point is 30mm.

[0075] Specifically, fix the DTOF single-point laser radar module at one end of the guide rail, then move the reflectivity paper to the positions of the calibrated 14 distance points, and read the Normal_0_Tof data of the original TOF value, the Normal_0_Peak data of the Peak value, and the Atte10_0_Tof data and the Peak value Atte10_0_Peak data of the TOF value after the reflectivity of 3M SPAD pixels is attenuated by 10% through the host computer;

[0076] Then, the Atte10_0_Tof data, Atte10_0_Peak data, and distance points of the 3M SPAD pixels with a reflectivity attenuation of 10%, as well as the Normal_0_Tof data and Normal_0_Peak data and distance points with two reflectivities attenuated by 6% and 90% are written into the DTOF single-point laser radar module to complete the calibration.

[0077] S2. Aim the DTOF laser radar at the target to be measured, and read the Normal_0_Tof data and Normal_0_Peak data in the DTOF single-point laser radar module through the host computer, as well as the Atte10_0_Tof data and Atte10_0_Peak data after the 3M reflectivity attenuation of 10% SPAD pixels; Figure 1 As shown in the figure, the DTOF laser radar hits the target and the host computer obtains the raw data. Frame A is Normal_0_Tof data, frame B is Normal_0_Peak data, frame C is Atte10_0_Tof data, and frame D is Atte10_0_Peak data.

[0078] S3, comparing the first Atte10_0_Tof data at the current moment with the second Atte10_0_Tof data after the reflectivity of 3M SPAD pixels at the maximum calibration point is attenuated by 10%; here, the theoretical Peak_3m value is determined as the Atte10_0_Peak data of the right boundary by proportional calculation;

[0079] If the first Atte10_0_Tof data is greater than the second Atte10_0_Tof data, the undetermined true distance value dis_3m relative to the target is calculated; the undetermined true distance value dis_3m is calculated using the similar triangle principle, and the calculation formula of the similar triangle principle is:

[0080] dis_3m=(((tof_value-max_tof)*(max_dis-min_dis)) / (max_tof-min_t of))+max_dis

[0081] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

[0082] like Figure 2As shown, the reflectivity is 3M and the target distance is 5700mm (point D) for testing. This distance exceeds the maximum calibration point of 5190mm. The host computer reads point E Tof_value = 6781.504, max_tof = 6257, min_tof = 1040, max_dis = 5190mm, min_dis = 30mm. From similar triangles, we get:

[0083] GH / BK=BH / EK, BK=GH*EK / BH; Substitute dis_3m=5704.393mm and Peak_3m=11594 into the formula.

[0084] Otherwise, go to step S4;

[0085] S4, comparing the first Atte10_0_Tof data at the current moment and the third Atte10_0_Tof data after the reflectivity of 3M SPAD pixels at the minimum calibration point is attenuated by 10%; here, the theoretical Peak_3m value is determined as the Atte10_0_Peak data of the left boundary by proportional calculation;

[0086] If the first Atte10_0_Tof data is less than the third Atte10_0_Tof data, the undetermined true distance value dis_3m relative to the target is calculated; the undetermined true distance value dis_3m is calculated using the similar triangle principle, and the calculation formula of the similar triangle principle is:

[0087] dis_3m=min_dis-(((min_tof-tof_value)*(max_dis-min_dis)) / (max_t of-min_tof))

[0088] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

[0089] like Figure 2 As shown, the reflectivity is 3M and the target distance is 10mm (point F) for testing. The distance is less than the minimum calibration point 30mm. The host computer reads point F Tof_value = 1018.569, max_tof = 6257, min_tof = 1040, max_dis = 5190mm, min_dis = 30mm; from similar triangles:

[0090] JI / GH=GI / BH, JI=GI*GH / BH; dis_3m=4.6077mm; Peak_3m=4597.

[0091] If the first Atte10_0_Tof data is between the third Atte10_0_Tof data and the second Atte10_0_Tof data, traverse to find the interval of the calibration point, and calculate the undetermined true distance dis_3m relative to the target by interpolation method; the undetermined true distance dis_3m relative to the target is calculated by interpolation method, and the calculation formula is:

[0092] dis_3m=((tof_value-min_tof)*(max_dis-min_dis)) / (max_tof-min_to f)+min_dis

[0093] Since the Peak value is gradually decreasing, the theoretical Peak_3m value is:

[0094] peak_3m=max_peak-((dis_3m-min_dis)*(max_peak-min_peak)) / (max_d is-min_dis)

[0095] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points; max_peak is the Peak value of the right boundary between every two interval points; min_peak is the Peak value of the left boundary between every two interval points.

[0096] like Figure 2 As shown, the reflectivity is selected as 3M, the target distance is 4000mm, and within the calibration point [3210,4200], the host computer reads the point Tof_value = 5241.556, max_tof = 5241, min_tof = 4221, max_dis = 4200mm, min_dis = 3210mm and substitutes it into the formula to get:

[0097] dis_3m=3998.029mm,Peak_3m=4597,max_peak=11832,min_peak=12571,substitute into the formula to get:

[0098] peak_3m=11243.76.

[0099] S5, taking the absolute value of the difference between the first Atte10_0_Tof data at the current moment and the theoretical Peak_3m value to obtain △Peak, and judging whether the to-be-determined real distance value dis_3m is the actual distance according to △Peak;

[0100] If △Peak is less than or equal to the threshold value P, the first Atte10_0_Tof data at the current moment is 3M reflectivity, that is, the to-be-determined true distance dis_3m is the actual distance dis_3m, and the process ends; otherwise, the process goes to step S6.

[0101] Since the Normal_0_Tof of the normal 3M reflectivity is inseparable from 90% and 6%, the 3M data is selected to use the data after 10% SPAD pixel attenuation. To determine whether it is 3M reflectivity, the absolute value is obtained by subtracting the theoretical Peak_3m value from the Peak value measured at this moment. The formula is as follows:

[0102] △Peak=abs(Peak_3m-Peak)

[0103] Since the attenuated 3M data is quite different from the normal 90% and 6% data, a threshold value P is set so that the absolute value △Peak is less than the threshold value P=3000, which is determined as the 3M reflectivity.

[0104] The threshold value P is set to 3000. In step S3, Peak = 11110.44, P <= abs(Peak_3m-Peak) = 483.56, which satisfies the condition, indicating that the reflectivity is 3M, and the actual distance dis_3m to be determined is established as the actual distance dis_3m;

[0105] In step S4, Peak = 3818.923, P <= abs(Peak_3m-Peak) = 778.077, which satisfies the condition, indicating that the reflectivity is 3M, and the real distance dis_3m to be determined is established as the actual distance dis_3m;

[0106] In step S4, the interpolation method is used to calculate the undetermined real distance dis_3m relative to the target. In Peak=12208.57, P<=abs(Peak_3m-Peak)=964.81, which satisfies the condition, indicating that the reflectivity is 3M, and the undetermined real distance dis_3m is established as the actual distance dis_3m.

[0107] If the condition is not met, it means that the target reflectivity is not 3M, then proceed to the following steps.

[0108] S6, comparing the first Normal_0_Tof data at the current moment with the second Normal_0_Tof data after 10% of the SPAD pixels are attenuated by 90% reflectivity at the maximum calibration point;

[0109] If the first Normal_0_Tof data is greater than the second Normal_0_Tof data, the undetermined real distance value dis_90 relative to the target is calculated; otherwise, the process proceeds to step S7. Here, the undetermined real distance value dis_90 is calculated using the similar triangle principle, and the calculation formula of the similar triangle principle is:

[0110] dis_90=(((tof_value-max_tof)*(max_dis-min_dis)) / (max_tof-min_t of))+max_dis

[0111] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

[0112] Among them, Figure 2 As shown, the reflectivity is 90%, and the target distance is 5700mm (point D) for testing. This distance exceeds the maximum calibration point of 5190mm. The host computer reads point E Tof_value = 6796.096, max_tof = 6270, min_tof = 979, max_dis = 5190mm, min_dis = 30mm; from similar triangles:

[0113] GH / BK=BH / EK;BK=GH*EK / BH;Substitute dis_90 into the formula=5699.836mm.

[0114] S7, comparing the first Normal_0_Tof data at the current moment with the third Normal_0_Tof data after 10% of the SPAD pixels are attenuated by 90% reflectivity at the minimum calibration point;

[0115] If the first Normal_0_Tof data is less than the third Normal_0_Tof data, the undetermined true distance value dis_90 relative to the target is calculated; here, the undetermined true distance value dis_90 is calculated using the similar triangle principle, and the calculation formula of the similar triangle principle is:

[0116] dis_90=min_dis-(((min_tof-tof_value)*(max_dis-min_dis)) / (max_t of-min_tof))

[0117] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

[0118] like Figure 2 As shown, the reflectivity is 90%, and the target distance is 10mm (point F) for testing. This distance is less than the minimum calibration point of 30mm. The host computer reads point F Tof_value = 974.432, max_tof = 6270, min_tof = 979, max_dis = 5190mm, min_dis = 30mm; from similar triangles:

[0119] JI / GH=GI / BH; JI=GI*GH / BH; Substitute dis_90 into the formula = 3.2477mm.

[0120] If the first Normal_0_Tof data is between the third Normal_0_Tof data and the second Normal_0_Tof data, the interval of the calibration point is traversed to find out, and the undetermined true distance dis_90 relative to the target is calculated by interpolation method; here, the undetermined true distance dis_90 relative to the target is calculated by interpolation method, and the calculation formula is:

[0121] dis_90=(((tof_value-min_tof)*(max_dis-min_dis)) / (max_tof-min_t of)+min_dis)

[0122] Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

[0123] like Figure 2As shown, the reflectivity is selected as 90%, the target distance is 4000mm, and within the calibration point [3210,4200] interval, the host computer reads the point Tof_value = 5039.673, max_tof = 5243, min_tof = 4214, max_dis = 4200mm, min_dis = 3210mm.

[0124] Substitute into the formula and we get: dis_90=4001.562mm.

[0125] S8. Replace the reflectivity with 6% reflectivity, and repeat steps S6 and S7 to obtain the undetermined true distance value dis_6 of the first Normal_0_Tof data relative to the target at 6% reflectivity; this step is similar to the calculation process of the above steps S6 and S7, and through calculation, it is obtained that: dis_6=5709.189mm, dis_6=10.176mm, dis_6=4003.251mm.

[0126] S9. Calculate the average value dis_avg of the to-be-determined real distance value dis_90 and the to-be-determined real distance value dis_6. The formula is: dis_avg = (dis_6 + dis_90) / 2. Assuming the target distance is 4000 mm, then: dis_avg = 4002.4065 mm.

[0127] If the average value dis_avg is greater than the right boundary of the 90% reflectivity calibration distance point, the theoretical Peak_90 value is equal to the Normal_0_Peak data of the maximum calibration point, and the theoretical Peak_6 value is equal to the Normal_0_Peak value of the maximum calibration point;

[0128] If the average value dis_avg is less than the left boundary of the 90% reflectivity calibration distance, the theoretical Peak_90 value is equal to the Normal_0_Peak value of the minimum calibration point, and the theoretical Peak_6 value is equal to the Normal_0_Peak value of the minimum calibration point.

[0129] Among them, if dis_avg>5190, then Peak_90=4810, Peak_6=1285; if dis_avg<30, then Peak_90=6514, Peak_6=1928.

[0130] If the average value dis_avg is within the range of the 90% reflectivity or 6% reflectivity calibration point, the specific interval is traversed to find out. At this time, max_dis is the maximum distance point of the interval, min_dis is the minimum distance point of the interval, max_peak is the maximum Peak value of the interval, min_Peak is the minimum Peak value of the interval, and the theoretical Peak_90 value and the theoretical Peak_6 value are calculated through the interpolation ratio, that is:

[0131] peak_90=(((dis_avg-min_dis)*(max_peak-min_peak)) / (max_dis-min_dis)+min_peak);

[0132] peak_6=(((dis_avg-min_dis)*(max_peak-min_peak)) / (max_dis-min_d is)+min_peak).

[0133] The calculation formula for the theoretical Peak_90 value and the theoretical Peak_6 value calculated by interpolation ratio is:

[0134] peak_90=(((dis_avg-min_dis)*(max_peak-min_peak)) / (max_dis-min_dis)+min_peak);

[0135] peak_6=(((dis_avg-min_dis)*(max_peak-min_peak)) / (max_dis-min_d is)+min_peak).

[0136] Assuming the reflectivity is 90% and the target distance is 4000mm, then:

[0137] peak_90=(((4002.4065-3210)*(5625-4479)) / (4200-3210)+4479)=5396.2706;

[0138] Peak_6 can be calculated in the same way as above, namely:

[0139] peak_6=(((4002.4065-3210)*(2258-1538)) / (4200-3210)+1538)=2114.2956.

[0140] S10, calculating the actual distance dis of the first Normal_0_Tof data according to the theoretical Peak_90 value and the theoretical Peak_6 value;

[0141] If the undetermined true distance value dis_6 is greater than or equal to the undetermined true distance value dis_90, and the current Peak value is less than Peak_90. Theoretically, the distance corresponding to 6% reflectivity is greater than 90% because the TOF value of 6% reflectivity is greater than 90%. However, after multiple module experiments, it was found that some modules have a TOF value of 90% reflectivity greater than 6% in a certain section. Therefore, this special case is handled and the actual distance dis is calculated according to the formula, namely:

[0142] dis=(((peak_90-peak)*(dis_10-dis_90)) / (peak_90-peak_10)+dis_90).

[0143] If the Peak value at the current moment is greater than the Peak_90 value, the actual distance dis is the undetermined true distance value dis_90; because the Peak value of 90% reflectivity is larger than the Peak value of 6%, when the Peak value at this time is greater than the Peak value of the maximum or minimum distance point calibrated with 90% reflectivity, the reflectivity of the target point is considered to be 90%, so the distance at this time is dis_90.

[0144] If the Peak value at the current moment is less than the Peak_6 value, the actual distance dis is the undetermined true distance value dis_6; because the Peak value of 90% reflectivity is larger than the Peak value of 6%, when the Peak value at this time is less than the Peak value of the maximum or minimum distance point calibrated with 6% reflectivity, the reflectivity of the target point is considered to be 6%, so the distance at this time is dis_6.

[0145] If other conditions are met, the actual distance dis is calculated by the Peak value interpolation ratio, that is:

[0146] dis=((peak-peak_6)*(dis_90-dis_6)) / (peak_90-peak_6)+dis_6.

[0147] In addition to the above conditions, assuming the target distance is 4000mm, the Peak value is 4687.169, then:

[0148] dis=((peak-peak_6)*(dis_90-dis_6)) / (peak_90-peak_6)+dis_6

[0149] =((4687.169-2114.2956)*(4001.562-4003.252)) / (5396.2706-2114.2956)+4003.252=4001.562mm.

[0150] like Figure 3 As shown, three reflectivities of the calibration points of the distance measurement correction method proposed in the present invention are shown, which are 3M, 6%, and 90% reflectivity papers from left to right. Figure 4 This is the result error diagram of the present invention from 10mm to 5700mm under three reflectivity, and the error range is within 1cm. Figure 5 The original Tof value and Peak value diagram of the original unattenuated 3M, 90%, and 6% reflectivity. Figure 6 The original Tof value and Peak value diagram of 3M, 90%, and 6% reflectivity of SPAD pixels with 10% attenuation. Figure 5 It can be seen that the three reflectivities are inseparable. Figure 6 The Tof value and Peak value of the SPAD pixel with 10% attenuation can be used to separate 3M from 90% and 6%.

[0151] This embodiment calibrates the single-point laser radar module, and calibrates the real distance values ​​of 14 points according to different reflectivities (3M, 90%, 6%), as well as the original TOF value, Peak value (energy value) output by the module under the real distance value, and the TOF value and Peak value (energy value) of the attenuated 10% SPAD pixel; the laser of the single-point laser radar hits the target point, and the laser radar module will output some raw data such as the above four types hitting the point; according to these raw data and the raw data of the calibrated 14 points, through a series of calculation conversions, the module laser finally hits any target point and can convert the original TOF value into the real distance value with high accuracy. The present invention enables ranging to have higher accuracy, speed and scope of application, and can achieve a higher degree of automation, which is suitable for a wider range of application scenarios.

[0152] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, so the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0153] The above implementation methods have been described in detail. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A distance measurement correction method based on DTOF single-point laser radar, characterized in that: The method comprises the following steps: S1. Calibrate the DTOF single-point laser radar module; S2. Aim the DTOF laser radar at the target to be measured, and read the Normal_0_Tof data and Normal_0_Peak data in the DTOF single-point laser radar module through the host computer, as well as the Atte10_0_Tof data and Atte10_0_Peak data after the 3M reflectivity attenuation of 10% SPAD pixels; S3, comparing the first Atte10_0_Tof data at the current moment and the second Atte10_0_Tof data after 3M reflectivity attenuation of 10% SPAD pixels at the maximum calibration point; If the first Atte10_0_Tof data is greater than the second Atte10_0_Tof data, the undetermined true distance value dis_3m relative to the target is calculated; Otherwise, go to step S4; S4, comparing the first Atte10_0_Tof data at the current moment and the third Atte10_0_Tof data after the reflectivity of 3M SPAD pixels attenuates by 10% at the minimum calibration point; If the first Atte10_0_Tof data is less than the third Atte10_0_Tof data, the undetermined true distance value dis_3m relative to the target is calculated; If the first Atte10_0_Tof data is between the third Atte10_0_Tof data and the second Atte10_0_Tof data, traverse to find the interval of the calibration point, and calculate the undetermined real distance dis_3m relative to the target by interpolation method; S5, taking the absolute value of the difference between the first Atte10_0_Tof data at the current moment and the theoretical Peak_3m value to obtain △Peak, and judging whether the to-be-determined real distance value dis_3m is the actual distance according to △Peak; If △Peak is less than or equal to the threshold value P, the first Atte10_0_Tof data at the current moment is 3M reflectivity, that is, the real distance to be determined dis_3m is the actual distance dis_3m, and the process ends; Otherwise, go to step S6; S6, comparing the first Normal_0_Tof data at the current moment with the second Normal_0_Tof data after 10% of the SPAD pixels are attenuated by 90% reflectivity at the maximum calibration point; If the first Normal_0_Tof data is greater than the second Normal_0_Tof data, the undetermined true distance value dis_90 relative to the target is calculated; Otherwise, go to step S7; S7, comparing the first Normal_0_Tof data at the current moment with the third Normal_0_Tof data after 10% of the SPAD pixels are attenuated by 90% reflectivity at the minimum calibration point; If the first Normal_0_Tof data is less than the third Normal_0_Tof data, the undetermined true distance value dis_90 relative to the target is calculated; If the first Normal_0_Tof data is between the third Normal_0_Tof data and the second Normal_0_Tof data, then traverse to find the interval of the calibration point, and calculate the undetermined true distance dis_90 relative to the target by interpolation method; S8, replacing the reflectivity with 6% reflectivity, and repeating steps S6 and S7 to obtain a to-be-determined true distance value dis_6 of the first Normal_0_Tof data relative to the target at 6% reflectivity; S9, calculating the average value dis_avg of the pending true distance value dis_90 and the pending true distance value dis_6; If the average value dis_avg is greater than the right boundary of the 90% reflectivity calibration distance point, the theoretical Peak_90 value is equal to the Normal_0_Peak data of the maximum calibration point, and the theoretical Peak_6 value is equal to the Normal_0_Peak value of the maximum calibration point; If the average value dis_avg is less than the left boundary of the 90% reflectivity calibration distance, the theoretical Peak_90 value is equal to the Normal_0_Peak value of the minimum calibration point, and the theoretical Peak_6 value is equal to the Normal_0_Peak value of the minimum calibration point; If the average value dis_avg is within the range of the 90% reflectivity or 6% reflectivity calibration point, the specific interval is traversed to find out. At this time, max_dis is the maximum distance point of the interval, min_dis is the minimum distance point of the interval, max_peak is the maximum Peak value of the interval, min_Peak is the minimum Peak value of the interval, and the theoretical Peak_90 value and the theoretical Peak_6 value are calculated through the interpolation ratio, that is: peak_90=(((dis_avg-min_dis)*(max_peak-min_peak)) / (max_dis-min_dis)+min_peak); peak_6=(((dis_avg-min_dis)*(max_peak-min_peak)) / (max_dis-min_dis)+min_peak); S10, calculating the actual distance dis of the first Normal_0_Tof data according to the theoretical Peak_90 value and the theoretical Peak_6 value; If the undetermined true distance value dis_6 is greater than or equal to the undetermined true distance value dis_90, and the Peak value at the current moment is less than the Peak_90 value, the actual distance dis is calculated according to the formula, that is: dis=(((peak_90-peak)*(dis_10-dis_90)) / (peak_90-peak_10)+dis_90); If the Peak value at the current moment is greater than the Peak_90 value, the actual distance dis is the undetermined true distance value dis_90; If the Peak value at the current moment is less than the Peak_6 value, the actual distance dis is the undetermined true distance value dis_6; If other conditions are met, the actual distance dis is calculated by the Peak value interpolation ratio, that is: dis=((peak-peak_6)*(dis_90-dis_6)) / (peak_90-peak_6)+dis_6.

2. The distance measurement correction method according to claim 1, characterized in that: In step S1, the calibration is specifically performed as follows: According to the calibration of different reflectivity, the Normal_0_Tof data of the original TOF value and the Normal_0_Peak data of the Peak value output by the DTOF single-point lidar module corresponding to several distance points are obtained, as well as the Atte10_0_Tof data and Atte10_0_Peak data of the TOF value under SPAD pixels with different reflectivity attenuation.

3. The distance measurement correction method according to claim 2, characterized in that: The different reflectivities include 3M, 90%, and 6%, and the distance points include 14 calibration points, namely 30, 50, 70, 120, 150, 210, 250, 300, 600, 1500, 2490, 3210, 4200, and 5190, and the unit is mm.

4. The distance measurement correction method according to claim 1, characterized in that: In step S3, the undetermined true distance value dis_3m is calculated using the similar triangle principle. The calculation formula of the similar triangle principle is: dis_3m=(((tof_value-max_tof)*(max_dis-min_dis)) / (max_tof-min_tof))+max_dis Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

5. The distance measurement correction method according to claim 1, characterized in that: In step S4, the undetermined true distance value dis_3m is calculated using the similar triangle principle. The calculation formula of the similar triangle principle is: dis_3m=min_dis-(((min_tof-tof_value)*(max_dis-min_dis)) / (max_tof-min_tof)) Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

6. The distance measurement correction method according to claim 1, characterized in that: In step S4, the interpolation method is used to calculate the undetermined real distance dis_3m relative to the target, and the calculation formula is: dis_3m=((tof_value-min_tof)*(max_dis-min_dis)) / (max_tof-min_to f)+min_dis Since the Peak value is gradually decreasing, the theoretical Peak_3m value is: peak_3m=max_peak-((dis_3m-min_dis)*(max_peak-min_peak)) / (max_dis-min_dis) Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points; max_peak is the Peak value of the right boundary between every two interval points; min_peak is the Peak value of the left boundary between every two interval points.

7. The distance measurement correction method according to claim 1, characterized in that: In step S6, the undetermined true distance value dis_90 is calculated using the similar triangle principle. The calculation formula of the similar triangle principle is: dis_90=(((tof_value-max_tof)*(max_dis-min_dis)) / (max_tof-min_tof))+max_dis Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

8. The distance measurement correction method according to claim 1, characterized in that: In step S7, the undetermined true distance value dis_90 is calculated using the similar triangle principle. The calculation formula of the similar triangle principle is: dis_90=min_dis-(((min_tof-tof_value)*(max_dis-min_dis)) / (max_tof-min_tof)) Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.

9. The distance measurement correction method according to claim 1, characterized in that: In step S7, the interpolation method is used to calculate the undetermined real distance dis_90 relative to the target, and the calculation formula is: dis_90=(((tof_value-min_tof)*(max_dis-min_dis)) / (max_tof-min_tof)+min_dis) Among them, tof_value is the TOF value of the current measured target reflectivity; max_tof is the Tof value of the right boundary between every two interval points; min_tof is the Tof value of the left boundary between every two interval points; max_dis is the distance value of the right boundary between every two interval points; min_dis is the distance value of the left boundary between every two interval points.