Method for expanding measuring range of line laser camera based on multi-scanning point cloud splicing
By using a multi-scan point cloud splicing method in an online laser camera, the translation and rotation transformations in the x, y, and z dimensions are processed separately, and combined with manual and automatic precision registration, the long time-consuming point cloud splicing and lack of accuracy in the existing technology are solved. solve the problem and achieve efficient, high-speed and high-precision splicing effects.
Patent Information
- Application Number
- CN202410834154.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-08
AI Technical Summary
The point cloud stitching process of line laser cameras in the existing technology is time-consuming and insufficient in accuracy, and cannot meet the high-precision requirements of line laser measurement. In particular, there are shortcomings in separately considering the measurement accuracy in the three dimensional directions of x, y, and z.
Using a method based on multiple scanning point cloud splicing, by separately considering the translation and rotation transformation in the three dimensions of x, y, and z, combined with manual fine-tuning and automatic fine registration, the point cloud data is aligned point by point to avoid the effects of rotation operations. offset, relying only on scanned data without feature extraction and additional information, achieving fast and high-precision splicing.
It significantly reduces the time consuming of the splicing process, improves the overall measurement accuracy, and ensures high-precision measurement of the system. The time consuming is at the millisecond level, it is highly adaptable, and the accuracy reaches the measurement level of a single camera.
Smart Images

Figure CN118747765A_ABST
Abstract
Description
[Technical field]
[0001] The invention belongs to the field of detection technology, and in particular relates to a method for expanding the range of a line laser camera based on splicing of multiple scanning point clouds. [Background technology]
[0002] The scanning range of the line laser depends on the depth of field of the camera, the line width of the line laser and the displacement distance of the mobile scanning structure. For plane scanning detection with small height difference, the line width of the line laser and the displacement distance of the mechanism jointly determine the detection range of a single scan. When the detection range is not enough to cover the entire plane, the mobile mechanism needs to perform multiple scans with a single camera or multiple cameras scan side by side, and then achieve full coverage scanning detection of the entire plane by splicing the point clouds of multiple scans.
[0003] The method for stitching point clouds of multiple scans adopts the registration stitching technology, which has a long history of development. Its basic idea is to establish the transformation relationship between the coordinate systems of the two cameras so that the transformed and fused image can accurately reflect the geometric information of the object being photographed.
[0004] As for 3D point cloud registration and stitching, the iterative closest point method, as one of the classic registration methods, was proposed as early as 1991 and has developed to a relatively mature state. Its basic idea is to continuously optimize the rigid body transformation relationship of six degrees of freedom of translation and rotation between two point clouds, so that the distance between the transformed point cloud and the reference point cloud is minimized. This method has been widely used in the industrial field, especially in the field of mobile robots.
[0005] However, the above method has the following problems. First, the registration and stitching time is long. In order to improve the accuracy of registration, the traditional iterative closest point algorithm and its variants usually need to extract point cloud features (such as normals) based on point cloud information, and introduce additional feature information (such as color), and finally perform multiple iterative calculations, which makes the overall calculation amount large and time-consuming. Second, the registration accuracy does not meet the requirements of line laser measurement. The existing stitching technology mainly considers the stitching of disordered point clouds and aligns the point cloud as a whole. However, the measurement accuracy of the point cloud x, y, and z dimensions of the line laser sensor is different, because the accuracy in the x and z directions is determined by the sensor itself, and the accuracy in the y direction is determined by the mechanism of the mobile trigger scanning. The registration of these three dimensions needs to be considered separately to maintain the high-precision advantage of the line laser sensor. The rotation in the x, y, and z directions introduced by the existing technology will change the distribution of the x, y, and z coordinates, and the coordinates in the three directions cannot be aligned point by point, which reduces the overall measurement accuracy of the system after the range is expanded. [Summary of the invention]
[0006] The purpose of the present invention is to provide a method for expanding the range of a line laser camera based on multiple scanning point cloud stitching, so as to solve the problems in the prior art that the stitching time is long and the stitching accuracy does not meet the requirements of line laser measurement.
[0007] To achieve the above purpose, the method for expanding the range of a line laser camera based on multiple scanning point cloud stitching of the present invention comprises the following steps:
[0008] Step 1: According to the scanning and drawing method of the multi-point cloud, the scanning distance interval Δx in the laser line width direction between two adjacent point cloud scans is obtained;
[0009] Step 2: Preprocess the scanned point cloud image;
[0010] Step 3: According to the recorded image acquisition distance interval Δx, refer to the first point cloud image and translate each subsequent point cloud image in the x direction;
[0011] Step 4: According to the feature positions in the common field of view on the point cloud, manually fine-tune the translation in the x direction so that the common feature positions in the two point cloud images coincide;
[0012] Step 5: Perform precise alignment in the y and z directions to determine the offset in the y and z directions;
[0013] Step 6: Apply the above transformation to stitch multiple point cloud images into a large point cloud.
[0014] According to the above main features, the scanning and drawing methods of the multi-point cloud in step 1 include two methods: multiple scanning with a single camera and scanning with multiple cameras side by side. The multiple scanning with a single camera has two optional scanning paths: the same direction and the reverse direction. When multiple cameras scan side by side, in order to avoid interference between adjacent laser lines, the installation will be staggered at a preset interval. The scanning distance intervals between the two adjacent point clouds in the line width direction are Δx1, Δx2, ..., Δx respectively. n , where Δx1 = 0, indicating that the first point cloud scanned is used as the reference, and its offset in the x direction is 0, n is the number of scanned point clouds, and the default Δx k ≥0, 1≤k≤n.
[0015] According to the above main features, the preprocessing in step 2 includes flipping processing, in which for different scanning methods, it is confirmed whether the point cloud needs to be flipped in the x and y directions. For multiple reverse scans by a single camera, since the scanning directions between two adjacent times are opposite, taking the first point cloud as a reference, the point cloud of the second scan needs to be flipped in the y direction of the scan, and the third scan is the same as the first, and no y flip is required, that is, the point cloud of the even-numbered scans needs to be y-flipped, and the point cloud of the odd-numbered scans does not need to be y-flipped; for the two cases of multiple scans in the same direction by a single camera and scanning by multiple cameras side by side, the direction of each scan is consistent and no y flip is required. For the flipping of the line width in the x direction, when the scanning distance interval Δx k , when 0≤k≤n is a negative number, the point cloud can be flipped in the x direction. Whether x is flipped can be adjusted according to the actual situation. Note rx k ,ry k Indicates whether the kth (1≤k≤n) point cloud needs to be flipped in x and y. The expression is as follows:
[0016]
[0017] According to the above main features, in step 2, the point cloud line width direction tilt correction can be selected according to the specific situation. The specific process is as follows: for the kth (1≤k≤n) point cloud, the contour line on the xoz plane is intercepted, and the points on the contour line that fall on the surface plane of the part are taken. The two-dimensional straight line y=kx+b in the xoz plane is fitted by the least squares method. The fitting parameters are represented by (k, b), k is the slope, b is the intercept, and the angle of the tilt correction is During the actual calibration process, the camera needs to be horizontally calibrated in advance. The value of is usually small, and the resolution of the point cloud in the z direction is usually much larger than that in the x direction. Therefore, only the tilt correction of the point cloud height z value is considered; in order to avoid the offset of the z value caused by the rotation operation, (x m , 0) is the coordinate value of the rotation center, where x m is the center coordinate of the laser x range. For each point in the kth (1≤k≤n) point cloud To apply deskew correction: Get the tilt-corrected coordinates
[0018] According to the above main features, in step 3, for the translation of the point cloud in the x direction, the distance intervals Δx1, Δx2, ..., Δx between the two adjacent point clouds recorded in the line width direction are scanned. n , for the kth (1≤k≤n) point cloud, its translation sx in the x direction k for:
[0019]
[0020] According to the above main features, in step 4, after applying the above offset to each point cloud, the common features in the common field of view of two adjacent point clouds can be selected, and the distance of the same feature in the x direction on the two point clouds can be calculated to obtain the offset fine-tuning values δx1, δx2, ..., δx of the adjacent point clouds. n (δx1=0), so that the features in the common field of view overlap. After introducing manual fine-tuning, for the kth (1≤k≤n) point cloud, its translation in the x direction is:
[0021]
[0022] In step 5, after determining the offset in the x direction of each point cloud, you can choose to perform precise registration in the y and z directions. For the kth (1≤k≤n) target point cloud, its reference point cloud should be the large point cloud after the previous k-1 point clouds are registered and spliced. After setting the search range in the y direction, the reference point cloud and the target point cloud are searched traversally within the search range to obtain the y and z offsets (sy k , sz k ), specifically including the following process: First calculate the approximate offset of y First, find the center point cy of the valid data (z>0) y within the common field of view of the reference point cloud (the point cloud after the first k-1 registration and splicing is completed) and the target point cloud (the kth point cloud) ref ,cy target , calculate the approximate y offset:
[0023]
[0024] After that, traverse to get the exact y offset sy k , that is, setting the starting and ending search traversal range in the y direction (starty k ,endy k ) The reference point cloud and the target point cloud are searched within the range to obtain the y offset sy that minimizes the height z deviation within the common field of view of the two point clouds. k ;Finally, calculate the exact z offset sz k Specifically, after determining the offsets in the (x, y) dimensions, it is necessary to calculate the z offset by traversing the points on the plane within the common field of view of the reference point cloud and the target point cloud. For each contour line in the common field of view, it is necessary to determine whether the points on the contour line are on the same plane, that is, to give an acceptable z change threshold z thd , for any point on the contour line If both: abs represents the absolute value of a number, which means that the point on the contour line is in a plane and participates in the calculation of the z offset, otherwise it does not participate in the calculation. Finally, the z offset sz is obtained by accumulating and averaging. k :
[0025]
[0026] where z ref (x,y),z target (x, y) represent the height values corresponding to the (x, y) coordinates on the same plane within the common field of view of the reference point cloud and the target point cloud, respectively, and m is the total number of valid points.
[0027] According to the above main features, in step 6, the corresponding transformation for the kth (1≤k≤n) point cloud is Apply this transformation and concatenate it with the previous k-1 point clouds into a large point cloud. The specific process is:
[0028] 1. Assume that the x and y point spacing of each point cloud is (x ecale ,y scale ), according to the x translation sx of the last point cloud n and the width w of the point cloud n , we can get the width value w of the point cloud of the stitched large image merge :
[0029]
[0030] Then take the maximum height value among the n point clouds as the height value h of the stitched large image merge :
[0031] h merge =max(h1,h2,...,h n ),
[0032] where h1, h2, ..., h n is the height of each scanned image. merge ,h merge ) and the point spacing of the scanned image (x scale ,y scale ), at this time, the default point spacing of the scanned image is consistent and used as the point spacing of the spliced image, and the (x, y) value of the large image after splicing is initialized;
[0033] 2. For the kth (1≤k≤n) point cloud, the corresponding transformation is First according to (rx k ,ry k ) After the point cloud is flipped, for any point in the point cloud with a valid height value (z>0) First, the height To perform tilt correction:
[0034]
[0035] And translation transformation, get the height value after transformation
[0036]
[0037] Then apply the displacement in the (x, y) direction (sx k ,sy k ), and then according to the (x, y) point spacing (x scale ,y scale ) to obtain the displacement The position of the coordinates in the large image (pos w ,pos h ):
[0038]
[0039] If 0≤pos w <w merge , 0≤pos h <h merge , that is, the transformed coordinates are within the coordinate range of the large image after stitching, then the transformed height Assign the position of the large image after splicing (pos w ,pos h )’s height value.
[0040] Compared with the prior art, the present invention considers the rigid and non-rigid transformations in the three dimensions of x, y, and z separately, combines manual adjustment with automatic precision alignment, and ultimately makes the stitching accuracy still at the measurement accuracy level of a single camera, greatly reducing the precision loss of stitching for the overall measurement of the system, so that the stitching accuracy is high. Furthermore, compared with the existing stitching method based on iterative nearest point, the present invention does not require feature extraction or the addition of additional feature auxiliary information. It only needs to scan and obtain product point cloud data. At the same time, all steps can be calculated synchronously, and the overall time consumption is at the millisecond level, with strong adaptability.
Brief Description of the Drawings
[0041] Figure 1 A schematic flow chart of a method for expanding the range of a line laser camera based on stitching of multiple scanning point clouds for implementing the present invention.
[0042] Figure 2 Schematic diagram of the path of multiple scans in the same direction by a single camera.
[0043] Figure 3Schematic diagram of the path of multiple reverse scans by a single camera.
[0044] Figure 4 Schematic diagram of the installation for scanning with multiple cameras side by side. [Specific implementation method]
[0045] See also Figure 1 , which is a flow chart of the method for expanding the range of a line laser camera based on multiple scanning point cloud stitching of the present invention. The method for expanding the range of a line laser camera based on multiple scanning point cloud stitching of the present invention comprises the following steps:
[0046] Step 1: According to the scanning and drawing method of the multi-point cloud, the scanning distance interval Δx in the laser line width direction between two adjacent point cloud scans is obtained;
[0047] Step 2: Preprocess the scanned point cloud image;
[0048] Step 3: According to the recorded image acquisition distance interval Δx, refer to the first point cloud image and translate each subsequent point cloud image in the x direction;
[0049] Step 4: According to the feature positions in the common field of view on the point cloud, manually fine-tune the translation in the x direction so that the common feature positions in the two point cloud images coincide;
[0050] Step 5: Perform precise alignment in the y and z directions to determine the offset in the y and z directions;
[0051] Step 6: Apply the above transformation to stitch multiple point cloud images into a large point cloud.
[0052] In step 1, the scanning and drawing methods of the multi-point cloud include two methods: multiple scanning with a single camera and scanning with multiple cameras side by side. The multiple scanning with a single camera has the same direction (such as Figure 2 as shown) and the reverse (as Figure 3 Two scanning paths are available, multiple cameras scan side by side (as shown) Figure 4 To avoid interference between adjacent laser lines, the installation will be staggered at preset intervals.
[0053] The scanning distance intervals in the line width direction between two adjacent point clouds are Δx1, Δx2, ..., Δx n , where Δx1=0 means the first scanned point cloud is used as the reference, and its offset in the x direction is 0, n is the number of scanned point clouds, and the default Δx k≥0, 1≤k≤n, so as to ensure that the x, y, z coordinate values of the point cloud of the large image after stitching are non-negative numbers, and are consistent with the coordinate value rules of the camera's single scan output. The scanning output method of the multi-point cloud and the scanning distance interval between two adjacent point clouds in the line width direction are fixed in the specific test scenario. These parameters can be set in the memory of the line scanning camera or the host computer connected to it, and can be directly obtained during operation.
[0054] In step 2, for different scanning methods, confirm whether the point cloud needs to be flipped in the x and y directions. For multiple reverse scans by a single camera, since the scanning directions between two adjacent scans are opposite, the point cloud of the second scan needs to be flipped in the y direction with the first point cloud as a reference. The third scan is the same as the first and does not require a y flip. That is, the point cloud of an even number of scans needs to be y flipped, and the point cloud of an odd number of scans does not need to be y flipped. For the two cases of multiple scans in the same direction by a single camera and scanning by multiple cameras side by side, the direction of each scan is the same and no y flip is required. For the flipping of the line width in the x direction, when the scanning distance interval Δx k , 0≤k≤n is a negative number, the point cloud can be flipped in the x direction. Whether x is flipped can be adjusted according to the actual situation. k ,ry k Indicates whether the kth (1≤k≤n) point cloud needs to be flipped in x and y. The expression is as follows:
[0055]
[0056] In addition, in step 2, you can also choose to perform tilt correction in the direction of the point cloud line width according to the specific situation. The tilt correction is to solve the problem that the angle between the camera laser line and the scanning plane may have a large deviation after multiple scans. If the difference in the angles of multiple scans is small, no tilt correction is required.
[0057] The specific process is as follows: for the kth (1≤k≤n) point cloud, intercept the contour line on the xoz plane, take the points on the contour line that fall on the surface plane of the part, and use the least squares method to fit the two-dimensional straight line y=kx+b in the xoz plane. The fitting parameters are represented by (k, b), k is the slope, b is the intercept, and the angle of tilt correction is During the actual calibration process, the camera needs to be horizontally calibrated in advance. The value of is usually small, and the resolution of the point cloud in the z direction is usually much larger than that in the x direction, so only the tilt correction of the point cloud height z value is considered.
[0058] In addition, in order to avoid the deviation of the z value caused by the rotation operation, (x m, 0) is the rotation center coordinate value, that is, rotation around the center of the contour line data, where x m is the center coordinate of the laser x range. So for each point in the kth (1≤k≤n) point cloud To apply deskew correction:
[0059]
[0060] Get the tilt-corrected coordinates
[0061] In step 3, for the translation of the point cloud in the x direction, the distance intervals Δx1, Δx2, ..., Δx between the two adjacent point clouds recorded in the line width direction are calculated. n , for the kth (1≤k≤n) point cloud, its translation sx in the x direction k for:
[0062]
[0063] In step 4, after applying the above offset to each point cloud, the common features in the common field of view of two adjacent point clouds can be selected, and the distance of the same feature in the x direction on the two point clouds can be calculated to obtain the offset fine-tuning values δx1, δx2, ..., δx of the adjacent point clouds. n (δx1=0), so that the features in the common field of view overlap. After introducing manual fine-tuning, for the kth (1≤k≤n) point cloud, its translation in the x direction is:
[0064]
[0065] In step 5, after determining the offset in the x direction of each point cloud, you can choose to perform precise registration in the y and z directions. For the kth (1≤k≤n) target point cloud, its reference point cloud should be the large point cloud after the previous k-1 point clouds are registered and spliced. After setting the search range in the y direction, traverse the search range for the reference point cloud and the target point cloud to obtain the y and z offsets (sy k , sz k ). The specific process includes the following:
[0066] First calculate the approximate y offset First, find the center point cy of the valid data (z>0) y within the common field of view of the reference point cloud (the point cloud after the first k-1 registration and splicing is completed) and the target point cloud (the kth point cloud) ref ,cy target , calculate the approximate y offset:
[0067]
[0068] After that, traverse to get the exact y offset sy k , that is, setting the starting and ending search traversal range in the y direction (starty k ,endy k ) In range (starty k Usually negative, endy k Generally positive) traverses and searches the reference point cloud and the target point cloud to obtain the y offset sy that minimizes the height z deviation within the common field of view of the two point clouds k .
[0069] Finally, calculate the exact z offset sz k Specifically, after determining the offsets in the (x, y) dimensions, it is necessary to calculate the z offset by traversing the points on the plane within the common field of view of the reference point cloud and the target point cloud. For each contour line in the common field of view, it is necessary to determine whether the points on the contour line are on the same plane, that is, to give an acceptable z change threshold z thd , for any point on the contour line If both: abs represents the absolute value of a number, which means that the point on the contour line is in a plane and participates in the calculation of the z offset, otherwise it does not participate in the calculation. Finally, the z offset sz is obtained by accumulating and averaging. k :
[0070]
[0071] where z ref (x,y),z target (x, y) represent the height values corresponding to the (x, y) coordinates on the same plane within the common field of view of the reference point cloud and the target point cloud, respectively, and m is the total number of valid points.
[0072] In step 6, finally for the kth (1≤k≤n) point cloud, the corresponding transformation is Apply this transformation and concatenate it with the previous k-1 point clouds into a large point cloud. The specific process is:
[0073] 1. Assume that the x and y point spacing of each point cloud is (x scale ,y scale ), according to the x translation sx of the last point cloud n and the width w of the point cloud n , we can get the width value w of the point cloud of the stitched large image merge :
[0074]
[0075] Then take the maximum height value among the n point clouds as the height value h of the stitched large image merge :
[0076] h merge =max(h1,h2,...,h n ),
[0077] where h1, h2, ..., h n is the height of each scanned image. merge ,h merge ) and the point spacing of the scanned image (x scale ,y scale ), at this time, the default point spacing of the scanned image is consistent and used as the point spacing of the spliced image, and the (x, y) value of the large image after splicing is initialized.
[0078] 2. For the kth (1≤k≤n) point cloud, the corresponding transformation is First according to (rx k ,ry k ) After the point cloud is flipped, for any point in the point cloud with a valid height value (z>0) First, the height To perform tilt correction:
[0079]
[0080] And translation transformation, get the height value after transformation
[0081]
[0082] Then apply the displacement in the (x, y) direction (sx k ,sy k ), and then according to the (x, y) point spacing (x ecale ,y scale ) to obtain the displacement The position of the coordinates in the large image (pos w ,pos h ):
[0083]
[0084] If 0≤pos w <w merge , 0≤pos h <h merge , that is, the transformed coordinates are within the coordinate range of the large image after stitching, then the transformed height Assign the position of the large image after splicing (pos w ,pos h )’s height value.
[0085] Compared with the prior art, the present invention considers the rigid and non-rigid transformations in the three dimensions of x, y, and z separately, combines manual adjustment with automatic precision alignment, and ultimately makes the stitching accuracy still at the measurement accuracy level of a single camera, greatly reducing the precision loss of stitching for the overall measurement of the system, so that the stitching accuracy is high. Furthermore, compared with the existing stitching method based on iterative nearest point, the present invention does not require feature extraction or the addition of additional feature auxiliary information. It only needs to scan and obtain product point cloud data. At the same time, all steps can be calculated synchronously, and the overall time consumption is at the millisecond level, with strong adaptability.
[0086] It is understandable that those skilled in the art can make equivalent substitutions or changes based on the technical solution and inventive concept of the present invention, and all these changes or substitutions should fall within the protection scope of the claims attached to the present invention.
Claims
1. A method for expanding the range of a line laser camera based on multiple scan point cloud stitching, characterized in that The method comprises the following steps: Step 1: According to the scanning and drawing method of the multi-point cloud, the scanning distance interval Δx in the laser line width direction between two adjacent point cloud scans is obtained; Step 2: Preprocess the scanned point cloud image; Step 3: According to the recorded image acquisition distance interval Δx, refer to the first point cloud image and translate each subsequent point cloud image in the x direction; Step 4: According to the feature positions in the common field of view on the point cloud, manually fine-tune the translation in the x direction so that the common feature positions in the two point cloud images coincide; Step 5: Perform precise alignment in the y and z directions to determine the offset in the y and z directions; Step 6: Apply the above transformation to stitch multiple point cloud images into a large point cloud.
2. The method for expanding the range of a line laser camera based on multiple scanning point cloud stitching as claimed in claim 1, characterized in that: The scanning and drawing methods of multiple point clouds in step 1 include multiple scanning with a single camera and scanning with multiple cameras side by side. Multiple scanning with a single camera has two optional scanning paths: same direction and reverse direction. When multiple cameras scan side by side, in order to avoid interference between adjacent laser lines, the installation will be staggered at preset intervals. The scanning distance intervals between the two adjacent point clouds in the line width direction are Δx1, Δx2, ..., Δx respectively. n , where Δx1 = 0, indicating that the first point cloud scanned is used as the reference, and its offset in the x direction is 0, n is the number of scanned point clouds, and the default Δx k ≥0, 1≤k≤n.
3. The method for expanding the range of a line laser camera based on multiple scanning point cloud stitching as claimed in claim 2, characterized in that: The preprocessing in step 2 includes flipping processing, in which for different scanning methods, confirm whether the point cloud needs to be flipped in the x and y directions. For multiple reverse scans by a single camera, since the scanning directions between the two adjacent times are opposite, the point cloud of the second scan needs to be flipped in the y direction with the first point cloud as a reference. The third scan is the same as the first and does not require a y flip, that is, the point cloud of an even number of scans needs to be y flipped, and the point cloud of an odd number of scans does not need to be y flipped; for the two cases of multiple scans in the same direction by a single camera and scanning by multiple cameras side by side, the direction of each scan is consistent and does not require a y flip. For the flipping of the line width in the x direction, when the scanning distance interval Δx k , when 0≤k≤n is a negative number, the point cloud can be flipped in the x direction. Whether x is flipped can be adjusted according to the actual situation. Note rx k ,ry k Indicates whether the kth (1≤k≤n) point cloud needs to be flipped in x and y. The expression is as follows:
4. The method for expanding the range of a line laser camera based on multiple scanning point cloud stitching as claimed in claim 3, characterized in that: In step 2, you can also choose to perform tilt correction in the direction of the point cloud line width according to the specific situation. The specific process is: for the kth (1≤k≤n) point cloud, intercept its contour line on the xoz plane, take the points on the contour line that fall on the surface plane of the part, and use the least squares method to fit the two-dimensional straight line y=kx+b in the xoz plane. The fitting parameters are represented by (k, b), k is the slope, b is the intercept, and the angle of tilt correction is During the actual calibration process, the camera needs to be horizontally calibrated in advance. The value of is usually small, and the resolution of the point cloud in the z direction is usually much larger than that in the x direction. Therefore, only the tilt correction of the point cloud height z value is considered; in order to avoid the offset of the z value caused by the rotation operation, (x m , 0) is the coordinate value of the rotation center, where x m is the center coordinate of the laser x range. For each point in the kth (1≤k≤n) point cloud To apply deskew correction: Get the tilt-corrected coordinates 5. The method for expanding the range of a line laser camera based on multiple scanning point cloud stitching as claimed in claim 1, characterized in that: In step 3, for the translation of the point cloud in the x direction, the distance intervals Δx1, Δx2, ..., Δx between the two adjacent point clouds recorded in the line width direction are calculated. n , for the kth (1≤k≤n) point cloud, its translation sx in the x direction k for:
6. The method for expanding the range of a line laser camera based on multiple scanning point cloud stitching according to claim 1, characterized in that: In step 4, after applying the above offset to each point cloud, the common features in the common field of view of two adjacent point clouds can be selected, and the distance of the same feature in the x direction on the two point clouds can be calculated to obtain the offset fine-tuning values δx1, δx2, ..., δx of the adjacent point clouds. n (δx1=0), so that the features in the common field of view overlap. After introducing manual fine-tuning, for the kth (1≤k≤n) point cloud, its translation in the x direction is:
7. The method for expanding the range of a line laser camera based on multiple scanning point cloud stitching as claimed in claim 1, characterized in that: In step 5, after determining the offset in the x direction of each point cloud, you can choose to perform precise registration in the y and z directions. For the kth (1≤k≤n) target point cloud, its reference point cloud should be the large point cloud after the previous k-1 point clouds are registered and spliced. After setting the search range in the y direction, the reference point cloud and the target point cloud are searched traversally within the search range to obtain the y and z offsets (sy k , sz k ), specifically including the following process: First calculate the approximate offset of y First, find the center point cy of the valid data (z>0) y within the common field of view of the reference point cloud (the point cloud after the first k-1 registration and splicing is completed) and the target point cloud (the kth point cloud) ref ,cy target , calculate the approximate y offset: After that, traverse to get the exact y offset sy k , that is, setting the starting and ending search traversal range in the y direction (starty k ,endy k ) The reference point cloud and the target point cloud are searched within the range to obtain the y offset sy that minimizes the height z deviation within the common field of view of the two point clouds. k ;Finally, calculate the exact z offset sz k Specifically, after determining the offsets in the (x, y) dimensions, it is necessary to calculate the z offset by traversing the points on the plane within the common field of view of the reference point cloud and the target point cloud. For each contour line in the common field of view, it is necessary to determine whether the points on the contour line are on the same plane, that is, to give an acceptable z change threshold z thd , for any point on the contour line If both: abs represents the absolute value of a number, which means that the point on the contour line is in a plane and participates in the calculation of the z offset, otherwise it does not participate in the calculation. Finally, the z offset sz is obtained by accumulating and averaging. k : where z ref (x,y),z target (x, y) represent the height values corresponding to the (x, y) coordinates on the same plane within the common field of view of the reference point cloud and the target point cloud, respectively, and m is the total number of valid points.
8. The method for expanding the range of a line laser camera based on multiple scanning point cloud stitching as claimed in claim 1, characterized in that: In step 6, finally for the kth (1≤k≤n) point cloud, the corresponding transformation is Apply this transformation and concatenate it with the previous k-1 point clouds into a large point cloud. The specific process is:
1. Assume that the x and y point spacing of each point cloud is (x scale ,y scale ), according to the x translation sx of the last point cloud n and the width w of the point cloud n , we can get the width value w of the point cloud of the stitched large image merge : Then take the maximum height value among the n point clouds as the height value h of the stitched large image merge : h merge =max(h1,h2,...,k n ), where h1, h2, ..., h n is the height of each scanned image. merge ,h merge ) and the point spacing of the scanned image (x scale ,y scale ), at this time, the default point spacing of the scanned image is consistent and used as the point spacing of the spliced image, and the (x, y) value of the large image after splicing is initialized; 2. For the kth (1≤k≤n) point cloud, the corresponding transformation is First according to (rx k ,ry k ) After the point cloud is flipped, for any point in the point cloud with a valid height value (z>0) First, the height To perform tilt correction: And translation transformation, get the height value after transformation Then apply the displacement in the (x, y) direction (sx k ,sy k ), and then according to the (x, y) point spacing (x scale ,y scale ) to obtain the displacement The position of the coordinates in the large image (pos w ,pos h ): If 0≤pos w <w merge , 0≤pos h <h merge , that is, the transformed coordinates are within the coordinate range of the large image after stitching, then the transformed height Assign the position of the large image after splicing (pos w ,pos h )’s height value.
