OCT light path compensation method based on laser galvanometer welding and application

By constructing a surface fitting model and performing optical path compensation during galvanometer welding, the melting data error problem caused by OCT measurement laser optical path changes in galvanometer welding is solved, and more accurate welding melting depth detection is achieved.

CN118917047APending Publication Date: 2024-11-08WUHAN NEWLAZ INTELLIGENT TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410920256.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

During the galvanometer welding process, the OCT measurement laser changes in the optical path of the measurement laser due to the deflection of the galvanometer and the focusing of the optical path, resulting in large errors between the melting depth data and the actual data.

Method used

By controlling the movement of the laser beam on the galvanometer amplitude, obtain the galvanometer coordinates and the height information of the measured object as template data, perform polynomial fitting to construct the surface fitting model, calculate the optical path compensation value and compensate the melting depth data, and obtain the final measurement data.

Benefits of technology

The accuracy of laser welding depth detection is improved, and the error mean is within the preset threshold, which enhances the accuracy and stability of the detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118917047A_ABST
    Figure CN118917047A_ABST
Patent Text Reader

Abstract

The invention discloses an OCT (optical coherence tomography) light path compensation method based on laser galvanometer welding, which comprises the following steps of: controlling a laser beam to move relative to a measured object on a plane on which a galvanometer breadth is positioned, and acquiring galvanometer coordinates of a calibrated position of the laser beam on the galvanometer breadth and corresponding height information of the measured object as template data; performing polynomial fitting on the template data, and constructing a curved surface fitting model representing the relation between the height information of the measured object and the coordinate of the galvanometer; obtaining galvanometer coordinates of the laser beam at any position on a galvanometer breadth when the fusion depth data is measured, and obtaining a light path compensation value of the laser beam at any position according to the galvanometer coordinates and the curved surface fitting model; and compensating the fusion depth data according to the light path compensation value to obtain final measurement data. The problem that during galvanometer welding, due to galvanometer deflection and light path focusing, the optical path of OCT measuring laser changes at different positions, and large errors exist between measured fusion depth data and actual data can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of microscopic detection technology, and in particular to an OCT optical path compensation method based on laser galvanometer welding, an OCT optical path compensation device based on laser galvanometer welding, an electronic device and a computer-readable storage medium. Background Art

[0002] Laser welding is a high-precision and efficient welding method that is widely used in the connection and processing of various metal materials. However, in actual application, the welding quality is affected by many factors, such as process parameter settings, metal surface cleanliness, etc. These factors may cause a large deviation between the weld penetration depth and the expected penetration depth, which has an adverse effect on the welding quality. Therefore, in the laser welding process, real-time detection of the penetration depth is particularly important.

[0003] Optical coherence tomography (OCT) penetration measurement device came into being. Based on coherent optical tomography technology, it can detect the weld penetration in real time during the welding process. By using the OCT device, the formation of the molten pool can be monitored in real time, so that the welding process and welding method can be adjusted in time to ensure the welding quality.

[0004] However, in actual applications, when welding with galvanometers, the OCT measurement laser passes through the galvanometer optical path, and the galvanometer deflects and focuses the optical path, resulting in changes in the laser optical path measured at different positions, which in turn causes a large error between the measured penetration depth data and the actual data. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides an OCT optical path compensation method and application based on laser galvanometer welding, which can solve the problem that during galvanometer welding, the OCT measurement laser causes the optical path of the laser measured at different positions to change due to the galvanometer deflection and optical path focusing, resulting in a large error between the measured penetration depth data and the actual data.

[0006] Specifically, an embodiment of the present invention provides an OCT optical path compensation method based on laser galvanometer welding, including: controlling the laser beam to move relative to the object to be measured on the plane where the galvanometer format is located, obtaining the galvanometer coordinates of the laser beam at the calibrated position on the galvanometer format and the height information of the object to be measured corresponding to the galvanometer coordinates as template data; performing polynomial fitting on the template data, and constructing a surface fitting model characterizing the relationship between the height information of the object to be measured and the galvanometer coordinates according to the results of the majority of polynomial fittings; obtaining the galvanometer coordinates at any position on the galvanometer format when the laser beam measures the penetration data, and calculating the optical path compensation value of the laser beam at any position according to the galvanometer coordinates and the surface fitting model; compensating the penetration data according to the optical path compensation value to obtain the final measurement data characterizing the laser welding penetration detection result.

[0007] In one embodiment of the present invention, the surface fitting model characterizing the relationship between the height information of the object to be measured and the galvanometer coordinates is constructed based on the results of the majority polynomial fitting, including: fitting the X-direction data and the Y-direction data in the galvanometer coordinates respectively, and obtaining the degree of fitting of the trend line to the data; when the degree of fitting reaches a preset threshold, a binary quadratic linear surface is constructed based on the X-direction data and the Y-direction data; and a preset confidence level is set to evaluate the binary quadratic linear surface to obtain a target fitting result.

[0008] In one embodiment of the present invention, the optical path compensation value of the laser beam at any position is calculated based on the galvanometer coordinates and the surface fitting model, including: obtaining the height information of the object to be measured at the zero point position of the surface fitting model, and calculating the fitting coefficient of the surface fitting model according to the galvanometer coordinates by using the least squares method; and calculating the optical path compensation value of the laser beam at any position according to the height information of the object to be measured at the zero point position and the fitting coefficient.

[0009] In one embodiment of the present invention, after compensating the penetration data according to the optical path compensation value, it also includes: randomly selecting a number of compensated data for verification, using the compensated data as the measurement value, comparing the error between the measurement value and the theoretical value, and obtaining the final measurement data when the error is within a preset threshold range.

[0010] In one embodiment of the present invention, multiple groups of data under the same conditions are obtained through multiple groups of repeated measurement experiments, the error of each group of data is calculated, and the average error of each group of data is compared. When the average error is less than the preset threshold, the final measurement data is obtained.

[0011] In addition, an embodiment of the present invention proposes an OCT optical path compensation device based on laser galvanometer welding, including: a template data acquisition module, used to control the movement of the laser beam relative to the object to be measured on the plane where the galvanometer format is located, and obtain the galvanometer coordinates of the laser beam at the calibrated position on the galvanometer format and the height information of the object to be measured corresponding to the galvanometer coordinates as template data; a fitting model establishment module, used to perform polynomial fitting on the template data, and construct a surface fitting model that characterizes the relationship between the height information of the object to be measured and the galvanometer coordinates according to the results of the majority of polynomial fittings; an optical path compensation value acquisition module, used to obtain the galvanometer coordinates at any position on the galvanometer format when the laser beam measures the penetration data, and calculate the optical path compensation value of the laser beam at any position according to the galvanometer coordinates and the surface fitting model; a final measurement data acquisition module, used to compensate the penetration data according to the optical path compensation value, and obtain the final measurement data characterizing the laser welding penetration detection result.

[0012] In one embodiment of the present invention, the fitting model establishment module is specifically used to: respectively fit the X-direction data and the Y-direction data in the galvanometer coordinates, and obtain the degree of fitting of the trend line to the data; when the degree of fitting reaches a preset threshold, construct a binary quadratic linear surface according to the X-direction data and the Y-direction data; set a preset reliability to evaluate the binary quadratic linear surface to obtain a target fitting result.

[0013] In one embodiment of the present invention, the optical path compensation value obtaining module is specifically used for: obtaining the height information of the object to be measured at the zero point position of the surface fitting model, and calculating the fitting coefficient of the surface fitting model according to the galvanometer coordinates using the least squares method; and calculating the optical path compensation value of the laser beam at any position according to the height information of the object to be measured at the zero point position and the fitting coefficient.

[0014] Furthermore, an embodiment of the present invention proposes an electronic device, comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the computer program is executed by the processing unit, the processing unit performs the steps of the OCT optical path compensation method based on laser galvanometer welding as described in any one of the above embodiments.

[0015] Furthermore, an embodiment of the present invention provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the steps of the OCT optical path compensation method based on laser galvanometer welding as described in any of the above embodiments.

[0016] It can be seen from the above that, compared with the prior art, the above solution conceived by the present invention can have one or more of the following beneficial effects:

[0017] (1) By applying optical coherence tomography (OCT) technology to the field of weld penetration detection, the laser beam is collected at the calibrated position of the galvanometer to obtain the reflection height data of the object under test. Then, these experimental data are processed through the mathematical method of quadratic surface fitting to calculate the theoretical Z value surface. Finally, the actual measurement data is compared with the theoretical value, and compensation is performed based on the comparison results to obtain a more accurate Z value.

[0018] (2) After the calibration is completed, several random coordinate points are selected for verification. By comparing the errors between the measured values ​​and the theoretical values, the results of the mean error within the preset threshold are obtained to verify the accuracy of the method. The average error, maximum error and minimum error of the experimental results are analyzed by repeated measurement experiments, which improves the accuracy of the experimental results.

[0019] Other features of the present invention will become apparent from the following detailed description with reference to the accompanying drawings. It should be understood, however, that the drawings are designed for illustrative purposes only and are not intended to limit the scope of the present invention. It should also be understood that, unless otherwise indicated, the drawings are not necessarily drawn to scale and are intended only to conceptually illustrate the structures and processes described herein. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 A flow chart of an OCT optical path compensation method based on laser galvanometer welding provided in an embodiment of the present invention;

[0022] Figure 2 A schematic diagram of a measuring laser passing through a welding galvanometer mechanism provided in an embodiment of the present invention;

[0023] Figure 3 A schematic diagram of polynomial fitting of Y-direction and X-direction data is provided for an embodiment of the present invention;

[0024] Figure 4 A schematic diagram of a fitting surface provided by an embodiment of the present invention;

[0025] Figure 5 A schematic diagram of the optical path compensation effect provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described below with reference to the accompanying drawings and in combination with the embodiments.

[0027] In order to enable ordinary technicians in the field to better understand the technical solution of the present invention, the technical solution 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 only part of the embodiments of the present invention, rather than all the embodiments, and all should belong to the protection scope of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are applicable to distinguishing similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition. The terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or are proprietary to these processes, methods, products or devices.

[0029] It should also be noted that the division of multiple embodiments in the present invention is only for the convenience of description and should not constitute a special limitation. The features in various embodiments can be combined and referenced to each other without contradiction.

[0030] [First embodiment]

[0031] like Figure 1 As shown, the first embodiment of the present invention proposes an OCT optical path compensation method based on laser galvanometer welding, comprising the following steps: step S1, controlling the laser beam to move relative to the object to be measured on the plane where the galvanometer format is located, and obtaining the galvanometer coordinates of the laser beam at the calibrated position on the galvanometer format and the height information of the object to be measured corresponding to the galvanometer coordinates as template data; step S2, performing polynomial fitting on the template data, and constructing a surface fitting model characterizing the relationship between the height information of the object to be measured and the galvanometer coordinates according to the results of the majority of polynomial fittings; step S3, obtaining the galvanometer coordinates at any position on the galvanometer format when the laser beam measures the penetration data, and calculating the optical path compensation value of the laser beam at any position according to the galvanometer coordinates and the surface fitting model; step S4, compensating the penetration data according to the optical path compensation value to obtain the final measurement data characterizing the laser welding penetration detection result.

[0032] In step S1, if Figure 2As shown, for example, a horizontal aluminum plate (with a smooth surface) is placed under the galvanometer, and then the height value of the aluminum plate measured by the laser beam at different positions under the galvanometer format is obtained by the OCT penetration depth measurement device. For example, the height Z value is taken every time the step is 15 mm in the XY single direction to obtain the following data until the height Z value of the entire 2D galvanometer format is obtained (the galvanometer format used here is 180 mm*180 mm):

[0033] X Y Z -90 -90 -11.87 -90 -75 -10.561 -90 -60 -9.526 -90 -45 -8.766 -90 -30 -8.192 -90 -15 -7.93 -90 0 -7.968 -90 15 -8.254 -90 30 -8.766 -90 45 -9.651 -90 60 -10.748 -90 75 -12.095 -90 90 -13.516 -75 -90 -10.773 -75 -75 -9.377 -75 -60 -8.254 -75 -45 -7.469 -75 -30 -6.92 -75 -15 -6.596 -75 0 -6.633 -75 15 -6.845 ... ... ....

[0034] In step S2, for example, 169 sets of corresponding XYZ data are obtained according to a certain method. In order to conduct a more in-depth analysis of these data, we perform polynomial fitting on the Y-direction and X-direction data respectively. Figure 3 The fitting result of the Y-direction data is: y = -0.0196x^2 + 0.6629x - 6.6247, R^2 = 0.9998. The fitting result of the X-direction data is: y = -0.0157x^2 + 0.5311x - 5.4697, R^2 = 0.9996.

[0035] The significance of the R-squared value is to measure the degree of fit of the trend line. The higher the degree of fit, the more reliable the trend line is. In this example, the R-squared values ​​of the trend lines are very close to 1, which means that these trend lines fit the data very well and are very reliable. It should be noted that the R-squared value is only a measure of the degree of fit of the trend line, and it does not represent the actual meaning of the trend line. For example, even if the R-squared value is very high, if the trend line cannot explain the changes in the data in actual application, then this trend line will not have much practical value.

[0036] For example, when inserting linear analysis in Matlab, the confidence level of the binary quadratic linear surface fitting is 95%, and the R-squared fit is also 0.9994, which shows that the binary quadratic linear surface fitting model is very reliable and has a high degree of explanation for the data, which is an excellent fitting result.

[0037] In step S3, combining Figure 4 As shown in the figure, a surface can be found through data fitting, and this surface can be as close to the original data points as possible. In this process, the black dots represent the fitting data used, and the distribution of these data points on the surface intuitively reflects the quality of the fitting results.

[0038] By observing the distribution of black dots on the fitting surface, we can find that most of the data points are closely distributed on the surface. This shows that the fitting surface captures the inherent law of the data points to a large extent, and the fitting result is relatively satisfactory. The optical path compensation value can be calculated by the following binary quadratic formula: z = ax^2 + by^2 + cxy + dx + ey + f; where "a", "b", "c", "d", "e", and "f" are the coefficients to be solved. This formula describes a quadratic surface, and by adjusting the coefficients, it can be matched with the actual optical path deviation.

[0039] By measuring the reflection position of the laser beam on the galvanometer, a set of experimental data can be obtained. The coefficients in the above formula can be solved based on this set of data using mathematical methods such as the least squares method. Once the coefficients are solved, the optical path compensation value of the laser beam at any position can be calculated based on the formula.

[0040] In practical applications, the size and shape of the galvanometer may affect the accuracy of the optical path. Therefore, when calculating the optical path compensation value, it is necessary to consider the effect of the size and shape of the galvanometer on the optical path. Generally, the increase in the size of the galvanometer makes the calculation of the optical path compensation value more complicated.

[0041] In addition, when calculating the optical path compensation value, the propagation speed of the laser beam and the movement speed of the galvanometer need to be considered. Due to the relative speed between the laser beam and the galvanometer, the optical path compensation value actually measured may have a certain error with the theoretical value. In order to solve this problem, this embodiment adds a quadratic curve interpolation method on the basis of linear interpolation to make the optical path compensation value more accurate.

[0042] like Figure 5 As shown in the figure, a more accurate optical path compensation value can be obtained through the above method. Applying this compensation value to actual measurement can effectively improve the accuracy of the optical path of the laser beam after it passes through the galvanometer. In practical applications, it is necessary to adjust the coefficients in the formula according to the specific situation to achieve the best optical path compensation effect. In this way, after the laser passes through the galvanometer, a plane is measured. The height plane finally obtained is similar to a quadratic surface. The quadratic surface can be compensated to a plane through the optical path compensation value, thereby meeting the needs of high-precision measurement.

[0043] In step S4, after obtaining the fitting surface, it is necessary to find the zero point position of the surface. The zero point position is the zero point (0, 0) of the galvanometer two-dimensional coordinate system. The Z values ​​of other positions in the galvanometer two-dimensional coordinate system will be close to the Z value of the zero point position after compensation. A similar method can be used to calculate the theoretical Z value of the zero point position, as follows: Z0=a0^2+b0^2+c0+d0+e0+f. According to the above calculation results, the compensated Z value can be obtained. The compensated Z value can be calculated by the following formula: Z2=Z-Z1+Z0, thus realizing soft compensation of the measuring laser optical path. This method can effectively reduce the measurement error and improve the measurement accuracy.

[0044] In order to verify whether the compensated measurement result is closer to the true value, for example, the compensated measurement data is compared with the original measurement data. If the compensated data deviates less from the true value, it means that the compensation method is effective. By fitting the quadratic surface and calculating the zero point position of the measurement data, the compensated Z value can be obtained. This method can effectively reduce measurement errors, improve measurement accuracy, and provide strong support for various measurement applications. In practical applications, it is also necessary to adjust the fitting parameters and compensation formula according to the specific situation to achieve the best compensation effect.

[0045] For example, after completing the calibration, in order to verify the accuracy of the method, ten random coordinate points were selected for verification. By comparing the error between the measured value and the theoretical value, the result was obtained that the mean error was 0.0811. This error range is within the acceptable range.

[0046]

[0047] In order to improve the accuracy of the experimental results, 72 points with uniform intervals (covering the entire 180*180 range) were selected on the plane to conduct three sets of repeated measurement experiments, and the average error, maximum error and minimum error of the experimental results were analyzed.

[0048] Before conducting the experiment, it is necessary to ensure the accuracy and stability of the experimental equipment to eliminate the influence of other factors on the experimental results. During the experiment, we measured three sets of data under the same conditions, recorded the corresponding data, and then calculated the error of each set of data based on the data.

[0049] The first set of data:

[0050] Average error: 0.110151781

[0051] Maximum error: 0.325308159

[0052] Minimum error: 0.002961044

[0053] The second set of data:

[0054] Average error: 0.124712628

[0055] Maximum error: 0.339005784

[0056] Minimum error: 0.000885436

[0057] The third set of data:

[0058] Average error: 0.14105781

[0059] Maximum error: 0.352703408

[0060] Minimum error: 0.001566392

[0061] By comparing the three sets of data, it can be found that their average errors are all below 0.15, indicating that the experimental results have high reliability. In addition, it can be observed that the results of repeated measurements are relatively close, indicating the stability and reliability of this method, providing a new technical means for achieving accurate OCT measurement, and is expected to be widely used in related fields.

[0062] In summary, an OCT optical path compensation method based on laser galvanometer welding proposed in an embodiment of the present invention applies optical coherence tomography (OCT) technology to the field of weld penetration detection, collects the laser beam at the calibration position of the galvanometer to obtain the reflection height data of the object under test, and then processes these experimental data through the mathematical method of quadratic surface fitting to calculate the theoretical Z value surface, and finally compares the actual measurement data with the theoretical value, and compensates according to the comparison result to obtain a more accurate Z value. After the calibration is completed, several random coordinate points are selected for verification, and by comparing the error between the measured value and the theoretical value, the result of the error mean within the preset threshold is obtained to verify the accuracy of the method, and the average error, maximum error and minimum error of the experimental results are analyzed by repeated measurement experiments, thereby improving the accuracy of the experimental results.

[0063] [Second embodiment]

[0064] The second embodiment of the present invention proposes an OCT optical path compensation device based on laser galvanometer welding, for example, including: a template data acquisition module, a fitting model establishment module, an optical path compensation value acquisition module, and a final measurement data acquisition module.

[0065] Among them, the template data acquisition module is used to control the movement of the laser beam relative to the object to be measured on the plane where the galvanometer format is located, and obtain the galvanometer coordinates of the laser beam on the galvanometer format where the laser beam is calibrated and the height information of the object to be measured corresponding to the galvanometer coordinates as template data. The fitting model establishment module is used to perform polynomial fitting on the template data, and construct a surface fitting model that characterizes the relationship between the height information of the object to be measured and the galvanometer coordinates based on the results of the majority polynomial fitting. The optical path compensation value acquisition module is used to obtain the galvanometer coordinates at any position on the galvanometer format when the laser beam measures the penetration data, and calculate the optical path compensation value of the laser beam at any position based on the galvanometer coordinates and the surface fitting model. The final measurement data acquisition module is used to compensate the penetration data according to the optical path compensation value to obtain the final measurement data that characterizes the laser welding penetration detection result.

[0066] Furthermore, the fitting model establishment module is specifically used to: respectively fit the X-direction data and the Y-direction data in the galvanometer coordinates, and obtain the degree of fitting of the trend line to the data; when the degree of fitting reaches a preset threshold, construct a binary quadratic linear surface according to the X-direction data and the Y-direction data; set a preset reliability to evaluate the binary quadratic linear surface to obtain a target fitting result.

[0067] Furthermore, the optical path compensation value obtaining module is specifically used for: obtaining the height information of the object to be measured at the zero point position of the surface fitting model, and calculating the fitting coefficient of the surface fitting model according to the galvanometer coordinates using the least squares method; and calculating the optical path compensation value of the laser beam at any position according to the height information of the object to be measured at the zero point position and the fitting coefficient.

[0068] The OCT optical path compensation method based on laser galvanometer welding implemented by the OCT optical path compensation device based on laser galvanometer welding disclosed in the second embodiment of the present invention is as described in the first embodiment, so it will not be described in detail here. Optionally, the various modules and the above-mentioned other operations or functions in the second embodiment are respectively for implementing the method described in the first embodiment, and the beneficial effects of this embodiment are the same as those of the first embodiment, and for the sake of brevity, they are not repeated here.

[0069] [Third embodiment]

[0070] The third embodiment of the present invention proposes an electronic device, for example, comprising: at least one processing unit, and at least one storage unit, wherein the storage unit stores a computer program, and when the computer program is executed by the processing unit, the processing unit executes the steps of the above method, and the beneficial effects of the electronic device provided by this embodiment are the same as the beneficial effects of the OCT optical path compensation method based on laser galvanometer welding provided by the first embodiment.

[0071] [Fourth embodiment]

[0072] The third embodiment of the present invention proposes a computer-readable storage medium, which is a non-volatile memory and stores computer-readable instructions. When the computer-readable instructions are executed by one or more processors, for example, the one or more processors execute the OCT optical path compensation method based on laser galvanometer welding described in the first embodiment. The specific OCT optical path compensation method based on laser galvanometer welding can refer to the method described in the first embodiment, and will not be repeated here for the sake of brevity. The beneficial effects of the computer-readable storage medium provided in this embodiment are the same as the beneficial effects of the OCT optical path compensation method based on laser galvanometer welding provided in the first embodiment.

[0073] In addition, it can be understood that the aforementioned embodiments are only exemplary descriptions of the present invention. Under the premise that the technical features do not conflict, the structures do not contradict, and the purpose of the present invention is not violated, the technical solutions of the various embodiments can be arbitrarily combined and used in combination.

[0074] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and / or methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units / modules is only a logical function division. There may be other division methods in actual implementation, such as multiple units or modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0075] The units / modules described as separate components may or may not be physically separated, and the components shown as units / modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units / modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0076] In addition, each functional unit / module in each embodiment of the present invention may be integrated into one processing unit / module, or each unit / module may exist physically separately, or two or more units / modules may be integrated into one unit / module. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of hardware plus software functional units / modules.

[0077] 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An OCT optical path compensation method based on laser galvanometer welding, characterized in that: include: Control the laser beam to move relative to the object to be measured on the plane where the galvanometer format is located, and obtain the galvanometer coordinates of the calibrated position of the laser beam on the galvanometer format and the height information of the object to be measured corresponding to the galvanometer coordinates as template data; Performing polynomial fitting on the template data, and constructing a surface fitting model that characterizes the relationship between the height information of the object to be measured and the galvanometer coordinates according to the results of the majority of polynomial fittings; Acquire the galvanometer coordinates at any position on the galvanometer plane when the laser beam measures the penetration data, and calculate the optical path compensation value of the laser beam at any position according to the galvanometer coordinates and the surface fitting model; The penetration data is compensated according to the optical path compensation value to obtain final measurement data representing the laser welding penetration detection result.

2. The OCT optical path compensation method based on laser galvanometer welding according to claim 1 is characterized in that: The step of constructing a surface fitting model that characterizes the relationship between the height information of the object to be measured and the galvanometer coordinates according to the result of the majority polynomial fitting includes: Fitting the X-direction data and the Y-direction data in the galvanometer coordinates respectively, and obtaining the fitting degree of the trend line to the data; When the fitting degree reaches a preset threshold, constructing a binary quadratic linear surface according to the X-direction data and the Y-direction data; A preset reliability is set to evaluate the binary quadratic linear surface to obtain a target fitting result.

3. The OCT optical path compensation method based on laser galvanometer welding according to claim 1 is characterized in that: The optical path compensation value of the laser beam at any position is calculated according to the galvanometer coordinates and the surface fitting model, including: Acquire the height information of the object under test at the zero point of the surface fitting model, and calculate the fitting coefficient of the surface fitting model by using the least square method according to the galvanometer coordinates; The optical path compensation value of the laser beam at any position is calculated based on the height information of the object to be measured at the zero point position and the fitting coefficient.

4. The OCT optical path compensation method based on laser galvanometer welding according to claim 1, characterized in that: After compensating the penetration data according to the optical path compensation value, the method further includes: A number of compensated data are randomly selected for verification, the compensated data are used as measurement values, the errors between the measurement values ​​and the theoretical values ​​are compared, and the final measurement data is obtained when the errors are within a preset threshold range.

5. The OCT optical path compensation method based on laser galvanometer welding according to claim 4 is characterized in that: Multiple groups of data under the same conditions are obtained through multiple groups of repeated measurement experiments, the error of each group of data is calculated, and the average error of each group of data is compared. When the average error is less than the preset threshold, the final measurement data is obtained.

6. An OCT optical path compensation device based on laser galvanometer welding, characterized in that: include: A template data acquisition module is used to control the movement of the laser beam relative to the object to be measured on the plane where the galvanometer format is located, and obtain the galvanometer coordinates of the calibrated position of the laser beam on the galvanometer format and the height information of the object to be measured corresponding to the galvanometer coordinates as template data; A fitting model building module, used for performing polynomial fitting on the template data, and constructing a surface fitting model representing the relationship between the height information of the object to be measured and the galvanometer coordinates according to the results of the majority of polynomial fittings; An optical path compensation value obtaining module is used to obtain the galvanometer coordinates at any position on the galvanometer format when the laser beam measures the penetration data, and calculate the optical path compensation value of the laser beam at any position according to the galvanometer coordinates and the surface fitting model; The final measurement data obtaining module is used to compensate the penetration data according to the optical path compensation value to obtain the final measurement data representing the laser welding penetration detection result.

7. The OCT optical path compensation device based on laser galvanometer welding according to claim 6, characterized in that: The fitting model establishment module is specifically used to: fit the X-direction data and the Y-direction data in the galvanometer coordinates respectively, and obtain the degree of fitting of the trend line to the data; when the degree of fitting reaches a preset threshold, construct a binary quadratic linear surface according to the X-direction data and the Y-direction data; set a preset reliability to evaluate the binary quadratic linear surface to obtain a target fitting result.

8. The OCT optical path compensation device based on laser galvanometer welding according to claim 6, characterized in that: The optical path compensation value obtaining module is specifically used for: obtaining the height information of the object to be measured at the zero point position of the surface fitting model, and calculating the fitting coefficient of the surface fitting model according to the galvanometer coordinates using the least squares method; and calculating the optical path compensation value of the laser beam at any position according to the height information of the object to be measured at the zero point position and the fitting coefficient.

9. An electronic device, characterized in that: It includes at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the computer program is executed by the processing unit, the processing unit executes the steps of the OCT optical path compensation method based on laser galvanometer welding as described in any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the steps of the OCT optical path compensation method based on laser galvanometer welding as described in any one of claims 1-5.

Citation Information

Cited By

  • Laser galvanometer automatic focus searching method based on polynomial regression algorithm

    CN120669383A

  • A laser galvanometer automatic focusing method based on polynomial regression algorithm

    CN120669383B

  • Galvanometer laser welding method and device and galvanometer laser welding system

    CN121535327A