A motion control method of microscope barrel on Z axis and automatic microscope
By using a camera to identify mark points on the microscope barrel and calculating pixel position differences to adjust the height, the problem of high cost of high-precision Z-axis motion control is solved, low-cost microscope barrel motion control is achieved, and the accuracy of full-slice scanning is ensured. function, extending the service life of the equipment.
Patent Information
- Application Number
- CN201910225927.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-03-25
AI Technical Summary
The high-precision Z-axis motion control system in existing automatic microscopes is expensive and difficult to maintain, which limits its application to low- and medium-budget users and cannot effectively realize the full-slice scanning function.
A camera fixed on one side of the microscope barrel is used to identify the mark point, and the height of the barrel is adjusted by calculating the pixel position difference in the image captured by the camera. Z-axis motion control is realized by combining low-precision hardware and software calculations, reducing the risk of interference. Reliance on high-precision positioning devices.
It realizes low-cost Z-axis motion control, reduces system cost, and extends the service life of the equipment through the automatic correction function, ensuring the high-precision imaging effect of the microscope.
Smart Images

Figure CN109752832B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of pathology digitization, and in particular to a motion control method of a microscope barrel on a Z axis and an automatic microscope. Background Art
[0002] After more than a decade of development, motorized microscope technology has become relatively mature. However, most models with whole slide imaging functions are based on the principle of high-precision mechanical positioning, which is extremely expensive, limiting their widespread application among users with medium and low budgets.
[0003] In essence, automated microscopes, like traditional manual microscopes, usually use three degrees of freedom to move the sample being observed: horizontal movement along the X and Y axes and vertical movement along the Z axis. Among them, the Z axis moves the lens, which directly determines the object distance of the microscope optical system, and thus determines the focus imaging effect.
[0004] In order to ensure that the operation process is controllable and stable, the Z-axis requires high-precision positioning functions just like the X and Y axes. However, the conditions for designing the Z-axis positioning system are different from those for the X and Y axes: on the one hand, the Z-axis is subject to the action of gravity, which can ensure that there is no dead zone in the downward direction (the operation of the lens barrel is basically driven by the lead screw slider pair. Under the action of gravity, it can be ensured that the slider is always in close contact with the lead screw. Therefore, when the lead screw rotates, the slider starts to move on the lead screw without any "idle travel").
[0005] On the other hand, when using a lens with high magnification and short depth of field, a clear image can only be observed when the Z-axis height is exactly at a position that can ensure that the optical system is in focus. After a slight up and down movement (usually only a few microns are needed, while the total stroke is thousands of microns) causes the image to be out of focus, the image becomes very blurry, and it is impossible to determine the current height of the Z-axis through it. In addition, there are widespread areas on the sample that are not covered by the sample and are completely blank, and the focus plane cannot be determined through the microscopic image, so it is impossible to ensure that the Z-axis height is measured at any position. This means that in the prior art, a Z-axis measurement motion system with extremely high absolute positioning accuracy and high price must be used. That is, a high-precision positioning device is used to first find the height difference between the current lens barrel and the target in focus, and then the walking device is controlled to drive the lens barrel to move downward or upward to the ideal position. High-precision positioning devices are expensive and difficult to maintain.
[0006] In addition, in order to take a bird's-eye view of the entire sample, automated microscopes are usually equipped with a low-magnification bird's-eye view camera that is separated from the microscope lens, but it is usually not related to motion control. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide a motion control method of a microscope barrel on the Z axis and an automatic microscope using the method, which can achieve the same effect without using a high-precision hardware positioning device with high cost and difficulty in maintenance.
[0008] The technical solution (I) proposed by the present invention to solve the above technical problems is: a method for controlling the motion of a microscope barrel on the Z axis, wherein the microscope comprises a camera fixedly mounted on one side of the microscope barrel, and the microscope barrel has at least one marking point identifiable by the camera, and the method comprises the following steps:
[0009] Obtain a digital image of the microscope tube at a current height position through the camera, and find out the current pixel position of the marking point in the image;
[0010] Calculating the difference in the number of pixels in the height direction between the current pixel position and the ideal pixel position of the marking point obtained when the marking point is pre-calibrated;
[0011] Calculating the height deviation information between the current height and the ideal height of the microscope barrel according to the pixel number difference information and a preset rule;
[0012] The height of the microscope tube is adjusted using the height deviation information.
[0013] Furthermore, the ideal pixel position of the marking point is obtained by obtaining an image by photographing the microscope barrel at an ideal height position by the camera.
[0014] Furthermore, the height adjustment of the microscope barrel is achieved through a Z-axis walking mechanism of the barrel, and the Z-axis walking mechanism of the barrel includes a vertically arranged Z-axis screw, a Z-axis motor that drives the Z-axis screw to rotate, and a Z-axis slider arranged on the Z-axis screw, and the Z-axis slider is fixedly connected to the microscope barrel.
[0015] The technical solution (II) proposed by the present invention to solve the above technical problems is: an automatic microscope, including a lens barrel, characterized in that:
[0016] The automatic microscope comprises a stage, a central controller, a camera fixed on one side of the lens barrel, and a Z-axis walking mechanism for driving the lens barrel to reciprocate along the Z-axis.
[0017] The lens barrel has at least one marking point that can be recognized by the camera,
[0018] The camera is suitable for taking pictures under the control of the central controller and transmitting the obtained images to the central controller in real time.
[0019] The central controller is suitable for controlling the camera to take pictures. The central controller has an image recognition processing unit, which is suitable for identifying a mark point in an image and obtaining a current pixel position of the mark point; the central controller has a calculation unit, which is suitable for calculating the difference in the number of pixels between the current pixel position of the mark point and the ideal pixel position in the height direction, and then calculating the height deviation information between the current height of the microscope barrel and the ideal height according to the pixel number difference according to a preset rule; the central controller is also suitable for controlling the Z-axis walking mechanism to drive the barrel to move to the ideal height position according to the height deviation information.
[0020] Furthermore, it also includes a reflector disposed between the lens barrel and the camera at an angle of 45 degrees.
[0021] The stage is a two-dimensional translation stage, which can move the sample under the reflector under the control of the central controller.
[0022] Further, the automatic microscope has a lens barrel fixing frame, the lens barrel fixing frame is horizontally connected to a lens barrel horizontal clamp frame extending forward, the lens barrel is assembled in the lens barrel horizontal clamp frame and can slide freely up and down along the Z-axis direction under the support of the lens barrel horizontal clamp frame,
[0023] The Z-axis walking mechanism is arranged between the lens barrel and the lens barrel fixing frame. The Z-axis walking mechanism includes a vertically arranged Z-axis screw and a Z-axis motor for driving the Z-axis screw. The Z-axis screw is provided with a Z-axis slider, and the Z-axis slider is fixedly connected to the lower part of the lens barrel.
[0024] Furthermore, the stage has a lighting module, which is arranged below the sample placement position.
[0025] The marking point is a circle of chamfers arranged at the bottom edge of the objective lens of the lens barrel, and the chamfers are illuminated when the lighting module is turned on.
[0026] Furthermore, the stage is a stage capable of two-dimensional horizontal movement along the XY axis.
[0027] The loading platform includes an X-axis motor, the power output shaft of the X-axis motor is connected to an X-axis lead screw, the lead screw is connected to an X-axis slider, and the X-axis slider is connected to the lower loading platform;
[0028] A Y-axis motor is arranged on the lower stage, a Y-axis lead screw is connected to the power output shaft of the Y-axis motor, a Y-axis slider is connected to the Y-axis lead screw, a Y-axis linear bearing is connected to the upper stage, and a sample placement area is arranged on the surface of the upper stage.
[0029] Furthermore, a laser reflection plate is connected to the lens barrel, and a laser ranging module for cooperating with the laser reflection plate to measure distance is arranged above the laser reflection plate, and the signal of the laser ranging module is output to the central controller.
[0030] The beneficial effects of the present invention are:
[0031] By adopting the method and the automatic microscope of the present invention, there is no need for a positioning module and a linear motion module with high absolute positioning accuracy to control the Z axis, and the same practical effect can be achieved by using low-precision hardware positioning and software calculation positioning, which greatly reduces the cost.
[0032] The automatic microscope in the present invention also uses a camera to achieve two purposes: first, the camera cooperates with the software to calculate and locate the height of the objective lens to control the system cost; second, the bird's-eye view photos are collected through the 45-degree reflector and the movement of the sample.
[0033] The system can also perform automatic correction. Transportation or equipment wear and aging may cause changes in the hardware positioning system parameters, while the quality of the fixed and closed imaging system and the software calculation are very stable. By automatically correcting the parameters, the effective service life of the product can be greatly extended. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The automatic microscope of the present invention will be further described below in conjunction with the accompanying drawings.
[0035] Figure 1 is a structural diagram of the housing of the automatic microscope in the first embodiment;
[0036] Figure 2 is a schematic diagram of the structure of the automatic microscope in Example 1;
[0037] Figure 3 It is a right side view of the automatic microscope in Example 1;
[0038] Figure 4 This is a schematic diagram of the structure of the automatic microscope in Embodiment 1 after removing the horizontal hoop frame of the lens barrel;
[0039] Figure 5 It is a schematic diagram of the structure of the reflector;
[0040] Figure 6 This is a schematic diagram of the structure of the automatic microscope in Example 1 at a 45-degree angle in front of the automatic microscope;
[0041] Figure 7 is a top view of the automatic microscope in Example 1;
[0042] Figure 8 It is a cross-sectional view of the structure along the AA direction of the automatic microscope in the first embodiment. DETAILED DESCRIPTION
[0043] Embodiment 1
[0044] according to Figure 1 As shown, the automatic microscope in this embodiment is placed in a cabinet-type case during normal operation. The front of the case has a movable door, and the operator can open the movable door to load the sample.
[0045] like Figure 2 , Figure 3 and Figure 4 As shown, the automatic microscope in this embodiment includes a lens barrel 1. In this embodiment, it is preferred that the automatic microscope has an n-shaped lens barrel fixing frame 2, and a lens barrel horizontal clamp frame 3 extending horizontally forward is connected to the lens barrel fixing frame 2. The lens barrel 1 is assembled in the lens barrel horizontal clamp frame 3 and can slide freely up and down along the Z-axis direction under the support of the lens barrel horizontal clamp frame 3. In other application scenarios, the fixing scheme of the lens barrel 1 disclosed in this embodiment can be adopted without limitation, as long as it has a similar fixing and supporting function of the lens barrel 1. A collection camera 98 specifically for shooting the enlarged image can be connected to the lens barrel, which can also be observed by naked eyes.
[0046] The automatic microscope also includes a stage 4, a central controller (not shown in the figure), a camera 5 fixed to one side of the lens barrel 1, and a Z-axis travel mechanism 6 for driving the lens barrel 1 to reciprocate along the Z axis. The stage 4 has a sample placement 401, and the sample placement 401 is used to fix the sample (not shown in the figure).
[0047] The lens barrel 1 has at least one marking point that can be recognized by the camera 5. The marking point can be a characteristic color point / block painted on the surface of the lens barrel 1, or a protrusion / groove that can form a clear viewing angle contrast. Figure 2 and Figure 6 As shown, in this embodiment, the marking point is a circle of chamfers 101 set at the bottom edge of the objective lens of the lens barrel 1, and the stage 4 has an illumination module (not shown in the figure), which is installed in an illumination module mounting seat 410 set below the sample placement 401. When the illumination module is turned on, the light passes through the sample to illuminate the sample and the chamfer 101. When shooting from the position where the camera 5 is located, the part of the marking point reflected in the image is a bright silver horizontal stripe with a certain height and width, and the bright silver horizontal stripe is the imaging part of the marking point in the image.
[0048] The camera 5 is suitable for taking pictures under the control of the central controller and transmitting the obtained images to the central controller in real time.
[0049] The central controller has an image recognition processing unit, which is suitable for identifying the pixel part representing the marking point in the image and obtaining the current pixel position of the marking point. The current pixel position can be represented by any pixel position information or a set of position information of multiple pixels in the marking point image.
[0050] The central controller has a calculation unit, which is suitable for calculating the difference in the number of pixels between the current pixel position of the marking point and the ideal pixel position in the height direction, and then calculating the height deviation information between the current height and the ideal height of the microscope tube 1 according to the pixel number difference according to the preset rule. In this embodiment, the so-called ideal pixel position of the marking point refers to the image obtained by the camera 5 shooting the microscope tube 1 at the ideal height position before leaving the factory or subsequent maintenance calibration, and then the image recognition processing of the image by the central controller. The ideal height refers to the height of the tube 1 suitable for the object-eyepiece to observe the clear sample magnification imaging. The aforementioned preset rule refers to the proportional relationship between the pixel number difference and the actual height difference, which is determined by the spacing between the camera 5 and the tube 1 and the hardware properties of the camera 5 lens or imaging module. The preset rule can be determined by a limited number of tests or directly by the parameters of the camera 5 lens or imaging module hardware.
[0051] The central controller is also suitable for controlling the Z-axis travel mechanism 6 to drive the lens barrel 1 to move to the ideal height position according to the height deviation information. Figure 8 As shown, in this embodiment, the Z-axis walking mechanism 6 is arranged between the lens barrel 1 and the lens barrel fixing frame 2, and the Z-axis walking mechanism 6 includes a vertically arranged Z-axis lead screw 602 and a Z-axis motor 601 for driving the Z-axis lead screw 602, and a Z-axis slider 603 is arranged on the Z-axis lead screw 602, and the Z-axis slider 603 is fixedly connected to the lower part of the lens barrel 1. Then the control end of the central controller is connected to the controlled end of the Z-axis motor 601. Of course, the Z-axis walking mechanism 6 can also be replaced by other hardware mechanisms with equivalent functions as required in different situations.
[0052] In order to realize two functions based on one camera 5, in this embodiment, a reflector (not shown in the figure) arranged at a 45-degree angle between the lens barrel 1 and the camera 5 may be further included. Figure 6 The mounting seat 7 for fixing the reflector in this embodiment is shown, and the mounting seat 7 has a pair of connecting ears 701 for connecting to the lens barrel fixing frame 2, and a reflector connecting groove 702 with a 45-degree inclination is provided below the connecting ears 701. The reflector can be installed and connected in the mounting seat 7 at a 45-degree inclination through the reflector connecting groove 702. This embodiment only discloses a more reasonable reflector installation scheme, and other reflector installation schemes with the same technical effect can also be adopted for other considerations.
[0053] like Figure 7 As shown, the stage 4 is a two-dimensional translation stage 4, which can drive the sample to the bottom of the reflector under the control of the central controller. It is preferred that the stage 4 is a stage 4 that can move horizontally in two dimensions along the XY axis. The stage 4 includes an X-axis motor 402, an X-axis lead screw 403 is connected to the power output shaft of the X-axis motor 402, an X-axis slider 404 is connected to the X-axis lead screw 403, and the X-axis slider 404 is connected to the lower stage 405. A Y-axis motor 406 is provided on the lower stage 405, a Y-axis lead screw 407 is connected to the power output shaft of the Y-axis motor 406, a Y-axis slider 408 is connected to the Y-axis lead screw 407, and a Y-axis linear bearing is connected to an upper stage 409, and a sample placement place 401 is provided on the table top of the upper stage 409.
[0054] like Figure 5 As shown, in order to adapt to the larger walking distance of the lens barrel 1 in the Z-axis direction, it can be preferred that: a laser reflection plate 801 is connected to the lens barrel 1, and a laser distance measurement module 802 for cooperating with the laser reflection plate 801 for distance measurement is arranged above the laser reflection plate 801, and the signal of the laser distance measurement module 802 is output to the central controller. The laser distance measurement module 802 in this embodiment is installed at the horizontal hoop frame 3 of the lens barrel, and can also be installed at other positions for other considerations. In this way, when the lens barrel 1 is located at a higher position so that the camera 5 cannot shoot the marking point, the central controller first controls the Z-axis walking mechanism 6 to perform the initial descent through the rough distance measurement result of the laser distance measurement module 802. When the camera 5 can shoot the marking point, the aforementioned pixel difference information is then used to accurately control the descent for the second time (no more details).
[0055] Embodiment 2
[0056] This embodiment relates to a motion control method of a microscope barrel 1 on the Z axis. This method is based on the core idea of the technical solution in the first embodiment. The parts required to solve the technical problems and not mentioned in this embodiment continue to use the relevant technical solutions provided in the first embodiment.
[0057] A method for controlling the motion of a microscope barrel 1 on the Z axis, wherein the microscope comprises a camera 5 fixedly mounted on one side of the microscope barrel 1, and the microscope barrel 1 has at least one marking point identifiable by the camera 5. The method comprises the following steps:
[0058] A digital image of the microscope tube 1 at the current height position is obtained by the camera 5, and the current pixel position of the marking point in the image is found.
[0059] The difference in the number of pixels in the height direction between the current pixel position and the ideal pixel position obtained when the marking point was pre-calibrated is calculated.
[0060] The height deviation information between the current height of the microscope tube 1 and the ideal height is calculated according to the preset rules based on the pixel number difference information.
[0061] The height of the microscope tube 1 is adjusted using the height deviation information.
[0062] Preferably, the ideal pixel position of the marking point is obtained by capturing an image of the microscope tube 1 at an ideal height position with the camera 5 and then obtaining the image in the image.
[0063] It is preferred that the height adjustment of the microscope barrel 1 is achieved through the Z-axis walking mechanism 6 of the barrel 1, and the Z-axis walking mechanism 6 of the barrel 1 includes a vertically arranged Z-axis screw 602, a Z-axis motor 601 driving the Z-axis screw 602 to rotate, and a Z-axis slider 603 arranged on the Z-axis screw 602, and the Z-axis slider 603 is fixedly connected to the microscope barrel 1.
[0064] The present invention is not limited to the above embodiments. The technical solutions of the above embodiments of the present invention can be cross-combined with each other to form new technical solutions. In addition, all technical solutions formed by equivalent replacement fall within the protection scope required by the present invention.
Claims
1. A method for controlling the motion of a microscope barrel on the Z axis, characterized in that: The microscope comprises a camera fixedly mounted on one side of a microscope barrel, and the microscope barrel has at least one marking point identifiable by the camera. The method comprises the following steps: Obtain a digital image of the microscope barrel at a current height position through the camera, and find out the current pixel position of the marking point in the image; Calculating the difference in the number of pixels in the height direction between the current pixel position and the ideal pixel position of the marking point obtained when the marking point is pre-calibrated; Calculating the height deviation information between the current height and the ideal height of the microscope barrel according to the pixel number difference information and a preset rule; Adjusting the height of the microscope tube according to the height deviation information; The ideal pixel position of the marking point is obtained by obtaining an image by photographing the microscope barrel at an ideal height position by the camera.
2. The motion control method of the microscope barrel on the Z axis according to claim 1, characterized in that: The height adjustment of the microscope barrel is achieved through a Z-axis walking mechanism of the barrel, which includes a vertically arranged Z-axis screw, a Z-axis motor for driving the Z-axis screw to rotate, and a Z-axis slider arranged on the Z-axis screw, and the Z-axis slider is fixedly connected to the microscope barrel.
3. An automatic microscope, comprising a lens barrel, characterized in that: The automatic microscope comprises a stage, a central controller, a camera fixed on one side of the lens barrel, and a Z-axis travel mechanism for driving the lens barrel to reciprocate along the Z-axis. The lens barrel has at least one marking point that can be recognized by the camera, The camera is suitable for taking pictures under the control of the central controller and transmitting the obtained images to the central controller in real time. The central controller has an image recognition processing unit, which is suitable for identifying a marking point in an image and obtaining a current pixel position of the marking point; The central controller has a calculation unit, which is suitable for calculating the difference in the number of pixels between the current pixel position of the marking point and the ideal pixel position in the height direction, and then calculating the height deviation information between the current height of the microscope barrel and the ideal height according to the pixel difference according to a preset rule; the central controller is also suitable for controlling the Z-axis walking mechanism to drive the barrel to move to the ideal height position according to the height deviation information; The ideal pixel position of the marking point is obtained by obtaining an image by photographing the microscope barrel at an ideal height position by the camera.
4. The automatic microscope according to claim 3, characterized in that: It also includes a reflector arranged at a 45-degree angle between the lens barrel and the camera. The stage is a two-dimensional translation stage, which can move the sample under the reflector under the control of the central controller.
5. The automatic microscope according to claim 3, characterized in that: The automatic microscope has a lens barrel fixing frame, the lens barrel fixing frame is horizontally connected to a lens barrel horizontal clamp frame extending forward, the lens barrel is assembled in the lens barrel horizontal clamp frame and can freely slide up and down along the Z-axis direction under the support of the lens barrel horizontal clamp frame, The Z-axis walking mechanism is arranged between the lens barrel and the lens barrel fixing frame. The Z-axis walking mechanism includes a vertically arranged Z-axis screw and a Z-axis motor for driving the Z-axis screw. The Z-axis screw is provided with a Z-axis slider, and the Z-axis slider is fixedly connected to the lower part of the lens barrel.
6. The automatic microscope according to claim 3, characterized in that: The stage has a lighting module, which is arranged below the sample placement area. The marking point is a circle of chamfers arranged at the bottom edge of the objective lens of the lens barrel, and the chamfers are illuminated when the lighting module is turned on.
7. The automatic microscope according to claim 3, characterized in that: The stage is a stage capable of two-dimensional horizontal movement along the XY axis. The loading platform includes an X-axis motor, the power output shaft of the X-axis motor is connected to an X-axis lead screw, the lead screw is connected to an X-axis slider, and the X-axis slider is connected to the lower loading platform; A Y-axis motor is arranged on the lower stage, a Y-axis lead screw is connected to the power output shaft of the Y-axis motor, a Y-axis slider is connected to the Y-axis lead screw, a Y-axis linear bearing is connected to the upper stage, and a sample placement area is arranged on the surface of the upper stage.
8. The automatic microscope according to claim 3, 4, 5, 6 or 7, characterized in that: The lens barrel is connected with a laser reflection plate, and a laser distance measuring module for cooperating with the laser reflection plate to measure distance is arranged above the laser reflection plate, and the signal of the laser distance measuring module is output to the central controller.
