A coating thickness detection method and system based on terahertz

By using terahertz technology and robot system in coating thickness detection, establishing the robot base coordinate system and the center point of the calibration flange, combined with the laser ranging sensor and terahertz calibration plate, the problem of low automation and low automation of coating thickness detection is solved. The problem of insufficient accuracy is achieved, and high-precision and stable coating thickness detection is achieved.

CN118089558BActive Publication Date: 2024-09-06SICHUAN INNOVATION RES INST OF TIANJIN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311407515.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2024-09-06
Estimated Expiration
2043-10-27

AI Technical Summary

Technical Problem

Existing coating thickness detection technology has problems such as low operating automation, insufficient efficiency and accuracy. In particular, it requires high personnel operation levels and is easily affected by environmental interference, resulting in inaccurate detection results.

Method used

Using a terahertz-based coating thickness detection method, the center point of the flange is calibrated by establishing the robot base coordinate system and the probe method, and the mapping relationship between the laser ranging sensor and the flange coordinate system is calibrated using the plane method. The terahertz calibration board of the first layer determines the detection distance, and introduces environmental information correction to realize automatic adjustment and correction, and finally performs terahertz time domain spectrum measurement.

Benefits of technology

It improves the accuracy and reliability of measurement, reduces the technical dependence of operators, ensures the stability and reliability of measurement results, and achieves high-precision coating thickness detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118089558B
    Figure CN118089558B
Patent Text Reader

Abstract

The present invention relates to the technical field of thickness detection, and discloses a coating thickness detection method and system based on terahertz, the method comprising: establishing a robot base coordinate system, calibrating the mapping relationship between the center point of the flange; calibrating the laser ranging sensor and the flange coordinate system mapping by plane method; determining the detection distance of the laser ranging sensor by using a terahertz calibration plate; performing detection of the object to be measured and acquiring modeling data; controlling the robot positioning, collecting local plane data, and comparing it with the normal vector of the object to be measured, and automatically adjusting the robot; judging whether to adjust the robot position according to the angle difference; collecting environmental information and correcting the measurement distance, comparing the measurement distance with the detection distance to obtain the final measurement distance; and finally performing terahertz time domain spectroscopy measurement according to the final measurement distance. The present invention has the advantages of automation, high precision, and non-contact, improves the accuracy and automation of coating thickness measurement, and reduces the technical dependence of operators.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of thickness detection, and in particular to a coating thickness detection method and system based on terahertz. Background Art

[0002] Protective coatings are commonly used in products in the fields of automobiles, ships, and aviation manufacturing. The coating process is cumbersome and the inspection process is complex. Among them, the coating thickness is an important indicator to characterize the quality and integrity of the coating. If the coating thickness does not meet the specified requirements, it will directly affect the product's anti-corrosion, anti-rust, and aesthetic properties, leading to a variety of coating defects, which will directly affect the effective life of the coating.

[0003] Traditional coating thickness measurement technologies include magnetic induction thickness measurement, eddy current thickness measurement, ultrasonic thickness measurement, and radiographic thickness measurement. They have some defects in practical applications. The magnetic thickness measurement method is sensitive to the geometric shape, surface roughness, and magnetic and electrical conductivity of the test sample. The ultrasonic detection method is suitable for thinner paint film coatings, and the scope of application is low in laser signal-to-noise ratio, difficult to use stably for a long time, and has high cost and complex operation. Radiographic thickness measurement uses a radioactive source and has certain radiation hazards.

[0004] Terahertz waves are located between microwaves and infrared rays in the electromagnetic spectrum, and have unique advantages such as strong penetration and safety for the human body. Compared with traditional coating detection methods, terahertz waves are safe for the human body. Using terahertz spectroscopy technology and the high transmittance and low scattering characteristics of terahertz pulses, terahertz detection technology can be applied to the field of paint film coating thickness measurement, realizing non-destructive measurement of multi-layer paint film coating thickness and its distribution uniformity evaluation, thickness distribution measurement and non-contact online measurement of paint film coating thickness, etc. The test process is not limited by the electrical or magnetic properties of the substrate. However, the current application of terahertz for thickness detection technology requires a lot of manual intervention, which leads to a low degree of automation in the operation, limiting the efficiency and repeatability of the measurement. In addition, terahertz thickness measurement technology requires a high level of operator operation, which easily causes the detection results to be affected by environmental interference and lack accuracy.

[0005] Therefore, it is necessary to design a coating thickness detection method and system based on terahertz to solve the current problems. Summary of the invention

[0006] In view of this, the present invention proposes a coating thickness detection method and system based on terahertz, aiming to solve the problems existing in the current coating thickness measurement technology.

[0007] In one aspect, the present invention provides a coating thickness detection method based on terahertz, comprising:

[0008] Establishing a robot base coordinate system, calibrating the center point of the flange using a probe method and obtaining a mapping relationship between the flange and the robot base coordinate system;

[0009] Use the plane method to calibrate the mapping relationship between the laser distance sensor and the flange coordinate system;

[0010] Using a terahertz calibration plate with a coating to determine the detection distance of the laser ranging sensor;

[0011] After the detection distance is determined, the object to be detected is detected; when the object to be detected is detected, an image of the object to be detected is captured and modeling data of the object to be detected is obtained, and initial sampling coordinates are determined according to the modeling data;

[0012] After controlling the robot to move to the initial sampling coordinates, the vector direction and the measured distance of the laser ranging sensor from the local plane of the sampling point are collected, the plane target normal vector of the measured object is compared with the vector direction, and whether to adjust the robot is determined according to the comparison result;

[0013] wherein, obtaining an angle difference △θ between the plane target normal vector and the vector direction, comparing the angle difference △θ with a preset angle difference threshold θmax, and determining whether to adjust the robot according to the comparison result;

[0014] When △θ>θmax, it is determined that the robot should be adjusted;

[0015] When △θ≤θmax, it is determined that the robot is not to be adjusted;

[0016] After determining whether to adjust the robot, collecting the measured distance of the laser ranging sensor and collecting environmental information, correcting the measured distance according to the environmental information, and obtaining the corrected measured distance;

[0017] Comparing the corrected measured distance with the detected distance, and determining whether to adjust the corrected measured distance according to the comparison result to obtain a final measured distance;

[0018] After the final measurement distance is obtained, the terahertz sensor is controlled to perform terahertz time-domain spectroscopy measurement.

[0019] Furthermore, the establishing of the robot base coordinate system, calibrating the center point of the flange using a probe method and obtaining a mapping relationship between the flange and the robot base coordinate system includes:

[0020] A three-dimensional coordinate system is established with the robot base as the origin, which is recorded as the robot base coordinate system O R ;

[0021] A three-dimensional coordinate system is established with the center point of the flange as the origin, which is denoted as flange coordinate system O F ;

[0022] A standard probe is installed on the flange, and the probe is controlled to contact the same contact point in different postures to obtain the base coordinate system O R With the flange coordinate system O F The position transformation relationship in three-dimensional space.

[0023] Furthermore, the method of calibrating the mapping relationship between the laser ranging sensor and the flange coordinate system by using the plane method includes:

[0024] The mapping relationship between the laser ranging sensor and the flange coordinate system is constructed by constructing the position parameter constraint equation of the laser ranging sensor through the calibration plane;

[0025] The position parameter constraint equation of the laser ranging sensor is constructed by the following formula:

[0026]

[0027] An, Bn, Cn represent the coefficients of the plane equation of the calibration plate during the nth calibration, n is the number of calibrations, and n>6; x0, y0, z0 represent the spatial coordinates to be calibrated, l n Indicates the distance measurement value of the nth laser displacement sensor.

[0028] Further, after obtaining the mapping relationship between the laser ranging sensor and the flange coordinate system, the method of using the coated terahertz calibration plate to determine the detection distance of the laser ranging sensor also includes:

[0029] Move the robot to make the terahertz sensor perpendicular to the terahertz calibration plate, collect the signal intensity Q0 of the terahertz sensor, compare the signal intensity Q0 with a preset intensity threshold Qmin, and determine whether to adjust the position of the terahertz sensor according to the comparison result;

[0030] When Q0≥Qmin, it is determined that the position of the terahertz sensor is not adjusted, and the coordinate position of the terahertz sensor at this time is recorded, and the detection distance L1 is obtained according to the coordinate position;

[0031] When Q0<Qmin, it is determined that the position of the terahertz sensor is adjusted, the robot is moved until Q0≥Qmin and the coordinate position of the terahertz sensor at this time is recorded, and the detection distance L1 is obtained according to the coordinate position.

[0032] Further, after determining whether to adjust the robot, collecting the measured distance of the laser ranging sensor and collecting environmental information, correcting the measured distance according to the environmental information, and obtaining the corrected measured distance, including:

[0033] The environmental information includes the environmental temperature W0, the environmental humidity S0 and the dust concentration H0;

[0034] Preset a first preset ambient temperature W1, a second preset ambient temperature W2, and a third preset ambient temperature W3, and W1<W2<W3; preset a first preset distance correction coefficient J1, a second preset distance correction coefficient J2, and a third preset distance correction coefficient J3, and J1<J2<J3; select a distance correction coefficient according to the magnitude relationship between the ambient temperature W0 and each preset ambient temperature to correct the measured distance L0, and obtain the corrected measured distance;

[0035] When W1≤W0<W2, the third preset distance correction coefficient J3 is selected to correct the measured distance L0 to obtain a corrected measured distance L0×J3;

[0036] When W2≤W0<W3, the second preset distance correction coefficient J2 is selected to correct the measured distance L0 to obtain a corrected measured distance L0×J2;

[0037] When W3≤W0, the first preset distance correction coefficient J1 is selected to correct the measured distance L0 to obtain a corrected measured distance L0×J1.

[0038] Further, after selecting the i-th preset distance correction coefficient Ji to correct the measured distance L0 and obtaining the corrected measured distance L0×Ji, i=1, 2, 3, correcting the measured distance according to the environmental information and obtaining the corrected measured distance, it also includes:

[0039] Preset a first preset ambient humidity S1, a second preset ambient humidity S2, and a third preset ambient humidity S3, and S1<S2<S3; select a distance correction coefficient according to the magnitude relationship between the ambient humidity S0 and each preset ambient humidity to perform secondary correction on the corrected measured distance L0×Ji, and obtain the secondary corrected measured distance;

[0040] When S1≤S0<S2, the third preset distance correction coefficient J3 is selected to perform secondary correction on the corrected measured distance L0×Ji to obtain the secondary corrected measured distance L0×Ji×J3;

[0041] When S2≤S0<S3, the second preset distance correction coefficient J2 is selected to perform secondary correction on the corrected measured distance L0×Ji to obtain the secondary corrected measured distance L0×Ji×J2;

[0042] When S3≤S0, the first preset distance correction coefficient J1 is selected to perform a secondary correction on the corrected measured distance L0×Ji to obtain the secondary corrected measured distance L0×Ji×J1.

[0043] Further, after selecting the i-th preset distance correction coefficient Ji to perform secondary correction on the corrected measured distance L0×Ji, and obtaining the secondary corrected measured distance L0×Ji×Ji, i=1, 2, 3, the correcting the measured distance according to the environmental information to obtain the corrected measured distance also includes:

[0044] Preset a first preset dust concentration H1, a second preset dust concentration H2 and a third preset dust concentration H3, and H1<H2<H3; select a distance correction coefficient according to the magnitude relationship between the dust concentration H0 and each preset dust concentration to perform a third correction on the measured distance L0×Ji×Ji after the second correction, and obtain the measured distance after the third correction;

[0045] When H1≤H0<H2, the third preset distance correction coefficient J3 is selected to perform a third correction on the measured distance L0×Ji×Ji after the second correction, so as to obtain the measured distance L0×Ji×Ji×J3 after the third correction;

[0046] When H2≤H0<H3, the second preset distance correction coefficient J2 is selected to perform a third correction on the measured distance L0×Ji×Ji after the second correction to obtain the measured distance L0×Ji×Ji×J2 after the third correction;

[0047] When H3≤H0, the first preset distance correction coefficient J1 is selected to perform a third correction on the measured distance L0×Ji×Ji after the second correction to obtain the measured distance L0×Ji×Ji×J1 after the third correction.

[0048] Further, after selecting the i-th preset distance correction coefficient Ji to perform three corrections on the corrected measured distance L0×Ji×Ji, obtaining the three corrected measured distances L0×Ji×Ji×Ji, i=1, 2, 3, comparing the corrected measured distance with the detection distance, and judging whether to adjust the corrected measured distance according to the comparison result to obtain the final measured distance, including:

[0049] When 0.9L1<L0×Ji×Ji×Ji<1.1L1, it is determined that the corrected measurement distance is not adjusted, and the corrected measurement distance L0×Ji×Ji×Ji is used as the final measurement distance;

[0050] When 0.9L1≤L0×Ji×Ji×Ji or L0×Ji×Ji×Ji≥1.1L1, it is determined that the corrected measurement distance is adjusted, and the adjusted measurement distance is used as the final measurement distance.

[0051] Further, when determining to adjust the calibrated measured distance, it includes:

[0052] When 0.9L1≤L0×Ji×Ji×Ji, obtain the distance difference △L=L0×Ji×Ji×Ji-0.9L1, and adjust after expressing the distance difference △L in the flange coordinate system;

[0053] When L0×Ji×Ji×Ji≥1.1L1, the distance difference △L=1.1L1-L0×Ji×Ji×Ji is obtained, and the distance difference △L is expressed in the flange coordinate system and then adjusted.

[0054] Compared with the prior art, the beneficial effects of the present invention are as follows: a robot base coordinate system is established, the center point of the flange is calibrated by the probe method, and an accurate mapping relationship between the flange and the robot base coordinate system is achieved. The mapping relationship between the laser ranging sensor and the flange coordinate system is calibrated by the plane method, which improves the consistency of data when the robot moves, and further improves the accuracy and reliability of the measurement. The detection distance of the laser ranging sensor is determined by using a terahertz calibration plate with a coating, thereby realizing calibration and inspection before measurement and improving the reliability of the measurement data. During the coating detection process, the measurement direction of the laser ranging sensor can be aligned with the normal vector of the surface of the object to be measured through automated robot adjustment, which reduces the technical dependence of the operator and improves the accuracy and stability of the measurement. Environmental information correction is introduced to correct the measured distance, improve the accuracy of the measurement, and can automatically determine whether the corrected measured distance needs to be adjusted, ensuring the reliability of the final measurement result.

[0055] On the other hand, the present application also provides a terahertz-based coating thickness detection system, comprising:

[0056] A control computer, a robot and a terahertz spectrometer; wherein the control computer comprises a mapping unit, a calibration unit, a collection unit, a judgment unit, a correction unit, an adjustment unit and a measurement unit; the control computer is electrically connected to the robot and the terahertz spectrometer, the terahertz spectrometer is electrically connected to the robot, and the terahertz spectrometer is used to analyze spectral data;

[0057] The mapping unit is configured to establish a robot base coordinate system, calibrate the center point of the flange using a probe method, and obtain a mapping relationship between the flange and the robot base coordinate system;

[0058] The mapping unit is further configured to calibrate the mapping relationship between the laser ranging sensor and the flange coordinate system using a plane method;

[0059] The calibration unit is configured to determine the detection distance of the laser ranging sensor using a terahertz calibration plate with a coating;

[0060] The acquisition unit is configured to detect the object to be detected after determining the detection distance; when the object to be detected is detected, image acquisition is performed on the object to be detected and modeling data of the object to be detected is obtained, and initial sampling coordinates are determined according to the modeling data;

[0061] The judgment unit is configured to control the robot to move to the initial sampling coordinates, collect the vector direction and measured distance of the laser ranging sensor from the local plane of the sampling point, compare the plane target normal vector of the measured object with the vector direction, and judge whether to adjust the robot according to the comparison result;

[0062] wherein, obtaining an angle difference △θ between the plane target normal vector and the vector direction, comparing the angle difference △θ with a preset angle difference threshold θmax, and determining whether to adjust the robot according to the comparison result;

[0063] When △θ>θmax, it is determined that the robot should be adjusted;

[0064] When △θ≤θmax, it is determined that the robot is not to be adjusted;

[0065] The correction unit is configured to collect the measured distance of the laser ranging sensor and the environmental information after determining whether to adjust the robot, correct the measured distance according to the environmental information, and obtain the corrected measured distance;

[0066] The adjustment unit is configured to compare the corrected measurement distance with the detection distance, and determine whether to adjust the corrected measurement distance according to the comparison result to obtain a final measurement distance;

[0067] The measuring unit is configured to control the terahertz sensor to perform terahertz time-domain spectroscopy measurement after obtaining the final measurement distance.

[0068] It is understandable that the above-mentioned terahertz-based coating thickness detection method and system have the same beneficial effects, which will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0070] Figure 1 A flow chart of a terahertz-based coating thickness detection method provided in an embodiment of the present invention;

[0071] Figure 2 A schematic diagram of the structure of a terahertz-based coating thickness detection system provided in an embodiment of the present invention;

[0072] Figure 3 A functional block diagram of a control computer in a terahertz-based coating thickness detection system provided in an embodiment of the present invention.

[0073] Among them, 100, control computer; 110, mapping unit; 120, calibration unit; 130, acquisition unit; 140, judgment unit; 150, correction unit; 160, adjustment unit; 170, measurement unit; 200, terahertz spectrometer; 300, robot; 310, laser ranging sensor; 320, terahertz sensor; 400, object to be measured. DETAILED DESCRIPTION

[0074] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0075] With the rapid development of coating technology and modern industry, the degree of industrialization is constantly improving, and the industrial materials used in coatings and substrates are constantly being improved and optimized in terms of cost and quality, which puts forward higher requirements and more demands on the control of coating quality, mainly including the following three aspects: (1) Non-destructive testing needs. Non-destructive coating thickness detection methods have the advantages of fast detection speed, no damage to coatings and substrates, low measurement cost, and can realize online, dynamic, and real-time detection based on non-destructive thickness measurement. (2) Multi-coating thickness detection needs. Important fields such as automobiles and aerospace have always had an urgent need for multi-coating thickness detection. The paint system is generally a multi-layer structure including primer, midcoat, color paint, and varnish. The thickness of each layer has an important impact on the entire coating system. (3) Safety requirements. Safety detection is of vital importance. The technical research and promotion and application of coating thickness detection methods should be based on safety as a prerequisite.

[0076] Traditional detection technologies have their own drawbacks, while the new terahertz detection technology is a non-contact, non-destructive test that is safe for the human body and can quickly and real-timely measure the thickness of multiple coatings and each single layer of coating, coating thickness uniformity, defect distribution, etc. It has a good application prospect in actual industrial applications. Therefore, it is necessary to design a coating thickness detection method and system based on terahertz.

[0077] Reference Figure 1-2 As shown, in some embodiments of the present application, a coating thickness detection method based on terahertz includes:

[0078] Step S100: Establish the robot base coordinate system, use the probe method to calibrate the center point of the flange and obtain the mapping relationship between the flange and the robot base coordinate system. Use the plane method to calibrate the mapping relationship between the laser distance sensor 310 and the flange coordinate system.

[0079] Step S200: using the terahertz calibration plate with a coating to determine the detection distance of the laser ranging sensor 310 .

[0080] Step S300: After the detection distance is determined, the object 400 is detected. When the object 400 is detected, an image of the object 400 is captured and modeling data of the object 400 is obtained, and initial sampling coordinates are determined according to the modeling data.

[0081] S400: After controlling the robot 300 to move to the initial sampling coordinates, collect the vector direction and measured distance of the laser ranging sensor 310 from the local plane of the sampling point, compare the plane target normal vector of the object to be measured 400 with the vector direction, and determine whether to adjust the robot 300 based on the comparison result.

[0082] The angle difference △θ between the plane target normal vector and the vector direction is obtained, the angle difference △θ is compared with a preset angle difference threshold θmax, and it is determined whether to adjust the robot 300 according to the comparison result.

[0083] When Δθ>θmax, it is determined that the robot 300 is to be adjusted.

[0084] When Δθ≤θmax, it is determined that the robot 300 is not to be adjusted.

[0085] S500: After determining whether to adjust the robot 300, collect the measured distance of the laser ranging sensor 310 and collect environmental information, correct the measured distance according to the environmental information, and obtain the corrected measured distance.

[0086] S600: Compare the corrected measurement distance with the detection distance, and determine whether to adjust the corrected measurement distance according to the comparison result to obtain a final measurement distance.

[0087] S700: After the final measurement distance is obtained, the terahertz sensor 320 is controlled to perform terahertz time-domain spectroscopy measurement.

[0088] Specifically, in the case of detecting curved samples using a reflective terahertz wave transmission optical path, it is necessary to adjust the terahertz sensor 320 (including a light source and a receiver) to the normal position of the local geometric plane of the sampling point at each sampling point. Preferably, the present application introduces three laser locators for the robot 300. The device used in the present application includes a robot base, the robot 300 is fixedly connected to the base, the other end of the robot 300 is fixed with a flange fixture, the terahertz sensor 320 is fixed in the center of the flange fixture, and the laser ranging sensor 310 is fixed around the terahertz sensor 320. The distances between the laser ranging sensors 310 are equal. A robot base coordinate system is established, and the center point of the flange is calibrated using the probe method to obtain a mapping relationship between the flange and the robot base coordinate system. At the same time, the mapping relationship between the laser ranging sensor 310 and the flange coordinate system is calibrated by the plane method to ensure that the spatial reference of the measurement is accurate. Once the detection distance is determined, the effective measurement distance of the terahertz sensor 320 is detected using the terahertz calibration plate. The terahertz sensor 320 is calibrated with the help of a terahertz signal calibration plate with uniform coating thickness. The robot 300 is moved so that the terahertz sensor 320 at the end of the industrial robot is perpendicular to the direction of the terahertz calibration plate, and the signal reception of the terahertz sensor 320 is observed. If the terahertz signal strength is too low, the distance and detection angle between the robot 300 and the terahertz calibration plate are adjusted. When the terahertz return signal strength is higher than the receiving threshold, the distance at this time is recorded as the detection distance, because this distance data is obtained by the laser ranging sensor 310 detection, so it is also called the detection distance of the laser ranging sensor 310. After determining the effective measurement distance of the terahertz sensor 320, the object 400 is detected. If the object 400 is detected, image acquisition is performed and the modeling data of the object 400 is obtained. These data are used to determine the initial sampling coordinates. The closest point to the probe is selected from the modeling data to start measurement. After controlling the robot 300 to move to the initial sampling coordinate position, the laser ranging sensor 310 is used to measure the vector direction and measurement distance of the local plane of the sampling point. Then, the plane target normal vector of the object 400 to be measured is compared with the direction of the measurement vector to determine whether the robot 300 needs to be adjusted. The angle difference △θ between the plane target normal vector and the direction of the measurement vector is calculated. △θ is compared with the preset angle difference threshold θmax to determine whether the robot 300 needs to be adjusted. If △θ>θmax, the robot 300 will adjust its position according to the angle difference to ensure the accuracy of the measurement. After the angle is adjusted correctly, environmental information is collected, and then this information is used to correct the measured distance. This is to take into account the impact of environmental factors on the measurement and ensure the accuracy of the measurement results. The corrected measurement distance is compared with the previously obtained detection distance. Determine whether the corrected measurement distance needs to be further adjusted to obtain the final measurement distance.The terahertz sensor 320 is controlled to measure the coating thickness of the object 400 at the final measurement distance.

[0089] It is understandable that the accurate measurement of coating thickness is achieved by using a number of technologies such as robot control, terahertz technology, image processing and automated adjustment. It not only improves the accuracy of measurement, but also reduces the dependence on manual operation, which is conducive to high-precision and automated coating quality inspection.

[0090] In some embodiments of the present application, a robot base coordinate system is established, and the center point of the flange is calibrated using a probe method to obtain a mapping relationship between the flange and the robot base coordinate system, including: establishing a three-dimensional coordinate system with the robot base as the origin, denoted as the robot base coordinate system O R A three-dimensional coordinate system is established with the center point of the flange as the origin, which is recorded as flange coordinate system O F Install a standard probe on the flange, control the probe to contact the same contact point in different postures, and obtain the base coordinate system O R With flange coordinate system O F The position transformation relationship in three-dimensional space.

[0091] Specifically, the robot base coordinate system O is established R is the three-dimensional coordinate system with the robot 300 itself as the origin, and the flange coordinate system O F is a three-dimensional coordinate system with the center point of the flange fixture as the origin, and the terahertz coordinate system O C The origin of is taken at the starting point of the terahertz emission beam. Preferably, three laser ranging sensors 310 are installed around the terahertz sensor 320 and jointly determine the ranging sensor coordinate system O S .

[0092] It is understandable that before calibrating the laser sensor, the standard probe must first be installed on the flange and the same contact point must be touched in four different postures to derive the robot base coordinate system O R With flange coordinate system O F The position conversion relationship in three-dimensional space. By accurately locating the relationship between the robot base coordinate system and the flange coordinate system, it can be ensured that the robot 300 can accurately perform tasks in subsequent operations, especially for coating thickness measurement tasks that require precise positioning and control. It provides a reliable benchmark for subsequent coating thickness measurements, helps to improve the accuracy and repeatability of measurements, and thus ensures consistency in product quality and performance.

[0093] In some embodiments of the present application, the mapping relationship between the laser ranging sensor 310 and the flange coordinate system is calibrated using a plane method, including: constructing a position parameter constraint equation of the laser ranging sensor 310 through a calibration plane to construct a mapping relationship between the laser ranging sensor 310 and the flange coordinate system.

[0094] The position parameter constraint equation of the laser ranging sensor 310 is constructed and obtained by the following formula:

[0095]

[0096] An, Bn, Cn represent the coefficients of the plane equation of the calibration plate during the nth calibration, n is the number of calibrations, and n>6; x0, y0, z0 represent the spatial coordinates to be calibrated, l n Indicates the distance measurement value of the nth laser displacement sensor.

[0097] Specifically, according to the different calibration surfaces, the calibration methods of laser sensors can be divided into plane calibration method and spherical calibration method; according to the motion relationship of the calibration surface, there are two methods: the robot is stationary and the calibration surface moves, and the robot moves and the calibration surface is stationary. Since the robot motion error is generally larger than the measurement error of the laser sensor, if the robot movement calibration method is adopted, the real-time position and posture of the robot are accurately located by additional measuring equipment, which will make the calibration process more complicated; if the robot is stationary calibration scheme is adopted, plane calibration is easier to calculate the calibration surface fitting value than spherical calibration. Therefore, this application adopts the plane calibration method under the condition of robot stationary, and completes the laser ranging sensor 310 and the flange coordinate system O in a way that the robot 300 does not move and moves the plane calibration surface multiple times. F Position calibration.

[0098] Specifically, the laser ranging sensor 310 is installed in the flange coordinate system, and the calibration plane is denoted as Π. The laser ranging sensor 310 and the fixture flange coordinate system need to be calibrated to construct the sensor's position parameter constraint equation through the calibration plane. When calibrating the laser ranging sensor 310, the position of the calibration plane Π is constantly changed, and the effective measured distance value of each sensor on the plane is recorded. The position calculation method of each laser ranging sensor 310 is the same, so one of the solution processes is taken as an example.

[0099] The coordinates of the laser source position of the laser ranging sensor 310 in the flange coordinate system are: Can be expressed as a positional parameter,

[0100]

[0101] The unit vector of the laser irradiation direction is The direction parameter is expressed as,

[0102]

[0103] Assume the coordinates of the laser point on the calibration plane are The distance measurement value of laser ranging is l,

[0104]

[0105] The coordinate system O of the robot base can be calculated by measuring the plane Π R The plane equation under O R With flange coordinate system O F The translation and rotation relationship of the calibration plane can be solved in the flange coordinate system O F The following representation is denoted as

[0106] Π: Ax+By+Cz+D=0;

[0107] There are also laser points belongs to plane Π, so it satisfies the above plane equation, and we have

[0108] A(x0+l·n x )+B(y0+l·n y )+C(z0+l·n z )+D=0;

[0109] The industrial robot needs to be restricted from 6 degrees of freedom. In order to obtain accurate position parameters of the laser ranging sensor 310, the calibration times of the calibration plane are set to n>6. After moving the calibration plane n times, the plane equations of n positions can be obtained.

[0110]

[0111] Transform the above equations into a thread equations form and solve the calibration parameters (x0, y0, z0, n x ,n y ,n z )The calibration of the laser coordinate sensor is completed.

[0112] It can be understood that by accurately calibrating the position and direction of the sensor, the measurement error can be effectively eliminated, the performance of the system can be improved, and the reliability and accuracy of the coating thickness detection can be ensured, which helps to improve product quality and production efficiency. In addition, the use of the robot 300 static calibration method simplifies the calibration process, reduces the complexity, and improves the feasibility of the calibration compared to the robot 300 moving method.

[0113] In some embodiments of the present application, after obtaining the mapping relationship between the laser ranging sensor 310 and the flange coordinate system, the detection distance of the laser ranging sensor 310 is determined using a terahertz calibration plate with a coating, and further includes: the mobile robot 300 places the terahertz sensor 320 perpendicular to the terahertz calibration plate, collects the signal intensity Q0 of the terahertz sensor 320, compares the signal intensity Q0 with the preset intensity threshold Qmin, and determines whether to adjust the position of the terahertz sensor 320 according to the comparison result. When Q0≥Qmin, it is determined that the position of the terahertz sensor 320 is not adjusted, and the coordinate position of the terahertz sensor 320 at this time is recorded, and the detection distance L1 is obtained according to the coordinate position. When Q0<Qmin, it is determined that the position of the terahertz sensor 320 is adjusted, and the mobile robot 300 moves until Q0≥Qmin and records the coordinate position of the terahertz sensor 320 at this time, and the detection distance L1 is obtained according to the coordinate position.

[0114] Specifically, the terahertz sensor 320 is calibrated with the help of a terahertz signal calibration plate with uniform coating thickness. The robot 300 is moved so that the terahertz sensor 320 at the end of the industrial robot is perpendicular to the direction of the terahertz calibration plate, and the signal reception of the terahertz sensor 320 is observed. If the terahertz signal strength is too low, the distance and detection angle between the robot 300 and the terahertz calibration plate are adjusted. When the terahertz return signal strength is higher than the receiving threshold, the system records the detection distance of the robot 300.

[0115] It is understood that by detecting the signal strength of the terahertz sensor 320 in real time, the system can automatically detect and adjust the distance and angle between the terahertz sensor 320 and the detection object to ensure accurate detection distance. By comparing the signal strength with the preset strength threshold, the system can determine whether the position of the sensor needs to be adjusted, thereby minimizing measurement errors and improving the accuracy of coating thickness measurement. This helps to improve the stability and reliability of the system and ensure consistent and accurate coating thickness measurement results during the production process.

[0116] In some embodiments of the present application, after determining whether to adjust the robot 300, the measured distance of the laser ranging sensor 310 is collected and the environmental information is collected, and the measured distance is corrected according to the environmental information to obtain the corrected measured distance, including: the environmental information includes the environmental temperature W0, the environmental humidity S0 and the dust concentration H0. The first preset environmental temperature W1, the second preset environmental temperature W2 and the third preset environmental temperature W3 are preset, and W1<W2<W3. The first preset distance correction coefficient J1, the second preset distance correction coefficient J2 and the third preset distance correction coefficient J3 are preset, and J1<J2<J3. According to the relationship between the environmental temperature W0 and each preset environmental temperature, the distance correction coefficient is selected to correct the measured distance L0, and the corrected measured distance is obtained. When W1≤W0<W2, the third preset distance correction coefficient J3 is selected to correct the measured distance L0, and the corrected measured distance L0×J3 is obtained. When W2≤W0<W3, the second preset distance correction coefficient J2 is selected to correct the measured distance L0, and the corrected measured distance L0×J2 is obtained. When W3≤W0, the first preset distance correction coefficient J1 is selected to correct the measured distance L0 to obtain the corrected measured distance L0×J1.

[0117] Specifically, different preset ambient temperatures and distance correction factors are pre-set for different ambient temperature ranges. Rising temperatures cause optical components to expand, inducing minor structural changes in the optical path. These changes cause the focal position of the light to shift or change, which in turn causes inaccuracies in optical measurements. Specifically, when the component expands, the light may be defocused on the lens or reflector, resulting in a change in the focal position, causing the measurement result to be larger, and the measurement equipment will mistake the focal position of the light for being farther away than the actual position. Therefore, in high temperature environments, accurate optical measurements need to consider and correct for temperature-induced changes in the optical system to ensure the accuracy and reliability of the measurement results.

[0118] It is understood that the temperature-induced errors can be corrected through calibration, resulting in more accurate and reliable measurement results.

[0119] In some embodiments of the present application, after selecting the i-th preset distance correction coefficient Ji to correct the measured distance L0 and obtain the corrected measured distance L0×Ji, i=1, 2, 3, the measured distance is corrected according to the environmental information to obtain the corrected measured distance, and it also includes: presetting the first preset environmental humidity S1, the second preset environmental humidity S2 and the third preset environmental humidity S3, and S1<S2<S3. According to the relationship between the environmental humidity S0 and each preset environmental humidity, the distance correction coefficient is selected to perform secondary correction on the corrected measured distance L0×Ji to obtain the secondary corrected measured distance. When S1≤S0<S2, the third preset distance correction coefficient J3 is selected to perform secondary correction on the corrected measured distance L0×Ji to obtain the secondary corrected measured distance L0×Ji×J3. When S2≤S0<S3, the second preset distance correction coefficient J2 is selected to perform secondary correction on the corrected measured distance L0×Ji to obtain the secondary corrected measured distance L0×Ji×J2. When S3≤S0, the first preset distance correction coefficient J1 is selected to perform secondary correction on the corrected measured distance L0×Ji to obtain the secondary corrected measured distance L0×Ji×J1.

[0120] Specifically, when the humidity is high, the water vapor concentration in the air increases, which causes the refractive index of light to increase when passing through moisture, causing the measurement results to be biased. The sensor will mistakenly believe that the propagation speed of light is faster, resulting in a larger measured distance.

[0121] It can be understood that by selecting different distance correction coefficients for secondary correction according to actual humidity conditions, the light refraction error can be corrected more accurately to ensure the accuracy of the measured distance.

[0122] In some embodiments of the present application, after selecting the i-th preset distance correction coefficient Ji to perform secondary correction on the corrected measured distance L0×Ji, and obtaining the secondary corrected measured distance L0×Ji×Ji, i=1, 2, 3, the measured distance is corrected according to the environmental information, and the corrected measured distance is obtained, and it also includes: presetting the first preset dust concentration H1, the second preset dust concentration H2, and the third preset dust concentration H3, and H1<H2<H3. According to the magnitude relationship between the dust concentration H0 and each preset dust concentration, the distance correction coefficient is selected to perform tertiary correction on the secondary corrected measured distance L0×Ji×Ji, and the tertiary corrected measured distance is obtained. When H1≤H0<H2, the third preset distance correction coefficient J3 is selected to perform tertiary correction on the secondary corrected measured distance L0×Ji×Ji, and the tertiary corrected measured distance L0×Ji×Ji×J3 is obtained. When H2≤H0<H3, the second preset distance correction coefficient J2 is selected to perform three corrections on the measured distance L0×Ji×Ji after the second correction, and the measured distance L0×Ji×Ji×J2 after the three corrections is obtained. When H3≤H0, the first preset distance correction coefficient J1 is selected to perform three corrections on the measured distance L0×Ji×Ji after the second correction, and the measured distance L0×Ji×Ji×J1 after the three corrections is obtained.

[0123] Specifically, dust particles can interact with light, causing it to scatter or absorb, thereby weakening the light signal received by the sensor. The sensor may incorrectly estimate the propagation distance of the light to be a greater distance, which will also bias the measurement result. Specifically, in an environment with high dust concentration, light will interact with suspended dust particles on its path through the air. These particles can cause the light to scatter, causing the light to change direction during propagation, thus affecting the accuracy of the measurement.

[0124] It can be understood that by selecting different distance correction coefficients for three corrections according to the actual dust concentration, the light signal attenuation caused by dust can be corrected more accurately to ensure the accuracy of the measured distance, improve the reliability of the measurement, and reduce the error caused by dust.

[0125] In some embodiments of the present application, after selecting the i-th preset distance correction coefficient Ji to perform three corrections on the corrected measurement distance L0×Ji×Ji, and obtaining the three corrected measurement distances L0×Ji×Ji×Ji, i=1, 2, 3, the corrected measurement distance is compared with the detection distance, and it is determined whether to adjust the corrected measurement distance according to the comparison result to obtain the final measurement distance, including: when 0.9L1<L0×Ji×Ji×Ji<1.1L1, it is determined that the corrected measurement distance is not adjusted, and the corrected measurement distance L0×Ji×Ji×Ji is used as the final measurement distance. When 0.9L1≤L0×Ji×Ji×Ji or L0×Ji×Ji×Ji≥1.1L1, it is determined that the corrected measurement distance is adjusted, and the adjusted measurement distance is used as the final measurement distance.

[0126] In some embodiments of the present application, when it is determined to adjust the corrected measured distance, it includes: when 0.9L1≤L0×Ji×Ji×Ji, obtain the distance difference △L=L0×Ji×Ji×Ji-0.9L1, and adjust after expressing the distance difference △L in the flange coordinate system. When L0×Ji×Ji×Ji≥1.1L1, obtain the distance difference △L=1.1L1-L0×Ji×Ji×Ji, and adjust after expressing the distance difference △L in the flange coordinate system.

[0127] It can be understood that the corrected measurement distance L0×Ji×Ji×Ji has high accuracy and reduces measurement errors. By comparing the measured distance with the effective detection distance of the terahertz sensor 320 and adjusting the actual measurement distance according to the comparison result, it is ensured that the terahertz sensor 320 is always in the best measurement position during measurement, which improves the reliability and consistency of the detection results and is conducive to improving the detection accuracy.

[0128] In summary, the present application establishes a robot base coordinate system, calibrates the center point of the flange by the probe method, and realizes an accurate mapping relationship between the flange and the robot base coordinate system. The plane method is used to calibrate the mapping relationship between the laser ranging sensor 310 and the flange coordinate system, which improves the consistency of the data when the robot moves, and further improves the accuracy and reliability of the measurement. The detection distance of the laser ranging sensor 310 is determined by using a terahertz calibration plate with a coating, thereby realizing calibration and inspection before measurement and improving the reliability of the measurement data. During the coating detection process, the measurement direction of the laser ranging sensor 310 can be aligned with the normal vector of the surface of the object 400 to be measured through automated robot adjustment, which reduces the technical dependence of the operator and improves the accuracy and stability of the measurement. Environmental information correction is introduced to correct the measured distance, improve the accuracy of the measurement, and can automatically determine whether the corrected measured distance needs to be adjusted, ensuring the reliability of the final measurement result.

[0129] In another preferred embodiment based on the above embodiment, refer to Figure 3 As shown, this embodiment provides a terahertz-based coating thickness detection system, including:

[0130] A control computer 100, a robot 300 and a terahertz spectrometer 200; wherein the control computer 100 includes a mapping unit 110, a calibration unit 120, a collection unit 130, a judgment unit 140, a correction unit 150, an adjustment unit 160 and a measurement unit 170; the control computer 100 is electrically connected to the robot 300 and the terahertz spectrometer 200, the terahertz spectrometer 200 is electrically connected to the robot 300, and the terahertz spectrometer 300 is used to analyze spectral data;

[0131] The mapping unit 110 is configured to establish a robot base coordinate system, calibrate the center point of the flange using a probe method, and obtain a mapping relationship between the flange and the robot base coordinate system;

[0132] The mapping unit 110 is also configured to calibrate the mapping relationship between the laser ranging sensor 310 and the flange coordinate system using a plane method;

[0133] The calibration unit 120 is configured to determine the detection distance of the laser ranging sensor 310 using a terahertz calibration plate with a coating;

[0134] The acquisition unit 130 is configured to detect the object 400 after determining the detection distance; when the object 400 is detected, perform image acquisition on the object 400 and obtain modeling data of the object 400, and determine the initial sampling coordinates according to the modeling data;

[0135] The judgment unit 140 is configured to control the robot 300 to move to the initial sampling coordinates, collect the vector direction and measured distance of the laser ranging sensor 310 from the local plane of the sampling point, compare the plane target normal vector of the measured object 400 with the vector direction, and judge whether to adjust the robot 300 according to the comparison result;

[0136] wherein, obtaining an angle difference △θ between the plane target normal vector and the vector direction, comparing the angle difference △θ with a preset angle difference threshold θmax, and determining whether to adjust the robot 300 according to the comparison result;

[0137] When Δθ>θmax, it is determined that the robot 300 is to be adjusted;

[0138] When Δθ≤θmax, it is determined that the robot 300 is not to be adjusted;

[0139] The correction unit 150 is configured to collect the measured distance of the laser ranging sensor 310 and the environmental information after determining whether to adjust the robot 300, correct the measured distance according to the environmental information, and obtain the corrected measured distance;

[0140] The adjustment unit 160 is configured to compare the corrected measured distance with the detected distance, and determine whether to adjust the corrected measured distance according to the comparison result to obtain a final measured distance;

[0141] The measuring unit 170 is configured to control the terahertz sensor 320 to perform terahertz time-domain spectroscopy measurement after obtaining the final measurement distance.

[0142] It is understandable that the above-mentioned terahertz-based coating thickness detection method and system have the same beneficial effects, which will not be described in detail here.

[0143] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0144] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes 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 generate 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.

[0145] 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.

[0146] 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.

[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A coating thickness detection method based on terahertz, It is characterized in that include: Establishing a robot base coordinate system, calibrating the center point of the flange using a probe method and obtaining a mapping relationship between the flange and the robot base coordinate system; Use the plane method to calibrate the mapping relationship between the laser distance sensor and the flange coordinate system; Using a terahertz calibration plate with a coating to determine the detection distance of the laser ranging sensor; After the detection distance is determined, the object to be detected is detected; when the object to be detected is detected, an image of the object to be detected is captured and modeling data of the object to be detected is obtained, and initial sampling coordinates are determined according to the modeling data; After controlling the robot to move to the initial sampling coordinates, the vector direction and the measured distance of the laser ranging sensor from the local plane of the sampling point are collected, the plane target normal vector of the measured object is compared with the vector direction, and whether to adjust the robot is determined according to the comparison result; wherein, obtaining an angle difference △θ between the plane target normal vector and the vector direction, comparing the angle difference △θ with a preset angle difference threshold θmax, and judging whether to adjust the robot according to the comparison result; when △θ>θmax, judging to adjust the robot; When △θ≤θmax, it is determined that the robot is not to be adjusted; After determining whether to adjust the robot, collecting the measured distance of the laser ranging sensor and collecting environmental information, correcting the measured distance according to the environmental information, and obtaining the corrected measured distance; Comparing the corrected measured distance with the detected distance, and determining whether to adjust the corrected measured distance according to the comparison result to obtain a final measured distance; After the final measurement distance is obtained, controlling the terahertz sensor to perform terahertz time-domain spectroscopy measurement; The method of establishing the robot base coordinate system, calibrating the center point of the flange using a probe method, and obtaining a mapping relationship between the flange and the robot base coordinate system includes: A three-dimensional coordinate system is established with the robot base as the origin, which is recorded as the robot base coordinate system O R ; A three-dimensional coordinate system is established with the center point of the flange as the origin, which is denoted as flange coordinate system O F ; A standard probe is installed on the flange, and the probe is controlled to contact the same contact point in different postures to obtain the base coordinate system O R With the flange coordinate system O F Position conversion relationship in three-dimensional space; The method of calibrating the mapping relationship between the laser distance measuring sensor and the flange coordinate system by plane method includes: The mapping relationship between the laser ranging sensor and the flange coordinate system is constructed by constructing the position parameter constraint equation of the laser ranging sensor through the calibration plane; The position parameter constraint equation of the laser ranging sensor is constructed by the following formula: Where An, Bn, Cn represent the plane equation coefficients of the calibration plate during the nth calibration, n is the number of calibrations, and n>6; x0, y0, z0 represent the spatial coordinates to be calibrated, l n Indicates the distance measurement value of the nth laser displacement sensor; D n Represents the constant term of the plane equation of the calibration plate during the nth calibration; After obtaining the mapping relationship between the laser ranging sensor and the flange coordinate system, the method of using the coated terahertz calibration plate to determine the detection distance of the laser ranging sensor also includes: Move the robot to make the terahertz sensor perpendicular to the terahertz calibration plate, collect the signal intensity Q0 of the terahertz sensor, compare the signal intensity Q0 with a preset intensity threshold Qmin, and determine whether to adjust the position of the terahertz sensor according to the comparison result; When Q0≥Qmin, it is determined that the position of the terahertz sensor is not adjusted, and the coordinate position of the terahertz sensor at this time is recorded, and the detection distance L1 is obtained according to the coordinate position; When Q0<Qmin, it is determined that the position of the terahertz sensor is adjusted, the robot is moved until Q0≥Qmin and the coordinate position of the terahertz sensor at this time is recorded, and the detection distance L1 is obtained according to the coordinate position; The environmental information includes environmental temperature W0, environmental humidity S0 and dust concentration H0.

2. The coating thickness detection method based on terahertz according to claim 1, It is characterized in that After determining whether to adjust the robot, collecting the measured distance of the laser ranging sensor and collecting environmental information, correcting the measured distance according to the environmental information, and obtaining the corrected measured distance, including: Preset a first preset ambient temperature W1, a second preset ambient temperature W2, and a third preset ambient temperature W3, and W1<W2<W3; preset a first preset distance correction coefficient J1, a second preset distance correction coefficient J2, and a third preset distance correction coefficient J3, and J1<J2<J3; select a distance correction coefficient according to the magnitude relationship between the ambient temperature W0 and each preset ambient temperature to correct the measured distance L0, and obtain the corrected measured distance; When W1≤W0<W2, the third preset distance correction coefficient J3 is selected to correct the measured distance L0 to obtain a corrected measured distance L0×J3; When W2≤W0<W3, the second preset distance correction coefficient J2 is selected to correct the measured distance L0 to obtain a corrected measured distance L0×J2; When W3≤W0, the first preset distance correction coefficient J1 is selected to correct the measured distance L0 to obtain a corrected measured distance L0×J1.

3. The coating thickness detection method based on terahertz according to claim 2, It is characterized in that After selecting the i-th preset distance correction coefficient Ji to correct the measured distance L0 and obtaining the corrected measured distance L0×Ji, i=1, 2, 3, correcting the measured distance according to the environmental information and obtaining the corrected measured distance, the method further includes: Preset a first preset ambient humidity S1, a second preset ambient humidity S2, and a third preset ambient humidity S3, and S1<S2<S3; select a distance correction coefficient according to the magnitude relationship between the ambient humidity S0 and each preset ambient humidity to perform secondary correction on the corrected measured distance L0×Ji, and obtain the secondary corrected measured distance; When S1≤S0<S2, the third preset distance correction coefficient J3 is selected to perform secondary correction on the corrected measured distance L0×Ji to obtain the secondary corrected measured distance L0×Ji×J3; When S2≤S0<S3, the second preset distance correction coefficient J2 is selected to perform secondary correction on the corrected measured distance L0×Ji to obtain the secondary corrected measured distance L0×Ji×J2; When S3≤S0, the first preset distance correction coefficient J1 is selected to perform a secondary correction on the corrected measured distance L0×Ji to obtain the secondary corrected measured distance L0×Ji×J1.

4. The coating thickness detection method based on terahertz according to claim 3, It is characterized in that After selecting the i-th preset distance correction coefficient Ji to perform secondary correction on the corrected measured distance L0×Ji, and obtaining the secondary corrected measured distance L0×Ji×Ji, i=1, 2, 3, the correcting the measured distance according to the environmental information to obtain the corrected measured distance also includes: Preset a first preset dust concentration H1, a second preset dust concentration H2 and a third preset dust concentration H3, and H1<H2<H3; select a distance correction coefficient according to the magnitude relationship between the dust concentration H0 and each preset dust concentration to perform a third correction on the measured distance L0×Ji×Ji after the second correction, and obtain the measured distance after the third correction; When H1≤H0<H2, the third preset distance correction coefficient J3 is selected to perform a third correction on the measured distance L0×Ji×Ji after the second correction, so as to obtain the measured distance L0×Ji×Ji×J3 after the third correction; When H2≤H0<H3, the second preset distance correction coefficient J2 is selected to perform a third correction on the measured distance L0×Ji×Ji after the second correction to obtain the measured distance L0×Ji×Ji×J2 after the third correction; When H3≤H0, the first preset distance correction coefficient J1 is selected to perform a third correction on the measured distance L0×Ji×Ji after the second correction to obtain the measured distance L0×Ji×Ji×J1 after the third correction.

5. The coating thickness detection method based on terahertz according to claim 4, It is characterized in that After selecting the i-th preset distance correction coefficient Ji to perform three corrections on the corrected measured distance L0×Ji×Ji, and obtaining the three corrected measured distances L0×Ji×Ji×Ji, i=1, 2, 3, the corrected measured distance is compared with the detection distance, and whether to adjust the corrected measured distance is determined according to the comparison result to obtain the final measured distance, including: When 0.9L1<L0×Ji×Ji×Ji<1.1L1, it is determined that the corrected measurement distance is not adjusted, and the corrected measurement distance L0×Ji×Ji×Ji is used as the final measurement distance; When 0.9L1≤L0×Ji×Ji×Ji or L0×Ji×Ji×Ji≥1.1L1, it is determined that the corrected measurement distance is adjusted, and the adjusted measurement distance is used as the final measurement distance.

6. The coating thickness detection method based on terahertz according to claim 5, It is characterized in that When determining to adjust the calibrated measurement distance, including: When 0.9L1≤L0×Ji×Ji×Ji, obtain the distance difference △L=L0×Ji×Ji×Ji-0.9L1, and adjust after expressing the distance difference △L in the flange coordinate system; When L0×Ji×Ji×Ji≥1.1L1, the distance difference △L=1.1L1-L0×Ji×Ji×Ji is obtained, and the distance difference △L is expressed in the flange coordinate system and then adjusted.

7. A terahertz-based coating thickness detection system, using the method according to any one of claims 1 to 6, It is characterized in that include: A control computer, a robot and a terahertz spectrometer; wherein the control computer comprises a mapping unit, a calibration unit, a collection unit, a judgment unit, a correction unit, an adjustment unit and a measurement unit; the control computer is electrically connected to the robot and the terahertz spectrometer, the terahertz spectrometer is electrically connected to the robot, and the terahertz spectrometer is used to analyze spectral data; The mapping unit is configured to establish a robot base coordinate system, calibrate the center point of the flange using a probe method, and obtain a mapping relationship between the flange and the robot base coordinate system; The mapping unit is further configured to calibrate the mapping relationship between the laser ranging sensor and the flange coordinate system using a plane method; The calibration unit is configured to determine the detection distance of the laser ranging sensor using a terahertz calibration plate with a coating; The acquisition unit is configured to detect the object to be detected after determining the detection distance; when the object to be detected is detected, image acquisition is performed on the object to be detected and modeling data of the object to be detected is obtained, and initial sampling coordinates are determined according to the modeling data; The judgment unit is configured to control the robot to move to the initial sampling coordinates, collect the vector direction and measured distance of the laser ranging sensor from the local plane of the sampling point, compare the plane target normal vector of the measured object with the vector direction, and judge whether to adjust the robot according to the comparison result; wherein, obtaining an angle difference △θ between the plane target normal vector and the vector direction, comparing the angle difference △θ with a preset angle difference threshold θmax, and determining whether to adjust the robot according to the comparison result; When △θ>θmax, it is determined that the robot should be adjusted; When △θ≤θmax, it is determined that the robot is not to be adjusted; The correction unit is configured to collect the measured distance of the laser ranging sensor and the environmental information after determining whether to adjust the robot, correct the measured distance according to the environmental information, and obtain the corrected measured distance; The adjustment unit is configured to compare the corrected measurement distance with the detection distance, and determine whether to adjust the corrected measurement distance according to the comparison result to obtain a final measurement distance; The measuring unit is configured to control the terahertz sensor to perform terahertz time-domain spectroscopy measurement after obtaining the final measurement distance.