A software closed-loop scanning control method for a fluorescence scanner and a fluorescence scanner

Through the closed-loop scanning control method of fluorescence scanner software, mechanical motion errors are corrected, the image accuracy and panoramic image acquisition effect of fluorescence scanning technology are improved, and positioning errors and local scanning problems in traditional technology are solved.

CN117969471BActive Publication Date: 2024-10-29WUHAN HEALTHCHART BIOLOGICAL TECH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311812352.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2024-10-29
Estimated Expiration
2043-12-25

AI Technical Summary

Technical Problem

Traditional closed-loop control systems cannot effectively correct the positioning errors generated by mechanical moving mechanisms in fluorescence scanning technology, resulting in inaccurate image information.

Method used

Through the closed-loop scanning control method of fluorescence scanner software, the shooting grid of the specimens on the slide is determined, the hardware error generated by the mechanical motion system is recorded and corrected, and the center coordinates are corrected, and the final effective area collection is obtained for collecting panoramic images .

Benefits of technology

It improves the accuracy and clarity of the scanned image, solves the problem of positioning inaccurate caused by mechanical motion errors, and realizes high-definition panoramic virtual slice image acquisition in the full slice range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117969471B_ABST
    Figure CN117969471B_ABST
Patent Text Reader

Abstract

A software closed-loop scanning control method for a fluorescence scanner and a fluorescence scanner, the method comprising determining a shooting grid of a specimen image on a glass slide; determining a target grid from the shooting grid; after determining the positioning error, determining the corresponding first effective area and the corresponding first effective center coordinate according to the target grid, the first effective center coordinate is a coordinate with a set origin as a coordinate system, and after controlling the driving hardware mechanism to move to the target position corresponding to the first effective area, recording the current hardware error; correcting the first effective center coordinate based on the pixel error to obtain a second effective center coordinate in the same coordinate system; determining the effective area corresponding to the second effective center coordinate as the final effective area; taking the final effective area as a reference, collecting multiple final effective areas of other shooting grids to determine a final effective area set; and determining a panoramic image according to the final effective area set. Through this method, the error caused by mechanical operation can be corrected to a certain extent, and a more accurate image acquisition result can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the biological field, and in particular to a fluorescence scanner software closed-loop scanning control method and a fluorescence scanner. Background Art

[0002] In biomedical research, fluorescence scanning technology is widely used to acquire images of cell and tissue specimens.

[0003] Traditional closed-loop control systems and fluorescent scanning technology are mainly used in motion mechanisms to achieve closed-loop drive control of mechanical systems. Common closed-loop control modes include position closed-loop, speed closed-loop, and current closed-loop. Users can choose different modes according to control requirements. Due to mechanical elasticity, hysteresis, wear and other factors in motion mechanisms, loop feedback compensation can be set to obtain sufficient positioning accuracy.

[0004] However, the traditional closed-loop control system is limited to the motion mechanism. Since the motion mechanism is a mechanical system, such as the gear transmission and screw mechanism in the drive system, there is mechanical movement, which will produce backlash, thus affecting the positioning accuracy. The relevant technology does not adopt a good way to correct these errors, resulting in inaccurate image information. Summary of the invention

[0005] The present application provides a software closed-loop scanning control method for a fluorescent scanner and a fluorescent scanner, which are used to correct errors caused by mechanical operation and obtain more accurate image acquisition results.

[0006] In a first aspect, the present application provides a software closed-loop scanning control method for a fluorescence scanner, the method comprising: determining a shooting grid of a specimen image on a glass slide; determining a target grid from the shooting grid; after determining a positioning error, determining a corresponding first effective area and a corresponding first effective center coordinate according to the target grid, the first effective center coordinate being a coordinate with a set origin as a coordinate system, and the positioning error being an error generated by a mechanical motion system when performing a positioning motion; after controlling a driving hardware mechanism to move to a target position corresponding to the first effective area, recording a current hardware error; after converting the hardware error into a pixel error, correcting the first effective center coordinate based on the pixel error to obtain a second effective center coordinate in the same coordinate system; determining the effective area corresponding to the second effective center coordinate as a final effective area; taking the final effective area as a reference, collecting multiple final effective areas of other shooting grids to determine a final effective area set; and determining a panoramic image according to the final effective area set.

[0007] In the above embodiment, by recording and correcting the hardware error, the first effective center coordinate is corrected to obtain a more accurate second effective center coordinate. This helps to improve the accuracy and clarity of the scanned image. The panoramic image is determined based on the final effective area set, and the data of multiple effective areas are integrated together to provide a panoramic view of the entire shooting grid, thereby obtaining more accurate image information.

[0008] In combination with some embodiments of the first aspect, in some embodiments, before the step of determining the shooting grid of the specimen image on the glass slide, it also includes: acquiring the distance between the mechanical clamping device and the glass slide through an image algorithm; after detecting that the distance is less than a set distance threshold, controlling the mechanical clamping device to suck the glass slide.

[0009] In the above embodiment, the distance between the mechanical clamping device and the glass slide is obtained through an image algorithm, which realizes the automatic adjustment of the device, improves the production efficiency and accuracy, can timely detect the situation where the distance is less than the set distance threshold, and control the mechanical clamping device to ensure that the glass slide is firmly fixed in the correct position, thereby ensuring the quality of sample image acquisition to a certain extent.

[0010] In combination with some embodiments of the first aspect, in some embodiments, after the step of obtaining the distance between the mechanical clamping device and the glass slide through an image algorithm, it also includes: after detecting that the distance is greater than or equal to the set distance, controlling the mechanical clamping device to stop the suction force on the glass slide.

[0011] In the above embodiment, when the distance between the mechanical clamping device and the glass slide is greater than or equal to the set distance, stopping the suction force on the glass slide can correct the damage or deformation of the glass slide caused by excessive adsorption. By automatically controlling the suction force of the mechanical clamping device, the device can release the glass slide at an appropriate time, which helps to improve production efficiency and reduce the possibility of manual operation.

[0012] In combination with some embodiments of the first aspect, in some embodiments, after determining the positioning error, the step of determining the corresponding first valid area and the corresponding first valid center coordinates according to the target grid specifically includes: determining the redundant area of ​​the target grid according to the positioning error; subtracting the redundant area from the target grid to obtain the first valid area.

[0013] In the above embodiment, determining the redundant area of ​​the target grid according to the positioning error can help accurately determine the position of the target and improve the positioning accuracy. Subtracting the redundant area to obtain the first effective area helps to accurately extract the target information and correct the redundant data interference.

[0014] In combination with some embodiments of the first aspect, in some embodiments, after the hardware error is converted into a pixel error, the first effective center coordinate is corrected based on the pixel error, and before the step of obtaining the second effective center coordinate in the same coordinate system, it also includes: substituting the hardware error data into the coordinate transformation model to obtain the pixel offset corresponding to the hardware error in the coordinate system; and determining the pixel offset as the pixel error.

[0015] In the above embodiment, by converting the hardware error into a pixel offset and determining the second effective center coordinate in the same coordinate system, the error correction can be performed more accurately, thereby improving the accuracy of positioning. Converting the hardware error into a pixel error helps to correspond the hardware error with the pixel error in image processing, thus facilitating subsequent image processing and analysis.

[0016] In combination with some embodiments of the first aspect, in some embodiments, based on the final effective area, multiple final effective areas of other shooting grids are collected to determine the step of a final effective area set, specifically including: translating the target grid along the X-axis or Y-axis according to the second effective center coordinate to a length corresponding to the target grid, to obtain an adjacent grid effective center coordinate and an adjacent grid effective area adjacent to the target grid, wherein the target grid includes a square grid; translating the length of the target grid along the X-axis or Y-axis according to the adjacent grid effective center coordinate to obtain multiple grid effective center coordinates and multiple grid effective areas; and determining multiple corresponding final effective areas based on the multiple grid effective areas.

[0017] In the above embodiment, by translating the effective center coordinates of the adjacent grids, the effective areas of the adjacent grids can be obtained, and then a set of multiple final effective areas can be determined.

[0018] In combination with some embodiments of the first aspect, in some embodiments, the step of determining the panoramic image based on the final valid area set specifically includes: stitching the multiple final valid areas according to their respective coordinate positions in the same coordinate system to obtain a stitched image; and fusing the stitched images to obtain a panoramic image.

[0019] In the above embodiment, a panoramic image can be obtained by fusing and stitching images, combining all valid areas into a complete image, showing the overall picture of the entire acquisition area, which is convenient for users to view and analyze.

[0020] In a second aspect, an embodiment of the present application provides a fluorescence scanner, the fluorescence scanner comprising:

[0021] A grid determination module, used for determining a shooting grid for a specimen image on a glass slide;

[0022] A target grid determination module, used for determining a target grid from the shooting grid;

[0023] A first effective area and first effective center coordinate determination module, used to determine the corresponding first effective area and the corresponding first effective center coordinate according to the target grid after determining the positioning error, wherein the first effective center coordinate is a coordinate system with a set origin as the coordinate system, and the positioning error is an error generated by the mechanical motion system when performing positioning motion;

[0024] A hardware error recording module, used to record the current hardware error after controlling the driving hardware mechanism to move to the target position corresponding to the first effective area;

[0025] A second effective center coordinate acquisition module is used to convert the hardware error into a pixel error, and then correct the first effective center coordinate based on the pixel error to obtain a second effective center coordinate in the same coordinate system;

[0026] A final effective area determination module, used to determine the effective area corresponding to the second effective center coordinates as the final effective area;

[0027] A final effective area set determination module is used to collect multiple final effective areas of other shooting grids based on the final effective area to determine a final effective area set;

[0028] The panoramic image determination module is used to determine the panoramic image according to the final valid area set.

[0029] In a third aspect, an embodiment of the present application provides a fluorescence scanner, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the fluorescence scanner to execute the method described in the first aspect and any possible implementation method of the first aspect.

[0030] In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a fluorescence scanner, enables the fluorescence scanner to execute the method described in the first aspect and any possible implementation of the first aspect.

[0031] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a fluorescence scanner, enable the fluorescence scanner to execute the method described in the first aspect and any possible implementation of the first aspect.

[0032] It is understandable that the fluorescent scanner provided in the second and third aspects, the computer program product provided in the fourth aspect, and the computer storage medium provided in the fifth aspect are all used to execute the method provided in the embodiment of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here.

[0033] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0034] 1. After determining the positioning error, the corresponding first effective area and the first effective center coordinates are determined according to the target grid, and after recording the hardware error, the hardware error is converted into a pixel error to correct the first effective center coordinates, so a more accurate second effective center coordinate is obtained. This helps to improve the accuracy and clarity of the scanned image. Because the first effective center coordinate is determined based on theoretical positioning, there are system mechanical errors. By detecting and compensating for the actual hardware error through software closed-loop scanning control, the accuracy of the captured image can be greatly improved, effectively solving the positioning error problem caused by mechanical movement in the prior art, and thus achieving accurate scanning image acquisition.

[0035] 2. By taking the final effective area as the benchmark, gradually collecting other final effective areas in the shooting grid, and finally determining the panoramic image, the data of multiple effective areas are integrated together to provide a panoramic view of the entire shooting grid. This effectively solves the problem in the prior art that only local areas can be scanned to obtain images, and the overall picture cannot be displayed, thereby realizing the scanning and acquisition of the entire slice range and obtaining high-definition panoramic virtual slice images.

[0036] 3. The distance between the mechanical clamping device and the slide is obtained by an image algorithm before the shooting grid of the specimen image on the slide is determined. When the distance is less than the threshold, the clamping device is controlled to suck the slide tightly, thereby realizing automatic adjustment of the device and improving work efficiency. This effectively solves the low efficiency problem of the existing technology that requires manual adjustment of the device, thereby realizing automatic detection and adjustment of the distance between the clamping device and the sample, and ensuring the quality of image acquisition. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a flow chart of a software closed-loop scanning control method for a fluorescence scanner in an embodiment of the present application;

[0038] Figure 2 This is a schematic diagram of a scenario of a software closed-loop scanning control method for a fluorescent scanner in an embodiment of the present application;

[0039] Figure 3It is another flow chart of a software closed-loop scanning control method for a fluorescence scanner in an embodiment of the present application;

[0040] Figure 4 This is a schematic diagram of the functional module structure of the fluorescence scanner in the embodiment of the present application;

[0041] Figure 5 It is a schematic diagram of the physical device structure of the fluorescence scanner in the embodiment of the present application. DETAILED DESCRIPTION

[0042] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.

[0043] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0044] For ease of understanding, a relevant application scenario of an embodiment of the present application is introduced below.

[0045] Xiao Li is using an optical microscope to observe a slide containing a cell sample. In order to clearly see the internal structure of the cell, he needs to adjust the focusing distance to find the best focus. However, the focusing device of the microscope is driven by a screw mechanism, and there will be a certain hysteresis when the lens barrel moves, resulting in a deviation between the actual focus position and the theoretically calculated focus position. At this time, Xiao Li moves the lens barrel to try to find the clearest focus position, but due to the hysteresis of the screw mechanism, he needs to fine-tune the focusing screw many times and try repeatedly to find the best focus. This brings some trouble to his observation work.

[0046] It can be seen that in the related art, no better way is adopted to correct these mechanical errors, resulting in the acquired image information being inaccurate.

[0047] By adopting the method in the embodiment of the present application, accurate image information can be obtained through a fluorescence scanner software closed-loop scanning control method. An application scenario of the embodiment of the present application is described below.

[0048] Xiao Li wants to use his microscope to take a panoramic image of a tissue slice. First, he planned a 10×10 shooting grid to cover the entire slice. Before starting to shoot, he pre-set the positioning error to 50 microns and input the positioning error into the fluorescence scanner device. During the shooting process, Xiao Li first locates the first shooting area in the grid. The fluorescence scanner determines the first effective area and the corresponding effective center coordinates as (2500 microns, 3500 microns) based on the preset 50-micron positioning error. Then, the microscope is driven to move to the target position. During this process, the measurement system in the fluorescence scanner detects that the actual hardware error is 80 microns, which is equivalent to an error of 32 pixels. After converting the hardware error into a pixel error, the fluorescence scanner corrects the first effective center coordinates and obtains the second effective center coordinates as (2468 pixels, 3468 pixels). This is used as the center of the final first effective area. According to the same method, the final effective center coordinates and corresponding effective areas of the other shooting areas in the grid are determined in turn, and finally the set of all final effective areas is obtained.

[0049] Finally, the fluorescence scanner synthesizes a panoramic virtual slice image of the entire tissue slice area based on these 100 final valid areas and their coordinate position information.

[0050] It can be seen that the use of a fluorescent scanner software closed-loop scanning control method in the embodiment of the present application can not only realize software closed-loop scanning control, but also effectively solve the positioning error problem caused by mechanical movement, thereby realizing accurate scanning image acquisition.

[0051] For ease of understanding, the following describes the process of the method provided by this implementation in combination with the above scenario. Figure 1 , Figure 1 It is a flow chart of a software closed-loop scanning control method for a fluorescence scanner in an embodiment of the present application.

[0052] S101, determining a shooting grid for a specimen image on a slide;

[0053] The fluorescence scanner first needs to determine the shooting grid for this scan. The shooting grid refers to a number of small grids divided by the fluorescence scanner on the XY plane, which cover the entire sample area to be scanned. The method for determining the shooting grid can be:

[0054] The user directly sets the number of shooting grids, the size of each grid and other parameters for this scan through the human-computer interaction interface of the fluorescence scanner. The fluorescence scanner calculates and generates the shooting grid based on these parameters.

[0055] The fluorescence scanner has multiple preset shooting grid templates with different density levels. The user only needs to select a grid density level, and the fluorescence scanner will call the corresponding grid template according to the selected level. For example, when it is set to "high density", the grid template with the highest density will be called.

[0056] The fluorescence scanner automatically analyzes the characteristics of the sample and intelligently plans the shooting grid according to the size and shape of the sample area without manual intervention. It can detect the sample contour boundary, calculate the area and match it with the grid template, and select the grid template with the best coverage.

[0057] When determining the shooting grid, you also need to consider the shape and size of the sample, as well as the user's requirements for image clarity. Generally speaking, the larger the sample area, the more complex the shape, and the higher the user's requirements for clarity, the denser the shooting grid is required, and the smaller the area of ​​each grid. After the fluorescence scanner completes the shooting grid design, it will generate a two-dimensional grid coordinate in the memory with the set origin as the coordinate origin and store the position information of each grid.

[0058] The shape of the grid may be a square. The grids described in the embodiments of the present application are all square grids, but in practical applications, they may also be other shapes.

[0059] S102, determining a target grid from the shooting grid;

[0060] After determining the shooting grid, a target grid can be selected in the shooting grid. The selection step can be performed by the user each time, or a selection mode can be set, such as selecting the grid in the first row and first column of the shooting grid as the target grid each time, which is not limited here.

[0061] S103, after determining the positioning error, determining the corresponding first effective area and the corresponding first effective center coordinates according to the target grid, the first effective center coordinates are coordinates with the set origin as the coordinate system, and the positioning error is an error generated by the mechanical motion system when performing positioning motion;

[0062] Before scanning the target grid, the fluorescent scanner needs to first calculate the first effective area and the first effective center coordinates of the target grid according to the positioning error value preset by the user. The positioning error is the error generated by the mechanical motion system when performing positioning motion. For example, if the positioning error value is 0.01 mm, it can be specifically understood as: when the mechanical motion system performs positioning motion, the error between the actual position it moves to and the target position is within ±0.01 mm. If the mechanical motion system is moved to a certain coordinate position (x, y), its actual stop position will be within a circular area with the target coordinate (x, y) as the center and a radius of 0.01 mm.

[0063] In order to prevent inaccurate image acquisition due to positioning errors, it is necessary to determine the first effective area of ​​the theoretical target grid for actual scanning. The first effective area is the effective area of ​​the target grid minus the redundant area caused by positioning errors, and the first effective center coordinates are determined based on the first effective area, where the origin of the first effective center coordinates can be set by the user, and the subsequent coordinates are all in the coordinate system of the origin.

[0064] S104, after controlling the driving hardware mechanism to move to the target position corresponding to the first effective area, recording the current hardware error;

[0065] The fluorescence scanner controls the motor control system to drive the microscope to move to the corresponding target position for focusing and scanning based on the calculated first effective area and first effective center coordinates. Due to mechanical errors in the motion system, the actual position moved to may have a certain deviation from the first effective center coordinates. The measurement system measures the motion position of the moving parts to obtain the current hardware error. Specifically, in order to detect the actual hardware error, the fluorescence scanner can detect the actual coordinate position of the moving platform or the microscope tube in real time through the measurement system after driving the microscope to move, and compare it with the first effective center coordinates to obtain the difference between the two as the current hardware error.

[0066] After obtaining the hardware error data, the fluorescence scanner needs to record it for subsequent error correction.

[0067] S105, after converting the hardware error into a pixel error, correcting the first effective center coordinate based on the pixel error to obtain a second effective center coordinate in the same coordinate system;

[0068] In order to more accurately correct the first effective center coordinate based on the hardware error, it is necessary to express the two in a unified coordinate system for calculation. Here, the motor control system converts the hardware error into a format that can be recognized by the fluorescent scanner, and converts it to the image pixel coordinate system for calculation. The specific method is:

[0069] Substitute the detected hardware error data into the coordinate conversion function, and calculate the pixel offset corresponding to the error in the image coordinate system as the pixel error. The first effective center coordinate is also converted to the image coordinate system in the same way. Based on the pixel error value, the first effective center coordinate is corrected to obtain the corrected second effective center coordinate. For example, the hardware error detected is (60 microns, 80 microns). According to the conversion relationship between the acquired image resolution and the actual scale, the corresponding pixel error in the image coordinate system is (20 pixels, 32 pixels). If the first effective center coordinate is (1000 pixels, 1200 pixels), the corrected second effective center coordinate is (1020 pixels, 1232 pixels). By converting to a unified coordinate system for calculation, the calculation errors caused by different coordinate system units can be corrected, which is also convenient for subsequent image processing processes.

[0070] S106, determining the valid area corresponding to the second valid center coordinates as the final valid area;

[0071] After obtaining the corrected second effective center coordinates, the fluorescence scanner needs to redefine the corresponding final effective area according to the second effective center coordinates. The method for determining the final effective area can be: directly use the second effective center coordinates as the center and define it according to the size of the first effective area. For example, the length of the first effective area is 5000μm. According to the hardware error of 80μm obtained by measurement, the second effective center coordinates are calculated to be (502μm, 252μm). Then, the square area with a length of 5000μm directly centered on the coordinates can be used as the final effective area. After finally obtaining the updated effective area, the fluorescence scanner will adjust the field of view in real time, and only scan and collect images of samples within the final effective area to obtain clear and accurate result data.

[0072] S107, taking the final effective area as a reference, collecting multiple final effective areas of other shooting grids to determine a final effective area set;

[0073] After completing the scanning of the current target grid and determining the final effective area, the fluorescence scanner needs to continue processing other areas in the shooting grid. Based on the second effective center coordinate of the current grid, it moves one grid length in all directions to determine the effective center coordinates of the adjacent grids.

[0074] After determining the multiple valid center coordinates, the corresponding multiple final valid areas are determined according to the method of step S106, and then the final valid area set is determined.

[0075] S108: Determine a panoramic image according to the final valid area set.

[0076] According to the coordinate positions of each final effective area in the same coordinate system, the images are stitched one by one to obtain a preliminary stitched image. The stitched images are fused and the color, lighting, sharpness and other aspects are adjusted using image processing algorithms to make the stitching natural and smooth. The effective information part of the stitched image is extracted as the final panoramic image. The resulting panoramic image can also be output and stored in a specified format for subsequent viewing and analysis by the user.

[0077] In the above embodiment, by recording and correcting the hardware error, the first effective center coordinate is corrected to obtain a more accurate second effective center coordinate. This helps to improve the accuracy and clarity of the scanned image. A panoramic image is determined based on the final effective area set, and the data of multiple effective areas are integrated together to provide a panoramic view of the entire shooting grid, thereby obtaining more accurate image information.

[0078] The following is a scenario supplement for the process of this embodiment. Figure 2 , Figure 2 It is a scene diagram of a software closed-loop scanning control method for a fluorescent scanner in an embodiment of the present application.

[0079] Figure 2 , a target grid correction process is shown in FIG. In the figure, it is assumed that the target grid is a square grid. After determining the positioning error, the redundant area of ​​the target grid is determined according to the positioning error, and the redundant area is subtracted from the target grid to obtain the first effective area, and the first effective center coordinate is determined according to the first effective area. In the process of the motor control system moving, the current hardware error is determined, specifically, the hardware error in the X direction and the hardware error in the Y direction are obtained, and the error calculation is performed on the X direction and the Y direction respectively based on the first effective center coordinate, and then the second effective center coordinate is obtained. The specific process is described in detail in step S301 and will not be repeated here. The second effective area is determined according to the second effective center coordinate, and the second effective area is the final effective area.

[0080] After combining the above scenarios, the following is a more detailed description of the process of the method provided by this implementation. Figure 3 , Figure 3 It is another flow chart of a software closed-loop scanning control method for a fluorescence scanner in an embodiment of the present application.

[0081] S301, according to the second effective center coordinate, translate the target grid along the X-axis or Y-axis by the length corresponding to the target grid, and obtain the effective center coordinate of the adjacent grid and the effective area of ​​the adjacent grid adjacent to the target grid, and the target grid includes a square grid; after obtaining the second effective center coordinate of the current target grid, the fluorescence scanner needs to process the adjacent grid area in sequence. Specifically, the effective center coordinate of the adjacent grid can be obtained by translating a grid length along the X-axis and the Y-axis based on the second effective center coordinate of the current grid.

[0082] Assume that the current grid is numbered G(x, y), its second effective center coordinate is (xc, yc), and the grid is a square with a side length of l.

[0083] Then the upper grid adjacent to the current grid is numbered G(x-1, y), and its effective center coordinates are (xc, yc-l); the lower grid adjacent to the current grid is numbered G(x+1, y), and its effective center coordinates are (xc, yc+l); the left grid adjacent to the current grid is numbered G(x, y-1), and its effective center coordinates are (xc-l, yc); the right grid adjacent to the current grid is numbered G(x, y+1), and its effective center coordinates are (xc+l, yc).

[0084] For example, the second effective center coordinates of the current grid G(3, 4) are (253, 371), and the grid side length l is 100 pixels.

[0085] Then the effective center coordinates of the adjacent grid G(3,3) above it are (253,271); the effective center coordinates of the adjacent grid G(3,5) below it are (253,471); the effective center coordinates of the adjacent grid G(2,4) to its left are (153,371); and the effective center coordinates of the adjacent grid G(4,4) to its right are (353,371).

[0086] In this way, the effective center coordinates of the four adjacent grids around the current grid can be obtained in sequence. Then, the effective area of ​​the adjacent grid can be determined by combining the center coordinates and the grid side length information.

[0087] S302. According to the effective center coordinates of the adjacent grids, the target grid is translated along the X-axis or Y-axis to obtain multiple grid effective center coordinates and multiple grid effective areas. After obtaining the effective center coordinates of the four adjacent grids of the current grid, the fluorescence scanner can use the adjacent grids as new target grids, recursively perform the operation of step S301, and continue to iterate and expand outward to obtain the effective center coordinates of more adjacent grids.

[0088] For example, taking the right adjacent grid G(3, 5) of the current grid G(3, 4) as the new target grid and performing the operation of step S301, we can obtain:

[0089] The effective center coordinates of the upper adjacent grid G(3,4) of G(3,5) are (253,571); the effective center coordinates of the lower adjacent grid G(3,6) are (253,671); the effective center coordinates of the left adjacent grid G(2,5) are (153,471); and the effective center coordinates of the right adjacent grid G(4,5) are (353,471).

[0090] Through recursive iteration, we can always extrapolate outward to obtain the effective center coordinate information of all grids in the shooting grid. Then, we can determine the effective area of ​​all grids by combining the effective center coordinates and the grid side length.

[0091] S303: Determine a corresponding plurality of final valid areas according to the plurality of grid valid areas.

[0092] The multiple grid valid areas are determined as multiple final valid areas.

[0093] In the embodiment of the present application, multiple grid effective areas are determined as the final effective area to achieve accurate scanning and acquisition of images.

[0094] The following is an introduction to a fluorescence scanner in the present application from the perspective of a module. Figure 4 , Figure 4 It is a schematic diagram of the functional module structure of the fluorescence scanner in the embodiment of the present application.

[0095] A grid determination module 401 is used to determine a shooting grid for a specimen image on a slide;

[0096] A target grid determination module 402 is used to determine a target grid from the shooting grid;

[0097] A first effective area and first effective center coordinate determination module 403 is used to determine the corresponding first effective area and the corresponding first effective center coordinate according to the target grid after determining the positioning error, wherein the first effective center coordinate is a coordinate system with a set origin as the coordinate system, and the positioning error is an error generated by the mechanical motion system when performing positioning motion;

[0098] A hardware error recording module 404 is used to record the current hardware error after controlling the driving hardware mechanism to move to the target position corresponding to the first effective area;

[0099] A second effective center coordinate obtaining module 405 is used to convert the hardware error into a pixel error, and then correct the first effective center coordinate based on the pixel error to obtain a second effective center coordinate in the same coordinate system;

[0100] A final valid area determination module 406, configured to determine the valid area corresponding to the second valid center coordinates as the final valid area;

[0101] The final effective area set determination module 407 is used to collect multiple final effective areas of other shooting grids based on the final effective area to determine the final effective area set;

[0102] The panoramic image determination module 408 is configured to determine a panoramic image according to the final valid area set.

[0103] In some embodiments, the grid determination module specifically includes:

[0104] For example, an acquisition unit is used to acquire the distance between the mechanical clamping device and the glass slide through an image algorithm;

[0105] The glass slide sucking unit is used to control the mechanical clamping device to suck the glass slide after detecting that the distance is less than a set distance threshold.

[0106] In some embodiments, the grid determination module further includes:

[0107] The suction stopping unit is used to control the mechanical clamping device to stop the suction of the glass slide after detecting that the distance is greater than or equal to the set distance.

[0108] In some embodiments, the first effective area and the first effective center coordinate determination module specifically includes:

[0109] A redundant area determination unit, used to determine the redundant area of ​​the target grid according to the positioning error;

[0110] The first effective area obtaining unit is used to subtract the redundant area from the target grid to obtain the first effective area.

[0111] In some embodiments, the second effective center coordinate obtaining module specifically includes:

[0112] A pixel offset obtaining unit is used to substitute the hardware error data into the coordinate conversion model to obtain the pixel offset corresponding to the hardware error in the coordinate system;

[0113] The pixel error determining unit is used to determine the pixel offset as the pixel error.

[0114] In some embodiments, the final valid area set determination module specifically includes:

[0115] an adjacent grid effective area obtaining unit, configured to translate the target grid along the X-axis or Y-axis by a length corresponding to the second effective center coordinate to obtain an adjacent grid effective center coordinate and an adjacent grid effective area adjacent to the target grid, wherein the target grid includes a square grid;

[0116] A multiple grid effective area obtaining unit, used for translating the length of the target grid along the X-axis or Y-axis according to the adjacent grid effective center coordinates, to obtain multiple grid effective center coordinates and multiple grid effective areas;

[0117] The multiple final effective area obtaining units are used to determine the corresponding multiple final effective areas according to the multiple grid effective areas.

[0118] In some embodiments, the panoramic image determination module specifically includes:

[0119] A stitching image obtaining unit, used for stitching the multiple final effective areas according to their respective coordinate positions in the same coordinate system to obtain a stitching image;

[0120] The panoramic image obtaining unit is used to fuse the stitched images to obtain a panoramic image.

[0121] The above describes a fluorescence scanner in the embodiment of the present application from the perspective of modular functional entities. The following describes a fluorescence scanner in the embodiment of the present application from the perspective of hardware processing. Figure 5 , Figure 5 It is a schematic diagram of the physical device structure of the fluorescence scanner in the embodiment of the present application.

[0122] The user terminal 500 includes: one or more processors 501 ( Figure 5 Taking a processor 501 as an example), a memory 502, an input device 503 and an output device 504. In some embodiments of the present invention, the processor 501, the memory 502, the input device 503 and the output device 504 may be connected via a bus or other means, wherein: Figure 5 The example of connecting through bus is taken in the following.

[0123] The processor 501 calls the computer instruction so that the computer program is executed by the processor to implement a software closed-loop scanning control method for a fluorescent scanner in an embodiment of the present application.

[0124] The memory 502 is used to store computer program codes, where the computer program codes include computer instructions.

[0125] The input device 503 is used to input grid information and positioning error.

[0126] The output device 504 is used to output the panoramic image.

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

[0128] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0129] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0130] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A software closed-loop scanning control method for a fluorescence scanner, applied to a fluorescence scanner, characterized in that: The method comprises: Determine the shooting grid for the specimen image on the slide; determining a target grid from the shooting grid; After determining the positioning error, determining the corresponding first effective area and the corresponding first effective center coordinates according to the target grid, wherein the first effective center coordinates are coordinates with a set origin as a coordinate system, and the positioning error is an error generated by the mechanical motion system when performing positioning motion; After determining the positioning error, the step of determining the corresponding first effective area and the corresponding first effective center coordinates according to the target grid specifically includes: Determine a redundant area of ​​the target grid according to the positioning error; Subtracting the redundant area from the target grid to obtain the first valid area; After controlling the driving hardware mechanism to move to a target position corresponding to the first effective area, recording a current hardware error; Substituting the hardware error data into the coordinate transformation model to obtain the pixel offset corresponding to the hardware error in the coordinate system; determining the pixel offset as a pixel error; Correcting the first effective center coordinates based on the pixel error to obtain second effective center coordinates in the same coordinate system; Determine the valid area corresponding to the second valid center coordinates as the final valid area; Taking the final effective area as a reference, collecting multiple final effective areas of other shooting grids to determine a final effective area set; Determine a panoramic image according to the final valid area set; Prior to the step of determining the photographing grid for the specimen image on the slide, it also includes: The distance between the mechanical clamping device and the glass slide is obtained by an image algorithm; After detecting that the distance is less than a set distance threshold, controlling the mechanical clamping device to suck the glass slide; After detecting that the distance is greater than or equal to the set distance threshold, the mechanical clamping device is controlled so that the mechanical clamping device stops suctioning the glass slide.

2. The method according to claim 1, characterized in that The step of collecting multiple final effective areas of other shooting grids based on the final effective area to determine the final effective area set specifically includes: According to the second effective center coordinate, the target grid is translated along the X-axis or the Y-axis by a length corresponding to the target grid, to obtain an adjacent grid effective center coordinate and an adjacent grid effective area adjacent to the target grid, wherein the target grid includes a square grid; According to the effective center coordinates of the adjacent grids, the length of the target grid is translated along the X-axis or the Y-axis to obtain multiple effective center coordinates of the grids and multiple effective areas of the grids; A corresponding plurality of final valid areas are determined according to the plurality of grid valid areas.

3. The method according to claim 1, characterized in that The step of determining the panoramic image according to the final valid area set specifically includes: Splicing the multiple final effective areas according to their respective coordinate positions in the same coordinate system to obtain a spliced ​​image; The stitched images are fused to obtain a panoramic image.

4. A fluorescence scanner, characterized in that: include: A grid determination module, used for determining a shooting grid for a specimen image on a glass slide; A target grid determination module, used to determine a target grid from the shooting grid; A first effective area and first effective center coordinate determination module, used to determine the corresponding first effective area and the corresponding first effective center coordinate according to the target grid after determining the positioning error, wherein the first effective center coordinate is a coordinate system with a set origin, and the positioning error is an error generated by the mechanical motion system when performing positioning motion; determine the redundant area of ​​the target grid according to the positioning error; and subtract the redundant area from the target grid to obtain the first effective area; A hardware error recording module, used to record the current hardware error after controlling the driving hardware mechanism to move to the target position corresponding to the first effective area; Substituting the hardware error data into the coordinate transformation model to obtain the pixel offset corresponding to the hardware error in the coordinate system; determining the pixel offset as the pixel error; A second effective center coordinate obtaining module, used for correcting the first effective center coordinate based on the pixel error to obtain a second effective center coordinate in the same coordinate system; A final valid area determination module, used to determine the valid area corresponding to the second valid center coordinates as the final valid area; A final effective area set determination module, used to collect multiple final effective areas of other shooting grids based on the final effective area to determine a final effective area set; A panoramic image determination module, used to determine a panoramic image according to the final valid area set; The grid determination module specifically includes: an example acquisition unit, which is used to acquire the distance between the mechanical clamping device and the glass slide through an image algorithm; A glass slide clamping unit, used to control the mechanical clamping device to clamp the glass slide after detecting that the distance is less than a set distance threshold; The suction stopping unit is used to control the mechanical clamping device to stop the suction of the glass slide after detecting that the distance is greater than or equal to the set distance.

5. A fluorescence scanner, characterized in that: include: one or more processors and memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the fluorescence scanner to perform the method according to any one of claims 1 to 3.

6. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a fluorescence scanner, the fluorescence scanner is caused to perform the method as claimed in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Visual laser scanning error correcting system and control method

    CN105100528A

  • Method and device for splicing panoramic image

    CN105894451A

  • Error analysis method based on vision stitching measurement

    CN107726975A

  • Automatic slide scanner

    CN218332145U

  • Information processing device, information processing system, information processing method, and program

    JP2020024687A