Method for measuring the eccentricity of a motorized turntable of a microscope
By selecting a reference hole position in the eccentricity measurement of the microscope's electric turntable, linking the electric turntable with the camera to capture the original image and selecting the effective image range, and combining it with an image center recognition algorithm, the problems of low efficiency and insufficient accuracy in existing methods are solved, and high-precision and efficient eccentricity measurement is achieved.
Patent Information
- Application Number
- CN202511454163.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-13
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2045-10-13
AI Technical Summary
Existing methods for measuring the eccentricity of a microscope's motorized turntable are inefficient and lack precision, making them unsuitable for microscopes with top covers. Furthermore, image circumference recognition methods are prone to errors when dealing with image quality issues.
By selecting a reference hole position, the electric turntable and camera are linked to capture the original image. The effective field of view is pre-selected, and the eccentricity result is automatically calculated by combining the image center recognition algorithm. The eccentricity measurement is carried out by linking the computer and the electric control module.
It achieves high precision (0.432μm pixel-level error) and high efficiency (51.3% improvement), and is versatile, suitable for microscopes with different optical components.
Smart Images

Figure CN120926914B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a kind of measurement methods of microscope component machining precision, more particularly to a kind of eccentricity measurement method of the motorized turntable of microscope. BACKGROUND
[0002] Motorized turntable is an important component on microscope, usually used for switching different fluorescence modules and different objective lenses and other optical components, to provide different imaging effects for users. The structure of the motorized turntable of microscope is shown in Figure 3 It contains multiple mounting hole positions, which are mainly used for mounting objective lenses of different magnifications or fluorescence modules of different wavebands. In use, if the concentricity deviation of the motorized turntable is too large, it will affect the imaging effect of the entire microscope and the detection accuracy of the sample. Therefore, during production and processing, it is usually necessary to measure the eccentricity of the motorized turntable to ensure product quality.
[0003] The existing eccentricity measurement method of the motorized turntable of microscope is as follows: (1) manual method. This method specifies an arbitrary one of all the mounting hole positions as a reference hole position, selects a feature point on the reference hole position, takes a picture on the reference hole position first, then rotates the motorized turntable around the center axis to other hole positions and back to the reference hole position to take a picture, finally, the eccentricity of the motorized turntable can be obtained by manually judging the displacement distance of the selected feature point in the two pictures. However, this method is low in efficiency and the measurement accuracy needs to be improved. (2) Three-coordinate method. The three-coordinate method first collects the coordinates of three or more sampling points on the inner edge of the reference hole position of the motorized turntable, then rotates the motorized turntable around the center axis to other mounting hole positions and back to the reference hole position, records the coordinates of each sampling point, and finally compares the center point deviation of the two sets of data to obtain the eccentricity of the motorized turntable. This method has good detection accuracy, but the equipment cost is high, the efficiency is low, and it is not suitable for the motorized turntable of microscope with cover shielding. (3) Image circumference recognition method. The authorized announcement No. CN109238157B Chinese invention patent proposes an eccentricity measurement method based on image circumference recognition technology. Compared with the first two methods, it has higher measurement efficiency, but this method requires accurate recognition of the circumference edge, and when the picture has distortion and edge out-of-focus, etc. Picture quality problems will cause errors in the measurement results. SUMMARY
[0004] The technical problem to be solved by the present application is to provide an eccentricity measurement method of the motorized turntable of microscope with high precision, high efficiency and generalization.
[0005] The technical solution adopted by the present application to solve the above technical problem is: an eccentricity measurement method of the motorized turntable of microscope, specifically comprising the following steps:
[0006] Step (1), select the participating hole and determine the reference hole from it: select the participating hole from the mounting hole, denoted as P k , k The serial number of the participating hole, k ∈[1, K ], K The number of participating holes, and set any one participating hole as the reference hole, denoted as P ref , ref The serial number of the participating hole as the reference hole, wherein the number of participating holes K is less than or equal to the number of mounting holes N ;
[0007] Step (2), install the optical components of the microscope into the reference hole of the motorized turntable, so that the camera at the observation end can clearly shoot the target object;
[0008] Step (3), select the resolution of the original image shot by the camera under the reference hole, fill in the pixel calibration value, and draw a rectangular frame as the effective picture range in the original image;
[0009] Step (4), link the motorized turntable and the camera, and shoot K the original image: shoot the original image of the reference hole, then make the motorized turntable rotate around the center axis by an angle, so that any one participating hole except the reference hole enters the effective picture range, then make the motorized turntable rotate in the opposite direction by the same angle to make the reference hole reposition in the effective picture range, and then shoot the original image of the reference hole, and traverse all participating holes including the reference hole to get K original images;
[0010] Step (5), identify the target center point coordinates of all original images, and calculate the eccentricity corresponding to the reference hole: first, cut out the local image from all original images according to the effective picture range, then identify the target center point coordinates of all local images, and then combine the effective picture range, the pixel calibration value and the target center point coordinates of all local images to calculate the eccentricity corresponding to the reference hole.
[0011] Compared with the prior art, the advantages of the present application are that the effective picture range for subsequent analysis is preselected in the original image shot by the camera, then the movement of the motorized turntable and the shooting function are automatically controlled under the linkage of the computer and the motorized control module, and finally the target center is identified by the image center identification algorithm, and the eccentricity corresponding to the specified reference hole on the motorized turntable is measured.
[0012] The picture obtained after shooting is an original picture without cutting, and then analysis is performed according to the selected rectangular frame range, instead of the whole picture, so that the analysis efficiency is improved and other interference is reduced.
[0013] The experimental results show that the eccentricity measurement precision of the present application is 0.432 μm, which has pixel-level error and is at the same level as the manual measurement precision 0.444 μm; in terms of speed, due to the analysis mode of selecting the effective picture range, the single measurement only takes 0.134 s, compared with the analysis mode of the original picture image of the prior art, the efficiency is improved by about 51.3%. The eccentricity measurement method of the motorized turntable of the microscope has the characteristics of high precision, high efficiency and generalization.
[0014] Preferably, the specific method of step (3) is:
[0015] Step (3-1), connecting the camera to the computer, and selecting the resolution of the original picture image shot by the camera under a reference hole position;
[0016] Step (3-2), filling in the pixel calibration value;
[0017] Step (3-3), drawing a rectangular frame as an effective picture range in the original picture image through drawing software, and the key position information of the effective picture range includes the starting horizontal coordinate x 0, the starting vertical coordinate y 0, the effective range width w 0 and the effective range height h 0.
[0018] Preferably, the pixel calibration value in step (3-2) is obtained by the following method: first, a microscope grid plate containing scales is placed in the center of the picture field in the effective picture range, then a line segment is drawn in the effective picture range through drawing software, the number of pixels of the line segment is obtained n , and finally the pixel calibration value is obtained through the following formula operation d pixel : , wherein D represents the physical length of the line segment drawn in the effective picture range on the microscope grid plate.
[0019] Preferably, the specific method of step (4) is:
[0020] Step (4-1), initializing the original picture image sequence number, denoted as t , and t =0;
[0021] Step (4-2), judging whether the original picture image sequence number t is equal to the total number of participating hole positionsK if t K , then step (4-3) is executed, otherwise, step (4-7) is executed;
[0022] Step (4-3), the original image sequence number t is accumulated by 1;
[0023] Step (4-4), judging the relationship between the original image sequence number t and the sequence number of the participating hole as the reference hole ref if t ≠ ref , then step (4-5) is executed, otherwise, the image is taken and recorded as the original image Img t , and step (4-2) is continued to be executed;
[0024] Step (4-5), let k = t , and control the electric turntable to rotate an angle to the k participating hole P k ;
[0025] Step (4-6), control the electric turntable to rotate reversely by the same angle to the reference hole P ref , and take the image, which is recorded as the original image Img t if t = 6, then step (4-7) is executed, otherwise, step (4-2) is continued to be executed;
[0026] Step (4-7), the shooting is completed, and K original images are obtained.
[0027] Preferably, the specific method of identifying the target center point coordinates of all original images in step (5) is:
[0028] Step (5-1), initialize the original image sequence number t , let t = 1;
[0029] Step (5-2), judging the relationship between the original image sequence number t and K if t ≤ K , then the t original image Img t is read, and step (5-3) is executed, otherwise, step (5-5) is executed;
[0030] Step (5-3): Based on the starting x-coordinate of the key position information of the effective image range in step (3-3). x 0. Initial ordinate y 0. Effective range width w 0 and effective range height h 0, from the original image Img t A partial image is cropped from the middle and denoted as... I t And the local image I t The width is denoted as w 0, local view I t The height is recorded as h 0;
[0031] Step (5-4): Identify local images I t The target in the image is obtained, and a local map is captured. I t The target in this local diagram I t The center coordinates in the coordinate system ( x t , y t ),in, x t , y t These represent the partial diagrams respectively. I t The central x-coordinate and central y-coordinate in the coordinate system;
[0032] Step (5-5): Based on the partial drawing I t The coordinate system and the original image Img t The mapping relationship of the coordinate system is used to calculate the first... t Zhang Yuantu Image Img t The coordinates of the target center in ( x t + x 0, y t + x 0).
[0033] Preferably, the specific method of step (5-4) is as follows:
[0034] Step (5-4-1), if the local view I t If it is a single-channel grayscale image, proceed to step (5-4-2); otherwise, first process the local image.I t After converting the multi-channel color image to a single-channel grayscale image, proceed to step (5-4-2).
[0035] Step (5-4-2): First, traverse the local graph. I t For each pixel, obtain the grayscale value of all pixels, sum them up, take the average, and record the result as . mean , and then th mean = mean To obtain the segmentation threshold th mean ;
[0036] Step (5-4-3), according to th mean Segmentation of local images I t Obtain the segmented image, denoted as I tMask ,for I tMask Each pixel, if the local image I t The corresponding pixel grayscale value is less than th mean ,but I tMask The corresponding pixel value is 0, and vice versa. I tMask The corresponding pixel value is 255;
[0037] Step (5-4-4): First, use the cv::findContours function of the open-source computer vision library to find... I tMask All contour targets are identified, and then the contour area of each contour target is calculated using the cv::contourArea function. The contour target with the largest area is identified and denoted as . m t Finally, by number m t Visit the m t Geometric information of the contour target is obtained to acquire the first... t Zhang's partial image I t Target center coordinates ( x t , y t ), x t and y t Representing the first tPartial view of the center I t center coordinates in the coordinate system.
[0038] Preferably, the step (5) is calculated according to the following formula:
[0039] ,
[0040] In the formula, x 1、 y 1respectively represent t =1 Img 1corresponding to the partial view of the original image I 1The horizontal and vertical coordinates of the target center of the partial view of the original image x t , △ y t respectively represent the horizontal and vertical pixel distances between the target center coordinates of the original image Img t and the original image Img 1; l t The physical distance length between the target center coordinates of the original image Img t and the original image Img 1; l Bias is the maximum l t , and is the eccentricity result corresponding to the reference hole.
[0041] Preferably, after obtaining the eccentricity result corresponding to the reference hole, a "cross-shaped" pattern is used to draw all the target center positions of the original image on the original image t =1 Img 1, respectively representing the eccentricity of the motorized turntable at the specified reference hole. BRIEF DESCRIPTION OF DRAWINGS
[0042] Figure 1 is the flow chart of the eccentricity measurement method of the motorized turntable of the microscope in the first embodiment of the present application;
[0043] Figure 2 is a structural schematic diagram of the measuring device used in the first embodiment of the present application;
[0044] Figure 3 is a top view of the motorized turntable of the microscope in the first embodiment of the present application installed with a fluorescence module;
[0045] Figure 4 is the flow chart of the eccentricity measurement method in the first embodiment of the present application;
[0046] Figure 5 The original image of the embodiment one of the application;
[0047] Figure 6 The image of the local map used in the eccentricity measuring method of the embodiment one of the application;
[0048] Figure 7 The target center point drawing obtained by the eccentricity measuring method of the embodiment one of the application;
[0049] Figure 8 The structural schematic diagram of the measuring device used in the embodiment two of the application.
[0050] Explanation of reference signs:
[0051] In the embodiment one, 101, computer; 102, electric control module; 103, camera; 104, fixed objective lens; 105, illumination module; 106, microscope grid plate; 107, metal fixing support; 108, fixed base; 109, electric turntable;
[0052] 201, circuit module unit; 202, camera mounting port; 203, electric turntable; 204, mounting hole position; 205, opening and closing door; 206, electric turntable protection shell; 207, transmission belt; 208, electric motor;
[0053] In the embodiment two, 301, camera; 302, relay mirror; 303, objective lens; 304, microscope grid plate; 305, electric platform; 306, light source; 307, microscope main body support; 308, electric turntable; 309, installation electric control module area; 310, computer. DETAILED DESCRIPTION
[0054] The application will be further described in detail in combination with the embodiments of the drawings.
[0055] As shown in the drawings, Figure 1 A kind of eccentricity measuring method of the electric turntable of microscope, including the following steps:
[0056] Step (1), select participating hole position and determine reference hole position from it: select participating hole position from mounting hole position, and it is recorded as P k , k The serial number representing participating hole position, k ∈ [1, K ], K Represent the number of participating hole position, and set any one participating hole position as reference hole position, and it is recorded as P ref , ref The serial number representing participating hole position as reference hole position, wherein, the number of participating hole positionK less than or equal to the number of mounting hole positions N ;
[0057] Step (2), install the optical components of the microscope into the reference hole position of the motorized turntable, so that the camera at the observation end can clearly capture the target object; the optical components such as the objective lens or the fluorescence module are important components of optical imaging in the microscope, mainly realizing light path conversion, so that the camera at the observation end can clearly capture the target object;
[0058] Step (3), select the original image resolution, fill in the pixel calibration value, and select the effective picture range: select the original image resolution captured by the camera under the reference hole position, fill in the pixel calibration value, and draw a rectangular frame in the original image as the effective picture range;
[0059] Step (4), link the motorized turntable and the camera, and capture K the original image: capture the image of the reference hole position, then make the motorized turntable rotate around the central axis by an angle, make the participating hole position enter the effective picture range, then make the motorized turntable rotate in the opposite direction by the same angle to make the reference hole position reposition in the effective picture range, and then capture the image of the reference hole position, traverse all participating hole positions, and obtain K the original image;
[0060] Step (5), identify the target center point coordinates of all original images, and calculate the eccentricity corresponding to the reference hole position: first, cut out the local image from all original images according to the effective picture range, then identify the target center point coordinates of all local images, and then combine the effective picture range, the pixel calibration value, and the target center point coordinates of all local images to calculate the eccentricity corresponding to the reference hole position.
[0061] The application will be further described in detail in combination with the embodiments of the drawings.
[0062] Embodiment one: the eccentricity measurement method of the motorized turntable of the microscope in this embodiment uses the measurement device as shown in Figure 2 . Figure 2 In this embodiment, 101 is a computer, 102 is an electric control module, 103 is a camera, 104 is a fixed objective lens, 105 is an illumination module, 106 is a microscope grid plate, 107 is a metal fixing support, 108 is a fixed base, and 109 is a motorized turntable. The microscope grid plate 106 as the target object for shooting is a transparent glass plate printed with a grid pattern, the center of the microscope grid plate 106 is an equidistantly divided grid pattern, the smallest unit cell spacing is 0.01 mm, and there are 100 rows and 100 columns.
[0063] In this embodiment, the fluorescence module is selected as the optical component. The top view of the motorized turntable of the microscope with the fluorescence module installed is as shown inFigure 3 As shown, Figure 3 In this embodiment, 201 is a circuit module unit, 202 is a camera mounting port, 203 is an electric turntable, 204 is a mounting hole position, six mounting hole positions 204 are provided on the electric turntable 203, 205 is an opening and closing door, the opening and closing door 205 is used for taking and placing a fluorescence module, 206 is an electric turntable protective shell, 207 is a transmission belt, and 208 is an electric motor.
[0064] The eccentricity measurement method of the electric turntable of the fluorescence module mounted microscope of this embodiment is as shown, comprising the following steps: Figure 4 As shown,
[0065] Step (1), select a participating hole position and determine a reference hole position therefrom: select a participating hole position from the six mounting hole positions 204, denoted as P k , k represent the serial number of the participating hole position, k ∈[1, K ], K represent the number of participating hole positions, in this embodiment, K =6, K equal to the number of mounting hole positions 204 N , then the six participating hole positions are respectively denoted as P 1, P 2, P 3, P 4, P 5, P 6; determine a reference hole position from the six participating hole positions, denoted as P ref , ref represent the serial number of the participating hole position as the reference hole position, in this embodiment, ref =1, so the reference hole position is also denoted as P 1;
[0066] Step (2), manually install the fluorescence module into the reference hole position P 1 of the electric turntable 203 of the microscope, so that the camera 103 at the observation end can clearly capture the target object, i.e., the microscope grid plate 106;
[0067] Step (3), select the original image resolution captured by the camera under the reference hole position, fill in the pixel calibration value, and draw a rectangular frame as the effective picture range in the original image, the specific method being:
[0068] Step (3-1), connect the camera 103 to the computer 101, and select an original image resolution captured by the camera 103 under a reference hole position P 1, the original image resolution selected in this embodiment is 4640×3506;
[0069] Step (3-2), fill in the pixel calibration value; if the pixel calibration value is unknown, it can be obtained by the following method: first, place a microscope grid plate 106 containing scales in the center of the picture field within the effective picture range, and then draw a line segment within the effective picture range through the drawing software. The pixel number of the line segment is obtained n , and finally the pixel calibration value is obtained by the following formula d pixel : , wherein D represents the physical length of the line segment drawn on the microscope grid plate 106 within the effective picture range; in this embodiment, the magnification of the objective lens is 10 times, d pixel =0.457μm / pixel;
[0070] Step (3-3), draw a rectangular frame as the effective picture range in the original image through the drawing software to obtain a local map. The key position information of the effective picture range includes the starting horizontal coordinate x 0, the starting vertical coordinate y 0, the effective range width w 0, and the effective range height h 0; in this embodiment, x 0=550 pixels, y 0=350 pixels, w 0=3000 pixels, h 0=2750 pixels.
[0071] The original image of this embodiment is shown in Figure 5 , and the local map used in the eccentricity measurement method of the motorized turntable of the microscope installed with the fluorescence module in this embodiment is shown in Figure 6 .
[0072] Step (4), link the motorized turntable 203 and the camera 103 to shoot K original images: shoot the original image of the reference hole position P 1, then rotate the motorized turntable 203 around its central axis, so that any one of the participating hole positions except the reference hole position P 1 enters the effective picture range, and then reverse the motorized turntable 203 to rotate the same angle to make the reference hole position P 1 repositioned in the effective picture range, and then shoot the original image of the reference hole position P 1, and traverse all participating hole positions including the reference hole position P 1 to obtain K original images, and the number of pictures shot in this embodiment is six, that is, it is equal to the total number of participating hole positionsK The specific steps are as follows:
[0073] Step (4-1), initialize the original image sequence number, denoted as t , and t =0;
[0074] Step (4-2), judge the relationship between the original image sequence number t and the total number of participating hole positions 6. If t <6, execute step (4-3), otherwise, execute step (4-7);
[0075] Step (4-3), accumulate the original image sequence number t by 1;
[0076] Step (4-4), judge the relationship between the original image sequence number t and the sequence number 1 of the participating hole position P 1 as the reference hole position. If t ≠1, execute step (4-5), otherwise, take an image, denoted as the original image Img t , and continue to execute step (4-2);
[0077] Step (4-5), let k = t , and control the electric turntable 203 to rotate an angle to the k participating hole position P k ;
[0078] Step (4-6), control the electric turntable 203 to rotate reversely by the same angle to the reference hole position P 1, and take an image, denoted as the original image Img t If t =6, execute step (4-7), otherwise, continue to execute step (4-2);
[0079] Step (4-7), complete the shooting, and get a total of 6 original images taken;
[0080] Step (5), identify the target center point coordinates of all original images, and calculate the eccentricity result corresponding to the reference hole position P 1. The specific method is as follows:
[0081] Step (5-1), initialize the original image sequence number t , let t =1;
[0082] Step (5-2), judge the relationship between the original image sequence number t and Kthe relationship between the two if t ≤6, then read the first t original image Img t , and perform step (5-3); otherwise, perform step (5-5);
[0083] Step (5-3), according to the start horizontal coordinate of the key position information of the valid picture range in step (3-3) x 0, start vertical coordinate y 0, valid range width w 0, and valid range height h 0, cut out a partial image from the original image Img t , denoted as I t In this embodiment, the width of the partial image I t is w 0=3000 pixels, and the height of the partial image I t is h 0=2750 pixels.
[0084] Step (5-4), identify the target in the partial image I t , and obtain the center coordinates of the target in the partial image I t in the coordinate system of the partial image I t , denoted as x t , y t , wherein x t , y t respectively represent the center horizontal coordinate and the center vertical coordinate of the partial image I t in the coordinate system of the partial image, and the specific method is as follows:
[0085] Step (5-4-1), if the partial image I t is a single-channel grayscale image, then perform step (5-4-2); otherwise, first convert the partial image I t from a multi-channel color image to a single-channel grayscale image, and then perform step (5-4-2);
[0086] Step (5-4-2), first traverse the pixel points of the partial image I t , obtain the grayscale values of all the pixel points, take the average of the cumulative sum, and record the result asmean , and the threshold value of segmentation is obtained th mean mean th mean In this embodiment, th mean = 12;
[0087] Step (5-4-3), according to th mean the local map is segmented I t , and the segmented image is obtained, denoted as I tMask For each pixel of I tMask , if the pixel gray value corresponding to the local map I t is less than th mean , then I tMask the corresponding pixel value is 0, otherwise, I tMask the corresponding pixel value is 255;
[0088] Step (5-4-4), first find all contour targets of I tMask by using the cv::findContours function of the open source computer vision library, then calculate the contour target area of each contour target by using the cv::contourArea function, find the number of the contour target corresponding to the largest contour target area, denoted as m t , and finally access the geometric information of the contour target by using the number m t , and obtain the target center coordinates of the m t th local map t I t , x t , y t , x t and y t respectively represent the target center coordinates of the t th local map I t the center horizontal coordinate and the center vertical coordinate in the coordinate system of the original image; in this embodiment, the target center coordinates of the six partial images are (1478, 1374), (1478, 1374), (1478, 1375), (1477, 1375), (1477, 1383), and (1478, 1383) respectively;
[0089] Step (5-5), according to the partial image I t the coordinate system of the original image Img t , the mapping relationship of the coordinate system of the original image t the target center coordinates of the first partial image Img t in the original image x t + x 0, y t + x 0) are calculated. In this embodiment, the target center coordinates of the six original images are (2028, 1724), (2028, 1724), (2028, 1725), (2027, 1725), (2027, 1733), and (2028, 1733) respectively;
[0090] The eccentricity corresponding to the reference hole position P 1 is measured and calculated according to the following formula:
[0091] ,
[0092] In the formula, x x 1, y 1 respectively represent the horizontal coordinate and the vertical coordinate of the target center of the partial image t 1 corresponding to the original image Img 1 when x I 1=1, △x x t and △y y t respectively represent the horizontal coordinate pixel distance and the vertical coordinate pixel distance between the target center coordinates of the original image Img t and the original image Img 1; l t represents the physical distance length of the target center coordinates of the original image Img t and the original image Img 1; l Bias is the maximum l t, and the eccentricity result corresponding to the reference hole position is taken as a reference. In this embodiment, x 1, y 1)=(2028, 1724), l Bias =4.138 μm .
[0093] After obtaining the eccentricity result corresponding to the reference hole position, all original image images corresponding to the target center position can be drawn on the original image image t =1 Figure 7 1, which respectively represents the eccentricity of the electric turntable under the specified reference hole position P 1. In this embodiment, a total of 6 "cross" mark symbols can be drawn, as shown in Img .
[0094] The following is the experimental content of this embodiment one, which introduces the experimental environment, data preparation, quantitative experiment and qualitative experiment.
[0095] I. Experimental environment.
[0096] (1) Processor: AMD Rayzen 9 5900HS, 8 cores;
[0097] (2) Memory: 32 GB;
[0098] (3) Hard disk: 2T solid state disk;
[0099] (4) Operating system: Windows 10, 64 bit.
[0100] II. Data preparation.
[0101] This experiment sets up three groups of experiments, which correspond to three different reference hole positions, namely No. 1 reference hole position, No. 3 reference hole position and No. 5 reference hole position. After setting the reference hole position, all No. 1 to No. 6 mounting hole positions are set as reference hole positions. For each group of experiments, 6 images are taken, and three rounds of repeated experiments are carried out, a total of 54 pictures.
[0102] III. Quantitative experiment.
[0103] (1) Precision experiment.
[0104] Firstly, this embodiment compares the influence of image selected range on the precision of eccentricity measurement, and records the eccentricity measurement results of local image I t (simplified as "invention_ROI"), and the eccentricity measurement results of original image image Img t (simplified as "invention_original"), as shown in Table 1.
[0105] Table 1
[0106]
[0107] The results show that the maximum global difference is 0.432 μm, or 0.945 pixels. Therefore, the effective image range of this embodiment does not affect the accuracy of the eccentricity measurement.
[0108] Then, the difference in eccentricity measurement accuracy between the manual method and the method used in this embodiment was compared, and the results are shown in Table 2.
[0109] Table 2
[0110]
[0111] The results show that the maximum global difference is 0.444 μm, or 0.972 pixels. Therefore, the measurement errors of the electric turntable eccentricity using the manual method and the method used in Example 1 can be considered consistent or at the same level, and thus the measurement accuracy of the method used in Example 1 is usable.
[0112] (2) Speed experiment.
[0113] First, test and analyze the local image. I t The time taken (at a resolution of 3000×2750) is shown in Table 3.
[0114] Table 3
[0115]
[0116] The results show that a single analysis of the local map I t The overall average time was 0.134 seconds.
[0117] Then, in this first embodiment, the original image was tested. Img t The speed (4640×3506 resolution) results are shown in Table 4.
[0118] Table 4
[0119]
[0120] The results show that a single analysis of the original image η t The overall average time was 0.275s. Comparing the two times, this embodiment uses a partial diagram. I t As the object of analysis, the efficiency improvement is denoted as... Figure 7 , .
[0121] IV. Qualitative Experiment
[0122] Figure 8 For the target center point of this embodiment one, draw a sample diagram, and through manual judgment, the target center point marking method of this embodiment one is intuitive and clear, and conforms to the actual eccentricity of the motorized turntable. Compared with the manual single operation time (including manually switching the hole position of the motorized turntable, manually shooting 6 images, not less than 20 seconds / time), the running efficiency of this embodiment one is significantly improved.
[0123] Embodiment two: In this embodiment two, the optical component is an objective lens, and the measuring device is as shown in In the figure, 301 is a camera, 302 is a relay lens, 303 is an objective lens, 304 is a microscope grid plate, the microscope grid plate 304 as a sample for shooting is a transparent glass plate printed with a grid pattern, 305 is an electric platform, 306 is a light source, 307 is a microscope main body support, 308 is a motorized turntable, 309 is an area for installing an electric control module, and 310 is a computer. In this embodiment two, the objective lens 303 is installed on the motorized turntable 308, and the eccentricity measuring method of the motorized turntable of this embodiment two is the same as that of embodiment one, except that the fluorescence module is replaced by the objective lens 303 in step (2).
Claims
1. A method of eccentricity measurement of a motorized turntable of a microscope, characterized in that, Specifically comprising the following steps: Step (1), selecting participating hole positions and determining a reference hole position therefrom: selecting participating hole positions from the mounting hole positions, denoted as P k , k a serial number representing the participating hole positions, k ∈[1, K ], K representing the number of participating hole positions, and setting an arbitrary participating hole position as a reference hole position, denoted as P ref , ref a serial number representing the participating hole position as the reference hole position, wherein the number of participating hole positions K is less than or equal to the number of mounting hole positions N ; Step (2), install the optical components of the microscope into the reference hole position of the motorized turntable, so that the camera at the observation end can clearly capture the target object; Step (3), select the resolution of the original image captured by the camera under the reference hole position, fill in the pixel calibration value, and draw a rectangular frame in the original image as the effective picture range; Step (4), linkage of the motorized turntable and the camera, photographing K The Zhang original image: photograph the original image of the reference hole, then make the motorized turntable rotate around the central axis by an angle, make any one of the participating holes except the reference hole enter the effective frame range, then make the motorized turntable rotate reversely by the same angle to make the reference hole reposition in the effective frame range, and then photograph the original image of the reference hole, and finally get K The Zhang original image: photograph the original image of the reference hole, then make the motorized turntable rotate around the central axis by an angle, make any one of the participating holes except the reference hole enter the effective frame range, then make the motorized turntable rotate reversely by the same angle to make the reference hole reposition in the effective frame range, and then photograph the original image of the reference hole, and finally get Step (5), identify the target center point coordinates of all original images, and calculate the eccentricity corresponding to the reference hole position: first, cut out the local image from all original images according to the effective picture range, then identify the target center point coordinates of all local images, and then combine the effective picture range, the pixel calibration value and the target center point coordinates of all local images to calculate the eccentricity corresponding to the reference hole position.
2. A method of eccentricity measurement of a motorized turntable of a microscope according to claim 1, characterized in that, The specific method of step (3) is: Step (3-1), connect the camera to the computer and select the resolution of the original image captured by the camera under a reference hole position; Step (3-2), fill in the pixel calibration value; Step (3-3), draw a rectangular frame in the original image as the effective picture range by drawing software, the key position information of the effective picture range includes the starting horizontal coordinate x 0, the starting vertical coordinate y 0, the effective range width w 0, and the effective range height h 0.
3. A method of eccentricity measurement of a motorized turntable of a microscope according to claim 2, characterized in that, The pixel calibration value in the step (3-2) is obtained by the following method: first, a microscope grid plate containing scales is placed in the center of the picture field in the effective picture range, then a line segment is drawn in the effective picture range by drawing software, and the pixel number of the line segment is obtained n , and finally the pixel calibration value is obtained by the following formula d pixel : , wherein D represents the physical length of the drawn line segment on the microscope grid plate in the effective picture range.
4. A method of eccentricity measurement of a motorized turntable of a microscope according to claim 3, characterized in that, The specific method of step (4) is: Step (4-1), initialize the original image sequence number, denoted as t and have t =0; Step (4-2), judging the original image serial number t total number of participating holes K relationship, if t < K Step (4-3) is executed, otherwise, Step (4-7) is executed; Step (4-3), the original image sequence number t Accumulate +1; Step (4-4), judging the original image serial number t the serial number of the participating hole as the reference hole ref , if t ≠ ref , then execute step (4-5), otherwise take an image and record it as an original image Img t , continue to execute step (4-2); Step (4-5), let k = t , and control the electric turntable to rotate an angle to the k participating hole P k ; Step (4-6), control the electric turntable to rotate reversely by the same angle to the reference hole position P ref And take an image, denoted as the original image Img t If t = 6, execute step (4-7), otherwise continue to execute step (4-2); Step (4-7), completing the photographing, obtaining K the original image.
5. A method of eccentricity measurement of a motorized turntable of a microscope according to claim 4, characterized in that, The specific method of identifying the target center point coordinates of all original images in step (5) is: Step (5-1), initialize the original image sequence number t , let t =1; Step (5-2), judging the original image serial number t With K relationship, if t ≤ K , the first t original image is read Img t , and step (5-3) is executed, otherwise step (5-5) is executed; Step (5-3), the start horizontal coordinate of the key position information of the active picture range in step (3-3) x 0, start vertical coordinate y 0, active range width w 0 and active range height h 0, from the original image Img t cut out a partial picture, denoted as I t and the width of the partial picture I t is denoted as w 0, the height of the partial picture I t is denoted as h 0; Step (5-4), identifying the target in the local map I t and obtaining the center coordinates of the target in the local map I t I t x t y t wherein x t , y t respectively denote the center horizontal coordinate and the center vertical coordinate of the local map I t in the coordinate system of the local map. Step (5-5), mapping relationship between coordinate system of the target center in the first original image and coordinate system of the original image, the coordinate of the target center in the first original image is calculated I t Img t t Img t x t x y t x 6. A method of eccentricity measurement of a motorized turntable of a microscope according to claim 5, characterized in that, The specific method of step (5-4) is: Step (5-4-1), if the local map I t Step (5-4-2) is performed if the local map is a single-channel grayscale image; otherwise, the local map is first converted from a multi-channel color image to a single-channel grayscale image I t Step (5-4-2) is performed after the local map is converted from a multi-channel color image to a single-channel grayscale image Step (5-4-2), first traverse the local map I t The pixel points of the image are traversed, the gray values of all the pixel points are obtained, the average is calculated after accumulation and summation, and the result is recorded as mean , and th mean = mean , and the segmentation threshold th mean is obtained; Step (5-4-3), according to th mean Segmentation of local images I t Obtain the segmented image, denoted as I tMask ,for I tMask Each pixel, if the local image I t The corresponding pixel grayscale value is less than th mean ,but I tMask The corresponding pixel value is 0, and vice versa. I tMask The corresponding pixel value is 255; Step (5-4-4), first find all contour objects by cv::findContours function of open source computer vision library, then calculate the contour object area of each contour object by cv::contourArea function, and find the number of the contour object corresponding to the largest contour object area, denoted as I tMask , finally access the geometric information of the contour object with the number m t , get the target center coordinates of the local image m t m t , and get the target center coordinates of the local image t t I t y t x t and y t represent the center horizontal coordinate and the center vertical coordinate of the local image t t I t under the coordinate system, respectively. 7. A method of eccentricity measurement of a motorized turntable of a microscope according to claim 6, characterized in that, The specific method of step (5) is to calculate the eccentricity corresponding to the reference hole position according to the following formula: , In the formula, x 1、 y 1 respectively represent t the original image when =1 Img the local map corresponding to 1 I the horizontal and vertical coordinates of the target center of 1, △ x t , △ y t respectively represent the original image Img t the horizontal and vertical pixel distances between the target center coordinates of the original image Img 1; l t represent the physical distance length of the target center coordinates of the original image Img t 1; Img l Bias is the maximum l t , and is the eccentricity result corresponding to the reference hole. 8. A method of eccentricity measurement of a motorized turntable of a microscope according to claim 7, characterized in that, After the eccentricity results corresponding to the reference hole positions are obtained, a "cross-shaped" pattern is drawn on the t =1 original image Img 1 All target center positions corresponding to the original images are plotted, respectively representing the eccentricity of the motorized turntable under the specified reference hole position.
Citation Information
Patent Citations
Method and device for detecting turntable radius and installation eccentricity of four-axis coordinate increment
CN109238157B
Eccentric measuring set and measuring instruments
CN101393073A
Machine vision based turn plate angle high-precision online measurement method
CN108007388A