Laser radar calibration method and device
The lidar calibration method established through segmentation and mapping relationships solves the problem of inaccurate lidar calibration in the existing technology, achieves higher calibration accuracy, avoids function fitting steps, and ensures the accuracy of point cloud data. sex.
Patent Information
- Application Number
- CN202110849817.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-07-27
AI Technical Summary
The lidar calibration method in the existing technology is based on Gaussian distribution, which results in the Gaussian distribution corresponding to the lidar being inaccurate enough, resulting in inaccurate calibration parameters, which in turn leads to large errors when constructing point cloud maps.
By obtaining the original point cloud collected by multiple lasers, it is divided into several sub-point clouds, the target sub-point cloud and regional return value are determined, and the frequency table and mapping relationship of the laser are established to calibrate the point cloud to be corrected.
The accuracy of lidar calibration is improved, the function fitting step is avoided, and the calibrated point cloud data is ensured to be more accurate.
Smart Images

Figure CN113702952B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and more particularly to a laser radar calibration method and device. Background Art
[0002] At present, in the field of autonomous driving, line LiDAR is increasingly widely used in unmanned driving equipment due to its high precision and rich three-dimensional point cloud structure information. Among them, the three-dimensional point cloud data provided by line LiDAR is usually used for the construction, positioning and target detection of high-precision maps. However, line LiDAR often needs to be calibrated during use. Among them, line LiDAR emits lasers through multiple lasers and collects point cloud data.
[0003] In the prior art, a common laser radar calibration method is implemented based on Gaussian distribution. Specifically, first, after receiving the return value corresponding to the laser radar, for each laser used by the laser radar, the Gaussian distribution corresponding to the laser can be fitted according to the return values received by the laser, and the mean and variance corresponding to the Gaussian distribution can be determined. Secondly, according to the return values corresponding to each laser, a total Gaussian distribution is fitted, and the mean and variance of the total Gaussian distribution are determined as the mean and variance of the laser radar. Then, according to the mean and variance corresponding to each laser, and the mean and variance of the laser radar, the calibration parameters corresponding to each laser are determined. Finally, when a new return value is received, the calibrated return value is determined according to the calibration parameters of the laser corresponding to the return value.
[0004] However, when calibrating the laser radar, the Gaussian distribution determined by the prior art is often not accurate enough. As a result, the calibration parameters determined based on the Gaussian distribution are also not accurate enough, resulting in large errors when constructing a map based on the return value of the calibrated point cloud. Summary of the invention
[0005] This specification provides a laser radar calibration method and device to partially solve the above-mentioned problems existing in the prior art.
[0006] This manual adopts the following technical solutions:
[0007] This specification provides a laser radar calibration method, including:
[0008] Get the original point cloud collected by multiple lasers;
[0009] The original point cloud is divided into a plurality of original sub-point clouds, and each target sub-point cloud is determined from each original sub-point cloud according to the number of lasers corresponding to the three-dimensional points in each original sub-point cloud;
[0010] According to the return value of the three-dimensional point in each target sub-point cloud, the regional return value of each target sub-point cloud is determined respectively;
[0011] For each laser, according to the return value of each three-dimensional point in each target sub-point cloud collected by the laser and the regional return value of each target sub-point cloud, a frequency table corresponding to the laser is determined, wherein the frequency table is used to characterize the corresponding relationship between the number of matches between the return value of each three-dimensional point and the regional return value of each target sub-point cloud;
[0012] According to the frequency table corresponding to each laser, a mapping relationship between the return value of the original point cloud corresponding to each laser and the target return value is determined, and each mapping relationship is used to calibrate the point cloud to be corrected collected by the multiple lasers.
[0013] Optionally, according to the number of lasers corresponding to the three-dimensional points in each original sub-point cloud, each target sub-point cloud is determined from each original sub-point cloud, specifically including:
[0014] For each original sub-point cloud, determine whether each three-dimensional point in the original sub-point cloud is collected by different lasers;
[0015] If so, determine the original sub-point cloud as the target sub-point cloud;
[0016] If not, it is determined that the original sub-point cloud is not the target sub-point cloud.
[0017] Optionally, according to the return value of the three-dimensional point in each target sub-point cloud, the region return value of each target sub-point cloud is determined respectively, specifically including:
[0018] For each target sub-point cloud and each laser, determine the return value of the laser in the target sub-point cloud according to the average of the return values of the three-dimensional points collected by the laser in the target sub-point cloud;
[0019] The median of the return value of each laser in the target sub-point cloud is taken to determine the regional return value of the target sub-point cloud.
[0020] Optionally, before determining the frequency table corresponding to each laser, the method further includes:
[0021] For each 3D point, a weight corresponding to the 3D point is determined according to the number of lasers corresponding to the 3D points in the target sub-point cloud to which the 3D point belongs, and the weight is used to characterize the credibility of the target sub-point cloud.
[0022] Optionally, according to the return value of each three-dimensional point in each target sub-point cloud collected by the laser and the regional return value of each target sub-point cloud, a frequency table corresponding to the laser is determined, specifically including:
[0023] For each 3D point collected by the laser, determine the position of the 3D point in the frequency table according to the return value of the 3D point and the region return value of the target sub-point cloud to which the 3D point belongs;
[0024] By traversing each three-dimensional point, the cumulative weight corresponding to each position in the frequency table is determined according to the weight corresponding to each three-dimensional point, and the frequency table is generated based on each position and its corresponding cumulative weight.
[0025] Optionally, according to the frequency table corresponding to each laser, a mapping relationship between the return value of the original point cloud corresponding to each laser and the target return value is determined, specifically including:
[0026] For each return value in the frequency table corresponding to each laser, determine the frequency of the return value corresponding to the return value of each area according to the frequency table corresponding to the laser;
[0027] Determine the weight of the return value of each area according to the frequency of the return value of each area;
[0028] According to the return value of each area and its weight, determine the target return value corresponding to the return value;
[0029] According to each return value and its corresponding target return value, a mapping relationship between the return value of the original point cloud corresponding to the laser and the target return value is determined.
[0030] Optionally, obtain the original point cloud, including:
[0031] Collect point clouds according to preset frequency;
[0032] Determine the target return value corresponding to each 3D point in the point cloud according to each stored mapping relationship;
[0033] The difference between the target return values corresponding to each three-dimensional point and the preset error threshold are determined, and the point cloud is stored as the original point cloud.
[0034] When the number of stored original point clouds reaches a preset number, the original point clouds are calibrated.
[0035] This specification provides a laser radar calibration device, including:
[0036] An acquisition module, used to acquire the original point cloud collected by multiple lasers;
[0037] A region determination module is used to divide the original point cloud into a plurality of original sub-point clouds, and determine each target sub-point cloud from each original sub-point cloud according to the number of lasers corresponding to the three-dimensional points in each original sub-point cloud;
[0038] A first determination module is used to determine the region return value of each target sub-point cloud according to the return value of the three-dimensional point in each target sub-point cloud;
[0039] A second determination module is used to determine, for each laser, a frequency table corresponding to the laser according to the return value of each three-dimensional point in each target sub-point cloud collected by the laser and the regional return value of each target sub-point cloud, wherein the frequency table is used to represent the corresponding relationship between the number of matches between the return value of each three-dimensional point and the regional return value of each target sub-point cloud;
[0040] The calibration module is used to determine the mapping relationship between the return value of the original point cloud corresponding to each laser and the target return value according to the frequency table corresponding to each laser, and each mapping relationship is used to calibrate the point cloud to be corrected collected by the multiple lasers.
[0041] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned laser radar calibration method is implemented.
[0042] The present specification provides an unmanned driving device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned laser radar calibration method when executing the program.
[0043] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0044] In the laser radar calibration method provided in the present specification, the acquired original point cloud is segmented to obtain target sub-point clouds for determining mapping relationships, and for each target sub-point cloud, the regional return value of the target sub-point cloud is determined according to the return value of each three-dimensional point in the target sub-point cloud, and for each laser, the frequency table corresponding to the laser is determined based on the return value of each three-dimensional point collected by the laser and the regional return value of each target sub-point cloud, and then the mapping relationship corresponding to the laser is determined, and according to each mapping relationship, the return value of each point cloud to be corrected is calibrated.
[0045] From the above method, it can be seen that this method can calibrate the laser radar based on the laser return values corresponding to the same area collected by each laser. It does not require steps such as function fitting, which ensures the accuracy of the laser radar calibration. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0047] Figure 1 A flowchart of the laser radar calibration method provided in this manual;
[0048] Figure 2 A schematic diagram of determining a target sub-point cloud provided in this specification;
[0049] Figure 3 A schematic diagram of determining the area return value of the target sub-point cloud provided in this specification;
[0050] Figure 4 A schematic diagram of the determined frequency table provided for this specification;
[0051] Figure 5 A schematic diagram of a regional frequency table for determining a target sub-point cloud provided in this specification;
[0052] Figure 6 A schematic diagram for determining the mapping relationship provided in this specification;
[0053] Figure 7 A schematic diagram of the laser radar calibration device provided for this specification;
[0054] Figure 8 The corresponding Figure 1 Schematic diagram of unmanned driving equipment. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0056] In the prior art, the calibration of the line laser radar based on Gaussian distribution is based on the premise that all the return values received by the laser are Gaussian distributions, and each return value is mapped to the Gaussian distribution corresponding to different parameters to determine the mapping relationship between the Gaussian distribution corresponding to each laser and the total Gaussian distribution corresponding to the line laser radar, so as to achieve the calibration when a new laser return value is received. However, when determining the Gaussian distribution corresponding to the laser radar, the prior art will be more or less affected by the laser return value received by the laser with error, resulting in errors in the Gaussian distribution corresponding to the laser radar obtained by fitting, making the laser radar calibration method based on Gaussian distribution less effective in actual use.
[0057] Different from the existing method of calibrating laser radar based on Gaussian distribution, this specification proposes a new laser radar calibration method, which can calibrate the laser radar based on the laser return values corresponding to the same area and the same material collected by multiple lasers. It does not require steps such as function fitting, which ensures the accuracy of laser radar calibration.
[0058] It should be noted that the return value in this specification is determined according to the intensity of the laser reflection received by the laser.
[0059] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0060] Figure 1 The flowchart of the laser radar calibration method provided in this manual specifically includes the following steps:
[0061] S100: Acquire an original point cloud collected by multiple lasers.
[0062] In one or more embodiments provided in this specification, when the unmanned driving device moves, the unmanned driving device can collect raw point clouds at a preset frequency, and perform subsequent steps according to the return values of the collected raw point clouds to calibrate the return values of each raw point cloud. The raw point cloud is an uncalibrated point cloud that can be used to calibrate the laser radar, and the raw point cloud includes point clouds collected by multiple laser heads.
[0063] Of course, the unmanned driving device can also send the collected original point cloud to the server, and the server will execute subsequent steps based on the return value of the acquired original point cloud. The specific execution subject can be set as needed, and this manual does not limit this. For the convenience of description, the unmanned driving device executing the laser radar calibration method is used as an example for explanation.
[0064] In addition, as mentioned above, this manual can calibrate the laser radar based on the laser return values corresponding to the same area and the same material collected by each laser head. Therefore, when receiving the return value of the original point cloud corresponding to the same area scanned by the laser radar, for each laser head, the return value of the point cloud collected by other laser heads in the original point cloud can be regarded as the accurate point cloud return value, which is used as the basis for calibrating the laser point cloud return value.
[0065] However, the original point cloud collected is usually collected by more than one laser head, and also usually corresponds to more than one area of the same material. Therefore, it is impossible to determine the mapping relationship directly based on the original laser point cloud. Therefore, in the subsequent steps, the mapping relationship can be determined based on the point clouds corresponding to each laser head corresponding to the same area of the same material.
[0066] Furthermore, the laser radar calibration method provided in this specification can be implemented when the unmanned driving device is moving or when the unmanned driving device is stationary. Therefore, the specific time when the unmanned driving device is calibrated can be set according to needs, and this specification does not limit this.
[0067] Furthermore, in this specification, the unmanned driving device can collect point clouds according to a preset frequency when it is determined that the laser radar needs to be calibrated. The unmanned driving device can calibrate the point clouds corresponding to each laser head collected according to the stored mapping relationship, and determine the target return value corresponding to each three-dimensional point in the point cloud. Then it is determined whether the difference between the target return values of each three-dimensional point is greater than the preset error threshold. If it is greater, the unmanned driving device can determine that the laser radar needs to be calibrated, and then execute steps S100 to S106. If it is not greater, it can be determined that the laser radar does not need to be calibrated, and the original point cloud data collected next time will continue to be calibrated according to the calibration parameters. Of course, the unmanned driving device can also store the point cloud data whose difference between the target return values of each three-dimensional point is greater than the preset error threshold as the original point cloud, and calibrate the original point cloud when the number of original point clouds is greater than the preset number. The specific preset number can be set as needed, and this specification does not limit this.
[0068] In addition, in this manual, each original point cloud can be collected in real time by an unmanned driving device, or it can be collected historically by a collection device (such as a lidar). The server obtains the original point cloud collected historically for calibration to draw a high-precision map, etc. The specific source of the original point cloud can be set as needed, and this manual does not impose any restrictions on this.
[0069] S102: dividing the original point cloud into several original sub-point clouds, and determining each target sub-point cloud from each original sub-point cloud according to the number of lasers corresponding to the three-dimensional points in each original sub-point cloud.
[0070] In one or more embodiments provided in this specification, after obtaining the original point cloud, the unmanned driving device can calibrate the laser radar based on the original point cloud corresponding to the same area of the same material received by each laser in the original point cloud. For the area scanned by the laser radar, in general, the smaller the area, the more consistent the material. For areas with the same material, the return values of different laser radars are theoretically roughly the same. Therefore, in order to improve the accuracy of calibration, the unmanned driving device can divide the original point cloud into several original sub-point clouds. When determining the mapping relationship later, it is determined based on the three-dimensional points in each original sub-point cloud.
[0071] Specifically, the unmanned driving device can segment the original point cloud based on the position of each three-dimensional point in the original point cloud. Since the point cloud data is generally a three-dimensional point in space, and when calibrating the return value of the point cloud, it is usually necessary to consider the distance factor. Obviously, if the three-dimensional points of the original point cloud are located in the same plane, it can be considered that the distance between each three-dimensional point in the plane and the laser radar is equal. Therefore, in order to facilitate its processing, the unmanned driving device can project the original point cloud onto the same plane (such as a horizontal plane). And divide the position containing the original point cloud in the plane into unit areas of the same specification (such as 2.5CM*2.5CM), and divide each original point cloud according to each unit area to obtain each original sub-point cloud with the unit area as the size. Of course, when segmenting the original point cloud, the specific segmentation method can be set as needed, and this manual does not limit this.
[0072] Then, since the laser radar calibration method provided in this specification is based on the point cloud return values corresponding to the same area by different lasers for calibration, only the original sub-point cloud containing point clouds collected by more than one laser can be used to perform subsequent steps. Therefore, the unmanned driving device can determine each target sub-point cloud used to determine the mapping relationship from the original sub-point cloud.
[0073] Specifically, the unmanned driving device can determine whether each 3D point in each original sub-point cloud is collected by the same laser. If so, it can be determined that the original sub-point cloud is not the target sub-point cloud. If not, it can be determined that the original sub-point cloud is the target sub-point cloud. Figure 2 shown.
[0074] Figure 2 The schematic diagram of determining the target sub-point cloud provided in this specification. Among them, the white dots represent the three-dimensional points corresponding to laser 1, the gray dots represent the three-dimensional points corresponding to laser 2, and the black dots represent the three-dimensional points corresponding to laser 3. Region 1, region 2, region 3, region 4, region 5, region 6, region 7, region 8, etc. are each unit area, and the point clouds in region 1, region 2, region 3, region 4, region 5, region 6, region 7, region 8, etc. are respectively original sub-point cloud 1, original sub-point cloud 2, original sub-point cloud 3, original sub-point cloud 4, original sub-point cloud 5, original sub-point cloud 6, original sub-point cloud 7, original sub-point cloud 8, etc. For each original sub-point cloud, according to the number of lasers corresponding to each three-dimensional point in the original sub-point cloud, it can be determined that the original sub-point cloud 2, the original sub-point cloud 3, the original sub-point cloud 4, the original sub-point cloud 5, and the original sub-point cloud 6 are the target sub-point clouds, and the original sub-point cloud 1, the original sub-point cloud 7, and the original sub-point cloud 8 are not the target sub-point clouds.
[0075] In addition, when determining each target sub-point cloud from each original sub-point cloud, it can also be determined based on whether the number of lasers corresponding to the three-dimensional points in each original sub-point cloud is greater than the specified number. For example, assuming that there are 10 lasers in the laser radar, when the number of laser heads corresponding to the three-dimensional points in the original sub-point cloud is 2, it is obvious that the original sub-point cloud is not reliable. Therefore, the specified number can be preset to 5, that is, when the number of laser heads corresponding to the three-dimensional points in the original sub-point cloud exceeds 5, the original sub-point cloud can be determined to be a target sub-point cloud. Of course, the specific specified number can be set as needed, and this manual does not limit this.
[0076] In addition, the unmanned driving device can also divide the original point cloud into three-dimensional original sub-point clouds, and then execute subsequent steps for each original sub-point cloud.
[0077] S104: Determine the region return value of each target sub-point cloud according to the return value of the three-dimensional point in each target sub-point cloud.
[0078] In one or more embodiments provided in this specification, for each laser, the mapping relationship between the collected return value and the true return value can be determined based on the return value of the three-dimensional point collected by the laser and the target return value of each three-dimensional point, and each three-dimensional point can be corrected based on the mapping relationship. Therefore, the unmanned driving device can determine the regional return value of each target sub-point cloud for each target sub-point cloud. The regional return value of each target sub-point cloud is used to determine the target return value of each three-dimensional point.
[0079] Specifically, the unmanned driving device can determine, for each target sub-point cloud, the number of lasers corresponding to each three-dimensional point in the target sub-point cloud.
[0080] Then, for each laser, the unmanned driving device can determine the average value of each three-dimensional point corresponding to the laser according to the return value of the three-dimensional point corresponding to the laser in the target sub-point cloud as the return value of the laser in the target sub-point cloud.
[0081] Finally, the unmanned driving device can take the median of the return values of each laser in the target sub-point cloud as the regional return value of the target sub-point cloud. Figure 3 shown.
[0082] Figure 3 A schematic diagram of determining the area return value of the target sub-point cloud provided in this specification, wherein Figure 2Similarly, the white dots represent the three-dimensional points corresponding to laser 1, the gray dots represent the three-dimensional points corresponding to laser 2, and the black dots represent the three-dimensional points corresponding to laser 3. For each return value corresponding to each laser, the average can be taken to obtain the return value of each laser in the target sub-point cloud, and then the median of the determined return values of each laser in the target sub-point cloud is taken as the regional return value of the target sub-point cloud.
[0083] Of course, when determining the return value, you can also take the median in the first step and the mean in the second step, or sum the return values of each original point cloud according to the preset weights. The specific method for determining the regional return value of the target sub-point cloud can be set as needed, and this manual does not limit this.
[0084] S106: For each laser, according to the return value of each three-dimensional point in each target sub-point cloud collected by the laser and the regional return value of each target sub-point cloud, determine the frequency table corresponding to the laser, wherein the frequency table is used to characterize the corresponding relationship between the return value of each three-dimensional point and the number of matches with the regional return value of each target sub-point cloud.
[0085] In one or more embodiments provided in the present specification, for each laser, after determining the return value corresponding to each target sub-point cloud, the unmanned driving device can determine the frequency table corresponding to the laser, so as to correspond and count the return value of the point cloud collected by the laser and the regional return value of each target sub-point cloud.
[0086] Specifically, first, the unmanned driving device can determine the weight corresponding to each 3D point according to the number of lasers corresponding to the 3D points of the target sub-point cloud to which the 3D point belongs. The weight is used to characterize the credibility of the target sub-point cloud, that is, for each target sub-point cloud, the more the number of lasers corresponding to the 3D points in the target sub-point cloud, the higher the probability that the regional return value of the target sub-point cloud is close to the regional return value when the target return value is determined later.
[0087] Then, the unmanned driving device can determine the position of each 3D point in the frequency table for each laser and each 3D point collected by the laser according to the return value of the 3D point and the area return value of the target sub-point cloud to which the 3D point belongs.
[0088] Finally, by traversing each 3D point, according to the weight corresponding to each 3D point, the cumulative weight corresponding to each position in the frequency table is determined, and a frequency table is generated based on each position and its cumulative weight. Figure 4 shown.
[0089] Figure 4A schematic diagram of a frequency table determined in this specification. The left side of the figure shows the correspondence between the return value of each 3D point and the regional return value of the target sub-point cloud to which it belongs, where +3 indicates that the weight corresponding to the 3D point is 3, and +2 indicates that the weight corresponding to the 3D point is 2. Therefore, by traversing these two 3D points, it can be determined that the return value of the original point cloud is 3, and the regional return value of the target sub-point cloud is 10, and the corresponding cumulative weight is 3+2. Of course, if there is another 3D point whose return value is 3 and the regional return value of the target sub-point cloud to which it belongs is 10, then these three 3D points can be traversed to determine the position where the return value of the original point cloud is 3 and the regional return value of the target sub-point cloud is 10, and the corresponding cumulative weight is 3+2+3. The determined frequency table can be used to characterize the correspondence between the return value of each 3D point and the number of matches between the regional return value of each target sub-point cloud.
[0090] In addition, when determining the frequency table corresponding to each laser, in order to ensure efficiency, a regional frequency table corresponding to each target sub-point cloud can be generated for each target sub-point cloud, and each regional frequency table can be traversed to determine the frequency table corresponding to each laser. Figure 5 shown.
[0091] Figure 5 A schematic diagram of a regional frequency table for determining a target sub-point cloud provided in this specification. Figure 2 Figure 3 Similarly, white dots represent the three-dimensional points corresponding to laser 1, gray dots represent the three-dimensional points corresponding to laser 2, and black dots represent the three-dimensional points corresponding to laser 3. The left side of the figure is the target sub-point cloud, and the right side is the local frequency table corresponding to each laser head determined based on the return value of the target sub-point cloud and the return value of each three-dimensional point in the target sub-point cloud. Among them, the vertical axis is the return value of the original point cloud, and the horizontal axis is the regional return value of the target sub-point cloud. A three-dimensional point corresponds to a position in the regional frequency table, and the value of the position is the weight corresponding to the three-dimensional point. Then, in the local frequency table of the target sub-point cloud corresponding to laser 1, there is one three-dimensional point, in the local frequency table of the target sub-point cloud corresponding to laser 2, there are two three-dimensional points, and in the local frequency table of the target sub-point cloud corresponding to laser 3, there are three three-dimensional points. Then the unmanned driving device can determine the frequency table corresponding to each laser head by traversing each local frequency table.
[0092] It should be noted that the weight corresponding to each 3D point may not only be the number of laser heads corresponding to the 3D point in the target sub-point cloud to which it belongs, but may also be determined according to the number of laser heads, such as by presetting the corresponding coefficient, or only the weight corresponding to each 3D point may be preset, such as presetting the frequency corresponding to all 3D points to 1, etc. The specific method for determining the weight may be set as required, and this specification does not limit this.
[0093] S108: According to the frequency table corresponding to each laser, determine the mapping relationship between the return value of the original point cloud corresponding to each laser and the target return value, and calibrate the return value of each point cloud to be corrected according to each mapping relationship.
[0094] In one or more embodiments provided in this specification, after determining the frequency table corresponding to each laser, the unmanned driving device can determine the target return value corresponding to the return value of the original point cloud corresponding to each laser based on the frequency table corresponding to each laser.
[0095] Specifically, for each return value in the frequency table corresponding to each laser, the unmanned driving device can determine the frequency of the return value corresponding to each area based on the frequency table corresponding to the laser, use the frequency of the return value of each area as the weight corresponding to the return value, perform weighted summation based on the return value of each area and its weight, determine the target return value corresponding to the return value, and determine the mapping relationship between each return value and the target return value pair in the original point cloud corresponding to the laser based on each return value and its corresponding target return value. Figure 6 shown.
[0096] Figure 6 A schematic diagram for determining a mapping relationship provided for this specification. The left part of the figure is a frequency table corresponding to a certain laser, and the right part of the figure is a mapping table corresponding to the laser, which is used to characterize the mapping relationship between the return value of each three-dimensional point received by the laser and its target return value. Taking a three-dimensional point with a return value of 1 as an example, it can be determined that the target return value corresponding to the three-dimensional point is (A+2B+3C+4D+5E+6F+7G+8H+9I+10J) / (A+B+C+D+E+F+G+H+I+J). In the figure, the target return value is 4. In the figure, the three-dimensional point with a return value of 2 has a target return value of 4, and the three-dimensional point with a return value of 3 has a target return value of 3. Correspondingly, according to the return value of each three-dimensional point and its target return value, the mapping relationship shown on the right side of the figure can be determined.
[0097] In addition, when determining the target return value corresponding to each return value, the unmanned driving device may also select the regional return value with the highest frequency based on the frequency of the return values of each region as the target return value corresponding to the return value for each return value. And when determining the target return value by weighted summing the return values of each region and their weights, the unmanned driving device may normalize the result obtained by weighted summing the return values of each region and their weights, and use the normalized result as the target return value corresponding to the return value.
[0098] In one or more embodiments provided in this specification, after determining the mapping parameters, the unmanned driving device may update the stored mapping relationship based on the determined mapping relationship, and calibrate each point cloud to be corrected according to the determined mapping relationship.
[0099] In addition, when a new point cloud to be corrected is received, the unmanned driving device can determine the mapping relationship corresponding to the point cloud to be corrected according to the laser head identifier carried by the point cloud to be corrected, and then correct the point cloud to be corrected according to the determined mapping relationship.
[0100] Furthermore, when determining the mapping relationship, it can be determined not only based on the original point cloud of the same laser radar, but also based on the original point cloud data collected by each laser radar of the same model. The determined mapping relationships can then be used to correct the original point cloud data collected by each laser radar of the same model.
[0101] Furthermore, when determining the mapping relationship, for each point cloud return value, the region return value with the highest weight can be determined from the region return values corresponding to the return value as the target return value corresponding to the point cloud return value.
[0102] It should be noted that the values shown in the above frequency table and mapping table are for illustrating the mapping of the return value to be corrected within the intensity range of 1 to 10. The specific intervals in which the values in the frequency table and mapping table are located can be set as needed, and this manual does not impose any restrictions on this.
[0103] based on Figure 1 The laser radar calibration method shown divides the acquired original point cloud to obtain each target sub-point cloud used to determine the mapping relationship, and for each target sub-point cloud, determines the regional return value of the target sub-point cloud based on the return value of each three-dimensional point in the target sub-point cloud, and for each laser, determines the frequency table corresponding to the laser based on the return value of each three-dimensional point collected by the laser and the regional return value of each target sub-point cloud, and then determines the mapping relationship corresponding to the laser, and calibrates the return value of each point cloud to be corrected based on each mapping relationship. This method can calibrate the laser radar based on the laser return value corresponding to the same area collected by each laser. There is no need to go through steps such as function fitting, which ensures the accuracy of laser radar calibration.
[0104] It should be noted that the unmanned driving equipment mentioned in this specification may refer to unmanned vehicles, robots, automatic delivery equipment and other equipment that can achieve automatic driving. Based on this, the unmanned driving equipment using the laser radar calibration method provided in this specification can be used to perform delivery tasks in the delivery field, such as using unmanned driving equipment for express delivery, logistics, take-out and other delivery business scenarios.
[0105] based on Figure 1 The laser radar calibration method shown in the figure, the embodiment of this specification also provides a structural schematic diagram of a laser radar calibration device, such as Figure 7 shown.
[0106] Figure 7 A schematic diagram of a laser radar calibration device provided in an embodiment of this specification, the device comprising:
[0107] An acquisition module 200 is used to acquire an original point cloud collected by multiple lasers;
[0108] The region determination module 202 is used to divide the original point cloud into a plurality of original sub-point clouds, and determine each target sub-point cloud from each original sub-point cloud according to the number of lasers corresponding to the three-dimensional points in each original sub-point cloud;
[0109] A first determination module 204 is used to determine the region return value of each target sub-point cloud according to the return value of the three-dimensional point in each target sub-point cloud;
[0110] The second determination module 206 is used to determine, for each laser, a frequency table corresponding to the laser according to the return value of each three-dimensional point in each target sub-point cloud collected by the laser and the regional return value of each target sub-point cloud, wherein the frequency table is used to represent the corresponding relationship between the number of matches between the return value of each three-dimensional point and the regional return value of each target sub-point cloud;
[0111] The calibration module 208 is used to determine the mapping relationship between the return value of the original point cloud corresponding to each laser and the target return value according to the frequency table corresponding to each laser, and each mapping relationship is used to calibrate the point cloud to be corrected collected by the multiple lasers.
[0112] Optionally, the area determination module 202 is used to determine, for each original sub-point cloud, whether each three-dimensional point in the original sub-point cloud is collected by different lasers. If so, determine that the original sub-point cloud is a target sub-point cloud; if not, determine that the original sub-point cloud is not a target sub-point cloud.
[0113] Optionally, the first determination module 204 is used to determine, for each target sub-point cloud and each laser, the return value of the laser in the target sub-point cloud according to the mean of the return values of the three-dimensional points collected by the laser in the target sub-point cloud, and to take the median of the return values of each laser in the target sub-point cloud to determine the regional return value of the target sub-point cloud.
[0114] Optionally, the first determination module 204 is used to determine, for each three-dimensional point, a weight corresponding to the three-dimensional point according to the number of lasers corresponding to the three-dimensional points in the target sub-point cloud to which the three-dimensional point belongs, and the weight is used to characterize the credibility of the target sub-point cloud.
[0115] Optionally, the second determination module 206 is used to determine, for each three-dimensional point collected by the laser, the position of the three-dimensional point in the frequency table according to the return value of the three-dimensional point and the area return value of the target sub-point cloud to which the three-dimensional point belongs, and to determine the cumulative weight corresponding to each position in the frequency table by traversing each three-dimensional point and according to the weight corresponding to each three-dimensional point, and to generate a frequency table based on each position and its corresponding cumulative weight.
[0116] Optionally, the calibration module 208 is used to determine, for each return value in the frequency table corresponding to each laser, the frequency of the return value corresponding to the return value of each area according to the frequency table corresponding to the laser, determine the weight of the return value of each area according to the frequency of the return value of each area, determine the target return value corresponding to the return value according to the return value of each area and its weight, and determine the mapping relationship between the return value of the original point cloud corresponding to the laser and the target return value according to each return value and its corresponding target return value.
[0117] Optionally, the acquisition module 200 is used to collect point clouds according to a preset frequency, determine the target return value corresponding to each three-dimensional point in the point cloud according to the stored mapping relationships, determine the difference between the target return values corresponding to each three-dimensional point, and a preset error threshold, store the point cloud as an original point cloud, and calibrate the original point cloud when the number of stored original point clouds reaches a preset number.
[0118] This manual also provides Figure 8 The schematic structure diagram of the unmanned driving equipment is shown in FIG. Figure 8 As mentioned above, at the hardware level, the unmanned driving device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The laser radar calibration method provided. Of course, in addition to the software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0119] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0120] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0121] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0122] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0123] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may 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 code.
[0124] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0125] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0126] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0127] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0128] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0129] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0130] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0131] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may 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 code.
[0132] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0133] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0134] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A laser radar calibration method, characterized in that: The method comprises: Get the original point cloud collected by multiple lasers; The original point cloud is divided into a plurality of original sub-point clouds, and each target sub-point cloud is determined from each original sub-point cloud according to the number of lasers corresponding to the three-dimensional points in each original sub-point cloud; According to the return value of the three-dimensional point in each target sub-point cloud, the regional return value of each target sub-point cloud is determined respectively; For each laser, according to the return value of each three-dimensional point in each target sub-point cloud collected by the laser and the regional return value of each target sub-point cloud, a frequency table corresponding to the laser is determined, wherein the frequency table is used to characterize the corresponding relationship between the number of matches between the return value of each three-dimensional point and the regional return value of each target sub-point cloud; According to the frequency table corresponding to each laser, a mapping relationship between the return value of the original point cloud corresponding to each laser and the target return value is determined, and each mapping relationship is used to calibrate the point cloud to be corrected collected by the multiple lasers.
2. The method according to claim 1, characterized in that According to the number of lasers corresponding to the three-dimensional points in each original sub-point cloud, each target sub-point cloud is determined from each original sub-point cloud, specifically including: For each original sub-point cloud, determine whether each three-dimensional point in the original sub-point cloud is collected by different lasers; If so, determine the original sub-point cloud as the target sub-point cloud; If not, it is determined that the original sub-point cloud is not the target sub-point cloud.
3. The method according to claim 1, characterized in that According to the return value of the three-dimensional point in each target sub-point cloud, the regional return value of each target sub-point cloud is determined respectively, including: For each target sub-point cloud and each laser, determine the return value of the laser in the target sub-point cloud according to the average of the return values of the three-dimensional points collected by the laser in the target sub-point cloud; The median of the return value of each laser in the target sub-point cloud is taken to determine the regional return value of the target sub-point cloud.
4. The method according to claim 1, characterized in that Before determining the frequency table corresponding to each laser, the method further includes: For each 3D point, a weight corresponding to the 3D point is determined according to the number of lasers corresponding to the 3D points in the target sub-point cloud to which the 3D point belongs, and the weight is used to characterize the credibility of the target sub-point cloud.
5. The method according to claim 4, characterized in that According to the return value of each three-dimensional point in each target sub-point cloud collected by the laser, and the regional return value of each target sub-point cloud, the frequency table corresponding to the laser is determined, which specifically includes: For each 3D point collected by the laser, determine the position of the 3D point in the frequency table according to the return value of the 3D point and the region return value of the target sub-point cloud to which the 3D point belongs; By traversing each three-dimensional point, the cumulative weight corresponding to each position in the frequency table is determined according to the weight corresponding to each three-dimensional point, and the frequency table is generated based on each position and its corresponding cumulative weight.
6. The method according to claim 5, characterized in that According to the frequency table corresponding to each laser, the mapping relationship between the return value of the original point cloud corresponding to each laser and the target return value is determined, specifically including: For each return value in the frequency table corresponding to each laser, determine the frequency of the return value corresponding to the return value of each area according to the frequency table corresponding to the laser; Determine the weight of the return value of each area according to the frequency of the return value of each area; According to the return value of each area and its weight, determine the target return value corresponding to the return value; According to each return value and its corresponding target return value, a mapping relationship between the return value of the original point cloud corresponding to the laser and the target return value is determined.
7. The method according to claim 1, characterized in that Get the original point cloud, including: Collect point clouds according to preset frequency; Determine the target return value corresponding to each 3D point in the point cloud according to each stored mapping relationship; Determine the difference between the target return values corresponding to each three-dimensional point and a preset error threshold, and store the point cloud as an original point cloud; When the number of stored original point clouds reaches a preset number, the original point clouds are calibrated.
8. A laser radar calibration device, characterized in that: The device comprises: An acquisition module, used to acquire the original point cloud collected by multiple lasers; A region determination module is used to divide the original point cloud into a plurality of original sub-point clouds, and determine each target sub-point cloud from each original sub-point cloud according to the number of lasers corresponding to the three-dimensional points in each original sub-point cloud; A first determination module is used to determine the region return value of each target sub-point cloud according to the return value of the three-dimensional point in each target sub-point cloud; A second determination module is used to determine, for each laser, a frequency table corresponding to the laser according to the return value of each three-dimensional point in each target sub-point cloud collected by the laser and the regional return value of each target sub-point cloud, wherein the frequency table is used to represent the corresponding relationship between the number of matches between the return value of each three-dimensional point and the regional return value of each target sub-point cloud; The calibration module is used to determine the mapping relationship between the return value of the original point cloud corresponding to each laser and the target return value according to the frequency table corresponding to each laser, and each mapping relationship is used to calibrate the point cloud to be corrected collected by the multiple lasers.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An unmanned driving device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
