CN118032288A - Optical calibration method and related device - Google Patents

Optical calibration method and related device Download PDF

Info

Publication number
CN118032288A
CN118032288A CN202410167371.2A CN202410167371A CN118032288A CN 118032288 A CN118032288 A CN 118032288A CN 202410167371 A CN202410167371 A CN 202410167371A CN 118032288 A CN118032288 A CN 118032288A
Authority
CN
China
Prior art keywords
light intensity
electric signal
signal amplitude
intensity values
electrical signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410167371.2A
Other languages
Chinese (zh)
Inventor
袁鹏
李静娴
白天翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Deqing Optics Technology Co ltd
Original Assignee
Guangzhou Deqing Optics Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Deqing Optics Technology Co ltd filed Critical Guangzhou Deqing Optics Technology Co ltd
Priority to CN202410167371.2A priority Critical patent/CN118032288A/en
Publication of CN118032288A publication Critical patent/CN118032288A/en
Pending legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

The embodiment of the application discloses an optical calibration method and a related device, wherein the method comprises the following steps: s1: selecting a plurality of calibration points on the surface of an object to be measured; s2: on the premise of the first defocus amount, controlling the laser head to emit light to traverse the plurality of 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 plurality of calibration points; s3: in the process of controlling the laser head to emit light to traverse a plurality of calibration points, acquiring a plurality of first light intensity values of reflected light and a plurality of first electric signal amplitudes of input current of a liquid lens corresponding to the plurality of first light intensity values; s4: determining a second electrical signal amplitude based on the plurality of second light intensity values and the plurality of first electrical signal amplitudes; s5: adjusting the first defocus amount, and repeatedly executing S2-S5 until a plurality of groups of data are obtained; s6: a functional relationship of the defocus amount and the electrical signal amplitude is determined based on the plurality of sets of data. The method is beneficial to improving the precision of the functional relation between the defocus amount and the input current of the liquid lens.

Description

Optical calibration method and related device
Technical Field
The application relates to the technical field of laser processing, in particular to an optical calibration method and a related device.
Background
The calibration process of the laser focus measurement system refers to the step of determining the functional relation between the input current parameter of the liquid lens and the actual laser focal length through a series of experiments. Randomly selecting a point on a material, periodically changing the input current of the liquid lens from small to large under a certain defocus amount, so that the system can acquire the reflected light intensity under the corresponding input current, and when the reflected light intensity reaches the maximum value, forming a group of contrast relation data by the input current of the corresponding liquid lens and the focal length at the moment, and performing multiple experiments by singly changing the defocus amount to acquire multiple groups of contrast relation data; randomly selecting another point on the material, and repeating the process to obtain a plurality of groups of comparison relation data; based on these control data, a functional relationship between the defocus and the input current of the liquid lens is determined, i.e. a calibrated effect is achieved.
In the above process, for different points, experiments are performed under the same determined defocus amount, and thus, an experimenter is required to manually adjust the defocus amount, and in the process of setting the same defocus amount for different points, due to errors introduced by the experimenter operation, the set defocus amounts are different, so that the functional relationship between the defocus amount and the input current of the liquid lens is inaccurate, which is determined based on the comparison relationship data obtained in the mode.
Disclosure of Invention
The application provides an optical calibration method and a related device, which are beneficial to improving the precision of a functional relationship between the distance (namely, defocus amount) between the converging focus of processing laser which passes through the coaxial light-emitting optical path of a liquid lens and the surface of an object to be measured and the amplitude of an input electric signal of the liquid lens.
The application is realized by adopting the following technical scheme.
In a first aspect, an embodiment of the present application provides an optical calibration method, which uses an industrial control computer. The industrial control computer executes the following operations:
s1: selecting a plurality of calibration points on the surface of an object to be measured;
s2: on the premise that the distance between a converging focus of processing laser coaxial with a detection light emergent light path passing through the liquid lens and the surface of an object to be detected is a first determined value, controlling the detection light emergent light to traverse the plurality of calibration points through the liquid lens, and adjusting the amplitude of an input electric signal of the liquid lens in the process of controlling the detection light emergent light to traverse the plurality of calibration points;
S3: in the process of controlling the detection light to traverse a plurality of standard points, acquiring a plurality of first light intensity values of reflected light of the detection light reflected by the surface of the object to be detected, and acquiring a plurality of first electric signal amplitudes of the liquid lens input current corresponding to the plurality of 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 converging focus of the processing laser and the surface of the object to be detected, and repeatedly executing S2-S5 until a plurality of groups of data are obtained, wherein each group of data comprises one value of the distance between the converging focus of the processing laser and the surface of the object to be detected and a second electric signal amplitude value;
S6: and determining a calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the amplitude of the input electric signal of the liquid lens based on the multiple groups of data.
The liquid lens is a lens with adjustable focal length, and the focal length is controlled by an input electric signal, wherein the electric signal can be a current signal or a voltage signal.
It can be seen that, in the process of calibrating a plurality of calibration points simultaneously selected in one calibration process, the defocus amount is not required to be manually adjusted to the determined defocus amount for a plurality of times in the process of calibrating a plurality of calibration points under the determined distance (namely defocus amount) between the converging focus of the processing laser which is coaxial with the light-emitting light path of the detection light passing through the liquid lens and the surface of the object to be tested, the error caused by manual introduction is avoided, and the precision of the functional relationship between the determined distance between the converging focus of the processing laser and the surface of the object to be tested and the amplitude of the electric signal input by the liquid lens is facilitated to be improved.
With reference to the first aspect, in one possible implementation manner, the industrial control computer selects 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, each second calibration point being less than a first predetermined distance from the first calibration point.
Further, the second calibration points are distributed in a matrix or in a ring shape with the first calibration point as a center, or are distributed in a spiral shape with the first calibration point as a starting point.
Further, part of the second calibration points in the plurality of second calibration points are spirally distributed by taking the first calibration point as a starting point, so that a first spiral cluster is obtained; and the other second calibration points in the plurality of second calibration points are respectively spirally distributed with at least one of the second calibration points as a starting point to obtain at least one second spiral group, and the at least one spiral group is spirally distributed with the first spiral group as a starting point.
The selected calibration points have the characteristics, such as rectangular distribution, annular distribution or spiral distribution, so that the collected light intensity signals have obvious periodicity, and further, the subsequent filtering operation is facilitated.
With reference to the first aspect, in one possible implementation manner, the industrial control computer periodically adjusts the input electric signal amplitude of the liquid lens in a third preset electric signal amplitude range; and increasing the amplitude of the input electrical signal of the liquid lens or decreasing the amplitude of the input electrical signal of the liquid lens in one period; the third preset electric signal amplitude range is within the working electric signal amplitude range of the liquid lens; the laser head is able to traverse multiple index points in one cycle.
With reference to the first aspect, in one possible implementation manner, the method of the present embodiment further includes:
The industrial control computer performs filtering processing on the plurality of first 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 so as 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 industrial control computer determines the second electric signal amplitude based on the second light intensity values and the first electric signal amplitude.
The filtering processing is performed on the plurality of first light intensity values, so that the influence of the interference signals on the processing result is reduced in the subsequent processing.
With reference to the first aspect, in one possible implementation manner, the industrial control computer determines a first functional relationship between the light intensity values and the electrical signal amplitudes based on the plurality of second light intensity values and the plurality of first electrical signal amplitudes; the industrial control computer corresponds to the electric signal amplitude value at the maximum light intensity value in the first preset electric signal amplitude value range based on the first functional relation, and the electric signal amplitude value is the second electric signal amplitude value; the upper limit and the lower limit of the amplitude range of the first preset electric signal are respectively the maximum value and the minimum value of the second light intensity values.
By the method, the accuracy of the amplitude of the second electric signal can be improved, and further the accuracy of the calibration function relation of the distance between the converging focus of the processing laser and the surface of the object to be measured and the amplitude of the input electric signal of the liquid lens can be improved.
With reference to the first aspect, in one possible implementation manner, the industrial personal computer obtains a plurality of third light intensity values from the plurality of second light intensity values through a preset time window, where a central time point of the preset time window is an acquisition time corresponding to a maximum light intensity value in the plurality of second light intensity values, and the industrial personal 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; determining a second functional relationship between the light intensity values and the electrical signal amplitudes 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; and determining an electric signal amplitude corresponding to a maximum light intensity value in a second preset electric signal amplitude range based on a second functional relation, wherein the electric signal amplitude corresponding to the maximum light intensity value is the second electric signal amplitude, and the upper limit and the lower limit of the second preset electric signal amplitude range are respectively the maximum value and the minimum value in a plurality of first electric signal amplitudes corresponding to a plurality of third light intensity values.
By the method, the accuracy of the second electric signal amplitude can be improved, and further the accuracy of the determined calibration function relation of the distance between the converging focus of the processing laser and the surface of the object to be measured and the input electric signal amplitude of the liquid lens is improved.
With reference to the first aspect, in one possible implementation manner, the second electrical signal amplitude is a first electrical signal amplitude corresponding to a maximum light intensity value of the plurality of second light intensity values.
With reference to the first aspect, in one possible implementation manner, the industrial control computer executes S2-S4 on the premise that distances between a converging focal point of the processing laser and a surface of the object to be measured are a plurality of second determined values, so as to obtain a plurality of second electric signal amplitudes corresponding to the plurality of second determined values respectively; determining distances between a converging focus of a plurality of predicted processing lasers corresponding to a plurality of second determined values and the surface of the object to be detected based on the second electric signal amplitude and the calibration function relation; determining the precision of a calibration function relationship based on the second determined values and the distances between the converging focuses of the predicted processing lasers and the surface of the object to be measured; and when the precision of the obtained calibration function relation is smaller than the preset precision, repeating the steps S1-S6 until the precision of the obtained calibration function relation is not smaller than the preset precision.
Further, the industrial control computer calculates a difference value between the distance between the convergence focus of each predicted processing laser and the surface of the object to be detected and a corresponding second determined value in the distances between the convergence focus of the plurality of predicted processing lasers and the surface of the object to be detected, so as to obtain a plurality of difference values; obtaining an average value or variance of the plurality of differences based on the plurality of differences; and determining the accuracy of the obtained calibration function relation based on the average value or the variance, wherein the accuracy of the obtained calibration function relation is inversely proportional to the average value or the variance.
After the function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the electric signal amplitude is obtained, determining the precision of the calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the electric signal amplitude, and when the precision is smaller than the preset precision, re-obtaining the calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the electric signal amplitude until the precision of the calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the electric signal amplitude is not smaller than the preset precision, and then determining the distance between the converging focus of the processing laser and the surface of the object to be measured based on the obtained function relation.
In a second aspect, an embodiment of the present application provides an industrial personal computer, including a selection unit, a control unit, an adjustment unit, an acquisition unit, and a determination unit. The selecting unit, the control unit, the adjusting unit, the obtaining unit and the determining unit are configured to implement the method provided in any one of the first aspects.
In a third aspect, an embodiment of the present application provides an industrial control computer, including: and the processor is connected with the memory, the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory, so that the industrial personal computer can execute the method provided in any one of the first aspect.
In a fourth aspect, an embodiment of the present application provides an optical calibration system comprising a laser head, a measurement device and an industrial computer, wherein the industrial computer is configured to perform the method as provided in any one of the first aspects.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program that causes a computer to perform the method as provided in any one of the first aspects.
In a sixth aspect, embodiments of the present application provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer being operable to cause a computer to perform the method of the first or second aspect.
It will be appreciated that the industrial personal computer according to the second and third aspects, the laser processing control system according to the fourth aspect, the computer storage medium according to the fifth aspect or the computer program product according to the sixth aspect provided above are each adapted to implement the method provided in any one of the first aspects. Therefore, the advantages achieved by the method can be referred to as the advantages of the corresponding method, and will not be described herein.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an optical calibration system according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of an optical calibration method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a positional relationship of calibration points according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a positional relationship of another calibration point according to an embodiment of the present application.
Fig. 5a illustrates the intensity signal and the filtered intensity signal collected by the measuring device when a plurality of calibration points are distributed in a spiral.
Fig. 5b illustrates the stability of defocus determined using the conventional scheme and the stability of defocus determined using the scheme of the present application.
Fig. 6 is a schematic structural diagram of an industrial personal computer according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of another industrial personal computer according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of the application, the description of the drawings, and the claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. It should be understood that although the terms "first," "second," and the like may be used in embodiments of the present application, the terms "first," "second," and the like do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. Likewise, the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one. The term "plurality" in the embodiments of the present application means greater than or equal to two.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an optical calibration system according to an embodiment of the present application. As shown in fig. 1, the system includes a laser head 101, a measuring device 102, and an industrial computer 108.
The measuring device 102 comprises, among other things, a collimator 103, a liquid lens 104, a beam splitter 105, a light source 106 and a photosensor 107. In one example, the light source 106 is located inside the measurement device 102. In another example, the light source 106 is located external to the measurement device 102.
During measurement, the laser head is aligned to a workpiece, the light source 106 enters the laser head 101 through the spectroscope 105, the liquid lens 104 and the collimating lens 103 to irradiate the workpiece, light reflected by the workpiece passes through the laser head 101, the collimating lens 103, the liquid lens 104 and the spectroscope 105 and finally reaches the photoelectric sensor 107, the photoelectric sensor 107 is used for collecting reflected light signals, the photoelectric sensor 107 outputs a light intensity value, and the industrial computer 108 can obtain a functional relationship between a distance between a converging focus of processing laser coaxial with a light-emitting path of detection light passing through the liquid lens and the surface of an object to be measured and an electric signal amplitude based on the light intensity value output by the industrial computer 108 according to the embodiment shown in fig. 2. The electric signal amplitude here refers to the input electric signal amplitude of the liquid lens.
The following describes the aspects of the application in detail.
Referring to fig. 2, fig. 2 is a schematic flow chart of an optical calibration method according to an embodiment of the present application. As shown in fig. 2, the method includes:
s201, the industrial control computer selects a plurality of calibration points on the surface of the object to be detected.
Specifically, the industrial control computer randomly selects one calibration point on the surface of the object to be detected as a first calibration point, and then determines a plurality of second calibration points around the first calibration point. Wherein a 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 includes a first calibration point and a plurality of second calibration points.
In one example, the plurality of second calibration points are distributed in a rectangular shape (as shown in the left diagram in fig. 3) or in a circular shape (as shown in the right diagram in fig. 3) centering on the first calibration point.
In another example, as shown in the left diagram of fig. 4, the plurality of second calibration points are spirally distributed with the first calibration point as a starting point. In another example, portions of the plurality of second calibration points are helically distributed starting from the first calibration point, which may be referred to as a first helix group; and obtaining at least one second spiral group according to the same spiral distribution mode at other parts of the second calibration points, wherein the distance between the first spiral group and the second spiral group is smaller than a second preset distance. When the number of the second helical masses is plural, the second helical masses are distributed in a rectangular shape or in a ring shape with the first helical masses as the center.
It is noted that the distance between the first helical mass and the second helical mass refers to the distance between the start of the first helical mass and the start of the second helical mass.
The right diagram of fig. 4 illustrates the positional relationship between the first helical masses and the 4 second helical masses. As shown in the right diagram of fig. 4, the 4 second helical masses are distributed in a rectangular shape centering on the first helical mass. It should be noted that the right diagram in fig. 4 to the schematic 4 second helical masses, the right diagram in fig. 4 chinese is only an example, and the number of second helical masses is not limited herein.
And S202, on the premise that the distance between a converging focus of processing laser coaxial with a detection light emergent light path passing through the liquid lens and the surface of the object to be detected is a first determined value, the industrial control computer controls the detection light emergent light to traverse the plurality of calibration points through the liquid lens, and in the process of controlling the detection light emergent light to traverse the plurality of calibration points, the amplitude of an input electric signal of the liquid lens is adjusted.
Specifically, on the premise that the distance between the converging focus of the processing laser and the surface of the object to be measured is a first determined value, controlling the laser head to emit light to traverse a plurality of standard points, and periodically adjusting the amplitude of the input electric signal of the liquid lens in a third preset electric signal amplitude range in the process of controlling the detection light to emit light to traverse the plurality of standard points through the liquid lens; and increasing the amplitude of the input electrical signal of the liquid lens or decreasing the amplitude of the input electrical signal of the liquid lens in one period; the third preset electric signal amplitude range is within the working electric signal amplitude range of the liquid lens; the laser head is able to traverse multiple index points in one cycle. Because the amplitude of the input electrical signal of the liquid lens is continuously adjusted during the process of traversing the plurality of calibration points and is adjusted in a way of increasing or decreasing the amplitude of the input electrical signal, the amplitude of the input electrical signal of the liquid lens is continuous, not discrete during the process of traversing the plurality of calibration points.
It will be appreciated that the focal length of the liquid lens is adjustable, the focal length of the liquid lens being related to the magnitude of the input electrical signal. The input electrical signal is a voltage signal or a current signal. In one example, the focal length of a liquid lens, for example, increases with increasing input current.
It should be noted that, for the case that the plurality of calibration points are distributed according to the left graph in fig. 4, in one example, the order in which the detected light exits from the industrial control computer to traverse the plurality of calibration points is not limited; in another example, the industrial control computer controls the detection light to traverse the plurality of calibration points in a spiral order with the first calibration point as a starting point.
For the case that the plurality of calibration points are distributed according to the right graph in fig. 4, in one example, the order in which the detected light exits from the industrial control computer to traverse the plurality of calibration points is not limited; in another example, the industrial control computer controls the detection light to emit light by taking a first standard point as a starting point, traversing the first spiral group according to a spiral sequence, and then traversing the second spiral group clockwise or anticlockwise by taking the first spiral group as a center; when traversing a second helix bolus, it is traversed in such a way that the first helix bolus is traversed.
In one example, the third predetermined electrical signal amplitude range is [1mV,10mV ].
S203, the industrial personal computer acquires a plurality of first light intensity values of reflected light reflected by the surface of the object to be detected and acquires a plurality of first electric signal amplitudes of the liquid lens input current corresponding to the plurality of first light intensity values in the process of controlling the detected light to traverse the plurality of standard points.
Specifically, in the process of one traversal, reflected light reflected by the surface of the object to be detected is received by the measuring equipment, a photoelectric sensor of the measuring equipment collects reflected light signals according to a certain frequency, the industrial control computer further obtains a plurality of first light intensity values, and meanwhile, the industrial control computer records input electric signal amplitude values of the liquid lens when the plurality of first light intensity values are respectively collected, namely a plurality of first electric signal amplitude values, and the plurality of first electric signal amplitude values correspond to the plurality of first light intensity values.
S204, the industrial personal computer determines a second electric signal amplitude value based on the first light intensity values and the first electric signal amplitude values.
In order to eliminate interference signals of the light intensity signals, the industrial personal computer carries out filtering processing on the first light intensity values to obtain second light intensity values, and the first electric signal amplitude values correspond to the second light intensity values.
Fig. 5a illustrates the intensity signal and the filtered intensity signal collected by the measuring device when a plurality of calibration points are distributed in a spiral. The light lines represent the intensity signal collected by the measuring device and the dark lines represent the filtered intensity signal. As can be seen from fig. 5a, the collected light intensity signal has a significant periodicity, which is convenient for subsequent processing.
It should be noted that, in practical situations, for the same surface of the same material, the microscopic level is not absolutely smooth, the surface roughness of the positions of the points is different, and the light intensity signals collected by the photoelectric sensor of the measuring device are different under the same determined defocus amount. In the scheme of the application, the photoelectric sensor of the measuring equipment collects light intensity signals according to a certain frequency, which can be regarded as a sampling process, and the light intensity signals reflected by different positions on the surface of the processing material are subjected to average processing, so that the photoelectric sensor of the measuring equipment collects the light intensity signals according to a certain frequency, which is beneficial to overcoming the problem that the light intensity signals collected by the photoelectric sensor of the measuring equipment are different under the same determined distance between the converging focus of the processing laser and the surface of the object to be measured, and further is beneficial to improving the accuracy of the functional relationship between the distance between the converging focus of the processing laser and the surface of the object to be measured and the amplitude of the electric signal.
In one possible implementation, the second electrical signal amplitude is the first electrical signal amplitude corresponding to the largest light intensity value of the plurality of second light intensity values.
In one possible implementation, the industrial control computer determines a first functional relationship between the light intensity values and the electrical signal amplitudes based on the plurality of second light intensity values and the plurality of first electrical signal amplitudes; the industrial control computer determines an electric signal amplitude corresponding to a maximum light intensity value in a first preset electric signal range based on a first functional relation, wherein the electric signal amplitude corresponding to the maximum light intensity value is a second electric signal amplitude, and the upper limit and the lower limit of the first preset electric signal amplitude range are respectively the maximum value and the minimum value in a plurality of second light intensity values.
Specifically, the industrial control computer fits a plurality of second light intensity values and a plurality of first electric signal amplitudes corresponding to the plurality of second light intensity values by using a least square method to obtain a first functional relation between the light intensity values and the electric signal amplitudes, and then calculates a maximum light intensity value in a first preset electric signal amplitude range based on the first functional relation, wherein the electric signal amplitude corresponding to the maximum light intensity value is the second electric signal amplitude, and the upper limit and the lower limit of the first preset electric signal amplitude range are the maximum value and the minimum value in the plurality of second light intensity values respectively.
In a possible implementation manner, the industrial personal computer acquires a plurality of third light intensity values from the plurality of second light intensity values through a preset time window, wherein a central time point of the preset time window is acquisition time corresponding to a maximum light intensity value in the plurality of second light intensity values, and the industrial personal computer acquires a plurality of first electric signal amplitudes corresponding to the plurality of third light intensity values from the plurality of first electric signal amplitudes; determining a functional relationship between the light intensity values and the electrical signal amplitudes based on a plurality of third light intensity values and a plurality of first electrical signal amplitudes corresponding to the plurality of third light intensity values; and determining an electric signal amplitude corresponding to a maximum light intensity value in a second preset electric signal amplitude range based on a second functional relation, wherein the electric signal amplitude corresponding to the maximum light intensity value is the second electric signal amplitude, and the upper limit and the lower limit of the second preset electric signal amplitude range are respectively the maximum value and the minimum value in a plurality of first electric signal amplitudes corresponding to a plurality of third light intensity values.
Specifically, the industrial control computer intercepts part of the second light intensity values from the second light intensity values to obtain a plurality of third light intensity values; the plurality of third light intensity values includes a maximum light intensity value among the plurality of second light intensity values and a light intensity value for a first predetermined duration between the acquisition time and the acquisition time of the maximum light intensity value. The intercepting mode can be as follows: intercepting part of the second light intensity values from the second light intensity values through a preset time window, wherein the center time of the preset time window is the acquisition time corresponding to the maximum light intensity value in the second light intensity values, and the width of the preset time window is the second preset duration. Of course, other ways are possible and are not limited herein. The industrial control computer fits a plurality of second light intensity values and a plurality of first electric signal amplitudes corresponding to the plurality of second light intensity values by using a least square method to obtain a second functional relation between the light intensity values and the electric signal amplitudes, and then the second functional relation calculates to obtain a maximum light intensity value in a second preset electric signal amplitude range, wherein the electric signal amplitude corresponding to the maximum light intensity value is the second electric signal amplitude.
It can be seen that, the maximum light intensity value is intercepted from the plurality of second light intensity values and the light intensity value with the first preset duration in the acquisition time interval between the acquisition time and the maximum light intensity value, and the unitary quadratic function between the light intensity value and the electric signal amplitude can be obtained based on the plurality of intercepted third light intensity values and the corresponding electric signal amplitude.
It should be understood that when the light intensity collected by the photosensor of the measuring apparatus is maximum, it can be regarded that the converging focus of the processing laser light coaxial with the detection light-emitting light path passing through the liquid lens is on the surface of the processing material, and at this time, the converging focus of the processing laser light coaxial with the detection light-emitting light path passing through the liquid lens corresponds to the amplitude of the input electric signal of the liquid lens.
S205, the industrial computer adjusts the distance between the converging focus of the processing laser and the surface of the object to be detected, and repeatedly executes S202 to S205 until a plurality of groups of data are obtained, wherein each group of data comprises the distance between the converging focus of one processing laser and the surface of the object to be detected and the second electric signal amplitude.
Specifically, the distance between the converging focus of the processing laser and the surface of the object to be measured can be adjusted by the industrial computer, which is not limited herein; and under the condition of adjusting the distance between the converging focus of the processing laser and the surface of the object to be detected, the industrial control computer executes S202-S205 until a plurality of groups of data are obtained, wherein each group of data in the plurality of groups of data comprises one value of the distance between the converging focus of the processing laser and the surface of the object to be detected and a second electric signal amplitude value. Wherein, the distance between the converging focus of the processing laser of different groups and the surface of the object to be measured is different in value.
S206, the industrial control computer determines a calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the amplitude of the input electric signal of the liquid lens based on a plurality of groups of data.
Specifically, the industrial control computer utilizes a least square method to determine the distance between the converging focus of the processing laser and the surface of the object to be measured and the second electric signal amplitude value based on the multiple groups of data in the multiple groups of data, so as to obtain a calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the input electric signal amplitude value of the liquid lens.
And obtaining a calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the amplitude of the input electric signal of the liquid lens, and verifying the precision of the calibration function relation to ensure the precision of the calibration function relation.
In a possible implementation manner, the industrial personal computer executes S202-S204 on the premise of a plurality of second defocus amounts respectively to obtain a plurality of second electric signal amplitudes corresponding to a plurality of second determination values respectively; determining distances between a converging focus of a plurality of predicted processing lasers corresponding to a plurality of second determined values and the surface of the object to be detected based on the second electric signal amplitude and the calibration function relation; determining the precision of a calibration function relationship based on the second determined values and the distances between the converging focuses of the predicted processing lasers and the surface of the object to be measured; and when the precision of the obtained calibration function relation is smaller than the preset precision, the industrial control computer repeatedly executes S201-S206 until the precision of the obtained calibration function relation is not smaller than the preset precision.
Further, the industrial control computer calculates a difference value between the distance between the convergence focus of each predicted processing laser and the surface of the object to be detected and a corresponding second determined value in the distances between the convergence focus of the plurality of predicted processing lasers and the surface of the object to be detected, so as to obtain a plurality of difference values; obtaining an average value or variance of the plurality of differences based on the plurality of differences; and determining the accuracy of the obtained calibration function relation based on the average value or the variance, wherein the accuracy of the obtained calibration function relation is inversely proportional to the average value or the variance.
After the function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the electric signal amplitude is obtained, determining the precision of the calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the electric signal amplitude, and when the precision is smaller than the preset precision, re-obtaining the calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the electric signal amplitude until the precision of the calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the electric signal amplitude is not smaller than the preset precision, and then determining the distance between the converging focus of the processing laser and the surface of the object to be measured based on the obtained function relation.
Fig. 5b illustrates the stability of defocus determined using the conventional scheme and the stability of defocus determined using the scheme of the present application. As can be seen from fig. 5b, the stability of the defocus amount determined using the scheme of the present application is significantly higher than that determined using the conventional scheme. The light bars represent the stability of defocus determined using the conventional scheme, and the dark bars represent the stability of defocus determined using the scheme of the present application.
It can be seen that, in the solution of this embodiment, by selecting a plurality of calibration points simultaneously in one calibration process, in the process of calibrating a plurality of calibration points at a certain distance (i.e., defocus) between the converging focus of the processing laser coaxial with the light-emitting path of the detection light passing through the liquid lens and the surface of the object to be measured, there is no need to manually adjust the defocus to the determined defocus a plurality of times, thereby avoiding errors caused by manual introduction, and being beneficial to improving the precision of the calibration functional relationship between the distance between the converging 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. The standard points in rectangular distribution, annular distribution or spiral distribution are selected, so that the collected light intensity signals have obvious periodicity, and further the subsequent filtering operation is facilitated. After the calibration function relation of the distance between the converging focus of the processing laser and the surface of the object to be measured and the electric signal amplitude is obtained, determining the precision of the calibration function relation, and when the precision is smaller than the preset precision, re-obtaining the calibration function relation of the distance between the converging focus of the processing laser and the surface of the object to be measured and the electric signal amplitude input by the liquid lens until the precision of the obtained calibration function relation is not smaller than the preset precision, and then determining the precision of the distance between the converging focus of the processing laser and the surface of the object to be measured based on the obtained calibration function relation.
Referring to fig. 6, an embodiment of the present application provides a schematic structural diagram of an industrial personal computer. As shown in fig. 6, the industrial control computer 600 includes:
a selecting unit 601, configured to select a plurality of calibration points on a surface of an object to be measured;
A control unit 602 for controlling the detection light to traverse the plurality of calibration points through the liquid lens on the premise that the distance between the converging focus of the processing laser light coaxial with the detection light path through the liquid lens and the surface of the object to be measured is a first determined value,
An adjusting unit 603, configured to adjust an amplitude of an input electrical signal of the liquid lens during a process of controlling the detected light to traverse the plurality of calibration points;
The obtaining unit 604 is configured to obtain a plurality of first light intensity values of reflected light reflected by the surface of the object to be detected and obtain a plurality of first electric signal amplitudes of the liquid lens input current corresponding to the plurality of first light intensity values in a process of controlling the detected light to traverse the plurality of calibration points;
A determining unit 605 for determining a second electrical signal amplitude value based on the plurality of first light intensity values and the plurality of first electrical signal amplitude values;
The adjusting unit 603 is further configured to adjust a distance between the converging focus of the processing laser and the surface of the object to be measured, where the control unit 602, the adjusting unit 603, the obtaining unit 604, and the determining unit 605 repeatedly perform corresponding operations until a plurality of sets of data are obtained, where each set of data includes a distance between the converging focus of the processing laser and the surface of the object to be measured and a second electrical signal amplitude;
The determining unit 605 is further configured to determine a calibration functional relationship between a distance between a converging focal point of the processing laser and a surface of the object to be measured and an input electric signal amplitude of the liquid lens based on the multiple sets of data.
In one possible implementation, the selecting unit 601 is specifically configured to:
Selecting a point on the surface of the object to be measured as a first standard point; a plurality of second calibration points are determined around the first calibration point, each second calibration point being less than a first predetermined distance from the first calibration point.
In one possible implementation, the plurality of second calibration points are distributed in a matrix or in a ring shape centered on the first calibration point, or in a spiral shape centered on the first calibration point.
In one possible implementation manner, part of the second calibration points in the plurality of second calibration points are spirally distributed with the first calibration points as starting points, so as to obtain a first spiral cluster; and the other second calibration points in the plurality of second calibration points are respectively spirally distributed with at least one of the second calibration points as a starting point to obtain at least one second spiral group, and the at least one spiral group is spirally distributed with the first spiral group as a starting point.
In one possible implementation, the adjusting unit 603 is specifically configured to, in adjusting the amplitude of the input electrical signal of the liquid lens:
Periodically adjusting the amplitude of the input electric signal of the liquid lens in a third preset electric signal amplitude range; and increasing the amplitude of the input electrical signal of the liquid lens or decreasing the amplitude of the input electrical signal of the liquid lens in one period; the third preset electric signal amplitude range is within the working electric signal amplitude range of the liquid lens; the laser head is able to traverse multiple index points in one cycle.
In one possible implementation, the industrial control computer 600 further includes:
a filtering unit 606, configured to perform a filtering process on the plurality of first light intensity values to obtain a plurality of second light intensity values before determining the second electrical signal amplitude based on the plurality of first light intensity values and the plurality of first electrical signal amplitudes; the plurality of second light intensity values correspond to the plurality of first current values;
In terms of determining the second electrical signal amplitude based on the plurality of first light intensity values and the plurality of first electrical signal amplitudes, the determining unit 605 is specifically configured to: the second electrical signal amplitude is determined based on the plurality of second light intensity values and the plurality of first electrical signal amplitudes.
In one possible implementation, the determining unit 605 is specifically configured to, in determining the second electrical signal amplitude based on the plurality of second light intensity values and the plurality of first electrical signal amplitudes:
Determining a first functional relationship between the light intensity values and the electrical signal amplitudes based on the plurality of second light intensity values and the plurality of first electrical signal amplitudes; the industrial control computer corresponds to the electric signal amplitude value at the maximum light intensity value in the first preset electric signal amplitude value range based on the first functional relation, and the electric signal amplitude value is the second electric signal amplitude value; the upper limit and the lower limit of the amplitude range of the first preset electric signal are respectively the maximum value and the minimum value of the second light intensity values.
In one possible implementation, the determining unit 605 is specifically configured to, in determining the second electrical signal amplitude based on the plurality of second light intensity values and the plurality of first electrical signal amplitudes:
Acquiring a plurality of third light intensity values from the plurality of second light intensity values through a preset time window, wherein the central time point of the preset time window is acquisition time corresponding to the maximum light intensity value in the plurality of second light intensity values, and the industrial personal computer acquires a plurality of first electric signal amplitudes corresponding to the plurality of third light intensity values from the plurality of first electric signal amplitudes; determining a second functional relationship between the light intensity values and the electrical signal amplitudes 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; and determining an electric signal amplitude corresponding to a maximum light intensity value in a second preset electric signal amplitude range based on a second functional relation, wherein the electric signal amplitude corresponding to the maximum light intensity value is the second electric signal amplitude, and the upper limit and the lower limit of the second preset electric signal amplitude range are respectively the maximum value and the minimum value in a plurality of first electric signal amplitudes corresponding to a plurality of third light intensity values.
In one possible implementation manner, on the premise that the distance between the converging focal point of the processing laser and the surface of the object is a plurality of second determined values, the control unit 602, the adjusting unit 603, the obtaining unit 604 and the determining unit 605 execute S2-S4 to obtain a plurality of second electric signal amplitudes corresponding to the plurality of second determined values respectively;
A determining unit 605, configured to determine distances between the converging focuses of the plurality of predicted processing lasers corresponding to the plurality of second determined values and the surface of the object to be measured based on the second electric signal amplitude and the calibration function relation; determining the precision of a calibration function relationship based on the second determined values and the distances between the converging focuses of the predicted processing lasers and the surface of the object to be measured;
The control unit 602, the adjusting unit 603, the obtaining unit 604 and the determining unit 605 are configured to repeatedly execute S1-S6 when the accuracy of the obtained calibration function relation is less than the preset accuracy, until the accuracy of the obtained calibration function relation is not less than the preset accuracy.
In one possible implementation, the determining unit 605 is further configured to:
calculating a difference value between the distance between the converging focus of each predicted processing laser and the surface of the object to be detected and a corresponding second determined value in the distances between the converging focus of the plurality of predicted processing lasers and the surface of the object to be detected, so as to obtain a plurality of difference values; obtaining an average value or variance of the plurality of differences based on the plurality of differences; and determining the accuracy of the obtained calibration function relation based on the average value or the variance, wherein the accuracy of the obtained calibration function relation is inversely proportional to the average value or the variance.
Note that the above units (the selection unit 601, the control unit 602, the adjustment unit 603, the acquisition unit 604, and the determination unit 605 and the filtering unit 606) are configured to perform the relevant steps of the above method. Each unit or module in the industrial personal computer 600 may be combined into one or several other units or modules, or some unit(s) or module(s) may be further split into multiple units or modules with smaller functions, which may achieve the same operation without affecting the implementation of the technical effects of the embodiments of the present invention. The above units or modules are divided based on logic functions, and in practical applications, the functions of one unit (or module) may be implemented by a plurality of units (or modules), or the functions of a plurality of units (or modules) may be implemented by one unit (or module).
Based on the description of the method embodiment and the apparatus embodiment, please refer to fig. 7, a schematic structural diagram of an industrial personal computer 700 is further provided in the embodiment of the present invention. The industrial personal computer 700 shown in fig. 7 (the industrial personal computer 700 may be a computer device specifically) 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 by a bus 704.
The Memory 701 may be a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a random access Memory (Random Access Memory, RAM).
The memory 701 may store a program, and the processor 702 and the communication interface 703 are configured to perform the steps of the optical calibration method according to the embodiment of the present application when the program stored in the memory 701 is executed by the processor 702.
The processor 702 may employ a general-purpose central processing unit (Central Processing Unit, CPU), microprocessor, application SPECIFIC INTEGRATED Circuit (ASIC), graphics processor (graphics processing unit, GPU) or one or more integrated circuits for executing associated programs to perform functions required by the elements in the industrial computer 600 of the present application or to perform optical calibration methods of the present application.
The processor 702 may also be an integrated circuit chip with signal processing capabilities. In implementation, the various steps of the additive manufacturing quality detection method of the present application may be accomplished by instructions in the form of integrated logic circuits or software of hardware in the processor 702. The processor 702 may also be a general purpose processor, a digital signal processor (DIGITAL SIGNAL Processing unit, DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (Field Programmable GATE ARRAY, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 701, and the processor 702 reads the information in the memory 701, and combines the hardware thereof to perform the functions required to be performed by the units included in the industrial personal computer 700 according to the embodiment of the present application, or perform the optical calibration method according to the embodiment of the present application.
The communication interface 703 enables communication between the industrial personal computer 700 and other devices or communication networks using a transceiver device such as, but not limited to, a transceiver. For example, data may be acquired through the communication interface 703.
Bus 704 may include a path for transferring information between components of industrial personal computer 700 (e.g., memory 701, processor 702, communication interface 703).
It should be noted that although the industrial personal computer 700 shown in fig. 7 only shows a memory, a processor, and a communication interface, those skilled in the art will appreciate that in the specific implementation, the industrial personal computer 700 also includes other devices necessary to achieve normal operation. Also, as will be appreciated by those skilled in the art, the industrial personal computer 700 may also include hardware devices that perform other additional functions, as desired. Furthermore, those skilled in the art will appreciate that the industrial personal computer 700 may also include only the necessary components to implement embodiments of the present application, and not necessarily all of the components shown in FIG. 7.
The embodiment of the application also provides a chip, which comprises a processor and a data interface, wherein the processor reads the instructions stored in the memory through the data interface so as to realize the optical calibration method.
Optionally, as an implementation manner, the chip may further include a memory, where the memory stores instructions, and the processor is configured to execute the instructions stored on the memory, and when the instructions are executed, the processor is configured to perform the optical calibration method.
Embodiments of the present application also provide a computer-readable storage medium having instructions stored therein, which when run on a computer or processor, cause the computer or processor to perform one or more steps of any of the methods described above.
Embodiments of the present application also provide a computer program product comprising instructions. The computer program product, when run on a computer or processor, causes the computer or processor to perform one or more steps of any of the methods described above.
Those of skill in the art will appreciate that the functions described in connection with the various illustrative logical blocks, modules, and algorithm steps described in connection with the disclosure herein may be implemented as hardware, software, firmware, or any combination thereof. If implemented in software, the functions described by the various illustrative logical blocks, modules, and steps may be stored on a computer readable medium or transmitted as one or more instructions or code and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media corresponding to tangible media, such as data storage media, or communication media including any medium that facilitates transfer of a computer program from one place to another (e.g., based on a communication protocol). In this manner, a computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, such as a signal or carrier wave. 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, code and/or data structures for implementing the techniques described in this disclosure. The computer program product may include a computer-readable medium.
By way of example, and not limitation, such computer-readable storage media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed a computer-readable medium. For example, if the 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 medium. It should be understood that the computer-readable storage medium and data storage medium do not include connections, carrier waves, signals, or other transitory media, but are actually directed to non-transitory tangible storage media. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, digital Versatile Disc (DVD), and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The 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 circuitry. Thus, the term "processor" as used herein may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein. Additionally, in some aspects, the functions described by the various illustrative logical 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 combination codec. Moreover, the techniques may be fully implemented in one or more circuits or logic elements.
The techniques of this disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an Integrated Circuit (IC), or a set of ICs (e.g., a chipset). The various components, modules, or units are described in this disclosure in order to emphasize functional aspects of the devices for performing the disclosed techniques, but do not necessarily require realization by different hardware units. Indeed, as described above, the various units may be combined in an encoded hardware unit in combination with suitable software and/or firmware, or provided by interoperating hardware units, including one or more processors as described above.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to specific descriptions of corresponding step procedures in the foregoing method embodiments, and are not repeated herein.
It should be understood that in the description of the present application, "/" means that the associated objects are in a "or" relationship, unless otherwise specified, for example, a/B may represent a or B; wherein A, B may be singular or plural. Also, in the description of the present application, unless otherwise indicated, "a plurality" means two or more than two. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural. In addition, in order to facilitate the clear description of the technical solution 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 item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ. Meanwhile, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion that may be readily understood.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the division of the unit is merely a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. The coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of 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.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 loaded and executed on a computer, produces a flow or function in accordance with embodiments of the application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a read-only memory (ROM), or a random-access memory (random access memory, RAM), or a magnetic medium such as a floppy disk, a hard disk, a magnetic tape, a magnetic disk, or an optical medium such as a digital versatile disk (DIGITAL VERSATILEDISC, DVD), or a semiconductor medium such as a Solid State Disk (SSD), or the like.
The foregoing is merely a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited to this, and any changes or substitutions within the technical scope disclosed in the embodiment of the present application should be covered in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.
The apparatus embodiments described above are merely illustrative, wherein the units and modules illustrated as separate components may or may not be physically separate. In addition, some or all of the units and modules can be selected according to actual needs to achieve the purpose of the embodiment scheme. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing is merely illustrative of the embodiments of this application and it will be appreciated by those skilled in the art that variations and modifications may be made without departing from the principles of the application, and it is intended to cover all modifications and variations as fall within the scope of the application.

Claims (15)

1. An optical calibration method, the method comprising:
s1: selecting a plurality of calibration points on the surface of an object to be measured;
s2: on the premise that the distance between a converging focus of processing laser coaxial with a detection light emergent light path passing through a liquid lens and the surface of an object to be detected is a first determined value, controlling the detection light emergent light to traverse the plurality of calibration points through the liquid lens, and adjusting the amplitude of an input electric signal of the liquid lens in the process of controlling the detection light emergent light to traverse the plurality of calibration points;
S3: in the process of controlling the detection light to traverse the plurality of calibration points, acquiring a plurality of first light intensity values of reflected light reflected by the surface of the object to be detected, and acquiring a plurality of first electric signal amplitudes of the liquid lens input current corresponding to the plurality of 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 converging focus of the processing laser and the surface of the object to be detected, and repeatedly executing S2-S5 until a plurality of groups of data are obtained, wherein each group of data comprises the distance between the converging focus of the processing laser and the surface of the object to be detected and a second electric signal amplitude;
S6: and determining a calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be measured and the amplitude of the input electric signal of the liquid lens based on the plurality of groups of data.
2. The method according to claim 1, wherein the method further comprises:
Filtering the plurality of first light intensity values to obtain a plurality of second light intensity values before determining a second electrical signal amplitude based on the plurality of first light intensity values and the plurality of first electrical signal amplitudes; the plurality of second light intensity values corresponds to the plurality of first current values;
The determining a second electrical signal amplitude based on the plurality of first light intensity values and the plurality of first electrical signal amplitudes includes:
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 of claim 2, wherein the determining a second electrical signal amplitude based on the plurality of second light intensity values and the plurality of first electrical signal amplitudes comprises:
Determining a first functional relationship between the light intensity values and the electrical signal magnitudes based on the plurality of second light intensity values and the plurality of first electrical signal magnitudes;
And determining an electric signal amplitude corresponding to a maximum light intensity value in the first preset electric signal amplitude range based on the first functional relation, wherein the electric signal amplitude corresponding to the maximum light intensity value is the second electric signal amplitude, and the upper limit and the lower limit of the first preset electric signal amplitude range are respectively the maximum value and the minimum value in the plurality of second light intensity values.
4. The method of claim 2, wherein the determining a second electrical signal amplitude based on the plurality of second light intensity values and the plurality of first electrical signal amplitudes comprises:
obtaining a plurality of third light intensity values 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 in the plurality of second light intensity values,
Acquiring a plurality of first electric signal amplitudes corresponding to the plurality of third light intensity values from a plurality of first electric signal amplitudes corresponding to the plurality of second light intensity values;
determining a second functional relationship between the light intensity values and the electrical signal amplitudes 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;
And determining an electric signal amplitude corresponding to a maximum light intensity value in a second preset electric signal amplitude range based on the second functional relation, wherein the electric signal amplitude corresponding to the maximum light intensity value is the second electric signal amplitude, and the upper limit and the lower limit of the second preset electric signal amplitude range are respectively the maximum value and the minimum value in a plurality of first electric signal amplitudes corresponding to the plurality of third light intensity values.
5. The method of claim 2, wherein the second electrical signal amplitude is a first electrical signal amplitude corresponding to a maximum light intensity value of the plurality of second light intensity values.
6. The method of any of claims 1-5, wherein said adjusting the magnitude of the input electrical signal amplitude of the liquid lens comprises:
Periodically adjusting the amplitude of the input electric signal of the liquid lens in a third preset electric signal amplitude range; and increasing the input electrical signal amplitude of the liquid lens or decreasing the input electrical signal amplitude of the liquid lens in one period; the third preset electric signal amplitude range is within the working electric signal amplitude range of the liquid lens; the laser head is able to traverse the plurality of calibration points in one cycle.
7. The method according to any one of claims 1-6, further comprising:
S2-S4 is executed on the premise that the distance between the converging focus of the processing laser and the surface of the object to be detected is a plurality of second determined values, so that a plurality of second electric signal amplitudes corresponding to the second determined values are obtained;
determining distances between a plurality of predicted converging focuses of the processing laser corresponding to the second determined values and the surface of the object to be measured based on the second electric signal amplitude and the calibration function relation;
Determining the precision of the calibration function relationship based on the second determined values and the predicted distances between the converging focuses of the processing lasers and the surface of the object to be measured;
And when the precision is smaller than the preset precision, repeating the steps S1-S6 until the precision is not smaller than the preset precision.
8. The method of claim 7, wherein determining the accuracy of the calibration function based on the second plurality of determined values and the plurality of predicted distances between the converging focus of the processing laser light and the surface of the object to be measured comprises:
Calculating differences between the distances between the convergence focus of each of the plurality of predicted processing lasers and the surface of the object to be detected and the corresponding second determined value in the distances between the convergence focus of each of the plurality of predicted processing lasers and the surface of the object to be detected, so as to obtain a plurality of differences;
Obtaining an average value or variance of the plurality of differences based on the plurality of differences;
The accuracy is determined based on the average or the variance, the accuracy being inversely proportional to the average or the variance.
9. The method of any one of claims 1-8, wherein selecting a plurality of calibration points on the surface of the test object comprises:
selecting a point on the surface of the object to be detected as a first standard 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 smaller than a first preset distance.
10. The method of claim 9, wherein the plurality of second calibration points are distributed in a matrix or in a ring shape centered on the first calibration point or in a spiral shape centered on the first calibration point.
11. The method of claim 9, wherein a portion of the second calibration points of the plurality of second calibration points are helically distributed starting from the first calibration point to obtain a first helix; and the other second calibration points of the plurality of second calibration points are respectively spirally distributed with at least one of the second calibration points as a starting point to obtain at least one second spiral group, and the at least one spiral group is spirally distributed with the first spiral group as a starting point.
12. An industrial control computer, comprising:
A selecting unit for selecting a plurality of calibration points on the surface of the object to be measured;
A control unit for controlling the detection light to traverse the plurality of calibration points through the liquid lens on the premise that the distance between the converging focus of the processing laser coaxial with the detection light emergent light path through the liquid lens and the surface of the object to be detected is a first determined value,
The adjusting unit is used for adjusting the amplitude of the input electric signal of the liquid lens in the process of controlling the detected light to traverse the plurality of standard points;
The acquisition unit is used for acquiring a plurality of first light intensity values of reflected light reflected by the surface of the object to be detected and acquiring a plurality of first electric signal amplitude values of the liquid lens input current corresponding to the plurality of first light intensity values in the process of controlling the detected light to traverse the plurality of calibration points;
a determining unit for determining a second electrical signal amplitude value based on the plurality of first light intensity values and the plurality of first electrical signal amplitude values;
The adjusting unit is further configured to adjust a distance between the converging focus of the processing laser and the surface of the object to be measured, where the control unit, the adjusting unit, the obtaining unit, the filtering unit, and the determining unit repeatedly perform corresponding operations until a plurality of sets of data are obtained, where each set of data includes a distance between the converging focus of the processing laser and the surface of the object to be measured and a second electrical signal amplitude;
And the determining unit is also used for determining the calibration function relation between the distance between the converging focus of the processing laser and the surface of the object to be detected and the input electric signal amplitude of the liquid lens based on the plurality of groups of data.
13. An industrial personal computer, characterized by comprising a processor, said processor being connected to a memory for storing a computer program, said processor being adapted to execute the computer program stored in said memory, to cause said industrial personal computer to perform the method according to any one of claims 1-11.
14. An optical calibration system, comprising: laser head, measuring device and industrial control computer, characterized in that the industrial control computer is adapted to perform the method according to any of claims 1-11.
15. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any one of claims 1-11.
CN202410167371.2A 2024-02-06 2024-02-06 Optical calibration method and related device Pending CN118032288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410167371.2A CN118032288A (en) 2024-02-06 2024-02-06 Optical calibration method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410167371.2A CN118032288A (en) 2024-02-06 2024-02-06 Optical calibration method and related device

Publications (1)

Publication Number Publication Date
CN118032288A true CN118032288A (en) 2024-05-14

Family

ID=90996436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410167371.2A Pending CN118032288A (en) 2024-02-06 2024-02-06 Optical calibration method and related device

Country Status (1)

Country Link
CN (1) CN118032288A (en)

Similar Documents

Publication Publication Date Title
CN109580549B (en) Method and device for calculating and calibrating material content
CN111220088B (en) Measurement system and method
US20190383718A1 (en) Thermal compensation
JP2016191677A (en) Specimen analyzer, blood coagulation analyzer, specimen analysis method and computer program
CN118032288A (en) Optical calibration method and related device
CN111157115B (en) Underwater Brillouin scattering spectrum acquisition method and device
TW218919B (en)
CN111007037A (en) Liquid concentration measuring device based on optical device, computer equipment and computer readable storage medium
CN116660176A (en) Fourier spectrum automatic baseline correction method, device and storage medium
WO2021258670A1 (en) Calibration method, apparatus and device for coherent optical module, and computer readable storage medium
CN113552557B (en) Range finding calibration method, device and equipment for flight time camera
CN113324665B (en) Wavemeter, method for obtaining parameters of wavemeter and method for on-line calibration
CN113030821A (en) Electric quantity calibration method and device
CN118032287A (en) Optical measurement device, optical measurement method and related device
CN115687881B (en) Error compensation measuring and calculating method for optimizing accuracy of ranging sensor and application thereof
CN109186940B (en) Monitoring method and monitoring device for testing precision
CN116862269B (en) Method for evaluating precision of rapid detection method by using big data
CN114370944B (en) Real-time online temperature monitoring method and system with calibration and correction functions
CN112485517B (en) Method for measuring frequency hopping time of phase-locked frequency source and terminal equipment
CN111722170B (en) Device and method for determining stability of calibrating device of electric quantity transmitter and electronic equipment
JP6065127B2 (en) Data processing device for particle size distribution measurement, particle size distribution measuring device equipped with the same, data processing method for particle size distribution measurement, and data processing program for particle size distribution measurement
US20210063143A1 (en) Multi-parameter calculation via modal power measurements
US20230029274A1 (en) Displacement meter and article manufacturing method
JP4104972B2 (en) Photoelectric sensor
KR101959990B1 (en) Apparatus and method for measuring refractive index

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination