Modeling method, system and device for three-dimensional structure of tunnel lining based on multi-line laser.

By employing a multi-line laser modeling method and utilizing image acquisition and processing technology, a three-dimensional structural model of the tunnel lining is constructed, solving the problems of low efficiency and high parameter sensitivity in traditional detection methods, and achieving efficient and accurate detection of tunnel defects.

CN115147566BActive Publication Date: 2024-11-05CHANGAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210736979.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2024-11-05
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

Traditional tunnel inspection methods are inefficient and cannot accurately express and record the morphology and properties of cracks, which affects the development of the transportation industry. Furthermore, laser triangulation measurement has strict requirements for parameters, and even small changes can lead to large errors in the measurement results.

Method used

A three-dimensional structural modeling method for tunnel lining using multi-line lasers is adopted. This method involves receiving images, extracting the pixel coordinates of laser stripes, calibrating the CCD camera, performing least squares transformation, and using catmull_rom interpolation to construct a three-dimensional model of the tunnel lining.

Benefits of technology

It improves the accuracy of tunnel lining defect detection, the process is fast and convenient, saves labor costs, efficiently completes defect location, and promotes the development of the transportation industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115147566B_ABST
    Figure CN115147566B_ABST
Patent Text Reader

Abstract

The present invention discloses a modeling method, system and device for a three-dimensional structure of a tunnel lining based on multi-line laser, including: receiving a collected image, extracting points on the laser strip on the surface of the tunnel lining on the image, and obtaining pixel coordinates of points on the laser strip on the surface of the tunnel lining; calibrating a CCD camera, obtaining a projection matrix of the camera, and realizing the conversion of pixel coordinates and world coordinates; three-dimensional coordinate conversion based on the least squares method, obtaining the pixel coordinates of points in the world coordinate system corresponding to the pixel coordinates of the points of each laser strip, and transforming points in different coordinate systems to the same coordinate system; interpolating the pixel coordinate data of each point in the world coordinate system based on the catmull_rom method, and importing the interpolated coordinate data into the three-dimensional reconstruction software to obtain a three-dimensional contour model of the tunnel lining. The present invention can improve the accuracy and speed of locating tunnel lining defects, while saving labor costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of optical testing and measurement, and relates to a modeling method, system and device for a three-dimensional structure of a tunnel lining based on multi-line laser. Background Art

[0002] At present, the vast majority of tunnel regular inspections still use the traditional manual + aerial work trolley method. Many regular inspections are done by private individuals, which takes a long time, is inefficient, and cannot accurately express and record the morphology and properties of cracks, and cannot accurately determine whether cracks are developing, which seriously affects the development of the transportation industry. At present, it is becoming more and more a trend to use image acquisition and processing technology to construct a three-dimensional structural model of tunnel lining and accurately locate tunnel lining diseases.

[0003] The traditional measurement method is based on the principle of laser triangulation. The light emitted by the laser is irradiated onto the surface of the object at a certain angle, forming a certain angle with the normal of the measured surface, and the camera is used to shoot. Due to the different distribution of curvature characteristics of the surface of the measured object, the position of the center of the light strip in the light strip image taken by the CCD camera will change. However, the laser triangulation measurement principle has very strict requirements on the positioning parameters of the laser and CCD camera, and the calibration process is relatively cumbersome. During the measurement process, a slight change in any parameter in the system will cause a large error in the measurement result. Summary of the invention

[0004] The purpose of the present invention is to solve the problems in the prior art and to provide a modeling method, system and device for a three-dimensional structure of a tunnel lining based on a multi-line laser, which can effectively improve the accuracy of tunnel lining disease detection.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] Modeling method of three-dimensional structure of tunnel lining based on multi-line laser; including:

[0007] Receive the collected image, extract the points on the laser strip on the tunnel lining surface in the image, and obtain the pixel coordinates of the points on the laser strip on the tunnel lining surface;

[0008] Calibrate the CCD camera, obtain the camera's projection matrix, and realize the conversion between pixel coordinates and world coordinates;

[0009] Based on the least squares method, the three-dimensional coordinate transformation is used to obtain the point pixel coordinates in the world coordinate system corresponding to the point pixel coordinates of each laser bar, and the points in different coordinate systems are transformed into the same coordinate system;

[0010] Based on the catmull_rom method, the pixel coordinate data of each point in the world coordinate system is interpolated, and the interpolated coordinate data is imported into the 3D reconstruction software to obtain the 3D contour model of the tunnel lining.

[0011] A further improvement of the present invention is:

[0012] Obtaining the pixel coordinates of the point on the light strip includes extracting the center of the light strip and locating the light strip area;

[0013] Position the light bar area, specifically:

[0014] Based on the maximum gray value point on the image, the range of regional gray value is determined, and the gray value in the regional gray value range is screened based on the regional gray value slope, and the screened regional gray value is denoised. At the same time, the light strip area is located by the change of the gray value slope on both sides of the light strip point;

[0015] The regional grayscale range is set manually; if the grayscale value in the regional grayscale range is greater than the regional grayscale slope, it is a light stripe regional point; if the grayscale value in the regional grayscale range is less than the regional grayscale slope, it does not belong to the light stripe regional point;

[0016] The regional grayscale slope is shown in formula (1):

[0017]

[0018] Among them, the pixel gray value corresponding to the pixel (i, j) is g i,j .

[0019] Extract the center of the light strip, specifically:

[0020] Based on the grayscale center weighted method, the sub-pixel accuracy of the light strip center is calculated, as shown in formula (2):

[0021]

[0022] Among them, the light bar area is S, and g(x, j) is the coordinate of the pixel point.

[0023] Calibrate the CCD camera as follows:

[0024] Point A1(X W , Y W , Z W ) is transformed to the CCD camera coordinate system A2(X c , Y c , Z c )middle;

[0025] Camera coordinate system A2(X c , Y c , Zc ) is transformed into the CCD image plane coordinate system through perspective projection, and the ideal coordinate point is A3(X d , Y d );

[0026] Based on radial distortion and tangential distortion, A3(X d , Y d ) is converted into the actual coordinate point A4 (X, Y); the actual coordinate point A4 (X, Y) in the CCD image plane coordinate system is converted into the pixel coordinate system and represented by A5 (U, V);

[0027] Assuming that (x, y) is in the image plane coordinate system and (u0, v0) is in the pixel coordinate system, the matrix transformation relationship between the two coordinate systems is:

[0028]

[0029] (u, v) is the coordinate of (x, y) in the pixel coordinate system, (u0, v0) is the geometric center of the image plane, the origin of the image plane coordinate system, d x , d y is the actual width and height of the pixels of the photosensitive element of the CCD camera;

[0030] Assume that the coordinates of (x, y) in the world coordinate system are A1(X w , Y w , Z w ), which is A2(X c , Y c , Z c ), then the transformation matrix relationship between the two is as shown in formula (4):

[0031]

[0032] Among them, R is the rotation matrix of external parameter calibration;

[0033] The camera coordinate system A2(X c , Y c , Z c ) is transformed into the CCD image plane coordinate system through perspective projection, and the ideal coordinate point is A3(X d , Y d ), the conversion relationship is shown in formula (5):

[0034]

[0035] The radial distortion is shown in formula (6):

[0036]

[0037] Among them, r represents the distance from the distortion point to the origin of the image coordinate system;

[0038] The tangential distortion is shown in formula (7):

[0039]

[0040] Among them, k1 and k2 are radial distortion coefficients, and p1 and p2 are tangential distortion coefficients;

[0041] The pixel coordinates are converted to three-dimensional coordinates in the world coordinate system. The conversion relationship is shown in formula (8):

[0042]

[0043] Among them, z c is the scale factor; f is the focal length of the camera;

[0044] is actually the projection matrix of the camera.

[0045] The modeling system of the three-dimensional structure of the tunnel lining based on multi-line laser includes:

[0046] An extraction module, the extraction module is used to receive the collected image, and extract the points on the laser strip on the tunnel lining surface on the image to obtain the pixel coordinates of the points on the laser strip on the tunnel lining surface;

[0047] A calibration module, which is used to calibrate the CCD camera, obtain the camera's projection matrix, and realize the conversion between pixel coordinates and world coordinates;

[0048] A conversion module, which performs three-dimensional coordinate conversion based on the least square method, obtains the point pixel coordinates in the world coordinate system corresponding to the point pixel coordinates of each laser bar, and transforms points in different coordinate systems into the same coordinate system;

[0049] An interpolation module interpolates pixel coordinate data of each point in the world coordinate system based on the catmull_rom method, and imports the interpolated coordinate data into a three-dimensional reconstruction software to obtain a three-dimensional contour model of the tunnel lining.

[0050] A tunnel lining three-dimensional structure scanning device based on multi-line laser, including: encoder, frequency division board, LED strobe light, drive board, acquisition system, switching power supply, power supply, and car;

[0051] The acquisition system includes several acquisition units, each of which includes a CCD camera and a line laser. The encoder is arranged on a wheel of a car, the encoder is connected to a frequency dividing board, the frequency dividing board is connected to the CCD camera, the frequency dividing board is connected to a driving board, and the driving board is connected to an LED strobe light; the LED strobe light is powered by a switching power supply; and the line laser is powered by a power supply.

[0052] It also includes: a vehicle route correction device; the vehicle route correction device includes a posture detection system, a connecting crossbeam, a longitudinal beam and a laser; the longitudinal beam is connected to the vehicle through the connecting crossbeam, the crossbeam plays a supporting role, the laser is located on the longitudinal beam, and the longitudinal beam is parallel to the tunnel wall;

[0053] The attitude detection system is an IMU sensor;

[0054] The system also includes a computer and an acquisition card, wherein the computer receives the image transmitted by the CCD camera through the acquisition card.

[0055] The image information collected by the camera is as follows: the encoder is connected to the frequency dividing board to trigger the camera to shoot synchronously, the frequency dividing board is connected to the driver board to control the on and off of the LED strobe light, and the switch power supply is used to realize the synchronization of the camera and the LED;

[0056] The car is at one end of the tunnel, and the encoder on the wheel records the car's position; turn on the line laser and irradiate the laser onto the surface of the tunnel lining; turn on the camera, adjust the camera angle, and set the camera parameters so that the camera can capture clear images; when the acquired image is clear, start the car and move forward along the center of one lane as much as possible, and the line laser sweeps across half of the entire tunnel lining, adjust the exposure, and allow the camera to acquire images at a certain frequency; when the car exits the tunnel, this process ends; turn the car around and repeat the above process to complete the acquisition of the entire tunnel lining image; the acquired image is transmitted to the computer through the acquisition card for modeling of the three-dimensional structure of the tunnel lining based on multi-line laser.

[0057] Before the camera captures the image, the car's route is corrected. Specifically, the distance between each laser and the tunnel wall is obtained, and the yaw angle of the car is obtained in conjunction with the IMU sensor. The distance difference between the laser point on the tunnel wall and the reference is calculated to determine whether the car meets the specified accuracy requirements, thereby correcting the car's deviation angle.

[0058] Compared with the prior art, the present invention has the following beneficial effects:

[0059] The present invention utilizes image acquisition and processing technology, and combines laser sensors and CCD cameras to construct a three-dimensional structural model of the tunnel lining, thereby accurately locating tunnel lining defects. The process is fast and convenient, and while saving a lot of labor costs, it efficiently and accurately completes the positioning of tunnel lining defects, thereby promoting the development of the transportation industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0061] Figure 1 It is a flow chart of the modeling method of the three-dimensional structure of the tunnel lining based on multi-line laser of the present invention;

[0062] Figure 2 It is a schematic diagram of three-dimensional reconstruction of the present invention;

[0063] Figure 3 This is a line laser measurement principle diagram of the spatial surface and straight line intersection method of the present invention;

[0064] Figure 4 A processed image captured by the acquisition system unit of the present invention;

[0065] Figure 5 It is a data acquisition structure diagram of the acquisition system unit of the present invention;

[0066] Figure 6 It is the Catmull-Rom principle diagram of the present invention;

[0067] Figure 7 It is a structural diagram of the acquisition system of the present invention;

[0068] Figure 8 A laser position map for correcting the automobile route of the present invention;

[0069] Fig. 9 It is a schematic diagram of the actual operation of three-dimensional reconstruction of the present invention;

[0070] Fig.10 The actual acquisition tunnel lining light strip and the theoretical acquisition tunnel lining light strip of the present invention;

[0071] Fig.11 The schematic diagram of the automobile route correction of the present invention;

[0072] Fig.12 This is a system structure diagram of the modeling method of the tunnel lining three-dimensional structure based on multi-line laser of the present invention. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0074] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0075] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0076] In the description of the embodiments of the present invention, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. indicate an orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product of the invention is usually placed when in use, it is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0077] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0078] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0079] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0080] See also Figure 1 and Figure 2 The present invention discloses a modeling method of a three-dimensional structure of a tunnel lining based on a multi-line laser, comprising:

[0081] S101, receiving a captured image, and extracting points on the laser strip on the tunnel lining surface in the image to obtain pixel coordinates of the points on the laser strip on the tunnel lining surface.

[0082] See also Figure 3 , obtaining the pixel coordinates of the points on the light strip includes extracting the center of the light strip and locating the light strip area;

[0083] The positioning light strip area is specifically:

[0084] Based on the maximum gray value point on the image, the range of regional gray value is determined, and the gray value in the regional gray value range is screened based on the regional gray value slope, and the screened regional gray value is denoised. At the same time, the light strip area is located by the change of the gray value slope on both sides of the light strip point;

[0085] The regional grayscale range is set manually; if the grayscale value in the regional grayscale range is greater than the regional grayscale slope, it is a light stripe regional point; if the grayscale value in the regional grayscale range is less than the regional grayscale slope, it does not belong to the light stripe regional point;

[0086] The linear laser stripe area has a higher gray level in the image, so we search for points with larger gray values ​​in each row of the image. Assume that the maximum gray value of the i-th row is Then extract the gray value in this row The points in the range are extracted. However, due to the influence of noise and reflection, the extracted points are not necessarily light strip points, so the extracted points need to be screened. Therefore, the regional grayscale slope is introduced for screening. Suppose any grayscale point (i, j) with a larger grayscale has a corresponding grayscale value of g i,j , then the regional grayscale slope at this point is defined as shown in formula (1):

[0087]

[0088] Among them, the pixel gray value corresponding to the pixel (i, j) is g i,j ; The value range of k is [-10~10];

[0089] The regional grayscale slope threshold is selected according to the actual situation; when the regional grayscale slope is less than the threshold, it is considered that this point is not a light bar region point.

[0090] The light strips in the line laser strip area should be continuous. To avoid the influence of noise on the extraction results, the 8-neighborhood of the extracted light strip point is judged. If there are at least 3 other points in the neighborhood, the light strip point is retained, otherwise it is discarded.

[0091] Since the grayscale at the edge of the light strip area is greatly affected by the surrounding light, a fixed threshold cannot be used to judge the pixels on both sides of the light strip when locating the light strip area. The present invention locates the light strip area by the change of the grayscale slope on both sides of the light strip point. The grayscale value of the pixels on both sides of the light strip point gradually decreases, and the change of the grayscale value of the pixels on the boundary of the light strip area will intensify, and the slope of the grayscale distribution curve between adjacent pixels at this location will suddenly change.

[0092] For pixel (i, j), its corresponding pixel gray value is g i,j , then the first-order difference of the grayscale distribution curve between this point and its adjacent point (i, j+1) is as shown in formula (2):

[0093] k j+1,j =g i,j+1 -g i,j (2)

[0094] Then the second-order difference of the grayscale between the three points (i, j-1), (i, j), and (i, j+1) is defined as shown in formula (3):

[0095] Δk j-1 =|k j+1,j -k j-1,j| (3)

[0096] In the light stripe image, taking the extracted light stripe point as the center, starting from the second pixel on both sides of the row where the light stripe point is located, the gray value difference of each pixel is calculated respectively. If the calculated second-order difference has an obvious change amplitude, the point is considered to be the region boundary.

[0097] Then the sub-pixel accuracy of the light strip center is calculated. Using the grayscale center weighted centroid method, in the jth row of the image, assuming that the area of ​​the line laser light strip is S, the column coordinates u of the light strip center in this row are j As shown in formula (4):

[0098]

[0099] Where x is any point in the area S of the linear laser strip;

[0100] The structured light is irradiated onto the entire tunnel lining surface, and the pixel coordinates of the center of the light strip are extracted by the above method, so that the coordinates of all pixels on the tunnel lining surface in the coordinate system are obtained. The processed image captured by the acquisition system unit is as follows Figure 4 shown.

[0101] S102, calibrating the CCD camera, obtaining the projection matrix of the camera, and realizing the conversion between pixel coordinates and world coordinates.

[0102] See also Figure 5 The data acquisition structure of the acquisition system unit of the present invention is realized by using a binocular CCD camera in conjunction with a line laser to complete the image acquisition. During the acquisition, the line laser is vertically irradiated to the tunnel lining surface, and the CCD camera shoots at a certain angle to the tunnel lining surface. The acquired data is transmitted to the computer through the acquisition card.

[0103] Calibrate the CCD camera as follows:

[0104] Point A1(X W , Y W , Z W ) is transformed to the CCD camera coordinate system A2(X c , Y c , Z c )middle;

[0105] A2(X c , Y c , Z c ) is transformed from the CCD camera coordinate system to the CCD image plane coordinate system through perspective projection. The ideal coordinate point is A3(X d , Y d );

[0106] Based on radial distortion and tangential distortion, A3(X d , Y d ) is converted into the actual coordinate point A4 (X, Y); the actual coordinate point A4 (X, Y) in the CCD image plane coordinate system is converted into the pixel coordinate system and represented by A5 (U, V);

[0107] Assuming that (x, y) is in the image plane coordinate system and (u0, v0) is in the pixel coordinate system, the matrix transformation relationship between the two coordinate systems is shown in formula (5):

[0108]

[0109] (u, v) is the coordinate of (x, y) in the pixel coordinate system, (u0, v0) is the geometric center of the image plane, the origin of the image plane coordinate system, d x , d y is the actual width and height of the pixels of the photosensitive element of the CCD camera;

[0110] Assume that the coordinates of (x, y) in the world coordinate system are A1(X W , Y W , Z W), which is A2(X c , Y c , Z c ), then the transformation matrix relationship between the two is as shown in formula (6):

[0111]

[0112] Among them, R is the rotation matrix of external parameter calibration;

[0113] The camera coordinate system A2(X c , Y c , Z c ) is transformed into the CCD image plane coordinate system through perspective projection, and the ideal coordinate point is A3(X d , Y d ), the conversion relationship is shown in formula (5):

[0114]

[0115] The radial distortion is shown in formula (6):

[0116]

[0117] Among them, r represents the distance from the distortion point to the origin of the image coordinate system;

[0118] The tangential distortion is shown in formula (7):

[0119]

[0120] Among them, k1 and k2 are radial distortion coefficients, and p1 and p2 are tangential distortion coefficients;

[0121] The pixel coordinates are converted to three-dimensional coordinates in the world coordinate system. The conversion relationship is shown in formula (10):

[0122]

[0123] Among them, z c is the scale factor; f is the focal length of the camera;

[0124] It is called the camera's projection matrix.

[0125] Through the collected surface image of the tunnel lining, the laser center point pixel is extracted, and the image point world coordinates and pixel coordinates are converted according to the above formula. According to research, three-dimensional coordinates can be uniquely converted into two-dimensional coordinates, but conversely, the three-dimensional coordinates cannot be uniquely determined by the pixel coordinates, that is, the two-dimensional coordinates, that is, the obtained pixel point coordinates cannot determine which specific point in space. By irradiating the tunnel lining with a line laser and collecting the laser point with a camera, the correspondence between the pixel point and the world coordinate can be achieved.

[0126] S103, based on the three-dimensional coordinate transformation of the least square method, obtain the point pixel coordinates in the world coordinate system corresponding to the point pixel coordinates of each laser bar, and transform the points in different coordinate systems into the same coordinate system.

[0127] Three-dimensional coordinate transformation based on the least squares method. Assume that the image points of any point P in the space under the two camera coordinate systems C1 and C2 are p1 and p2, p1 and p2 are the corresponding points of the same point P in the space in the left and right images, the camera calibration is completed, and the projection matrix has been determined. So:

[0128]

[0129]

[0130] Where: z c1 、z c2 are the scale factors of any point P in the space in the camera coordinate system C1 and C2 respectively, u1 and v1 are the coordinates of (x, y) in the camera coordinate system C1, and u2 and v2 are the coordinates of (x, y) in the camera coordinate system C2;

[0131] is the camera projection matrix required by formula (10),

[0132] X W , Y W , Z W is the coordinate of (x, y) in the world coordinate system; X W , Y W , Z W With x w ,y w , z w same.

[0133] According to formula (11) and formula (12), z can be eliminated. c1 or c2 , get the value of x w ,y w , z w Four linear equations.

[0134]

[0135]

[0136] These two equations represent the two straight lines passing through o1p1 and o2p2. Written in matrix form

[0137]

[0138] Or written as

[0139] KX=U (16)

[0140] The least squares solution of this equation is:

[0141] m=(K T K) -1 K T U (17)

[0142] Finally, the three-dimensional model is reconstructed. First, the coordinate transformation of the acquisition system unit, that is, the binocular camera, is performed, and then the three-dimensional model is reconstructed.

[0143] First, solve the coordinate transformation of adjacent camera coordinate systems. Construct a linear equation system as shown in formula (18):

[0144]

[0145] Among them, (x, y, z) represents the coordinates under the original coordinate axis, (x1, y1, z1) represents the coordinates under the new coordinate axis, (u x ,u y ,u z ) represents the transformation matrix between the new coordinate system and the original coordinate system, and the transformation relationship is shown in formula (19):

[0146]

[0147] At this point, the points on the same line of laser have been converted into the same coordinate system, and then based on the same principle, all the tunnel lining pixel coordinate points can be converted into the same coordinate system.

[0148] S104, interpolating pixel coordinate data of each point in the world coordinate system based on the catmull_rom method, and importing the interpolated coordinate data into a three-dimensional reconstruction software to obtain a three-dimensional contour model of the tunnel lining.

[0149] See also Figure 6, the catmull_rom method principle diagram used in the present invention: P0, P1, P2, P3 are control points, which are actually collected discrete data, and the interpolation point is between P0 and P1, ensuring that the curve passes through all control points without distortion. Define time t∈[0.0, 1.0], 0.0, 1.0 corresponds to P0, P1 respectively. Let the expected value be Q, then the curve equation Q(t) is shown in formula (20):

[0150]

[0151] In the three-dimensional coordinate system, four discrete points are randomly selected in the plane and substituted into formula (24). Interpolation is performed every 0.25, so new interpolation points can be calculated. The interpolation points are interpolated at intervals to make the three-dimensional points denser and the reconstructed tunnel lining surface smoother. At this point, a series of continuous reading points of the tunnel lining are obtained, and the three-dimensional reconstruction of the tunnel lining is realized by importing the data into the MATLAB software.

[0152] See also Figure 7 , the present invention discloses a tunnel lining three-dimensional structure scanning device based on multi-line laser, including: an encoder, a frequency dividing board, an LED strobe light, a driving board, an acquisition system, a switching power supply, a power supply, and a car;

[0153] The acquisition system includes several acquisition units, each of which includes a CCD camera and a line laser. The encoder is arranged on a wheel of a car, the encoder is connected to a frequency dividing board, the frequency dividing board is connected to the CCD camera, the frequency dividing board is connected to a driving board, and the driving board is connected to an LED strobe light; the LED strobe light is powered by a switching power supply; and the line laser is powered by a power supply.

[0154] Also includes: vehicle route correction device; see Figure 8 The present invention discloses a laser-based vehicle route correction device; the device is a top view, and the vehicle route correction device includes a posture detection system, a connecting crossbeam, a longitudinal beam and a laser; the longitudinal beam is connected to the vehicle through a connecting crossbeam, the crossbeam plays a supporting role, the laser is located on the longitudinal beam, and the longitudinal beam is parallel to the tunnel wall;

[0155] The posture detection system is an IMU sensor;

[0156] The system also includes a computer and an acquisition card, wherein the computer receives the image transmitted by the CCD camera through the acquisition card.

[0157] The image information collected by the camera is specifically: the encoder is connected to the frequency dividing board to trigger the camera to shoot synchronously, the frequency dividing board is connected to the driver board, controls the on and off of the LED strobe light, and is powered by a switching power supply to achieve synchronization between the camera and the LED;

[0158] See also Fig. 9 As the car moves forward, the acquisition system acquires images of the tunnel lining. Due to the large width of the tunnel lining, the acquisition system is composed of multiple acquisition system units. The acquisition system unit consists of two area array cameras with a certain angle relationship, equipped with line lasers to work together. In the actual process, it is necessary to determine the layout according to the geometric relationship between the tunnel lining, area array camera, and line laser to ensure that the camera can capture clear images.

[0159] The car is at one end of the tunnel, and the encoder on the wheel records the car's position; turn on the line laser and irradiate the laser onto the surface of the tunnel lining; turn on the camera, adjust the camera angle, and set the camera parameters so that the camera can capture clear images; when the acquired image is clear, start the car and move forward along the center of one lane as much as possible, and the line laser sweeps across half of the entire tunnel lining, adjust the exposure, and allow the camera to acquire images at a certain frequency; when the car exits the tunnel, this process ends; turn the car around and repeat the above process to complete the acquisition of the entire tunnel lining image; the acquired image is transmitted to the computer through the acquisition card for modeling of the three-dimensional structure of the tunnel lining based on multi-line laser.

[0160] See also Fig.10 , the actual light strips of the tunnel lining collected by the car and the theoretical light strips of the tunnel lining. The light strips on the left are when the car deviates along the center line of the tunnel lane, and the light strips on the right are ideal. Fig.10 It is known that a car cannot travel in a straight line all the time when it is moving forward. Therefore, before the camera captures the image, the car's route correction is also included. Specifically, by obtaining the distance between each laser and the tunnel wall, the IMU sensor is used to obtain the car's yaw angle, and by calculating the distance difference between the laser point on the tunnel wall and the reference, it is determined whether the car meets the specified accuracy requirements, thereby correcting the car's deviation angle.

[0161] See also Fig.11 , establish a coordinate system XOY with the direction of the tunnel wall as the horizontal coordinate and the direction perpendicular to the tunnel wall as the vertical coordinate, construct a baseline parallel to the x-axis, the shape of the tunnel wall, and the direction of the car's trajectory as shown in the figure. At time t, the car's yaw angle is θ, y0 represents the distance from the baseline to the x-axis, y1 represents the distance from the laser to the x-axis, y2 represents the distance from the laser to the initial straight-line driving direction of the car at time t, y3 represents the distance from the point in the initial direction of the car at time t to a point on the tunnel wall parallel to the x-axis at time t, y4 represents the distance from the laser to the tunnel wall at time t, and y represents the distance from the laser point on the tunnel wall at time t to the baseline. The error is reduced by taking the average of the laser distances of the three points. From the geometric relationship in the figure, it can be seen that:

[0162] y=y1-y0-y3(t) (21)

[0163] y3(t)=y4(t)cos(θ(t))-y2(t) (22)

[0164] Assume that the acceleration measured by the acceleration sensor at time t is a(t), then:

[0165]

[0166]

[0167] The distance between the reference line and the tunnel wall can be calculated. In actual operation, a threshold value K is specified. When the calculated result y < K, it is considered that the car's driving route meets the requirements. Otherwise, it is considered that the car's driving route deviates and the experimental data is unreliable. Through this process, the correctness of the experimental results is verified.

[0168] Through the above method, the scattered points (x1, y1, z1) of the tunnel lining contour are obtained...(x n ,y n , z n ); however, due to the limitation of the camera, only some discrete points can be obtained, and they need to be imported into the 3D software after interpolation to reconstruct the 3D contour of the tunnel lining. Therefore, the catmull_rom interpolation method is used to interpolate reasonable points to make the final tunnel lining smoother.

[0169] See also Fig.12 The present invention discloses a modeling system for a three-dimensional structure of a tunnel lining based on a multi-line laser, comprising:

[0170] An extraction module, the extraction module is used to receive the collected image, and extract the points on the laser strip on the tunnel lining surface on the image to obtain the pixel coordinates of the points on the laser strip on the tunnel lining surface;

[0171] A calibration module, which is used to calibrate the CCD camera, obtain the camera's projection matrix, and realize the conversion between pixel coordinates and world coordinates;

[0172] A conversion module, which performs three-dimensional coordinate conversion based on the least square method, obtains the point pixel coordinates in the world coordinate system corresponding to the point pixel coordinates of each laser bar, and transforms points in different coordinate systems into the same coordinate system;

[0173] An interpolation module interpolates pixel coordinate data of each point in the world coordinate system based on the catmull_rom method, and imports the interpolated coordinate data into a three-dimensional reconstruction software to obtain a three-dimensional contour model of the tunnel lining.

[0174] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. Modeling method of three-dimensional structure of tunnel lining based on multi-line laser, It is characterized by; including: Receive the collected image, extract the points on the laser strip on the tunnel lining surface in the image, and obtain the pixel coordinates of the points on the laser strip on the tunnel lining surface; Calibrate the CCD camera, obtain the camera's projection matrix, and realize the conversion between pixel coordinates and world coordinates; Based on the least squares method, the three-dimensional coordinate transformation is used to obtain the point pixel coordinates in the world coordinate system corresponding to the point pixel coordinates of each laser bar, and the points in different coordinate systems are transformed into the same coordinate system; Based on the catmull_rom method, the pixel coordinate data of each point in the world coordinate system is interpolated, and the interpolated coordinate data is imported into the 3D reconstruction software to obtain the 3D contour model of the tunnel lining; The obtaining of the pixel coordinates of the point on the laser bar includes extracting the center of the laser bar and locating the laser bar area; The positioning laser bar area is specifically: Based on the maximum gray value point on the image, the range of regional grayscale is determined, and the grayscale values ​​in the regional grayscale range are screened based on the regional grayscale slope. The screened regional grayscale is denoised, and the laser bar area is positioned by the change of the grayscale slope on both sides of the laser bar point. The regional grayscale range is set manually; if the grayscale value in the regional grayscale range is greater than the regional grayscale slope, it is a laser bar regional point; if the grayscale value in the regional grayscale range is less than the regional grayscale slope, it does not belong to the laser bar regional point; The regional grayscale slope is shown in formula (1): Among them, the pixel gray value corresponding to the pixel (i, j) is g i,j ; The extraction of the center of the laser bar is specifically as follows: Based on the grayscale center weighted method, the sub-pixel accuracy of the laser bar center is calculated, as shown in formula (2): Among them, the laser bar area is S, and g(x,j) is the coordinate of the pixel point.

2. The method for modeling a three-dimensional structure of a tunnel lining based on multi-line laser according to claim 1, characterized in that; The CCD camera is calibrated as shown below, specifically: Point A1(X W ,Y W ,Z W ) is transformed to the CCD camera coordinate system A2(X c ,Y c ,Z c )middle; Camera coordinate system A2(X c ,Y c ,Z c ) is transformed into the CCD image plane coordinate system through perspective projection, and the ideal coordinate point is A3(X d ,Y d ); Based on radial distortion and tangential distortion, A3(X d ,Y d ) is converted to the actual coordinate point A4 (X, Y); Convert the actual coordinate point A4 (X, Y) in the CCD image plane coordinate system into the pixel coordinate system and represent it with A5 (U, V); Assuming that (x, y) is in the image plane coordinate system and (u0, v0) is in the pixel coordinate system, the matrix transformation relationship between the two coordinate systems is: (u,v) is the coordinate of (x,y) in the pixel coordinate system, (u0,v0) is the geometric center of the image plane, the origin of the image plane coordinate system, d x ,d y is the actual width and height of the pixels of the photosensitive element of the CCD camera; Assume that the coordinates of (x,y) in the world coordinate system are A1(X w ,Y w ,Z w ), which is A2(X c ,Y c ,Z c ), then the transformation matrix relationship between the two is as shown in formula (4): Among them, R is the rotation matrix of external parameter calibration; The camera coordinate system A2(X c ,Y c ,Z c ) is transformed into the CCD image plane coordinate system through perspective projection, and the ideal coordinate point is A3(X d ,Y d ), the conversion relationship is shown in formula (5): The radial distortion is shown in formula (6): Among them, r represents the distance from the distortion point to the origin of the image coordinate system; The tangential distortion is shown in formula (7): Among them, k1 and k2 are radial distortion coefficients, and p1 and p2 are tangential distortion coefficients; The pixel coordinates are converted to three-dimensional coordinates in the world coordinate system. The conversion relationship is shown in formula (8): Among them, z c is the scale factor; f is the focal length of the camera; It is called the camera's projection matrix.

3. Modeling system of tunnel lining 3D structure based on multi-line laser, It is characterized by; including: An extraction module, the extraction module is used to receive the collected image, and extract the points on the laser strip on the tunnel lining surface on the image to obtain the pixel coordinates of the points on the laser strip on the tunnel lining surface; A calibration module, which is used to calibrate the CCD camera, obtain the camera's projection matrix, and realize the conversion between pixel coordinates and world coordinates; The conversion module is based on the three-dimensional coordinate conversion of the least square method, obtains the point pixel coordinates in the world coordinate system corresponding to the point pixel coordinates of each laser bar, and transforms the points in different coordinate systems to the same coordinate system; the function of the conversion module is realized by the following method: The obtaining of the pixel coordinates of the point on the laser bar includes extracting the center of the laser bar and locating the laser bar area; The positioning laser bar area is specifically: Based on the maximum gray value point on the image, the range of regional grayscale is determined, and the grayscale values ​​in the regional grayscale range are screened based on the regional grayscale slope. The screened regional grayscale is denoised, and the laser bar area is positioned by the change of the grayscale slope on both sides of the laser bar point. The regional grayscale range is set manually; if the grayscale value in the regional grayscale range is greater than the regional grayscale slope, it is a laser bar regional point; if the grayscale value in the regional grayscale range is less than the regional grayscale slope, it does not belong to the laser bar regional point; The regional grayscale slope is shown in formula (1): Among them, the pixel gray value corresponding to the pixel (i, j) is g i,j ; The extraction of the center of the laser bar is specifically as follows: Based on the grayscale center weighted method, the sub-pixel accuracy of the laser bar center is calculated, as shown in formula (2): Among them, the laser bar area is S, and g(x,j) is the coordinate of the pixel point; An interpolation module interpolates pixel coordinate data of each point in the world coordinate system based on the catmull_rom method, and imports the interpolated coordinate data into a three-dimensional reconstruction software to obtain a three-dimensional contour model of the tunnel lining.

4. A tunnel lining three-dimensional structure scanning device based on multi-line laser, characterized in that: The method for implementing claim 1 comprises: an encoder, a frequency dividing board, an LED strobe light, a driving board, an acquisition system, a switching power supply, a power supply, and a car; The acquisition system includes several acquisition units, each of which includes a CCD camera and a line laser. The encoder is arranged on a wheel of a car, the encoder is connected to a frequency dividing board, the frequency dividing board is connected to the CCD camera, the frequency dividing board is connected to a driving board, and the driving board is connected to an LED strobe light; the LED strobe light is powered by a switching power supply; and the line laser is powered by a power supply.

5. The tunnel lining three-dimensional structure scanning device based on multi-line laser according to claim 4 is characterized in that: Also includes: A vehicle route correction device; the vehicle route correction device comprises a posture detection system, a connecting crossbeam, a longitudinal beam and a laser; the longitudinal beam is connected to the vehicle via a connecting crossbeam, the crossbeam plays a supporting role, the laser is located on the longitudinal beam, and the longitudinal beam is parallel to the tunnel wall; The posture detection system is an IMU sensor; The system also includes a computer and an acquisition card, wherein the computer receives the image transmitted by the CCD camera through the acquisition card.

6. A multi-line laser tunnel lining three-dimensional structure scanning device based on the device of claim 5, characterized in that; The image information collected by the camera is specifically: the encoder is connected to the frequency dividing board to trigger the camera to shoot synchronously, the frequency dividing board is connected to the driver board, controls the on and off of the LED strobe light, and is powered by a switching power supply to achieve synchronization between the camera and the LED; The car is at one end of the tunnel, and encoders on the wheels record the car's position; Turn on the line laser and irradiate the surface of the tunnel lining; turn on the camera, adjust the camera angle, and set the camera parameters so that the camera can capture clear images; when the acquired image is clear, start the car and move forward along the center of one lane as much as possible, and the line laser scans half of the entire tunnel lining. Adjust the exposure so that the camera acquires images at a certain frequency; when the car exits the tunnel, this process ends; turn the car around and repeat the above process to complete the acquisition of the entire tunnel lining image; the acquired image is transmitted to the computer through the acquisition card for modeling of the three-dimensional structure of the tunnel lining based on multi-line laser.

7. The tunnel lining three-dimensional structure scanning device based on multi-line laser according to claim 6, characterized in that; Before the camera captures the image, the car's route is corrected. Specifically, the distance between each laser and the tunnel wall is obtained, and the yaw angle of the car is obtained in conjunction with the IMU sensor. The distance difference between the laser point on the tunnel wall and the reference is calculated to determine whether the car meets the specified accuracy requirements, thereby correcting the car's deviation angle.