Optical calibration method and related device

Through the industrial control computer control, the detection of light traversal through multiple calibration points, and the amplitude of the input electrical signal of the liquid lens is adjusted, which solves the problem of inaccurate functional relationship caused by human error in the prior art, and improves the accuracy and stability of laser focus measurement.

CN118032288BActive Publication Date: 2025-01-07GUANGZHOU DILIGINE PHOTONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410167371.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-06
Publication Date
2025-01-07
Estimated Expiration
2044-02-06

AI Technical Summary

Technical Problem

During the calibration process, the existing laser focus measurement system has inaccurate the functional relationship between the input current and the focal length of the liquid lens.

Method used

The detection light is controlled by the industrial control computer and traverses multiple calibration points, adjusts the input electrical signal amplitude of the liquid lens, and obtains multiple light intensity values ​​of the reflected light. Based on these data, the calibration function between the input electrical signal amplitude and the focal length of the liquid lens is determined. Relationship, avoid artificial adjustment of defocusing quantity and improve accuracy.

Benefits of technology

The accuracy of the functional relationship between the laser convergence focus point and the surface distance of the object to be measured and the amplitude of the input electrical signal of the liquid lens is improved, artificial error is reduced, and measurement stability and accuracy are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118032288B_ABST
    Figure CN118032288B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an optical calibration method and related device, which includes: S1: selecting multiple calibration points on the surface of the object to be measured; S2: under the premise of a first defocus amount, controlling the laser head to emit light to traverse the multiple calibration points, and adjusting the input current of the liquid lens in the process of controlling the laser head to emit light to traverse the multiple calibration points; S3: in the process of controlling the laser head to emit light to traverse the multiple calibration points, obtaining multiple first light intensity values ​​of the reflected light and multiple first electrical signal amplitudes of the input current of the liquid lens corresponding to the multiple first light intensity values; S4: determining the second electrical signal amplitude based on the multiple second light intensity values ​​and the multiple first electrical signal amplitudes; S5: adjusting the first defocus amount, repeating S2-S5 until multiple groups of data are obtained; S6: determining the functional relationship between the defocus amount and the electrical signal amplitude based on the multiple groups of data. It is beneficial to improve the accuracy of the functional relationship between the defocus amount and the input current of the liquid lens.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of laser processing technology, and in particular to an optical calibration method and related devices. Background Art

[0002] The laser focus measurement system calibration process refers to a series of experiments to clarify the functional relationship between the liquid lens input current parameters and the actual laser focal length. A point on the material is randomly selected, and the input current of the liquid lens is periodically changed from small to large at a certain defocus amount, so that the system can collect the reflected light intensity under the corresponding input current. When the reflected light intensity reaches the maximum value, the input current and focal length of the corresponding liquid lens form a set of control relationship data. Multiple experiments are performed with a single change in the defocus amount to obtain multiple sets of control relationship data; then another point on the material is randomly selected and the above process is repeated to obtain multiple sets of control relationship data; based on these control relationship data, the functional relationship between the defocus amount and the input current of the liquid lens is determined, and the calibration effect is achieved.

[0003] In the above process, experiments are carried out at the same determined defocus amount for different points, which means that the experimenter is required to manually adjust the defocus amount. In the process of actually setting the same defocus amount for different points, due to the errors introduced by the experimenter's operation, there will be differences in the set defocus amounts, resulting in the functional relationship between the defocus amount and the input current of the liquid lens determined based on the control relationship data obtained in this way is inaccurate. Summary of the invention

[0004] The present application proposes an optical calibration method and related devices, which are beneficial to improving the accuracy of the functional relationship between the distance between the convergence focus of the processing laser coaxial with the detection light output path through the liquid lens and the surface of the object to be measured (i.e., the defocus amount) and the input electrical signal amplitude of the liquid lens.

[0005] This application is implemented using the following technical solutions.

[0006] In a first aspect, an embodiment of the present application provides an optical calibration method, using an industrial computer. The industrial computer performs the following operations:

[0007] S1: Select multiple calibration points on the surface of the object to be measured;

[0008] S2: Under the premise that the distance between the convergence focus of the processing laser coaxial with the light path of the detection light passing through the liquid lens and the surface of the object to be measured is a first determined value, the detection light is controlled to pass through the liquid lens to traverse the multiple calibration points, and in the process of controlling the detection light to traverse the multiple calibration points, the input electrical signal amplitude of the liquid lens is adjusted;

[0009] S3: in the process of controlling the detection light to traverse the multiple calibration points, obtaining multiple first light intensity values ​​of the reflected light reflected by the detection light from the surface of the object to be detected, and obtaining multiple first electrical signal amplitudes of the liquid lens input current corresponding to the multiple first light intensity values;

[0010] S4: determining a second electrical signal amplitude based on a plurality of first light intensity values ​​and a plurality of first electrical signal amplitudes;

[0011] S5: adjusting the distance between the focus of the processing laser and the surface of the object to be measured, and repeatedly performing S2-S5 until multiple sets of data are obtained, each set of data including a value of the distance between the focus of the processing laser and the surface of the object to be measured and a second electrical signal amplitude;

[0012] S6: Determine a calibration function relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the input electrical signal amplitude of the liquid lens based on the multiple sets of data.

[0013] The liquid lens is a lens with adjustable focal length, and the focal length is controlled by an input electrical signal, which may be a current signal or a voltage signal.

[0014] It can be seen that multiple calibration points are selected simultaneously in one calibration process. In the process of calibrating multiple calibration points at a determined distance between the convergence focus of the processing laser coaxial with the light output path of the detection light passing through the liquid lens and the surface of the object to be measured (i.e., the defocus amount), there is no need to manually adjust the defocus amount to the determined defocus amount multiple times, which avoids errors introduced by humans and is conducive to improving the accuracy of the functional relationship between the determined distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal input by the liquid lens.

[0015] In combination with the first aspect, in a possible implementation method, the industrial control computer selects a point on the surface of the object to be measured as a first calibration point; multiple second calibration points are determined around the first calibration point, and the distance between each second calibration point and the first calibration point is less than a first preset distance.

[0016] Furthermore, the plurality of second calibration points are distributed in a matrix or ring shape with the first calibration point as the center, or are distributed in a spiral shape with the first calibration point as the starting point.

[0017] Furthermore, some of the multiple second calibration points are spirally distributed with the first calibration point as the starting point to obtain a first spiral group; other parts of the multiple second calibration points are spirally distributed with at least one of them as the starting point to obtain at least one second spiral group, and at least one spiral group is spirally distributed with the first spiral group as the starting point.

[0018] The selected calibration points have the above characteristics, such as rectangular distribution, annular distribution or spiral distribution, so that the collected light intensity signal has obvious periodicity, which is convenient for subsequent filtering operations.

[0019] In combination with the first aspect, in a possible implementation method, the industrial control computer periodically adjusts the input electrical signal amplitude of the liquid lens within a third preset electrical signal amplitude range; and increases the input electrical signal amplitude of the liquid lens, or decreases the input electrical signal amplitude of the liquid lens within one cycle; and the third preset electrical signal amplitude range is within the working electrical signal amplitude range of the liquid lens; and the laser head can traverse multiple calibration points within one cycle.

[0020] In combination with the first aspect, in a possible implementation manner, the method of this embodiment further includes:

[0021] Before determining the second electrical signal amplitude based on the multiple first light intensity values ​​and the multiple first electrical signal amplitudes, the industrial control computer filters the multiple first light intensity values ​​to obtain multiple second light intensity values; the multiple second light intensity values ​​correspond to the multiple first current values; the industrial control computer determines the second electrical signal amplitude based on the multiple second light intensity values ​​and the multiple first electrical signal amplitudes.

[0022] By filtering the multiple first light intensity values, it is beneficial to reduce the influence of interference signals on the processing results in subsequent processing.

[0023] In combination with the first aspect, in a possible implementation method, the industrial control computer determines a first functional relationship between the light intensity value and the electric signal amplitude based on multiple second light intensity values ​​and multiple first electric signal amplitudes; the industrial control computer determines the electric signal amplitude corresponding to the maximum light intensity value within the first preset electric signal amplitude range based on the first functional relationship, and the electric signal amplitude is the second electric signal amplitude; the upper limit and lower limit of the first preset electric signal amplitude range are respectively the maximum value and the minimum value among the multiple second light intensity values.

[0024] In this way, the accuracy of the second electrical signal amplitude can be improved, thereby facilitating improving the accuracy of determining the calibration function relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the input electrical signal amplitude of the liquid lens.

[0025] In combination with the first aspect, in a possible implementation method, the industrial control computer obtains multiple third light intensity values ​​from multiple second light intensity values ​​through a preset time window, wherein the central time point of the preset time window is the acquisition time corresponding to the maximum light intensity value among the multiple second light intensity values, and the industrial control computer obtains multiple first electrical signal amplitudes corresponding to the multiple third light intensity values ​​from the multiple first electrical signal amplitudes; determines a second functional relationship between the light intensity value and the electrical signal amplitude based on the multiple third light intensity values ​​and the multiple first electrical signal amplitudes corresponding to the multiple third light intensity values; determines the electrical signal amplitude corresponding to the maximum light intensity value within the second preset electrical signal amplitude range based on the second functional relationship, and the electrical signal amplitude corresponding to the maximum light intensity value is the second electrical signal amplitude, wherein the upper limit and lower limit of the second preset electrical signal amplitude range are respectively the maximum value and minimum value among the multiple first electrical signal amplitudes corresponding to the multiple third light intensity values.

[0026] In this way, the accuracy of the second electrical signal amplitude can be improved, thereby facilitating improving the accuracy of the calibration function relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the input electrical signal amplitude of the liquid lens.

[0027] In combination with the first aspect, in a possible implementation manner, the second electrical signal amplitude is the first electrical signal amplitude corresponding to the maximum light intensity value among the multiple second light intensity values.

[0028] In combination with the first aspect, in a possible implementation method, the industrial control computer executes S2-S4 on the premise that the distance between the convergence focus of the processing laser and the surface of the object to be measured is a plurality of second determined values, so as to obtain a plurality of second electrical signal amplitudes corresponding to the plurality of second determined values; determines a plurality of predicted distances between the convergence focus of the processing laser and the surface of the object to be measured corresponding to the plurality of second determined values ​​based on the second electrical signal amplitude and the calibration function relationship; determines the accuracy of the calibration function relationship based on the plurality of second determined values ​​and the plurality of predicted distances between the convergence focus of the processing laser and the surface of the object to be measured; when the accuracy of the obtained calibration function relationship is less than the preset accuracy, repeatedly executes S1-S6 until the accuracy of the obtained calibration function relationship is not less than the preset accuracy.

[0029] Furthermore, the industrial control computer calculates the difference between each predicted distance between the convergence focus of the processing laser and the surface of the object to be measured and the corresponding second determined value among multiple predicted distances between the convergence focus of the processing laser and the surface of the object to be measured to obtain multiple differences; obtains an average value or variance of the multiple differences based on the multiple differences; determines the accuracy of the obtained calibration function relationship based on the average value or variance, and the accuracy of the obtained calibration function relationship is inversely proportional to the average value or variance.

[0030] After obtaining the functional relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal, determine the accuracy of the calibration functional relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal. When the accuracy is less than the preset accuracy, re-obtain the calibration functional relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal until the accuracy of the calibration functional relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal is not less than the preset accuracy. When subsequently determining the distance between the convergence focus of the processing laser and the surface of the object to be measured based on the functional relationship of the obtained calibration functional relationship, the accuracy of the determined distance between the convergence focus of the processing laser and the surface of the object to be measured can be guaranteed.

[0031] In a second aspect, an embodiment of the present application provides an industrial computer, comprising a selection unit, a control unit, an adjustment unit, an acquisition unit and a determination unit. The selection unit, the control unit, the adjustment unit, the acquisition unit and the determination unit are used to implement the method provided in any one of the first aspects.

[0032] In a third aspect, an embodiment of the present application provides an industrial control computer, comprising: a processor, the processor is connected to a memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the industrial control computer executes a method as provided in any one of the first aspects.

[0033] In a fourth aspect, an embodiment of the present application provides an optical calibration system, comprising a laser head, a measuring device and an industrial computer, wherein the industrial computer is used to execute a method as provided in any one of the first aspects.

[0034] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute a method as provided in any one of the first aspects.

[0035] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer is operable to cause the computer to execute the method described in the first aspect or the second aspect.

[0036] It can be understood that the industrial control computer described in the second and third aspects, the laser processing control system described in the fourth aspect, the computer storage medium described in the fifth aspect, or the computer program product described in the sixth aspect are all used to implement any method provided in the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A schematic diagram of an optical calibration system architecture provided in an embodiment of the present application.

[0039] Figure 2 A schematic diagram of a flow chart of an optical calibration method provided in an embodiment of the present application.

[0040] Figure 3 A schematic diagram of the position relationship of a calibration point provided in an embodiment of the present application.

[0041] Figure 4 A schematic diagram of the position relationship of another calibration point provided in an embodiment of the present application.

[0042] Figure 5a The diagram illustrates the light intensity signal collected by the measuring device and the filtered light intensity signal when multiple calibration points are distributed in a spiral shape.

[0043] Figure 5b The stability of the defocus amount determined by the traditional solution and the stability of the defocus amount determined by the solution of the present application are illustrated.

[0044] Figure 6 A structural schematic diagram of an industrial control computer is provided for an embodiment of the present application.

[0045] Figure 7 A structural schematic diagram of another industrial control computer is provided for the embodiment of the present application. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms of "a", "said" and "the" used in the embodiments of the present application, the accompanying drawings and the claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should be understood that the term "and / or" used in this article is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B, which can be represented by: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are an "or" relationship. It should be understood that although the terms "first", "second" and similar words may be used in the embodiments of the present application, they do not represent any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one" or "one" do not represent quantity restrictions, but represent the existence of at least one. The "multiple" involved in the embodiments of the present application refers to greater than or equal to two.

[0048] See also Figure 1 , Figure 1 This is a schematic diagram of the structure of an optical calibration system provided in an embodiment of the present application. Figure 1 As shown, the system includes a laser head 101 , a measuring device 102 and an industrial computer 108 .

[0049] The measuring device 102 includes a collimator 103, a liquid lens 104, a spectroscope 105, a light source 106, and a photoelectric sensor 107. In one example, the light source 106 is located inside the measuring device 102. In another example, the light source 106 is located outside the measuring device 102.

[0050] During measurement, the laser head is aimed at the workpiece, and the light source 106 enters the laser head 101 through the beam splitter 105, the liquid lens 104 and the collimator 103 to irradiate the workpiece. The light reflected by the workpiece passes through the laser head 101, the collimator 103, the liquid lens 104 and the beam splitter 105, and finally reaches the photoelectric sensor 107. The photoelectric sensor 107 is used to collect the reflected light signal. The photoelectric sensor 107 outputs the light intensity value. The industrial control computer 108 measures the light intensity based on the output light intensity value. Figure 2 The embodiment shown can obtain a functional relationship between the distance between the focus of the processing laser coaxial with the detection light exit path through the liquid lens and the surface of the object to be tested and the electrical signal amplitude. The electrical signal amplitude here refers to the input electrical signal amplitude of the liquid lens.

[0051] The solution of this application is described in detail below.

[0052] See also Figure 2 , Figure 2A schematic diagram of a flow chart of an optical calibration method provided in an embodiment of the present application. Figure 2 As shown, the method includes:

[0053] S201. The industrial control computer selects a plurality of calibration points on the surface of the object to be measured.

[0054] Specifically, the industrial control computer randomly selects a calibration point on the surface of the object to be measured as the first calibration point, and then determines a plurality of second calibration points around the first calibration point. The distance between each of the plurality of second calibration points and the first calibration point is less than a first preset distance. The plurality of calibration points include the first calibration point and the plurality of second calibration points.

[0055] In one example, a plurality of second calibration points are distributed in a rectangular shape with the first calibration point as the center (eg Figure 3 ) or in a ring shape (as shown in the left figure in Figure 3 ).

[0056] In another example, Figure 4 As shown in the left figure in , multiple second calibration points are distributed in a spiral shape with the first calibration point as the starting point. In another example, part of the multiple second calibration points are distributed in a spiral shape with the first calibration point as the starting point, which can be called a first spiral group; the other part of the multiple second calibration points can obtain at least one second spiral group according to the same spiral distribution method, and the distance between the first spiral group and the second spiral group is less than the second preset distance. When there are multiple second spiral groups, the multiple second spiral groups are distributed in a rectangular or annular shape with the first spiral group as the center.

[0057] It should be noted that the distance between the first spiral group and the second spiral group refers to the distance between the starting point of the first spiral group and the starting point of the second spiral group.

[0058] Figure 4 The right figure shows the positional relationship between the first helical group and the four second helical groups. Figure 4 As shown in the right figure, the four second spiral groups are distributed in a rectangular shape with the first spiral group as the center. It should be pointed out that Figure 4 From the right picture in the figure to the four second spiral groups shown, Figure 4 The right picture of China is just an example, and the number of second spiral clusters is not limited here.

[0059] S202. On the premise that the distance between the convergence focus of the processing laser coaxial with the light path of the detection light passing through the liquid lens and the surface of the object to be measured is a first determined value, the industrial control computer controls the detection light to pass through the liquid lens to traverse the multiple calibration points, and in the process of controlling the detection light to traverse the multiple calibration points, adjusts the input electrical signal amplitude of the liquid lens.

[0060] Specifically, under the premise that the distance between the convergence focus of the processing laser and the surface of the object to be measured is a first determined value, the laser head is controlled to emit light to traverse multiple calibration points, and in the process of controlling the detection light to emit light through the liquid lens to traverse multiple calibration points, the input electric signal amplitude of the liquid lens is periodically adjusted within the third preset electric signal amplitude range; and the input electric signal amplitude of the liquid lens is increased or decreased within one cycle; and the third preset electric signal amplitude range is within the working electric signal amplitude range of the liquid lens; the laser head can traverse multiple calibration points within one cycle. Since the input electric signal amplitude of the liquid lens is continuously adjusted during the traversal of multiple calibration points, and is adjusted in a manner of increasing or decreasing the input electric signal amplitude, the input electric signal amplitude of the liquid lens is continuous, not discrete, during the traversal of multiple calibration points.

[0061] It should be understood that the focal length of the liquid lens is adjustable, and the focal length of the liquid lens is related to the amplitude of the input electrical signal. The input electrical signal is a voltage signal or a current signal. In one example, for example, the focal length of the liquid lens increases as the input current increases.

[0062] It should be pointed out that for multiple calibration points, Figure 4 In the distribution situation on the left figure, in one example, the industrial control computer controls the detection light to traverse multiple calibration points in an unrestricted order; in another example, the industrial control computer controls the detection light to traverse multiple calibration points starting from the first calibration point in a spiral order.

[0063] For multiple calibration points, Figure 4 In the distribution situation in the right figure, in one example, the order in which the industrial control computer controls the detection light to traverse multiple calibration points is not limited; in another example, the industrial control computer controls the detection light to traverse the first spiral group starting from the first calibration point in a spiral order, and then traverses the second spiral group clockwise or counterclockwise with the first spiral group as the center; when traversing a second spiral group, it is traversed in the same way as the first spiral group.

[0064] In one example, the third preset electrical signal amplitude range is [1 mV, 10 mV].

[0065] S203. The industrial control computer obtains a plurality of first light intensity values ​​of reflected light reflected by the surface of the object to be tested, and obtains a plurality of first electrical signal amplitudes of the liquid lens input current corresponding to the plurality of first light intensity values, while controlling the detection light to traverse a plurality of calibration points.

[0066] Specifically, during one traversal process, the reflected light reflected by the surface of the object to be measured will be received by the measuring device, and the photoelectric sensor of the measuring device collects the reflected light signal at a certain frequency, and the industrial control computer then obtains multiple first light intensity values. At the same time, the industrial control computer records the input electrical signal amplitude of the liquid lens when the multiple first light intensity values ​​are collected respectively, that is, multiple first electrical signal amplitudes, and the multiple first electrical signal amplitudes correspond to the multiple first light intensity values.

[0067] S204: The industrial control computer determines a second electrical signal amplitude based on the multiple first light intensity values ​​and the multiple first electrical signal amplitudes.

[0068] In order to eliminate the interference signal of the light intensity signal, the industrial control computer performs filtering processing on the multiple first light intensity values ​​to obtain multiple second light intensity values, and the multiple first electrical signal amplitudes correspond to the multiple second light intensity values.

[0069] Figure 5a The figure shows the light intensity signal collected by the measuring device and the light intensity signal after filtering when multiple calibration points are distributed in a spiral shape. The light-colored line represents the light intensity signal collected by the measuring device, and the dark-colored line represents the light intensity signal after filtering. Figure 5a It can be seen that the collected light intensity signal has obvious periodicity, which is convenient for subsequent processing.

[0070] It should be pointed out that, in actual situations, for the same surface of the same material, its microscopic level is not absolutely smooth, and the surface roughness of each point is not the same. Under the same determined defocus amount, the light intensity signal collected by the photoelectric sensor of the measuring device is also different. In the scheme of the present application, the photoelectric sensor of the measuring device collects light intensity signals at a certain frequency, which can be regarded as a sampling process, which is equivalent to averaging the light intensity signals reflected at different positions on the surface of the processed material. Therefore, the photoelectric sensor of the measuring device collects light intensity signals at a certain frequency, which is conducive to overcoming the problem that the light intensity signals collected by the photoelectric sensor of the measuring device are also different under the same determined distance between the convergence focus of the processing laser and the surface of the object to be measured, and thus it is conducive to improving the accuracy of the functional relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal.

[0071] In a feasible implementation, the amplitude of the second electrical signal is the amplitude of the first electrical signal corresponding to the maximum light intensity value among the plurality of second light intensity values.

[0072] In a feasible implementation, the industrial control computer determines a first functional relationship between the light intensity value and the electric signal amplitude based on multiple second light intensity values ​​and multiple first electric signal amplitudes; the industrial control computer determines the electric signal amplitude corresponding to the maximum light intensity value within the first preset electric signal range based on the first functional relationship, the electric signal amplitude corresponding to the maximum light intensity value is the second electric signal amplitude, and the upper and lower limits of the first preset electric signal amplitude range are respectively the maximum and minimum values ​​among the multiple second light intensity values.

[0073] Specifically, the industrial control computer uses the least squares method to fit multiple second light intensity values ​​and multiple first electrical signal amplitudes corresponding to the multiple second light intensity values ​​to obtain a first functional relationship between the light intensity value and the electrical signal amplitude. The industrial control computer then calculates the maximum light intensity value within the first preset electrical signal amplitude range based on the first functional relationship. The electrical signal amplitude corresponding to the maximum light intensity value is the second electrical signal amplitude. The upper limit and lower limit of the first preset electrical signal amplitude range are respectively the maximum value and minimum value among the multiple second light intensity values.

[0074] In a feasible implementation, the industrial control computer obtains multiple third light intensity values ​​from multiple second light intensity values ​​through a preset time window, wherein the central time point of the preset time window is the collection time corresponding to the maximum light intensity value among the multiple second light intensity values, and the industrial control computer obtains multiple first electric signal amplitudes corresponding to the multiple third light intensity values ​​from the multiple first electric signal amplitudes; determines the functional relationship between the light intensity value and the electric signal amplitude based on the multiple third light intensity values ​​and the multiple first electric signal amplitudes corresponding to the multiple third light intensity values; determines the electric signal amplitude corresponding to the maximum light intensity value within the second preset electric signal amplitude range based on the second functional relationship, and the electric signal amplitude corresponding to the maximum light intensity value is the second electric signal amplitude, wherein the upper limit and lower limit of the second preset electric signal amplitude range are respectively the maximum value and the minimum value among the multiple first electric signal amplitudes corresponding to the multiple third light intensity values.

[0075] Specifically, the industrial computer intercepts part of the second light intensity values ​​from the multiple second light intensity values ​​to obtain multiple third light intensity values; the multiple third light intensity values ​​include the maximum light intensity value among the multiple second light intensity values ​​and the light intensity value of the first preset time interval between the acquisition time and the acquisition time of the maximum light intensity value. The interception method can be: intercept part of the second light intensity values ​​from the multiple second light intensity values ​​through a preset time window, wherein the center time of the preset time window is the acquisition moment corresponding to the maximum light intensity value among the multiple second light intensity values, and the width of the preset time window is the second preset time length. Of course, other methods are also possible, which are not limited here. The industrial computer uses the least squares method to fit the multiple second light intensity values ​​and the multiple first electrical signal amplitudes corresponding to the multiple second light intensity values ​​to obtain a second functional relationship between the light intensity value and the electrical signal amplitude, and then the second functional relationship calculates the maximum light intensity value within the second preset electrical signal amplitude range, and the electrical signal amplitude corresponding to the maximum light intensity value is the second electrical signal amplitude.

[0076] It can be seen that by intercepting the maximum light intensity value and the light intensity value of the first preset time interval between the acquisition time and the acquisition time of the maximum light intensity value from the multiple second light intensity values, a quadratic function between the light intensity value and the electric signal amplitude can be obtained based on the intercepted multiple third light intensity values ​​and their corresponding electric signal amplitudes. Since the monotonicity of the quadratic function is obvious, the maximum light intensity value within the second preset electric signal amplitude range can be accurately and quickly calculated based on the quadratic function.

[0077] It should be understood that when the light intensity collected by the photoelectric sensor of the measuring equipment is the largest, it can be regarded as that the convergence focus of the processing laser coaxial with the light output path of the detection light passing through the liquid lens is on the surface of the processing material. At this time, the convergence focus of the processing laser coaxial with the light output path of the detection light passing through the liquid lens corresponds to the input electrical signal amplitude of the liquid lens.

[0078] S205, the industrial control computer adjusts the distance between the convergence focus of the processing laser and the surface of the object to be measured, and repeatedly executes S202 to S205 until multiple groups of data are obtained, each group of data including a distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the second electrical signal.

[0079] Specifically, the industrial control computer adjusts the distance between the focus of the processing laser and the surface of the object to be measured, which can be adjusted manually and is not limited here; then, in the case of the adjusted distance between the focus of the processing laser and the surface of the object to be measured, the industrial control computer executes S202-S205 until multiple sets of data are obtained, each set of data in the multiple sets of data includes a value of the distance between the focus of the processing laser and the surface of the object to be measured and a second electrical signal amplitude. Among them, the values ​​of the distance between the focus of the processing laser and the surface of the object to be measured of different groups are different.

[0080] S206. The industrial control computer determines the calibration function relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the input electrical signal amplitude of the liquid lens based on the multiple sets of data.

[0081] Specifically, the industrial control computer uses the least squares method to fit the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the second electrical signal determined based on the multiple sets of data to obtain a calibration function relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the input electrical signal amplitude of the liquid lens.

[0082] After obtaining the calibration function relationship between the distance between the focusing point of the processing laser and the surface of the object to be measured and the input electrical signal amplitude of the liquid lens, in order to ensure the accuracy of the calibration function relationship, the accuracy of the calibration function relationship needs to be verified.

[0083] In a feasible implementation, the industrial control computer executes S202-S204 under the premise of multiple second defocus amounts to obtain multiple second electrical signal amplitudes corresponding to the multiple second determination values; determines the distances between the multiple predicted focal points of the processing laser and the surface of the object to be measured corresponding to the multiple second determination values ​​based on the second electrical signal amplitudes and the calibration function relationship; determines the accuracy of the calibration function relationship based on the multiple second determination values ​​and the multiple predicted distances between the focal points of the processing laser and the surface of the object to be measured; when the accuracy of the obtained calibration function relationship is less than the preset accuracy, the industrial control computer repeatedly executes S201-S206 until the accuracy of the obtained calibration function relationship is not less than the preset accuracy.

[0084] Furthermore, the industrial control computer calculates the difference between each predicted distance between the convergence focus of the processing laser and the surface of the object to be measured and the corresponding second determined value among multiple predicted distances between the convergence focus of the processing laser and the surface of the object to be measured to obtain multiple differences; obtains an average value or variance of the multiple differences based on the multiple differences; determines the accuracy of the obtained calibration function relationship based on the average value or variance, and the accuracy of the obtained calibration function relationship is inversely proportional to the average value or variance.

[0085] After obtaining the functional relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal, determine the accuracy of the calibration functional relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal. When the accuracy is less than the preset accuracy, re-obtain the calibration functional relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal until the accuracy of the calibration functional relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal is not less than the preset accuracy. When subsequently determining the distance between the convergence focus of the processing laser and the surface of the object to be measured based on the functional relationship of the obtained calibration functional relationship, the accuracy of the determined distance between the convergence focus of the processing laser and the surface of the object to be measured can be guaranteed.

[0086] Figure 5b The stability of the defocus amount determined by the traditional solution and the stability of the defocus amount determined by the solution of the present application are illustrated. Figure 5b It can be seen that the stability of the defocus amount determined by the solution of the present application is significantly higher than the stability of the defocus amount determined by the traditional solution. The light-colored line represents the stability of the defocus amount determined by the traditional solution, and the dark-colored line represents the stability of the defocus amount determined by the solution of the present application.

[0087] It can be seen that in the scheme of this embodiment, by selecting multiple calibration points at the same time in a calibration process, in the process of calibrating multiple calibration points at a determined distance between the convergence focus of the processing laser coaxial with the light path of the detection light passing through the liquid lens and the surface of the object to be measured (i.e., the defocus amount), it is not necessary to manually adjust the defocus amount to the determined defocus amount multiple times, thereby avoiding errors introduced by humans, and being conducive to improving the accuracy of the calibration function relationship between the determined distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal input by the liquid lens. Selecting calibration points with rectangular distribution, annular distribution or spiral distribution makes the collected light intensity signal have obvious periodicity, which is convenient for subsequent filtering operations. After obtaining the calibration function relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal, the accuracy of the calibration function relationship is determined. When the accuracy is less than the preset accuracy, the calibration function relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the electrical signal input by the liquid lens is re-obtained until the accuracy of the obtained calibration function relationship is not less than the preset accuracy. When the defocus amount is subsequently determined based on the obtained calibration function relationship, the accuracy of the determined distance between the convergence focus of the processing laser and the surface of the object to be measured can be guaranteed.

[0088] See also Figure 6 , the present application embodiment provides a structural diagram of an industrial control computer. Figure 6 As shown, the industrial computer 600 includes:

[0089] A selection unit 601 is used to select a plurality of calibration points on the surface of the object to be measured;

[0090] The control unit 602 is used to control the detection light to pass through the liquid lens to traverse the multiple calibration points under the premise that the distance between the convergence focus of the processing laser coaxial with the detection light exiting the liquid lens and the surface of the object to be measured is a first determined value,

[0091] An adjustment unit 603, used to adjust the amplitude of the input electrical signal of the liquid lens in the process of controlling the detection light to traverse multiple calibration points;

[0092] An acquisition unit 604 is used to acquire a plurality of first light intensity values ​​of reflected light reflected by the detection light from the surface of the object to be detected, and acquire a plurality of first electrical signal amplitudes of the liquid lens input current corresponding to the plurality of first light intensity values, in a process of controlling the detection light to traverse the plurality of calibration points;

[0093] A determining unit 605, configured to determine a second electrical signal amplitude based on a plurality of first light intensity values ​​and a plurality of first electrical signal amplitudes;

[0094] The adjusting unit 603 is further used to adjust the distance between the convergence focus of the processing laser and the surface of the object to be measured. The control unit 602, the adjusting unit 603, the acquiring unit 604 and the determining unit 605 repeatedly perform corresponding operations until multiple groups of data are obtained, each group of data including the distance between the convergence focus of the processing laser and the surface of the object to be measured and the amplitude of the second electrical signal;

[0095] The determination unit 605 is further used to determine the calibration function relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the input electrical signal amplitude of the liquid lens based on multiple sets of data.

[0096] In a possible implementation, the selection unit 601 is specifically configured to:

[0097] A point is selected on the surface of the object to be measured as a first calibration point; a plurality of second calibration points are determined around the first calibration point, and the distance between each second calibration point and the first calibration point is less than a first preset distance.

[0098] In a possible implementation manner, the plurality of second calibration points are distributed in a matrix or ring shape with the first calibration point as the center, or are distributed in a spiral shape with the first calibration point as the starting point.

[0099] In a possible implementation, some of the multiple second calibration points are spirally distributed with the first calibration point as the starting point to obtain a first spiral group; the other part of the multiple second calibration points are spirally distributed with at least one of them as the starting point to obtain at least one second spiral group, and at least one spiral group is spirally distributed with the first spiral group as the starting point.

[0100] In a possible implementation, in terms of adjusting the amplitude of the input electrical signal of the liquid lens, the adjusting unit 603 is specifically used to:

[0101] The input electric signal amplitude of the liquid lens is periodically adjusted within a third preset electric signal amplitude range; and the input electric signal amplitude of the liquid lens is increased or decreased within one cycle; and the third preset electric signal amplitude range is within the working electric signal amplitude range of the liquid lens; and the laser head can traverse multiple calibration points within one cycle.

[0102] In a possible implementation, the industrial computer 600 further includes:

[0103] A filtering unit 606 is used to filter the plurality of first light intensity values ​​to obtain a plurality of second light intensity values ​​before determining the second electric signal amplitude based on the plurality of first light intensity values ​​and the plurality of first electric signal amplitudes; the plurality of second light intensity values ​​correspond to the plurality of first current values;

[0104] In terms of determining the second electrical signal amplitude based on multiple first light intensity values ​​and multiple first electrical signal amplitudes, the determination unit 605 is specifically used to: determine the second electrical signal amplitude based on multiple second light intensity values ​​and multiple first electrical signal amplitudes.

[0105] In a possible implementation, in determining the second electrical signal amplitude based on the plurality of second light intensity values ​​and the plurality of first electrical signal amplitudes, the determining unit 605 is specifically configured to:

[0106] Based on multiple second light intensity values ​​and multiple first electric signal amplitudes, a first functional relationship between the light intensity value and the electric signal amplitude is determined; based on the first functional relationship, the industrial control computer determines the electric signal amplitude corresponding to the maximum light intensity value within the first preset electric signal amplitude range, and the electric signal amplitude is the second electric signal amplitude; the upper limit and lower limit of the first preset electric signal amplitude range are respectively the maximum value and the minimum value among the multiple second light intensity values.

[0107] In a possible implementation, in determining the second electrical signal amplitude based on the plurality of second light intensity values ​​and the plurality of first electrical signal amplitudes, the determining unit 605 is specifically configured to:

[0108] A plurality of third light intensity values ​​are obtained from a plurality of second light intensity values ​​through a preset time window, wherein the central time point of the preset time window is the collection time corresponding to the maximum light intensity value among the plurality of second light intensity values, and the industrial control computer obtains a plurality of first electric signal amplitudes corresponding to the plurality of third light intensity values ​​from the plurality of first electric signal amplitudes; a second functional relationship between the light intensity value and the electric signal amplitude is determined based on the plurality of third light intensity values ​​and the plurality of first electric signal amplitudes corresponding to the plurality of third light intensity values; based on the second functional relationship, the electric signal amplitude corresponding to the maximum light intensity value within the second preset electric signal amplitude range is determined, and the electric signal amplitude corresponding to the maximum light intensity value is the second electric signal amplitude, wherein the upper limit and the lower limit of the second preset electric signal amplitude range are respectively the maximum value and the minimum value among the plurality of first electric signal amplitudes corresponding to the plurality of third light intensity values.

[0109] In a possible implementation, under the premise that the distance between the convergence focus of the processing laser and the surface of the object to be measured is a plurality of second determined values, the control unit 602, the adjustment unit 603, the acquisition unit 604 and the determination unit 605 execute S2-S4 to obtain a plurality of second electrical signal amplitudes corresponding to the plurality of second determined values ​​respectively;

[0110] The determination unit 605 is used to determine the distances between the convergence focus of the processing laser and the surface of the object to be measured corresponding to the plurality of second determination values ​​based on the amplitude of the second electrical signal and the calibration function relationship; and determine the accuracy of the calibration function relationship based on the plurality of second determination values ​​and the plurality of predicted distances between the convergence focus of the processing laser and the surface of the object to be measured;

[0111] The control unit 602, the adjustment unit 603, the acquisition unit 604 and the determination unit 605 are used to repeatedly execute S1-S6 when the accuracy of the obtained calibration function relationship is less than the preset accuracy, until the accuracy of the obtained calibration function relationship is not less than the preset accuracy.

[0112] In a possible implementation, the determining unit 605 is further configured to:

[0113] Calculate the difference between each predicted distance between the convergence focus of the processing laser and the surface of the object to be measured and the corresponding second determined value among multiple predicted distances between the convergence focus of the processing laser and the surface of the object to be measured to obtain multiple difference values; obtain an average value or variance of the multiple difference values ​​based on the multiple difference values; determine the accuracy of the obtained calibration function relationship based on the average value or variance, and the accuracy of the obtained calibration function relationship is inversely proportional to the average value or variance.

[0114] It should be noted that the above-mentioned units (selection unit 601, control unit 602, adjustment unit 603, acquisition unit 604, determination unit 605 and filtering unit 606) are used to execute the relevant steps of the above-mentioned method. Each unit or module in the industrial computer 600 can be separately or completely combined into one or several other units or modules to constitute, or one (some) of the units or modules can be further divided into multiple functionally smaller units or modules to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units or modules are divided based on logical functions. In practical applications, the functions of one unit (or module) can also be implemented by multiple units (or modules), or the functions of multiple units (or modules) can be implemented by one unit (or module).

[0115] Based on the description of the above method embodiment and device embodiment, please refer to Figure 7 , an embodiment of the present invention also provides a structural schematic diagram of an industrial control computer 700. Figure 7 The industrial computer 700 shown (the industrial computer 700 may be a computer device) includes a memory 701, a processor 702, a communication interface 703 and a bus 704. The memory 701, the processor 702 and the communication interface 703 are connected to each other through the bus 704.

[0116] The memory 701 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM).

[0117] The memory 701 can store programs. When the program stored in the memory 701 is executed by the processor 702, the processor 702 and the communication interface 703 are used to execute the various steps of the optical calibration method of the embodiment of the present application.

[0118] The processor 702 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the functions required to be performed by the units in the industrial control computer 600 of the embodiment of the present application, or to execute the optical calibration method of the method embodiment of the present application.

[0119] The processor 702 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the additive manufacturing quality detection method of the present application may be completed by an integrated logic circuit of hardware or software instructions in the processor 702. The above-mentioned processor 702 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 701, and the processor 702 reads the information in the memory 701, and combines its hardware to complete the functions required to be performed by the units included in the industrial control computer 700 of the embodiment of the present application, or executes the optical calibration method of the method embodiment of the present application.

[0120] The communication interface 703 uses a transceiver such as, but not limited to, a transceiver to implement communication between the industrial computer 700 and other devices or a communication network. For example, data can be obtained through the communication interface 703 .

[0121] The bus 704 may include a path for transmitting information between various components of the industrial computer 700 (eg, the memory 701 , the processor 702 , and the communication interface 703 ).

[0122] It should be noted that although Figure 7 The industrial computer 700 shown only shows a memory, a processor, and a communication interface. However, in the specific implementation process, those skilled in the art should understand that the industrial computer 700 also includes other devices necessary for normal operation. At the same time, according to specific needs, those skilled in the art should understand that the industrial computer 700 may also include hardware devices for implementing other additional functions. In addition, those skilled in the art should understand that the industrial computer 700 may also include only the devices necessary for implementing the embodiments of the present application, and does not necessarily include Figure 7 All devices shown in .

[0123] An embodiment of the present application further provides a chip, which includes a processor and a data interface. The processor reads instructions stored in a memory through the data interface to implement the optical calibration method.

[0124] Optionally, as an implementation manner, the chip may further include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the optical calibration method.

[0125] An embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is executed on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods.

[0126] The embodiment of the present application further provides a computer program product including instructions. When the computer program product is executed on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods.

[0127] Those skilled in the art will appreciate that the functions described in conjunction with the various illustrative logic blocks, modules, and algorithm steps disclosed herein can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions described in the various illustrative logic blocks, modules, and steps can be stored or transmitted as one or more instructions or codes on a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to tangible media, such as data storage media, or includes any media (e.g., based on a communication protocol) that facilitates the transfer of a computer program from one place to another. In this manner, computer-readable media may generally correspond to (1) non-temporary tangible computer-readable storage media, or (2) communication media, such as signals or carrier waves. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in this application. A computer program product may include computer-readable media.

[0128] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and can be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio and microwave are included in the definition of media. However, it should be understood that the computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but are actually directed to non-temporary tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical optical disks, digital versatile disks (DVDs), and Blu-ray disks, where disks typically reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0129] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the term "processor" as used herein may refer to any of the aforementioned structures or any other structures suitable for implementing the techniques described herein. Additionally, in some aspects, the functions described by the various illustrative logic blocks, modules, and steps described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated in a combined codec. Moreover, the techniques may be fully implemented in one or more circuits or logic elements.

[0130] The techniques of the present application may be implemented in a variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in this application to emphasize functional aspects of devices for performing the disclosed techniques, but do not necessarily need to be implemented by different hardware units. In fact, as described above, the various units may be combined in an encoded hardware unit in conjunction with appropriate software and / or firmware, or provided by interoperating hardware units (including one or more processors as described above).

[0131] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the specific descriptions of the corresponding steps in the aforementioned method embodiments, and will not be repeated here.

[0132] It should be understood that in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; wherein A and B can be singular or plural. Also, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, wherein a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be necessarily different. Meanwhile, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0133] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the division of the unit is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling, direct coupling, or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0134] The units described as separate components may or may not be physically separated, and the components shown as units 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0135] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. The available medium may be a read-only memory (ROM), or a random access memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a tape, a disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state disk (SSD), etc.

[0136] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.

[0137] The device embodiments described above are merely illustrative, wherein the units and modules described as separate components may or may not be physically separated. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art may understand and implement the present invention without creative effort.

[0138] The above is only a specific implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An optical calibration method, characterized in that: The method comprises: S1: Select multiple calibration points on the surface of the object to be measured; S2: Under the premise that the distance between the convergence focus of the processing laser coaxial with the light path of the detection light passing through the liquid lens and the surface of the object to be measured is a first determined value, the detection light is controlled to pass through the liquid lens to traverse the multiple calibration points, and in the process of controlling the detection light to traverse the multiple calibration points, the input electrical signal amplitude of the liquid lens is adjusted; S3: in the process of controlling the detection light to traverse the multiple calibration points, obtaining multiple first light intensity values ​​of the reflected light reflected by the detection light from the surface of the object to be detected, and obtaining multiple first electrical signal amplitudes of the liquid lens input current corresponding to the multiple first light intensity values; S4: determining a second electrical signal amplitude based on the plurality of first light intensity values ​​and the plurality of first electrical signal amplitudes; S5: adjusting the distance between the convergence focus of the processing laser and the surface of the object to be measured, and repeatedly performing S2-S5 until multiple sets of data are obtained, each set of data including a distance between the convergence focus of the processing laser and the surface of the object to be measured and a second electrical signal amplitude; S6: Determine a calibration function relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the input electrical signal amplitude of the liquid lens based on the multiple sets of data.

2. The method according to claim 1, characterized in that The method further comprises: Before determining the second electrical signal amplitude based on the plurality of first light intensity values ​​and the plurality of first electrical signal amplitudes, filtering the plurality of first light intensity values ​​to obtain a plurality of second light intensity values; the plurality of second light intensity values ​​correspond to the plurality of first current values; The determining the second electrical signal amplitude based on the plurality of first light intensity values ​​and the plurality of first electrical signal amplitudes comprises: A second electrical signal amplitude is determined based on the plurality of second light intensity values ​​and the plurality of first electrical signal amplitudes.

3. The method according to claim 2, characterized in that The determining the second electrical signal amplitude based on the plurality of second light intensity values ​​and the plurality of first electrical signal amplitudes comprises: Determine a first functional relationship between the light intensity value and the electrical signal amplitude based on the plurality of second light intensity values ​​and the plurality of first electrical signal amplitudes; Based on the first functional relationship, the electrical signal amplitude corresponding to the maximum light intensity value within the first preset electrical signal amplitude range is determined, the electrical signal amplitude corresponding to the maximum light intensity value is the second electrical signal amplitude, and the upper and lower limits of the first preset electrical signal amplitude range are respectively the maximum and minimum values ​​among the multiple second light intensity values.

4. The method according to claim 2, characterized in that: The determining the second electrical signal amplitude based on the plurality of second light intensity values ​​and the plurality of first electrical signal amplitudes comprises: A plurality of third light intensity values ​​are obtained from the plurality of second light intensity values ​​through a preset time window, wherein the central time point of the preset time window is the acquisition time corresponding to the maximum light intensity value among the plurality of second light intensity values, Acquire a plurality of first electrical signal amplitudes corresponding to the plurality of third light intensity values ​​from a plurality of first electrical signal amplitudes corresponding to the plurality of second light intensity values; Determine a second functional relationship between the light intensity value and the electrical signal amplitude based on the plurality of third light intensity values ​​and the plurality of first electrical signal amplitudes corresponding to the plurality of third light intensity values; Based on the second functional relationship, the electrical signal amplitude corresponding to the maximum light intensity value within the second preset electrical signal amplitude range is determined, and the electrical signal amplitude corresponding to the maximum light intensity value is the second electrical signal amplitude, wherein the upper limit and lower limit of the second preset electrical signal amplitude range are respectively the maximum value and minimum value of the multiple first electrical signal amplitudes corresponding to the multiple third light intensity values.

5. The method according to claim 2, characterized in that: The second electrical signal amplitude is the first electrical signal amplitude corresponding to the maximum light intensity value among the multiple second light intensity values.

6. The method according to any one of claims 1 to 5, characterized in that: The step of adjusting the amplitude of the input electrical signal of the liquid lens comprises: The input electrical signal amplitude of the liquid lens is periodically adjusted within a third preset electrical signal amplitude range; and the input electrical signal amplitude of the liquid lens is increased or decreased within one cycle; and the third preset electrical signal amplitude range is within the working electrical signal amplitude range of the liquid lens; and the laser head can traverse the multiple calibration points within one cycle.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Under the premise that the distance between the convergence focus of the processing laser and the surface of the object to be measured is a plurality of second determined values, S2-S4 are executed to obtain a plurality of second electrical signal amplitudes corresponding to the plurality of second determined values ​​respectively; Determine, based on the second electrical signal amplitude and the calibration function relationship, a plurality of predicted distances between the convergence focus of the processing laser and the surface of the object to be measured corresponding to the plurality of second determination values; Determining the accuracy of the calibration function relationship based on the plurality of second determined values ​​and the plurality of predicted distances between the convergence focus of the processing laser and the surface of the object to be measured; When the accuracy is less than the preset accuracy, S1-S6 are repeatedly performed until the accuracy is not less than the preset accuracy.

8. The method according to claim 7, characterized in that The step of determining the accuracy of the calibration function relationship based on the plurality of second determined values ​​and the plurality of predicted distances between the convergence focus of the processing laser and the surface of the object to be measured comprises: Calculating the difference between each predicted distance between the convergence focus of the processing laser and the surface of the object to be measured and the corresponding second determined value among the plurality of predicted distances between the convergence focus of the processing laser and the surface of the object to be measured, so as to obtain a plurality of difference values; Obtaining an average value or a variance of the plurality of difference values ​​based on the plurality of difference values; The accuracy is determined based on the mean value or the variance, and the accuracy is inversely proportional to the mean value or the variance.

9. The method according to claim 8, characterized in that The step of selecting a plurality of calibration points on the surface of the object to be measured comprises: Select a point on the surface of the object to be measured as a first calibration point; A plurality of second calibration points are determined around the first calibration point, and a distance between each of the second calibration points and the first calibration point is less than a first preset distance.

10. The method according to claim 9, characterized in that The plurality of second calibration points are distributed in a matrix or annular pattern with the first calibration point as the center, or are distributed in a spiral pattern with the first calibration point as the starting point.

11. The method according to claim 9, characterized in that Some of the multiple second calibration points are distributed in a spiral shape with the first calibration point as a starting point to obtain a first spiral group; the other parts of the multiple second calibration points are distributed in a spiral shape with at least one of them as a starting point to obtain at least one second spiral group, and the at least one spiral group is distributed in a spiral shape with the first spiral group as a starting point.

12. An industrial computer, characterized in that: include: A selection unit, used for selecting a plurality of calibration points on the surface of the object to be measured; A control unit is used to control the detection light to pass through the liquid lens and traverse the multiple calibration points under the premise that the distance between the convergence focus of the processing laser coaxial with the detection light exit light path passing through the liquid lens and the surface of the object to be measured is a first determined value, An adjustment unit, used for adjusting the amplitude of the input electrical signal of the liquid lens in the process of controlling the detection light to traverse the multiple calibration points; an acquisition unit, configured to acquire a plurality of first light intensity values ​​of reflected light reflected by the detection light from the surface of the object to be detected, and acquire a plurality of first electrical signal amplitudes of the liquid lens input current corresponding to the plurality of first light intensity values, in a process of controlling the detection light to traverse the plurality of calibration points; a determining unit, configured to determine a second electrical signal amplitude based on the plurality of first light intensity values ​​and the plurality of first electrical signal amplitudes; The adjustment unit is further used to adjust the distance between the convergence focus of the processing laser and the surface of the object to be measured, and the control unit, the adjustment unit, the acquisition unit and the determination unit repeatedly perform corresponding operations until multiple groups of data are obtained, each group of data including a distance between the convergence focus of the processing laser and the surface of the object to be measured and a second electrical signal amplitude; The determination unit is further used to determine the calibration function relationship between the distance between the convergence focus of the processing laser and the surface of the object to be measured and the input electrical signal amplitude of the liquid lens based on the multiple sets of data.

13. An industrial computer, characterized in that: It comprises a processor, the processor is connected to a memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the industrial computer executes the method as described in any one of claims 1-11.

14. An optical calibration system, comprising: A laser head, a measuring device and an industrial computer, wherein the industrial computer is used to execute the method as described in any one of claims 1 to 11.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Lens three-dimensional contour measuring device and method based on current wave number scanning

    CN109990729A

  • Tail gas measuring method and device based on motor vehicle tail gas telemetering system

    CN113720799A