Automatic laser focusing device and method, electronic equipment and storage medium

By using the zoom cylinder lens in the online laser autofocus device to adjust the divergence angle of the semi-elliptical laser beam and the rotation mechanism to adjust the beam incident area, the problem of the laser beam being unable to return is solved, the anti-interference ability is improved, and the successful completion of autofocus is ensured.

CN118584643APending Publication Date: 2024-09-03HEFEI I TEK OPTOELECTRONICS CO LTD

Patent Information

Application Number
CN202410975014.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

When the line laser autofocus device faces features such as holes on the surface of the object to be measured, the laser beam is likely to fail to return normally, resulting in autofocus failure and insufficient anti-interference capabilities.

Method used

By replacing the original cylindrical lens with a zoom cylindrical lens, the divergence angle of the semi-elliptical laser beam is adjusted to prevent the light spot from completely falling into the defects on the surface of the object to be measured, and the rotating mechanism is used to adjust the beam incident area to ensure that the light spot can be effectively reflected back to the image sensor.

Benefits of technology

It effectively improves the anti-interference ability of the line laser autofocus device, avoids the problem of the light spot completely falling into the surface defects of the object being measured, and ensures the successful completion of autofocus.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118584643A
    Figure CN118584643A
Patent Text Reader

Abstract

The invention discloses a laser automatic focusing device and method, electronic equipment and a storage medium, and relates to the field of automatic focusing. The automatic focusing device comprises an automatic focusing mechanism which uses an original cylindrical lens to modulate a circular laser beam into an elliptical laser beam diverging in the curvature direction of the original cylindrical lens and collimated in the non-curvature direction, and shields a half area of the elliptical laser beam in the non-curvature direction through a baffle to generate a semi-elliptical laser beam; the zoom cylindrical lens replaces an original cylindrical lens in the automatic focusing mechanism, and the focal length of the zoom cylindrical lens is adjusted to increase the divergence angle of the semi-elliptical laser beam in the curvature direction of the zoom cylindrical lens, so that the incident angle between the semi-elliptical laser beam and the optical axis of the objective lens is increased. The length of the light spot, focused on the surface of the measured object through the objective lens, of the semi-elliptical laser beam is prolonged, the problem that the light spot completely falls into the surface of the measured object is solved, and the anti-interference capacity of the automatic line laser focusing device is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of automatic focusing, and in particular relates to a laser automatic focusing device, method, electronic equipment and storage medium. Background Art

[0002] According to the shape of the light spot on the focal plane of the objective lens, laser autofocus technology can be divided into two categories: point laser and line laser. Among them, point laser has a smaller detection beam coverage area. When there are holes, pits and other features on the surface of the object being measured, the laser beam is very likely to fail to return to the sensor normally, resulting in autofocus failure.

[0003] Compared with point lasers, line lasers have stronger anti-interference capabilities and can be used in microscopic autofocus systems. For example, patent CN114994896A discloses an autofocus device based on line lasers, which can automatically adjust the distance between the microscope objective lens and the object to be measured through the cooperation of multiple devices such as lasers, cylindrical lenses, baffles, microscope objective lenses, motors, and image sensors, thereby achieving the purpose of autofocus.

[0004] However, in actual work, the line laser autofocus device (ie, the laser autofocus device of the present application) may still face the problem of autofocus failure due to features such as the laser line completely falling into the hole.

[0005] Therefore, there is an urgent need for a line laser autofocus device to further improve its anti-interference ability. Summary of the invention

[0006] The present application proposes a laser autofocus device, method, electronic device and storage medium, which are used to further improve the anti-interference capability of the line laser autofocus system.

[0007] To achieve the above objectives, this application proposes the following technical solutions: In a first aspect of the present application, a laser autofocus device is provided, the device comprising: The autofocus mechanism uses an original cylindrical lens to modulate a circular laser beam into an elliptical laser beam that diverges in the curvature direction of the original cylindrical lens and is collimated in the direction without curvature, and blocks half of the elliptical laser beam in the direction without curvature by a baffle to generate a semi-elliptical laser beam; the defocus state of the objective lens is judged by using a light spot focused by the semi-elliptical laser beam on the surface of the object to be measured through the objective lens, the defocus amount is calculated by the centroid of the light spot image formed by the reflection back to the image sensor, and the distance from the objective lens to the surface of the object to be measured is adjusted based on the defocus state and the defocus amount, so that the focus of the objective lens is located on the surface of the object to be measured; A zoom cylindrical lens replaces the original cylindrical lens in the autofocus mechanism. By adjusting the focal length of the zoom cylindrical lens, the divergence angle of the semi-elliptical laser light beam along the curvature direction of the zoom cylindrical lens is increased, thereby increasing the incident angle between the semi-elliptical laser light beam and the optical axis of the objective lens, so as to avoid the light spot focused on the surface of the object to be measured falling completely into the defects on the surface of the object to be measured.

[0008] Optionally, the zoom cylindrical lens is a divergent lens, and the divergence angle of the semi-elliptical laser beam along the curvature direction of the zoom cylindrical lens is increased by reducing the focal length of the zoom cylindrical lens.

[0009] Optionally, the baffle is fixedly connected to the zoom cylindrical lens.

[0010] Optionally, the device further comprises: A rotating mechanism, located in front of the objective lens, is used to adjust the incident area of ​​the semi-elliptical laser beam on the incident surface of the objective lens; The direction in which the semi-elliptical laser beam is incident on the objective lens is parallel to the optical axis of the objective lens, and the semi-elliptical laser beam completely falls on one side of the objective lens.

[0011] Optionally, the rotating mechanism is a rotating table and is fixedly connected to the baffle plate, and is used to rotate the baffle plate and the zoom cylindrical lens around the optical axis of the zoom cylindrical lens to adjust the incident area of ​​the semi-elliptical laser beam on the incident surface of the objective lens.

[0012] In a second aspect of the present application, a laser autofocus method is provided, the method being applied to the laser autofocus device of the first aspect, the method comprising: Determine whether there is a light spot in the light spot image output by the image sensor; If not, using a focusing mechanism to reduce the focal length of the zoom cylindrical lens, and determining whether there is a light spot in the light spot image after the focus adjustment; If so, then based on the first centroid formula, calculate the centroid of the spot image in the y direction after the focus adjustment ; Among them, the first centroid formula is: ; f(i,j) is the gray value of the pixel in the i-th row and j-th column in the spot image; i represents the sequence value of the pixel row in the spot image, i=1, 2, ..., m, m represents the total number of rows in the spot image; j represents the sequence value of the pixel column in the spot image, j=1, 2, ..., n, n represents the total number of columns in the spot image; Based on centroid Calculate the defocus of the objective lens; The distance from the objective lens to the surface of the object to be measured is adjusted according to the defocus amount so that the focus of the objective lens is located on the surface of the object to be measured.

[0013] Optionally, after determining whether there is a light spot in the light spot image after the focus is adjusted, the method further includes: If not, the baffle and the zoom cylindrical lens are rotated by using a rotating mechanism until a light spot exists in the light spot image, and the rotation angle θ is recorded; Based on the rotation angle θ and the second centroid formula, the centroid of the rotated spot image in the y direction is calculated. ; Among them, the second centroid formula is , ; Indicates the spot image Row, No. Gray value of column pixel; i represents the sequence value of pixel row in the spot image, i=1, 2, ..., m, m represents the total number of rows in the spot image; j represents the sequence value of pixel column in the spot image, j=1, 2, ..., n, n represents the total number of columns in the spot image; Round represents rounding operation; Based on centroid Calculate the defocus of the objective lens; The distance from the objective lens to the surface of the object to be measured is adjusted according to the defocus amount so that the focus of the objective lens is located on the surface of the object to be measured.

[0014] Optionally, the defocus amount is calculated as: ; Where O represents the defocus amount, Represented as the centroid or centroid ; It represents the reference centroid of the surface of the object under test within the depth of field of the objective lens; s represents the focusing sensitivity of the objective lens.

[0015] In a third aspect of the present application, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; The processor is used to implement any one of the laser autofocus methods when executing a program stored in the memory.

[0016] In a fourth aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, any one of the laser autofocus methods described is implemented.

[0017] The beneficial effects of this application are as follows: The present application provides a laser autofocus device, comprising: an autofocus mechanism, which uses an original cylindrical lens to modulate a circular laser beam into an elliptical laser beam that diverges in the curvature direction of the original cylindrical lens and is collimated in the direction without curvature, and blocks half of the elliptical laser beam in the direction without curvature through a baffle to generate a semi-elliptical laser beam; uses the semi-elliptical laser beam to focus on the surface of the object to be measured through the objective lens to determine the defocus state of the objective lens, calculates the defocus amount by the centroid of the spot image formed by reflecting back to the image sensor, and adjusts the distance from the objective lens to the surface of the object to be measured based on the defocus state and the defocus amount, so that the focus of the objective lens is located on the surface of the object to be measured; a zoom cylindrical lens replaces the original cylindrical lens in the autofocus mechanism, and is used to increase the divergence angle of the semi-elliptical laser beam along the curvature direction of the zoom cylindrical lens by adjusting the focal length of the zoom cylindrical lens, thereby increasing the incident angle between the semi-elliptical laser beam and the optical axis of the objective lens, so as to avoid the light spot focused on the surface of the object to be measured falling completely into the defect of the surface of the object to be measured.

[0018] Based on the above processing, the laser autofocus device provided by the present application uses a zoom cylindrical lens to replace the original cylindrical lens, and adjusts the focal length of the zoom cylindrical lens to expand the divergence angle of the semi-elliptical laser light beam along the curvature direction of the zoom cylindrical lens, thereby increasing the incident angle between the semi-elliptical laser light beam and the main optical axis of the objective lens, and extending the length of the light spot of the semi-elliptical laser light beam focused on the surface of the object to be measured through the objective lens, thereby solving the problem of the light spot falling completely into the surface defect of the object to be measured, and thereby improving the anti-interference ability of the line laser autofocus device. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 is a structural diagram of an autofocus mechanism provided by the present application; Figure 2 is a structural diagram of another autofocus mechanism provided by the present application; Figure 3 It is a schematic diagram of a semi-elliptical laser beam provided by the present application that completely falls into one side of the objective lens; Figure 4 is a schematic diagram of a laser line provided by the present application; Figure 5 It is a schematic diagram of a laser line provided by the present application that completely coincides with the surface features of the object being measured; Figure 6 It is a structural schematic diagram of a line laser autofocus device provided by the present application; Figure 7 It is a schematic diagram provided by the present application that a laser line and a surface feature of a measured object do not completely coincide with each other; Figure 8 It is a structural schematic diagram of another line laser autofocus device provided by the present application; Fig. 9 It is a schematic diagram of a semi-elliptical laser beam after rotation provided by the present application; Fig.10 It is a schematic diagram of a spot image of an objective lens in different focusing states provided by the present application; Fig.11 It is a structural schematic diagram of a rotating table provided by the present application; Fig.12 It is a structural schematic diagram of another line laser autofocus device provided in the present application.

[0020] In the figure, 1, laser; 2, original cylindrical lens; 3, baffle; 4, reflector; 5, first beam splitter; 6, second beam splitter; 7, objective lens; 8, object to be measured; 9, motor; 10, lens; 11, image sensor; 12, rotating mechanism; 1201, rotating table base; 1202, hollow turntable; 1203, cylindrical lens holder; 13, rotating mechanism; 14, zoom cylindrical lens. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0022] In the field of microscopic autofocus, optical microscopes magnify the surface image of an object through lens imaging. In order to obtain a meaningful image, the microscope objective must be accurately focused on the surface of the object being measured. The depth of field of a high-power microscope objective is generally only a few microns, and microscope operators often need to spend a lot of time manually adjusting the distance between the objective and the sample to achieve focus. Autofocus technology calculates the current defocus amount of the microscope objective through feedback signals and converts it into a motor motion signal. The motor drives the microscope objective to move to automate the focusing process.

[0023] According to the different types of feedback signals, autofocus technology can be divided into image autofocus technology and laser autofocus technology. Image autofocus technology calculates the clarity of the current image by digital image processing by designing an image clarity evaluation function, and judges the current defocus amount based on the quantified clarity value. Laser autofocus technology projects the laser directly onto the sample surface, and judges the defocus amount of the objective lens by the state of the laser reflected back from the sample surface. Image autofocus technology is completely dependent on the state of the collected image and is easily affected by the lighting environment. It needs to scan back and forth near the focus to determine the best focus position, with a slow focusing speed and a small focusing range. In contrast, laser focus technology, based on ordinary microscopes, adds a laser signal, has a larger focusing range and faster focusing speed, and is widely used in the field of industrial inspection.

[0024] In laser focusing technology, line laser autofocus has stronger anti-interference ability than point laser. However, in actual work, after the focusing sensor is installed, the shape of the detection beam projected on the surface of the object is fixed. When the hole features on the surface of the object to be measured completely overlap with the line laser, the laser beam will not be able to return to the image sensor, resulting in focusing failure.

[0025] In order to further improve the anti-interference capability of the laser autofocus device, the present application provides a laser autofocus device. The autofocus device includes: The autofocus mechanism uses an original cylindrical lens to modulate a circular laser beam into an elliptical beam that diverges in the curvature direction of the original cylindrical lens and is collimated in the direction without curvature, and blocks half of the elliptical laser beam in the direction without curvature by a baffle to generate a semi-elliptical laser beam; the defocus state of the objective lens is judged by using a light spot focused by the semi-elliptical laser beam on the surface of the object to be measured through the objective lens, the defocus amount is calculated by the centroid of the light spot image formed by the reflection back to the image sensor, and the distance from the objective lens to the surface of the object to be measured is adjusted based on the defocus state and the defocus amount, so that the focus of the objective lens is located on the surface of the object to be measured; A zoom cylindrical lens replaces the original cylindrical lens in the autofocus mechanism. By adjusting the focal length of the zoom cylindrical lens, the divergence angle of the semi-elliptical laser light beam along the curvature direction of the zoom cylindrical lens is increased, thereby increasing the incident angle between the semi-elliptical laser light beam and the optical axis of the objective lens, so as to avoid the light spot focused on the surface of the object to be measured falling completely into the defects on the surface of the object to be measured.

[0026] Based on the above processing, the laser autofocus device provided by the present application uses a zoom cylindrical lens to replace the original cylindrical lens, and adjusts the focal length of the zoom cylindrical lens to expand the divergence angle of the semi-elliptical laser light beam along the curvature direction of the zoom cylindrical lens, thereby increasing the incident angle between the semi-elliptical laser light beam and the main optical axis of the objective lens, and extending the length of the light spot of the semi-elliptical laser light beam focused on the surface of the object to be measured through the objective lens, thereby solving the problem of the light spot falling completely into the surface defect of the object to be measured, and thereby improving the anti-interference ability of the line laser autofocus device.

[0027] In some embodiments, the focusing optical path of the autofocus mechanism is as follows: Figure 1 As shown, it includes a laser 1, a cylindrical lens 2, a baffle 3, a reflector 4, a first beam splitter 5, a second beam splitter 6, an objective lens 7, a motor 9, an object to be measured 8, a lens 10 and an image sensor 11. The autofocus process is briefly described as follows: the laser 1 emits a parallel circular laser beam, which enters the cylindrical lens 2. After being modulated by the cylindrical lens 2, it becomes an asymmetric beam (i.e., an elliptical laser beam) that diverges in the curvature direction of the cylindrical lens 2 and is collimated in the direction without curvature. After passing through the baffle 3, the asymmetric beam loses half of its energy and propagates only on one side of the optical axis to form a semi-elliptical laser beam. Then, the semi-elliptical laser beam passes through the first beam splitter 5 after being reflected by the surface of the reflector 4, and enters the objective lens 7 after being reflected by the surface of the second beam splitter 6. The semi-elliptical laser beam enters the microscope objective lens from the upper half of the objective lens 7, and is focused by the objective lens 7 on the surface of the object 8 to be measured. Due to the reflection effect of the surface of the object 8 to be measured, the focused laser beam returns to the objective lens 7 again, passes through the other half of the objective lens 7, and is continuously reflected by the second beam splitter 6 and the first beam splitter 5 and then is focused by the lens 10 on the surface of the image sensor 11 to form a laser image (i.e., the spot image in this application). The defocus amount of the objective lens 7 is calculated according to the form of the laser image, and the defocus amount is converted into a control signal of the motor 9, so that the motor 9 drives the objective lens 7 to move, which is used to adjust the distance from the objective lens 7 to the surface of the object 8 to be measured, so that the focus of the objective lens 7 is located on the surface of the object 8 to be measured (i.e., the surface of the object 8 to be measured is within the depth of field of the objective lens 7) to achieve automatic focusing. In addition, when the automatic focusing mechanism provided by the present application is applied to the field of microscopic detection, the objective lens 7 is usually an infinite conjugate microscope objective lens.

[0028] In one implementation, the autofocus mechanism may not include the reflector 4. Figure 2 As shown, after the semi-elliptical laser beam is formed, it directly passes through the reflection of the first beam splitter 5 to reach the second beam splitter 6, and enters the side of the objective lens 7 after the reflection of the second beam splitter 6. Then, after convergence, the light spot on the other side of the objective lens 7 is reflected and reflected, and then reaches the lens 10 after being reflected by the second beam splitter 6 and refracted by the first beam splitter 5. After convergence by the lens 10, it is received by the image sensor 11 to form a light spot image.

[0029] Specifically, the autofocus mechanism includes: The laser 1 is used to emit a laser beam, wherein the laser beam is usually a circular parallel laser.

[0030] The original cylindrical lens 2 is arranged at the rear side of the laser 1, and is used to modulate the laser beam into an elliptical beam that diverges in the curvature direction of the original cylindrical lens 2 and is collimated in the non-curvature direction. The original cylindrical lens 2 in this application refers to a cylindrical lens with a fixed focal length.

[0031] The baffle 3 is attached to the original cylindrical lens 2 and is used to block half of the elliptical beam to form a semi-elliptical laser beam. The original cylindrical lens 2 is fixedly connected to the baffle 3. The baffle 3 can be set below or above the original cylindrical lens 2. Generally, the baffle 3 is attached below the original cylindrical lens 2. The baffle 3 usually blocks half of the elliptical laser beam in the direction without curvature (that is, the upper half or lower half in the direction perpendicular to the axis of the original cylindrical lens 2), that is, it covers half of the elliptical laser beam above or below the long axis of the ellipse to form a semi-elliptical laser beam.

[0032] The reflecting mirror 4 is arranged below the original cylindrical lens 2 and the baffle 3, and is used to reflect the semi-elliptical laser beam to the first beam splitter 5. The radiating mirror may also be omitted.

[0033] The first beam splitter 5 and the second beam splitter 6 are arranged in front of the objective lens 7 to guide the semi-elliptical laser beam to be incident on one side of the objective lens 7 and to guide the converged light spot passing through the other side of the objective lens 7 to the lens 10 .

[0034] The objective lens 7 is arranged above the object 8 to converge the semi-elliptical laser beam onto the surface of the object 8. The direction in which the semi-elliptical laser beam is incident on the objective lens 7 is parallel to the optical axis of the objective lens 7. Figure 1 , 2 As shown. The semi-elliptical laser beam completely falls into the area on one side of the objective lens 7, enters from one side of the objective lens 7 (with the symmetry line of the objective lens 7 as the dividing line) and converges to the surface of the object 8 to be measured, and the converged light spot passes through the other side of the objective lens 7. Usually, in order to improve the accuracy of automatic focusing, during the calibration process of the focusing mechanism, the long axis of the semi-elliptical laser beam is often adjusted to coincide with the central symmetry line of the circular objective lens 7, and the center point of the objective lens 7 is in the middle of the long axis, as shown in FIG. Figure 3 It is worth noting that the semi-elliptical laser beam completely falls into one side of the objective lens 7, which means that the semi-elliptical laser beam is completely in the area on the upper side or lower side of the objective lens 7 with the symmetry line as the dividing line. At the same time, the long axis of the semi-elliptical laser beam can be far away from the symmetry line of the objective lens 7, and the center point of the objective lens 7 may not be located in the middle of the long axis.

[0035] The lens 10 is disposed in front of the image sensor 11 and is used to focus the light spot onto the image sensor 11 .

[0036] The image sensor 11 is used to collect the light spot converged by the lens 10 to form a light spot image. The defocus state and defocus amount of the objective lens 7 can be determined based on the light spot image.

[0037] The motor 9 is arranged on one side of the objective lens 7 and is used to adjust the distance from the objective lens 7 to the surface of the object 8 to be measured according to the defocus state and the defocus amount, so that the focus of the objective lens 7 is located on the surface of the object 8 to be measured.

[0038] Due to the presence of the original cylindrical lens 2 in the focusing structure, when the focus of the objective lens 7 is on the surface of the object 8, the light spot focused on the surface of the object 8 is as follows: Figure 4 However, if Figure 5 As shown, when there are defects such as pits and holes on the measured surface that are parallel to and overlap with the straight line direction, and completely overlap with the laser line, the line laser cannot return to the objective lens 7 normally through the reflection effect of the object surface, and the image sensor 11 cannot collect effective laser signals, resulting in failure of autofocus.

[0039] In the laser autofocus device provided in the present application, the zoom cylindrical lens 14 is used to replace the original cylindrical lens 2, such as Figure 6 As shown, by adjusting the focal length of the zoom cylindrical lens 14, the divergence angle of the semi-elliptical laser beam along the curvature direction of the zoom cylindrical lens 14 is increased, thereby increasing the incident angle between the semi-elliptical laser beam and the optical axis of the objective lens 7, and extending the length of the semi-elliptical laser beam focused to the surface of the object 8 by the objective lens 7, thereby avoiding the defect that the light spot completely falls on the surface of the object 8. Figure 7 shown.

[0040] The principle of extending the spot length by adjusting the focal length of the zoom cylindrical lens 14 is described as follows: when a parallel light beam enters the zoom cylindrical lens 14, the zoom cylindrical lens 14 can modulate the parallel light beam into a light beam that diverges in the curvature direction of the zoom cylindrical lens 14 and is collimated in the direction without curvature. When the parallel light beam exits the zoom cylindrical lens 14, the deviation angle caused by its divergence in the curvature direction of the zoom cylindrical lens 14 is used as the divergence angle. When the parallel light beam enters parallel to the main optical axis of the zoom cylindrical lens 14, the divergence angle can be understood as the angle between the outgoing light beam in the curvature direction and the main optical axis.

[0041] The size of the divergence angle changes with the focal length of the zoom cylindrical lens 14. For example, when the zoom cylindrical lens 14 is a divergent lens (i.e., a negative lens), the smaller the focal length of the zoom cylindrical lens 14, the larger the divergence angle. In the present application, when the zoom cylindrical lens 14 is a divergent lens, the divergence angle of the semi-elliptical laser beam along the curvature direction of the zoom cylindrical lens 14 can be increased by reducing the focal length of the zoom cylindrical lens 14.

[0042] When the divergence angle of the semi-elliptical laser beam along the curvature direction of the zoom cylindrical lens 14 increases, when the semi-elliptical laser beam is incident on the surface of the objective lens 7, the incident angle between the beam and the optical axis of the objective lens 7 increases. According to the law of refraction , it can be seen that the larger the refraction angle of the light beam coming out from the objective lens 7 side. Among them, represents the angle of incidence, represents the refraction angle, It represents the ratio between the medium of air and objective lens 7, which is a fixed constant.

[0043] When the refraction angle of the light beam coming out from the side of the objective lens 7 is larger, the length of the laser line focused by the objective lens 7 to the surface of the object 8 is longer, thereby preventing the laser line from completely falling into the defects on the surface of the object 8, such as Figure 7 shown.

[0044] In some embodiments, the zoom cylindrical lens 14 can adjust its focal length by changing its own refractive index.

[0045] In one implementation, the zoom column lens 14 provided by the present application is a liquid lens, in which a precision sleeve containing a cylindrical through hole is a lens cavity, and two immiscible liquids (such as water / oil / water) are placed in the cavity, so that the liquid in the cavity constitutes a thin (oil) lens medium. Then, a sleeve made of a conductive material is used as an electrode, and the other two electrodes are the left and right pins connected to the conductive aqueous solution. Finally, a voltage regulating device is provided to connect to the zoom column lens, and the shape of the contact surface between the conductive liquid and the insulating oil is controlled by the electrowetting effect (EWOD) on the medium to achieve the adjustment of the focal length of the liquid lens.

[0046] In one implementation, the zoom cylindrical lens 14 provided by the present application is a liquid-filled continuous zoom cylindrical lens. The liquid-filled continuous zoom cylindrical lens is composed of two symmetrical meniscus cylindrical lenses and a double convex cylindrical lens embedded in a polydimethylsiloxane base sheet: the edges of the two meniscus cylindrical lenses are glued together to form a cavity, and the refractive index of the liquid injected therein is changed to achieve continuous change of the focal length of the zoom cylindrical lens 14.

[0047] In one implementation, when the zoom cylindrical lens 14 is a lens group composed of multiple lenses, the distance between adjacent lenses can be changed by a mechanical adjustment mechanism composed of gears, motors, bearings, etc., so as to adjust the focal length of the zoom cylindrical lens 14.

[0048] In addition, in some embodiments, the laser autofocus device provided by the present application realizes unidirectional extension of the laser line focused on the surface of the object 8 by changing the focal length of half of the area of ​​the zoom column lens 14. Specifically, when the zoom column lens 14 provided by the present application is a liquid lens, half of the lens cavity containing a cylindrical through hole inside is solid, and the other half is used to place a thin (oil) lens medium; when the zoom column lens 14 is a lens group composed of multiple lenses, the lens can be set to a splicable lens, and in the process of changing the spacing between adjacent lenses, half of the area of ​​the lens is adjusted, and the other half is not adjusted. In this way, the unidirectional extension of the laser line is achieved, and the direction of the unidirectional extension of the laser line can be adjusted by changing the left and right sides of half of the adjustable area.

[0049] However, when the focal length of the zoom cylindrical lens 14 is adjusted to a certain value, the divergence angle of the semi-elliptical laser beam in the curvature direction of the zoom cylindrical lens 14 is too large, so that the light intensity of the semi-elliptical laser beam when incident on the surface of the objective lens 7 is very low, resulting in the light spot converged on the surface of the measured object 8 failing to be reflected to the image sensor 11, and failing to form a light spot image. Therefore, in actual work, the focal length and divergence angle of the zoom cylindrical lens 14 have preset maximum values.

[0050] In order to solve the problem that when the divergence angle is adjusted to the preset maximum value, the converged laser line still completely falls on the surface features of the object 8 to be measured, and to further improve the anti-interference ability of the line laser autofocus device, such as Figure 8 As shown, the laser autofocus device proposed in this application also includes: The rotating mechanism 12 is located in front of the objective lens 7 and is used to adjust the incident area of ​​the semi-elliptical laser beam on the incident surface of the objective lens 7; The direction in which the semi-elliptical laser beam is incident on the objective lens 7 is parallel to the optical axis of the objective lens 7 , and the semi-elliptical laser beam completely falls on one side of the objective lens 7 .

[0051] The rotating mechanism 12 changes the direction of the semi-elliptical laser beam, thereby adjusting the incident area of ​​the semi-elliptical laser beam on the incident surface of the objective lens 7, so that the relative positions of the focused light spot and the surface features of the object 8 to be measured are changed, thereby avoiding the problem of automatic failure caused by the complete overlap of the light spot and the surface features of the object 8 to be measured. Figure 9-10 As shown, due to the change in the incident direction of the semi-elliptical laser beam, the focused laser line does not completely fall into the surface features of the object 8. At this time, only a part of the laser line is affected by the pits and holes and cannot return to the objective lens 7. The laser that hits other positions can return normally, and the image sensor 11 can still collect valid signals to ensure the normal operation of the autofocus.

[0052] In some embodiments, the rotating mechanism 12 is a rotating table mechanism and is fixedly connected to the baffle 3. Specifically, the zoom cylindrical lens 14 and the baffle 3 can be installed on the rotating table together. By axially rotating the original cylindrical lens 2 and the baffle 3 around the center point of the original cylindrical lens 2, the edge long axis direction of the semi-elliptical laser beam can be changed, so that the position of the laser line on the focal plane of the objective lens 7 rotates synchronously, and the incident area of ​​the semi-elliptical laser beam on the incident surface of the objective lens 7 is adjusted, avoiding the situation where the laser line does not completely fall into the surface defects of the measured object 8. Fig. 9 As shown, Fig. 9 Schematic diagram of a semi-elliptical laser beam after rotation provided by the present application. When the semi-elliptical laser beam rotates a certain angle, the spot image collected on the image sensor 11 when the objective lens 7 is in close focus, in focus, and out of focus is as follows: Fig.10 shown.

[0053] In one implementation, the specific structure of the rotating platform is as follows: Fig.11 As shown, the zoom cylindrical lens 14 and the baffle 3 rotate through Fig.11 The structure shown is implemented. Specifically, the zoom cylindrical lens 14 is installed in the cylindrical lens holder 1203 by dispensing glue. The size of the opening at the bottom of the cylindrical lens holder 1203 is only half the width of the zoom cylindrical lens 14. Therefore, the cylindrical lens holder 1203 is also a baffle 3 in the focusing light path, blocking half of the aperture of the light beam. The cylindrical lens holder 1203 is fixed to the hollow turntable 1202 of the rotating table by screws, and the entire rotating table is fixed to the internal light path of the focusing system through the rotating table base 1201. When the hollow turntable 1202 rotates, the zoom cylindrical lens 14 and the baffle 3 also rotate accordingly.

[0054] In some embodiments, Fig.12 As shown, the rotating mechanism 12 provided in the present application is a rotating mechanism 13, which can be arranged on the back of the autofocus mechanism and fixedly connected to the original cylindrical lens 2, the baffle 3, the reflector 4, the first beam splitter 5, the second beam splitter 6, the lens 10 and the image sensor 11. Specifically, the above optical devices are installed together on the rotating mechanism 13, and the rotating mechanism 13 is rotated around the optical axis of the objective lens 7 to adjust the incident area of ​​the semi-elliptical laser beam on the incident surface of the objective lens 7, so that the position of the laser line on the focal plane of the objective lens 7 rotates synchronously. It is worth noting that in this case, the image sensor 11 rotates at the same angle as the semi-elliptical laser beam, so in the actual autofocus and calibration process, it is only necessary to calculate the center of mass of the spot image in the y direction according to the first center of mass formula.

[0055] The present application provides a laser autofocus method, which is applied to the laser autofocus device of the present application, and the method comprises the following steps: S101, determine whether there is a light spot in the light spot image output by the image sensor 11. If yes, continue to perform auto focus. If no, go to S102.

[0056] S102, using a focus adjustment mechanism to reduce the focal length of the zoom cylindrical lens 14, and determining whether there is a light spot in the light spot image after the focus adjustment. If yes, proceed to S103.

[0057] S103, based on the first centroid formula, calculate the centroid of the spot image in the y direction after the focus is adjusted ; Among them, the first centroid formula is: ; f(i,j) is the gray value of the pixel in the i-th row and j-th column in the spot image; i represents the sequence value of the pixel row in the spot image, i=1, 2, ..., m, m represents the total number of rows in the spot image; j represents the sequence value of the pixel column in the spot image, j=1, 2, ..., n, n represents the total number of columns in the spot image; S104, based on centroid The defocus amount of the objective lens 7 is calculated.

[0058] S105 , adjusting the distance from the objective lens 7 to the surface of the object 8 to be measured according to the defocus amount, so that the focus of the objective lens 7 is located on the surface of the object 8 to be measured.

[0059] In step S102, if there is no light spot in the light spot image after the focus is adjusted, the auto-focus method provided by the present application further includes the following steps: S106 , using the rotating mechanism 12 to rotate the baffle 3 and the zoom cylindrical lens 14 until a light spot exists in the light spot image, and recording the rotation angle θ.

[0060] S107, based on the rotation angle θ and the second centroid formula, calculate the centroid of the rotated spot image in the y direction ; Among them, the second centroid formula is , ; Indicates the spot image Row, No. Gray value of column pixel; i represents the sequence value of pixel row in the spot image, i=1, 2, …, m, m represents the total number of rows in the spot image; j represents the sequence value of pixel column in the spot image, j=1, 2, …, n, n represents the total number of columns in the spot image; Round represents rounding operation.

[0061] S108, based on centroid The defocus amount of the objective lens 7 is calculated.

[0062] S109 , adjusting the distance from the objective lens 7 to the surface of the object 8 according to the defocus amount, so that the focus of the objective lens 7 is located on the surface of the object 8 .

[0063] In some embodiments, the calculation formula for the defocus amount is: ; Where O represents the defocus amount, Represented as the centroid or centroid ; represents the reference centroid of the surface of the object 8 being measured within the depth of field of the objective lens 7; and s represents the focusing sensitivity of the objective lens 7.

[0064] Reference centroid and focus sensitivity s are obtained through a preset calibration process.

[0065] The preset calibration process includes the following steps: S201. Select a flat and smooth sample as a calibration object.

[0066] S202, adjusting the distance between the objective lens 7 in the autofocus device and the calibration object until the spot shape in the spot image is a line, and calculating the centroid of the spot image in the y direction based on the first centroid formula as the reference centroid .

[0067] ; Wherein, f(i,j) is the gray value of the pixel in the i-th row and j-th column in the spot image.

[0068] S203, move the objective lens by 7t micrometers, and calculate the centroid of the light spot image in the y direction after the movement based on the first centroid formula .

[0069] S204, calculating the focus sensitivity s, where: .

[0070] In one implementation, after step S106, the auto-focus method provided by the present application further includes the following steps: S301 , rotating the spot image formed by the image sensor 11 by an angle θ in the opposite direction to the rotation of the zoom cylindrical lens 14 .

[0071] S302, calculating the centroid based on the first centroid formula .

[0072] S303, based on the centroid The defocus amount of the objective lens 7 is calculated.

[0073] S304 , adjusting the distance from the objective lens 7 to the surface of the object 8 to be measured according to the defocus amount, so that the focus of the objective lens 7 is located on the surface of the object 8 to be measured.

[0074] In one implementation, the rotation angle θ in step S106 may be set to a certain value in a preset fixed angle set X. At this time, the calibration process of the line laser autofocus device provided in the present application may include the following steps: Step 1: Control the objective lens 7 to move up and down through the motor 9 until the laser light collected by the image sensor 11 is a straight line.

[0075] Step 2: Control the rotation angle X of the rotating table according to the preset angle value.

[0076] Step 3: Reversely rotate the light spot image collected by the image sensor 11 by an angle X.

[0077] Step 4: Calculate the reference centroid of the spot image in the y direction based on the first centroid formula .

[0078] Step 5: Control the motor 9 to move t micrometers, and calculate the center of mass of the spot image in the y direction after the movement .

[0079] Step 6: Pass and Calculate the sensitivity s of the focus system.

[0080] In addition, in the calibration process, step three can be deleted, and the first centroid formula in the original step four can be adjusted to the second centroid formula, and the other steps remain unchanged.

[0081] The embodiment of the present application also provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus. Memory, used to store computer programs; The processor is used to implement any of the above-mentioned laser autofocus methods when executing the program stored in the memory.

[0082] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0083] The communication interface is used for communication between the above electronic device and other devices.

[0084] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0085] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0086] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned laser autofocus methods are implemented.

[0087] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the steps of any laser autofocus method in the above embodiments.

[0088] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A laser autofocus device, characterized in that: The device comprises: The autofocus mechanism uses an original cylindrical lens to modulate a circular laser beam into an elliptical laser beam that diverges in the curvature direction of the original cylindrical lens and is collimated in the direction without curvature, and blocks half of the elliptical laser beam in the direction without curvature by a baffle to generate a semi-elliptical laser beam; the defocus state of the objective lens is judged by using a light spot focused by the semi-elliptical laser beam on the surface of the object to be measured through the objective lens, the defocus amount is calculated by the centroid of the light spot image formed by the reflection back to the image sensor, and the distance from the objective lens to the surface of the object to be measured is adjusted based on the defocus state and the defocus amount, so that the focus of the objective lens is located on the surface of the object to be measured; A zoom cylindrical lens replaces the original cylindrical lens in the autofocus mechanism. By adjusting the focal length of the zoom cylindrical lens, the divergence angle of the semi-elliptical laser light beam along the curvature direction of the zoom cylindrical lens is increased, thereby increasing the incident angle between the semi-elliptical laser light beam and the optical axis of the objective lens, so as to avoid the light spot focused on the surface of the object to be measured falling completely into the defects on the surface of the object to be measured.

2. The device according to claim 1, characterized in that The zoom cylindrical lens is a divergent lens, and the divergence angle of the semi-elliptical laser beam along the curvature direction of the zoom cylindrical lens is increased by reducing the focal length of the zoom cylindrical lens.

3. The device according to claim 1, characterized in that The baffle is fixedly connected to the zoom cylindrical lens.

4. The device according to claim 1, characterized in that The device also includes: A rotating mechanism, located in front of the objective lens, is used to adjust the incident area of ​​the semi-elliptical laser beam on the incident surface of the objective lens; The direction in which the semi-elliptical laser beam is incident on the objective lens is parallel to the optical axis of the objective lens, and the semi-elliptical laser beam completely falls on one side of the objective lens.

5. The device according to claim 4, characterized in that The rotating mechanism is a rotating platform and is fixedly connected to the baffle plate, and is used to rotate the baffle plate and the zoom cylindrical lens around the optical axis of the zoom cylindrical lens to adjust the incident area of ​​the semi-elliptical laser beam on the incident surface of the objective lens.

6. A laser autofocus method, characterized in that: The method is applied to the laser autofocus device according to any one of claims 1 to 5, and the method comprises: Determine whether there is a light spot in the light spot image output by the image sensor; If not, using a focusing mechanism to reduce the focal length of the zoom cylindrical lens, and determining whether there is a light spot in the light spot image after the focus adjustment; If yes, then based on the first centroid formula, calculate the centroid of the spot image in the y direction after the focus adjustment ; Among them, the first centroid formula is: ; f(i,j) is the gray value of the pixel in the i-th row and j-th column in the spot image; i represents the sequence value of the pixel row in the spot image, i=1, 2, ..., m, m represents the total number of rows in the spot image; j represents the sequence value of the pixel column in the spot image, j=1, 2, ..., n, n represents the total number of columns in the spot image; Based on centroid Calculate the defocus of the objective lens; The distance from the objective lens to the surface of the object to be measured is adjusted according to the defocus amount so that the focus of the objective lens is located on the surface of the object to be measured.

7. The method according to claim 6, characterized in that After determining whether there is a light spot in the light spot image after the focus is adjusted, the method further includes: If not, the baffle and the zoom cylindrical lens are rotated by using a rotating mechanism until a light spot exists in the light spot image, and the rotation angle θ is recorded; Based on the rotation angle θ and the second centroid formula, the centroid of the rotated spot image in the y direction is calculated. ; Among them, the second centroid formula is , ; Indicates the spot image Row, No. Gray value of column pixel; i represents the sequence value of pixel row in the spot image, i=1, 2, ..., m, m represents the total number of rows in the spot image; j represents the sequence value of pixel column in the spot image, j=1, 2, ..., n, n represents the total number of columns in the spot image; Round represents rounding operation; Based on centroid Calculate the defocus of the objective lens; The distance from the objective lens to the surface of the object to be measured is adjusted according to the defocus amount so that the focus of the objective lens is located on the surface of the object to be measured.

8. The method according to any one of claims 6 or 7, characterized in that: The formula for calculating the defocus amount is: ; Where O represents the defocus amount, Represented as the centroid or centroid ; It represents the reference centroid of the surface of the object under test within the depth of field of the objective lens; s represents the focusing sensitivity of the objective lens.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the laser autofocus method described in any one of claims 6 to 8 when executing the program stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the laser autofocus method described in any one of claims 6 to 8 is implemented.

Citation Information

Patent Citations

  • Microscope automatic focusing system for micro-nano step sample and focusing method thereof

    CN114994896A

Cited By

  • Method for compensating beam divergence angle of laser beam

    CN119148397A

  • Stray light gray value acquisition method, automatic focusing processing method and system

    CN120353017A

  • Method for obtaining stray light gray value, auto-focusing processing method and system

    CN120353017B

  • Automatic laser focusing method, system and equipment for multi-height plane and medium

    CN120742519A

  • Laser autofocus method, system, apparatus, and medium for multiple height planes

    CN120742519B