A focus locking control method and focus locking device of a microscope focus locking system

By obtaining the linear area of ​​the light spot and Gaussian fitting in the microscope focus locking system, and judging the linearity to move the objective lens, the problem of limited accuracy in the existing technology is solved, and the accuracy and stability of the focus locking system are improved.

CN113885189BActive Publication Date: 2024-10-22HUANGPU INST OF MATERIALS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111113303.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-22
Publication Date
2024-10-22
Estimated Expiration
2041-09-22

AI Technical Summary

Technical Problem

The detection accuracy and repeatability of existing microscope focus locking technology are limited by optical design and mechanical processing, making it impossible to achieve higher-precision position information analysis.

Method used

By obtaining the linear area of ​​the light spot on the photodetector, defining the starting point of the linear area and performing Gaussian fitting, judging the linearity of the Gaussian curve, moving the objective lens according to the linearity and compensation distance to achieve automatic focus locking and avoid large errors. The light spot is adjusted by the focus lock system.

Benefits of technology

It improves the adjustment accuracy and repeatability of the focus lock system, reduces the calculation errors of the objective lens compensation amount, simplifies the optical structure design, and reduces the cost of the system's flexible use in a variety of scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113885189B_ABST
    Figure CN113885189B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of microscopes, and discloses a focus control method and a focus device for a microscope focus lock system, wherein the control method comprises: obtaining a linear equation of a linear region of a light spot on a photodetector; judging whether the first light spot satisfies the linear equation, and if so, performing Gaussian fitting on the first light spot to obtain a first Gaussian curve; judging whether the first linearity of the first Gaussian curve is less than a preset first threshold, and if so, obtaining a first pixel position corresponding to the peak point of the first Gaussian curve; performing a difference calculation between the first pixel position and the starting point to obtain a first compensation distance of the objective lens; and moving the objective lens according to the first compensation distance to achieve automatic focus lock. Beneficial effect: screening the obtained light spot according to whether the light spot is a discrete point based on the pre-acquired linear region, avoiding the use of a light spot with a large error to adjust the focus lock system, and improving the adjustment accuracy and repeatability of the focus lock system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of microscopes, and in particular to a focus locking control method and a focus locking device of a microscope focus locking system. Background Art

[0002] The automatic focus lock technology detects the movement of the feedback light spot on the photodetector to obtain the change in the position of the detection surface; then uses mechanical control elements such as piezoelectric ceramics, nano-level Z-axis control platforms, etc. to move the objective lens to compensate for the error in the movement of the sample layer caused by external interference. The photodetector is connected to the data acquisition card to interpret the light spot information, and the position information of the light spot can be obtained in real time on the PC. The light spot can move within a certain pixel position range, that is, the detection range. A pixel point corresponds to a center of mass position of the light spot. When the sample vibrates slightly, the light spot will irradiate another pixel point. The difference in the center of mass position is used to calculate the compensation amount that the mechanical control element needs to move, and the objective lens is moved in the Z-axis direction in real time.

[0003] When using automatic focus locking technology for detection, the detection accuracy and repeatability of the system are limited by optical design and mechanical processing, and it is impossible to analyze higher-precision position information. Therefore, it is necessary to improve the existing calculation focus locking technology to improve the detection accuracy and repeatability of the focus locking system. Summary of the invention

[0004] The purpose of the present invention is to improve the focus locking technology in the prior art and to enhance the detection accuracy and repeatability of the system.

[0005] In order to achieve the above object, the present invention provides a focus locking control method of a microscope focus locking system, comprising:

[0006] A linear region of the light spot on the photodetector is acquired, a starting point of the linear region is defined, and a linear equation of the linear region is obtained according to the starting point.

[0007] A first light spot is acquired and it is determined whether the first light spot satisfies a linear equation. If the first light spot satisfies the linear equation, Gaussian fitting is performed on the first light spot to obtain a first Gaussian curve.

[0008] It is determined whether the first linearity of the first Gaussian curve is less than a preset first threshold value. If the first linearity is less than the preset first threshold value, a first pixel position corresponding to a peak point of the first Gaussian curve is obtained.

[0009] The first pixel position and the starting point are difference calculated to obtain a first compensation distance of the objective lens.

[0010] The objective lens is moved according to the first compensation distance to achieve automatic focus locking.

[0011] Furthermore, the focus lock control method further includes:

[0012] If the first linearity is greater than a preset first threshold, Gaussian fitting is performed on the first light spot again, and it is determined whether the linearity of the re-fitted Gaussian curve is less than a preset first threshold.

[0013] Furthermore, the focus lock control method further includes:

[0014] It is determined whether the number of Gaussian fittings performed on the first light spot is greater than a second threshold value. If so, the Gaussian fitting is stopped, and the second pixel position corresponding to the point with the largest gray value in the first light spot is directly read.

[0015] The second compensation distance of the objective lens is obtained by performing a difference calculation between the second pixel position and the starting point.

[0016] The objective lens is moved according to the second compensation distance to achieve automatic focus locking.

[0017] Furthermore, the linear region of the light spot on the photodetector is obtained, a starting point of the linear region is defined, and a linear equation of the linear region is obtained according to the starting point, specifically:

[0018] The position of the objective lens in the Z-axis direction of the moving focus locking system is recorded as a linear region in which the grayscale value of the light spot changes during the movement of the objective lens; the center position of the linear region is defined as the starting point, and the linear equation of the region is obtained according to the starting point and the linear region.

[0019] Furthermore, the focus locking system includes a light source, a beam splitter, a first lens group, a dichroic mirror, an objective lens, a second lens group, a photodetector and an objective lens moving unit.

[0020] The light source is used to generate an incident light beam, which passes through a beam splitter, a first lens group, a dichroic mirror, and an objective lens in sequence and converges on the lower surface of a glass slide below the objective lens; the incident light beam is reflected by the glass slide to form a reflected light beam, which passes through the objective lens, a dichroic mirror, a first lens group, a beam splitter, and a second lens group in sequence and forms a light spot on a photodetector.

[0021] The first lens group is used to correct the position of the light spot and the displacement deviation of the magnifying glass slide.

[0022] The second lens group is used to correct the shape and size of the light spot.

[0023] The photoelectric detector is used to receive the reflected light beam formed by the slide to obtain the centroid position of the light spot formed by the reflected light beam, and to perform difference processing based on the first centroid position and the second centroid position to obtain the compensation distance required by the objective lens; the photoelectric detector is also used to feed back the compensation distance to the objective lens moving unit.

[0024] The objective lens moving unit is used to move the objective lens according to the compensation distance.

[0025] Furthermore, the angle between the incident light beam and the beam splitter is forty-five degrees; the angle between the incident light beam and the dichroic mirror is forty-five degrees.

[0026] Furthermore, the first lens group is provided with a first negative focal length lens, a first positive focal length lens, and a second negative focal length lens in sequence according to the propagation direction of the incident light; the first negative focal length lens and the second negative focal length lens are used to magnify the displacement deviation of the slide, and the first positive focal length lens is used to correct the position of the light spot.

[0027] Furthermore, the second lens is provided with a second positive focal length lens and a third negative focal length lens in sequence according to the propagation direction of the first reflected light beam, the second positive focal length lens is used to correct the shape of the light spot, and the third negative focal length lens is used to adjust the size of the light spot.

[0028] Furthermore, the photoelectric detector includes but is not limited to one of a linear array CCD, an area array CCD or a PSD position detector.

[0029] The invention also discloses a microscope focus locking device, comprising: a first acquisition module, a second acquisition module, a first judgment module, a first processing module and an objective lens moving module.

[0030] The first acquisition module is used to acquire the linear region of the light spot on the photodetector, define the starting point of the linear region, and obtain the linear equation of the linear region according to the starting point.

[0031] The second acquisition module is used to acquire the first light spot and determine whether the first light spot satisfies the linear equation. If the first light spot satisfies the linear equation, Gaussian fitting is performed on the first light spot to obtain a first Gaussian curve.

[0032] The first judgment module is used to judge whether the first linearity of the first Gaussian curve is less than a preset first threshold value, and if the first linearity is less than the preset first threshold value, obtain the first pixel position corresponding to the peak point of the first Gaussian curve.

[0033] The first processing module is used to calculate the difference between the first pixel position and the starting point to obtain a first compensation distance of the objective lens.

[0034] The objective lens moving module is used to move the objective lens according to the first compensation distance to achieve automatic focus locking.

[0035] Compared with the prior art, the focus control method and focus system of a microscope focus locking system disclosed in the present invention have the following beneficial effects: the acquired light spots are screened according to whether the light spots are discrete points according to the pre-acquired linear area, so as to avoid using light spots with large errors to adjust the focus locking system; Gaussian fitting is performed on the acquired light spots, and the light spot information is used to adjust the objective lens only when the fitting curve obtained by Gaussian fitting meets the linearity requirement, so as to improve the adjustment accuracy and repeatability of the focus locking system. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a flow chart of a focus locking control method of a microscope focus locking system of the present invention;

[0037] Figure 2 It is a structural schematic diagram of the focus locking system of the present invention;

[0038] Figure 3 It is a structural schematic diagram of the coke locking device of the present invention.

[0039] In the figure, 1, light source; 2, beam splitter; 3, first lens group; 4, dichroic mirror; 5, objective lens moving unit; 6, objective lens; 7, slide; 8, second lens group; 9, photodetector; 10, incident light beam; 11, reflected light beam; 12, first negative focal length lens; 13, first positive focal length lens; 14, second negative focal length lens; 15, second positive focal length lens; 16, third negative focal length lens. DETAILED DESCRIPTION

[0040] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0041] The present invention will design a control algorithm system and implementation method of an automatic focus locking technology. On the one hand, the design improves the measurement accuracy and repeatability of spot detection, and solves the problems that when the focus locking system detects, the detection accuracy and repeatability of the system will be limited by components, and higher-precision position information cannot be parsed, and the calculation is inaccurate. If the optical structure design is changed to obtain higher detection accuracy, more manpower and material resources will be spent, which is not conducive to the flexible use of the system in various scenarios; on the other hand, the accuracy of a large range of linear detection is guaranteed, and the problem that the detection range in the focus locking technology will be affected by the mechanical structure and changed is solved, and errors in the calculation of the compensation amount of the objective lens 6 are avoided.

[0042] Changing the optical structure design to obtain higher detection accuracy will cost more manpower and material resources, which is not conducive to the flexible use of the system in various scenarios; the detection range in this technology will also be affected by the mechanical structure and change, so that a large amount of discrete spot information will appear in the moving range, resulting in errors in the calculation of the compensation amount of the objective lens 6.

[0043] Embodiment 1:

[0044] like Figure 1 As shown, the present invention discloses a focus locking control method of a microscope focus locking system, which is applied to the focus locking of a light system, and comprises:

[0045] Step S1, obtaining a linear region of the light spot on the photodetector 9, defining a starting point of the linear region, and obtaining a linear equation of the linear region according to the starting point.

[0046] Step S2, obtaining a first light spot and determining whether the first light spot satisfies a linear equation. If the first light spot satisfies the linear equation, performing Gaussian fitting on the first light spot to obtain a first Gaussian curve.

[0047] Step S3, determining whether the first linearity of the first Gaussian curve is less than a preset first threshold value, and if the first linearity is less than the preset first threshold value, obtaining a first pixel position corresponding to a peak point of the first Gaussian curve.

[0048] Step S4, performing difference calculation between the first pixel position and the starting point to obtain a first compensation distance of the objective lens 6.

[0049] Step S5, moving the objective lens 6 according to the first compensation distance to achieve automatic focus locking.

[0050] In this embodiment, the focus lock control method further includes:

[0051] Step S6: if the first linearity is greater than a preset first threshold, re-perform Gaussian fitting on the first light spot, and determine whether the linearity of the re-fitted Gaussian curve is less than a preset first threshold.

[0052] In this embodiment, the focus lock control method further includes:

[0053] Step S7, determining whether the number of Gaussian fittings performed on the first light spot is greater than a second threshold value, if so, stopping Gaussian fitting and directly reading the second pixel position corresponding to the point with the largest gray value in the first light spot;

[0054] The second compensation distance of the objective lens 6 is obtained by performing a difference calculation between the second pixel position and the starting point.

[0055] The objective lens 6 is moved according to the second compensation distance to achieve automatic focus locking.

[0056] In step S1, the linear region of the light spot on the photodetector 9 is obtained, the starting point of the linear region is defined, and the linear equation of the linear region is obtained according to the starting point, which is specifically:

[0057] The position of the objective lens 6 in the Z-axis direction in the moving focus locking system is recorded as a linear region in which the grayscale value of the light spot changes during the movement of the objective lens 6; the center position of the linear region is defined as the starting point, and the linear equation of the region is obtained according to the starting point and the linear region.

[0058] In this implementation, refer to Figure 2 , a schematic diagram of a focus locking system of the focus locking system of the present invention; an incident light beam 10 emitted by a light source 1 passes through a beam splitter 2, a first lens group 3, a dichroic mirror 4 and an objective lens 6 in sequence, and the incident light beam 10 converges on the lower surface of a glass slide 7 below the objective lens 6 after passing through the objective lens 6; when the incident light beam 10 reaches the lower surface of the glass slide 7, reflection occurs to form a reflected light beam 11, and the reflected light beam 11 during the debugging process is recorded as a first reflected light beam, which propagates in the opposite direction of the incident light beam 10, and forms a light spot on a photodetector 9 after the first reflected light beam passes through the objective lens 6, the dichroic mirror 4, the first lens group 3, the beam splitter 2 and the second lens group 8 in sequence.

[0059] In this embodiment, when the objective lens 6 is moved along the Z axis, the light spot moves accordingly on the photodetector 9. By moving the objective lens 6, the region where the grayscale value of the objective lens 6 changes and the region where the grayscale value does not change on the photodetector 9 can be found. The boundary of the two regions or the critical point where the grayscale value changes divides the two regions, and the position information of the boundary is recorded. It can be imagined by those skilled in the art that when the objective lens 6 only moves along the Z axis, the light spot also moves in a straight line on the photodetector 9, so there are two boundaries or critical points, and the region between the two boundaries or critical points is the linear region.

[0060] In this embodiment, in order to facilitate calculation or expression of the linear region, the middle point of the linear region is generally selected as the starting point, and the linear region is mathematically expressed using the starting point to obtain a linear equation of the linear region.

[0061] In step S2, a first light spot is acquired and it is determined whether the first light spot satisfies a linear equation. If the first light spot satisfies the linear equation, Gaussian fitting is performed on the first light spot to obtain a first Gaussian curve.

[0062] In this embodiment, when the preprocessing work of step S1 is completed, the photoelectric detector 9 starts to lock the focus when it obtains the light spot again. Since the light spot includes multiple discrete points, the centroid position of the light spot is selected and substituted into the linear equation, and it is determined whether the centroid position of the light spot is on the linear equation. If it is on the linear equation, Gaussian fitting is performed. If not, the light spot is discarded and a new light spot is obtained to lock the focus.

[0063] In this embodiment, those skilled in the art know that the distribution of the light spot is a Gaussian curve distribution, so Gaussian fitting is preferably performed to make the peak point of the fitting curve read more accurate and avoid errors caused by external disturbances.

[0064] Although only Gaussian fitting can improve the accuracy of data acquisition. However, if all detection spots are Gaussian fitted without the next step of linearity judgment, the measurement accuracy will be inaccurate, that is, the compensation distance of the microscope objective 6 will be wrong. Because within the measurement range, not all spots conform to the Gaussian distribution, there will be a readout error of the device. The linearity judgment of the fitting curve is performed multiple times to eliminate the readout error of the device as much as possible. Therefore, it is necessary to further judge the linearity after Gaussian fitting.

[0065] In step S3, it is determined whether the first linearity of the first Gaussian curve is less than a preset first threshold value. If the first linearity is less than the preset first threshold value, the first pixel position corresponding to the peak point of the first Gaussian curve is obtained.

[0066] In this embodiment, the optional implementation of the first threshold is 0.00001. The pixel position corresponding to the peak point of the Gaussian curve is read out, and the pixel position corresponding to the peak point of the Gaussian curve can be further sub-pixelized to obtain a more accurate pixel position, and the difference between the more accurate pixel position and the starting point is converted.

[0067] In step S4 , a difference is calculated between the first pixel position and the starting point to obtain a first compensation distance of the objective lens 6 .

[0068] Take a linear CCD with 1024 horizontal pixels as an example. Set the starting point at the center of the pixel of the photodetector 9, that is, the starting point is at the 512th pixel, which can be recorded as X0; when the light spot moves on the photodetector 9, the position of the first light spot on the photodetector 9 can be obtained, which can be recorded as X1, where X1 is the serial number of the pixel corresponding to the position. Then, the change ΔX of the light spot position is (X1-X0)*single pixel size. Then, by dividing ΔX by the magnification β of the auto-focus optical system, the compensation distance required by the microscope objective 6 can be obtained (the magnification β is determined by the actual magnification of the microscope objective 6 and the optical lens group).

[0069] In step S5, the objective lens 6 is moved according to the first compensation distance to achieve automatic focus locking.

[0070] In this embodiment, the first moving unit includes but is not limited to piezoelectric ceramics and a nano-scale Z-axis control platform.

[0071] In step S6, if the first linearity is greater than a preset first threshold, Gaussian fitting is performed on the first light spot again, and it is determined whether the linearity of the re-fitted Gaussian curve is less than the preset first threshold.

[0072] Since the points selected for Gaussian fitting have a certain influence on the fitting, you can reselect points for another Gaussian fitting and re-judge the linearity. When the linearity of multiple Gaussian fittings does not meet the requirements, other methods can be used to obtain the pixel position of the light spot.

[0073] In step S7, it is determined whether the number of Gaussian fittings performed on the first light spot is greater than a second threshold value. If so, the Gaussian fitting is stopped, and the second pixel position corresponding to the point with the largest gray value in the first light spot is directly read;

[0074] The second compensation distance of the objective lens 6 is obtained by performing a difference calculation between the second pixel position and the starting point.

[0075] The objective lens 6 is moved according to the second compensation distance to achieve automatic focus locking.

[0076] In this embodiment, the optical structure design of the focus locking system is further improved to obtain higher detection accuracy. The optical structure design of the focus locking system disclosed in the present invention has a relatively simple optical path and a small number of optical lenses and lens groups, which simplifies the mechanical structure of the focus locking system. And because the structure of the focus locking system is relatively simple, the focus locking system can be adjusted more conveniently, avoiding the complex focus locking system from amplifying the system error.

[0077] In this embodiment, a feasible specific implementation of the focus locking system is: the focus locking system includes a light source 1, a beam splitter 2, a first lens group 3, a dichroic mirror 4, an objective lens 6, a second lens group 8, a photodetector 9 and an objective lens moving unit 5.

[0078] The light source 1 is used to generate an incident light beam 10, which passes through the beam splitter 2, the first lens group 3, the dichroic mirror 4, and the objective lens 6 in sequence and converges on the lower surface of the glass slide 7 below the objective lens 6; the incident light beam 10 is reflected by the glass slide 7 to form a reflected light beam 11, and the reflected light beam 11 passes through the objective lens 6, the dichroic mirror 4, the first lens group 3, the beam splitter 2, and the second lens group 8 in sequence and forms a light spot on the photodetector 9.

[0079] The first lens group 3 is used to correct the position of the light spot and the displacement deviation of the magnifying glass slide 7 .

[0080] The second lens group 8 is used to correct the shape and size of the light spot.

[0081] The photodetector 9 is used to receive the reflected light beam 11 formed by the glass slide 7 to obtain the centroid position of the light spot formed by the reflected light beam 11, and to perform difference processing based on the first centroid position and the second centroid position to obtain the compensation distance required by the objective lens 6; the photodetector 9 is also used to feed back the compensation distance to the objective lens moving unit 5.

[0082] The objective lens moving unit 5 is used to move the objective lens 6 according to the compensation distance.

[0083] In this embodiment, the angle between the incident light beam 10 and the beam splitter 2 is forty-five degrees; the angle between the incident light beam 10 and the dichroic mirror 4 is forty-five degrees.

[0084] It should be noted that the glass slide 7 may vibrate slightly, causing the glass slide 7 to have a displacement deviation, and the range of the displacement deviation is nanometer level. When the glass slide 7 has a displacement deviation, since the displacement deviation is very small, it is necessary to amplify the displacement deviation. In the optical path of the present invention, the first lens group 3 is used to correct the position of the light spot and amplify the displacement deviation of the glass slide 7, and the second lens group 8 is used to correct the shape and size of the light spot.

[0085] In this embodiment, the first lens group 3 is provided with a first negative focal length lens 12, a first positive focal length lens 13, and a second negative focal length lens 14 in sequence according to the propagation direction of the incident light; the first negative focal length lens 12 and the second negative focal length lens 14 are used to magnify the displacement deviation of the slide glass 7, and the first positive focal length lens 13 is used to correct the position of the light spot.

[0086] In this embodiment, the first lens group is used to correct the spot position and amplify the axial displacement of the spot. The number of lenses in the first lens group is preferably three, and those skilled in the art can increase or decrease the number of lenses according to actual needs, so the first lens group with other numbers of lenses is still within the protection scope of the present invention.

[0087] In this embodiment, the second lens is provided with a second positive focal length lens 15 and a third negative focal length lens 16 in sequence according to the propagation direction of the first reflected light beam 11, the second positive focal length lens 15 is used to correct the shape of the light spot, and the third negative focal length lens 16 is used to adjust the size of the light spot.

[0088] In this embodiment, the second lens group is used to correct the light spot quality and adjust the light spot convergence size. The number of lenses in the second lens group is preferably two, and those skilled in the art can increase or decrease the number of lenses according to actual needs, so the second lens group with other number of lenses is still within the protection scope of the present invention.

[0089] In this embodiment, the first lens group 3 can amplify the nanometer-level displacement vibration generated on the glass slide 7, so that the nanometer-level movement is superimposed into the millimeter-level movement, that is, the second light spot finally moves significantly on the photodetector 9, which is conducive to the photodetector 9 identifying the difference of the light spot signal. However, the amplified light spot signal will cause a large measurement error when the photodetector 9 identifies the light spot signal due to uneven energy distribution. Therefore, the second lens group 8 redistributes the light spot energy to form a stable Gaussian energy distribution curve on the photodetector 9, thereby improving the measurement accuracy and reducing the interference of external factors (such as electromagnetic disturbance, etc.) on the detection of the lateral displacement of the light spot.

[0090] As can be seen from the accompanying drawings, only two lens groups are used in the optical path of the present invention, and the number of lens groups used is much smaller than the number of lens groups in the prior art. The reason why only two lens groups are used is that the optical path structure of the present invention is substantially improved over the prior art. A beam splitter 2 is provided at one end of the first lens group 3, and a dichroic mirror 4 is provided at the other end; after the light emitted by the light source 1 passes through the beam splitter 2 and the first lens group 3, the incident light is introduced into the objective lens 6 through the dichroic mirror 4, and the incident light in the objective lens 6 is reflected after reaching the bottom glass slide 7, and the reflected light beam 11 propagates in the reverse direction of the propagation path of the incident light beam 10, and after the reflected light beam 11 passes through the first lens group 3, it is introduced into the second lens group 8 through the beam splitter 2, and reaches the bottom photodetector 9 after passing through the second lens group 8. The present invention makes full use of the beam splitter 2 and the dichroic mirror 4 to guide the propagation of the optical path, so that the optical path only propagates between a small number of optical lenses, and the number of deflections is small. When the incident light reaches the bottom glass slide 7, only one deflection occurs, and when the reflected light beam 11 reaches the photodetector 9, only two deflections occur. Compared with the prior art which uses a large number of optical lenses and a complex optical path design with multiple deflections, the processing cost of the focus locking system is reduced. At the same time, the optical path design of the present invention is more compact and reasonable, and the focus locking system occupies less space, making it convenient to install the focus locking system on different microscopes.

[0091] In this embodiment, the photoelectric detector 9 includes but is not limited to one of a linear array CCD, an area array CCD or a PSD position detector.

[0092] Embodiment 2:

[0093] See attached Figure 3The present invention discloses a microscope focus locking system, including: a first acquisition module 101, a second acquisition module 102, a first judgment module 103, a first processing module 104 and an objective lens moving module 105.

[0094] The first acquisition module 101 is used to acquire the linear region of the light spot on the photodetector 9, define the starting point of the linear region, and obtain the linear equation of the linear region according to the starting point.

[0095] The second acquisition module 102 is used to acquire the first light spot and determine whether the first light spot satisfies the linear equation. If the first light spot satisfies the linear equation, Gaussian fitting is performed on the first light spot to obtain a first Gaussian curve.

[0096] The first judgment module 103 is used to judge whether the first linearity of the first Gaussian curve is less than a preset first threshold, and if the first linearity is less than the preset first threshold, obtain the first pixel position corresponding to the peak point of the first Gaussian curve.

[0097] The first processing module 104 is used to calculate the difference between the first pixel position and the starting point to obtain a first compensation distance of the objective lens 6.

[0098] The objective lens moving module 105 is used to move the objective lens 6 according to the first compensation distance to achieve automatic focus locking.

[0099] In this embodiment, since Embodiment 2 is written based on Embodiment 1, some repeated technical features are not repeated.

[0100] In summary, the embodiments of the present invention provide a focus control method and a focus system for a microscope focus system, which have the following beneficial effects compared with the prior art: the acquired light spots are screened according to whether the light spots are discrete points based on the pre-acquired linear area, so as to avoid using light spots with large errors to adjust the focus system; Gaussian fitting is performed on the acquired light spots, and the light spot information is used to adjust the objective lens 6 only when the fitting curve obtained by Gaussian fitting meets the linearity requirements, thereby improving the adjustment accuracy and repeatability of the focus system.

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

Claims

1. A focus control method for a microscope focus locking system, characterized in that: include: Acquire a linear region of the light spot on the photodetector, define a starting point of the linear region, and obtain a linear equation of the linear region according to the starting point; Acquire a first light spot and determine whether the centroid position of the first light spot satisfies the linear equation, and if the centroid position of the first light spot is on the linear equation, perform Gaussian fitting on the first light spot to obtain a first Gaussian curve; Determine whether a first linearity of the first Gaussian curve is less than a preset first threshold value, and if the first linearity is less than the preset first threshold value, obtain a first pixel position corresponding to a peak point of the first Gaussian curve; Calculate the difference between the first pixel position and the starting point to obtain a first compensation distance of the objective lens; The objective lens is moved according to the first compensation distance to achieve automatic focus locking.

2. The focus locking control method of a microscope focus locking system according to claim 1, characterized in that: The focus locking control method further comprises: If the first linearity is greater than a preset first threshold, Gaussian fitting is performed on the first light spot again, and it is determined whether the linearity of the re-fitted Gaussian curve is less than a preset first threshold.

3. The focus locking control method of a microscope focus locking system according to claim 2, characterized in that: The focus locking control method further comprises: Determine whether the number of Gaussian fittings performed on the first light spot is greater than a second threshold value, and if so, stop Gaussian fitting and directly read the second pixel position corresponding to the point with the largest gray value in the first light spot; Calculate the difference between the second pixel position and the starting point to obtain a second compensation distance of the objective lens; The objective lens is moved according to the second compensation distance to achieve automatic focus locking.

4. The focus locking control method of a microscope focus locking system according to claim 1, characterized in that: The linear region of the light spot on the photodetector is obtained, a starting point of the linear region is defined, and a linear equation of the linear region is obtained according to the starting point, which is specifically: The position of the objective lens in the Z-axis direction of the moving focus locking system is recorded as a linear region in which the grayscale value of the light spot changes during the movement of the objective lens; the center position of the linear region is defined as the starting point, and the linear equation of the region is obtained according to the starting point and the linear region.

5. The focus locking control method of a microscope focus locking system according to claim 1, characterized in that: The focus locking system comprises a light source, a beam splitter, a first lens group, a dichroic mirror, an objective lens, a second lens group, a photodetector and an objective lens moving unit; The light source is used to generate an incident light beam, which passes through a beam splitter, a first lens group, a dichroic mirror, and an objective lens in sequence and converges on the lower surface of a glass slide below the objective lens; the incident light beam is reflected by the glass slide to form a reflected light beam, which passes through the objective lens, a dichroic mirror, a first lens group, a beam splitter, and a second lens group in sequence and forms a light spot on a photodetector; The first lens group is used to correct the position of the light spot and the displacement deviation of the magnified slide; The second lens group is used to correct the shape and size of the light spot; The photoelectric detector is used to receive the reflected light beam formed by the glass slide to obtain the centroid position of the light spot formed by the reflected light beam, and to perform difference processing according to the first centroid position and the second centroid position to obtain the compensation distance required by the objective lens; the photoelectric detector is also used to feed back the compensation distance to the objective lens moving unit; The objective lens moving unit is used to move the objective lens according to the compensation distance.

6. The focus locking control method of a microscope focus locking system according to claim 5, characterized in that: The included angle between the incident light beam and the beam splitter is forty-five degrees; the included angle between the incident light beam and the dichroic mirror is forty-five degrees.

7. The focus locking control method of a microscope focus locking system according to claim 5, characterized in that: The first lens group is provided with a first negative focal length lens, a first positive focal length lens, and a second negative focal length lens in sequence according to the propagation direction of the incident light; the first negative focal length lens and the second negative focal length lens are used to magnify the displacement deviation of the slide, and the first positive focal length lens is used to correct the position of the light spot.

8. The focus locking control method of a microscope focus locking system according to claim 5, characterized in that: The second lens is provided with a second positive focal length lens and a third negative focal length lens in sequence according to the propagation direction of the first reflected light beam, the second positive focal length lens is used to correct the shape of the light spot, and the third negative focal length lens is used to adjust the size of the light spot.

9. The focus locking control method of a microscope focus locking system according to claim 5, characterized in that: The photoelectric detector includes one of a linear array CCD, an area array CCD or a PSD position detector.

10. A microscope focus locking device, characterized in that: include: A first acquisition module, a second acquisition module, a first judgment module, a first processing module and an objective lens moving module; The first acquisition module is used to acquire the linear region of the light spot on the photodetector, define the starting point of the linear region, and obtain the linear equation of the linear region according to the starting point; The second acquisition module is used to acquire the first light spot and determine whether the centroid position of the first light spot satisfies the linear equation, and if the centroid position of the first light spot is on the linear equation, perform Gaussian fitting on the first light spot to obtain a first Gaussian curve; The first judgment module is used to judge whether the first linearity of the first Gaussian curve is less than a preset first threshold value, and if the first linearity is less than the preset first threshold value, obtain a first pixel position corresponding to a peak point of the first Gaussian curve; The first processing module is used to calculate the difference between the first pixel position and the starting point to obtain a first compensation distance of the objective lens; The objective lens moving module is used to move the objective lens according to the first compensation distance to achieve automatic focus locking.