Microscope state detection method, device, computer equipment and storage medium

By performing partition scanning and image processing on the microscope sample, the microscope status is automatically judged, which solves the problems of inaccurate detection and waste of labor costs in the prior art, and improves the detection accuracy and efficiency.

CN117764940BActive Publication Date: 2024-11-05ZHUHAI LIVZON CYNVENIO DIAGNOSTICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311759637.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-19
Publication Date
2024-11-05
Estimated Expiration
2043-12-19

AI Technical Summary

Technical Problem

In the prior art, microscopic status detection relies on the visual inspection and experience of the experimenter, resulting in inaccurate detection and waste of labor costs, and is limited by the knowledge limitations and subjective factors of the experimenter.

Method used

The microscope to be tested is used to partition and scan multiple cell samples to obtain the field of view images, establish the image rectangular coordinate system, draw an area scatter plot, determine the deviation angle, filter the target field of view images, and judge the microscope status based on the Z-axis value to achieve automated detection.

Benefits of technology

It improves the accuracy of microscope status detection, avoids waste of labor costs, reduces interference from human factors, and achieves objective quantitative detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117764940B_ABST
    Figure CN117764940B_ABST
Patent Text Reader

Abstract

The present application provides a microscope state detection method, device, computer equipment and storage medium, wherein a sample containing multiple cells is scanned by a microscope to be detected to obtain multiple field of view images; an area scatter plot is drawn according to the pixel area and center point occupied by each single cell sub-image in each field of view image; the deflection angle of the field of view image is determined according to the area scatter plot drawn for the field of view image; a target field of view image for microscope state detection is screened according to the deflection angle of each field of view image; the state of the microscope to be detected is determined according to the deflection angle of each target field of view image and the Z-axis value when each target field of view image is obtained by scanning the microscope to be detected. The above method can avoid the waste of manpower costs while improving the accuracy of the detected microscope state on the basis of realizing the detection of the microscope state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of equipment detection, and in particular to a microscope state detection method, device, computer equipment and storage medium. Background Art

[0002] A microscope is a device composed of an eyepiece, an objective lens, a coarse focusing screw, a fine focusing screw, a film clamp, a light hole, a shutter, a converter, a reflector, a stage, and an aperture. Its function is to study the structure and specific internal characteristics of an object by magnifying its specific form. When observing an object under a microscope, if the state of the microscope is abnormal, such as stains on the eyepiece, objective lens, or the shutter, converter, stage, etc., or if there is an offset, it will make it impossible to accurately observe the object under the microscope. Therefore, if you want to use a microscope to accurately observe an object, you need to detect the state of the microscope.

[0003] In the prior art, when the state of a microscope is detected, it is usually performed by an experimenter who visually inspects the structure and morphology of each component of the microscope, and judges whether the state of the microscope is abnormal based on the visual inspection results and past experience. However, it is found in the study that when the microscope is inspected by the above method, since the experimenter needs to visually observe the structure and morphology of each component of the microscope, it will increase the workload of the experimenter, thereby wasting manpower costs; in addition, due to the limitations of the knowledge mastered by the experimenter and the one-sidedness of the experience, when judging the state of the microscope using his past experience, it is very likely to obtain an erroneous judgment result. At the same time, based on the interference of human factors and the influence of subjective factors, the obtained judgment result will also be inaccurate, thereby reducing the accuracy of the detected microscope state. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a microscope state detection method, device, computer equipment and storage medium, which can avoid waste of manpower costs and improve the accuracy of the detected microscope state on the basis of realizing the detection of the microscope state.

[0005] In a first aspect, an embodiment of the present application provides a method for detecting a microscope state, the method comprising:

[0006] A sample containing multiple cells is scanned in sections by a microscope to be detected to obtain multiple field of view images;

[0007] For each of the field of view images, an image rectangular coordinate system is established with the lower left corner of the field of view image as the origin, and an area scatter plot is drawn according to the pixel area occupied by each single-cell sub-image in the field of view image and the coordinate value of the initial coordinate axis of each center point in the image rectangular coordinate system, wherein the single-cell sub-image is a sub-image indicating a single cell in the field of view image;

[0008] Determine the deflection angle of the visual field image according to the area scatter plot drawn for the visual field image;

[0009] Screening out a target field of view image for microscope state detection according to the deflection angle of each field of view image;

[0010] The state of the microscope to be detected is determined according to the deflection angle of each target field of view image and the Z-axis value when the microscope to be detected scans each target field of view image.

[0011] Optionally, the initial coordinate axis is an X coordinate axis or a Y coordinate axis of a rectangular coordinate system of the image, and determining the deflection angle of the visual field image according to an area scatter plot drawn for the visual field image includes:

[0012] Perform straight line fitting on each scattered point in the area scatter plot to obtain a straight line;

[0013] Determine whether the straight line is parallel to the X-coordinate axis of the area scatter plot;

[0014] If the straight line is parallel to the X-coordinate axis of the area scatter plot, the deflection angle of the field of view image is marked as zero.

[0015] Optionally, after determining whether the straight line is parallel to the X-coordinate axis of the area scatter plot, the method further includes:

[0016] If the straight line is not parallel to the X-coordinate axis of the area scatter plot, the image rectangular coordinate system is rotated once at a preset angle, the area scatter plot is redrawn based on the coordinate values ​​of the initial coordinate axis of the center point of each single-cell sub-image in the rotated image rectangular coordinate system, and a straight line is fitted to each scattered point in the redrawn area scatter plot to obtain a redrawn straight line;

[0017] Determine whether the redrawn straight line is parallel to the X-axis of the redrawn area scatter plot;

[0018] If the redrawn straight line is parallel to the X-coordinate axis of the redrawn area scatter plot, the rotation angle of the rectangular coordinate system of the image is marked as the deflection angle of the visual field image;

[0019] If the redrawn straight line is not parallel to the X-axis of the redrawn area scatter plot after rotation, the image rectangular coordinate system is rotated again at a preset angle until a target straight line is fitted after a preset number of rotations. The rotation angle of the image rectangular coordinate system is marked as the deflection angle of the field of view image, wherein the target straight line is a straight line whose slope is closest to zero during the preset number of rotations, and the slope is relative to the X-axis of the area scatter plot.

[0020] Optionally, the step of selecting a target field of view image for microscope state detection according to the deflection angle of each field of view image includes:

[0021] For each of the visual field images, determining whether the deflection angle of the visual field image deviates from the standard deflection angle, or determining whether the deflection angle of the visual field image is zero, wherein the standard deflection angle is the deflection angle of the visual field image with the largest proportion among the visual field images with the same deflection angle;

[0022] If the deflection angle of the field of view image does not deviate from the standard deflection angle, or the deflection angle of the field of view image is zero, then the field of view image is determined as the target field of view image.

[0023] Optionally, after determining whether the deflection angle of the field of view image deviates from the standard deflection angle, the method further includes:

[0024] If the deflection angle of the visual field image deviates from the standard deflection angle, and the deflection angle of the visual field image is not zero, then the area indicated by the visual field image in the sample is marked as unevenly stained.

[0025] Optionally, determining the state of the microscope to be detected according to the deflection angle of each of the target field of view images and the Z-axis value of each of the target field of view images obtained by scanning the microscope to be detected includes:

[0026] Draw a Z-axis scatter plot according to the order and Z-axis value of each target field image obtained by scanning the microscope to be detected;

[0027] Determine whether the fluctuation range of each scatter point in the Z-axis scatter plot exceeds a preset range, and determine whether the deflection angle of each target field of view image is zero;

[0028] If the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, and the deflection angle of each target field of view image is zero, the state of the microscope to be tested is marked as normal;

[0029] If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, or there is a target field of view image with a non-zero deflection angle, the state of the microscope to be detected is marked as abnormal.

[0030] Optionally, after marking the state of the microscope to be inspected as abnormal, the method further includes:

[0031] If the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, but there is a target field of view image with a non-zero deflection angle, the abnormal cause of the microscope to be inspected is marked as stage abnormality;

[0032] If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, but the deflection angle of each of the target field of view images is zero, the abnormal cause of the microscope to be tested is marked as lens abnormality;

[0033] If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, and there is a target field of view image with a non-zero deflection angle, the abnormal cause of the microscope to be tested is marked as unknown.

[0034] In a second aspect, an embodiment of the present application provides a microscope state detection device, the device comprising:

[0035] A field of view image acquisition module, used to obtain multiple field of view images by performing partition scanning on a sample containing multiple cells through a microscope to be detected;

[0036] An area scatter plot drawing module is used to establish an image rectangular coordinate system for each field of view image with the lower left corner of the field of view image as the origin, and draw an area scatter plot according to the pixel area occupied by each single cell sub-image in the field of view image and the coordinate value of the initial coordinate axis of each center point in the image rectangular coordinate system, wherein the single cell sub-image is a sub-image indicating a single cell in the field of view image;

[0037] A deflection angle determination module, used to determine the deflection angle of the visual field image according to the area scatter plot drawn for the visual field image;

[0038] A field of view image screening module, used to screen out a target field of view image for microscope state detection according to the deflection angle of each field of view image;

[0039] The microscope state determination module is used to determine the state of the microscope to be detected according to the deflection angle of each target field of view image and the Z-axis value when the microscope to be detected scans each target field of view image.

[0040] Optionally, the initial coordinate axis is an X coordinate axis or a Y coordinate axis of the rectangular coordinate system of the image, and the deflection angle determination module, when used to determine the deflection angle of the field of view image according to the area scatter plot drawn for the field of view image, is specifically used to:

[0041] Perform straight line fitting on each scattered point in the area scatter plot to obtain a straight line;

[0042] Determine whether the straight line is parallel to the X-coordinate axis of the area scatter plot;

[0043] If the straight line is parallel to the X-coordinate axis of the area scatter plot, the deflection angle of the field of view image is marked as zero.

[0044] Optionally, the deflection angle determination module is further used to:

[0045] After determining whether the straight line is parallel to the X-coordinate axis of the area scatter plot, if the straight line is not parallel to the X-coordinate axis of the area scatter plot, the image rectangular coordinate system is rotated once by a preset angle, the area scatter plot is redrawn based on the coordinate value of the initial coordinate axis of the center point of each single-cell sub-image in the rotated image rectangular coordinate system, and each scattered point in the redrawn area scatter plot is fitted with a straight line to obtain a redrawn straight line;

[0046] Determine whether the redrawn straight line is parallel to the X-axis of the redrawn area scatter plot;

[0047] If the redrawn straight line is parallel to the X-coordinate axis of the redrawn area scatter plot, the rotation angle of the rectangular coordinate system of the image is marked as the deflection angle of the visual field image;

[0048] If the redrawn straight line is not parallel to the X-axis of the redrawn area scatter plot after rotation, the image rectangular coordinate system is rotated again at a preset angle until a target straight line is fitted after a preset number of rotations. The rotation angle of the image rectangular coordinate system is marked as the deflection angle of the field of view image, wherein the target straight line is a straight line whose slope is closest to zero during the preset number of rotations, and the slope is relative to the X-axis of the area scatter plot.

[0049] Optionally, when the field of view image screening module is used to screen out a target field of view image for microscope state detection according to the deflection angle of each field of view image, it is specifically used to:

[0050] For each of the visual field images, determining whether the deflection angle of the visual field image deviates from the standard deflection angle, or determining whether the deflection angle of the visual field image is zero, wherein the standard deflection angle is the deflection angle of the visual field image with the largest proportion among the visual field images with the same deflection angle;

[0051] If the deflection angle of the field of view image does not deviate from the standard deflection angle, or the deflection angle of the field of view image is zero, then the field of view image is determined as the target field of view image.

[0052] Optionally, the visual field image screening module is further used for:

[0053] After determining whether the deflection angle of the field of view image deviates from the standard deflection angle, if the deflection angle of the field of view image deviates from the standard deflection angle and the deflection angle of the field of view image is not zero, the area indicated by the field of view image in the sample is marked as unevenly stained.

[0054] Optionally, when the microscope state determination module is used to determine the state of the microscope to be detected according to the deflection angle of each of the target field of view images and the Z-axis value when the microscope to be detected scans each of the target field of view images, it is specifically used to:

[0055] Draw a Z-axis scatter plot according to the order and Z-axis value of each target field image obtained by scanning the microscope to be detected;

[0056] Determine whether the fluctuation range of each scatter point in the Z-axis scatter plot exceeds a preset range, and determine whether the deflection angle of each target field of view image is zero;

[0057] If the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, and the deflection angle of each target field of view image is zero, the state of the microscope to be tested is marked as normal;

[0058] If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, or there is a target field of view image with a non-zero deflection angle, the state of the microscope to be detected is marked as abnormal.

[0059] Optionally, the microscope state determination module is further used for:

[0060] After the state of the microscope to be detected is marked as abnormal, if the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, but there is a target field of view image with a non-zero deflection angle, the abnormal cause of the microscope to be detected is marked as stage abnormality;

[0061] If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, but the deflection angle of each of the target field of view images is zero, the abnormal cause of the microscope to be tested is marked as lens abnormality;

[0062] If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, and there is a target field of view image with a non-zero deflection angle, the abnormal cause of the microscope to be tested is marked as unknown.

[0063] In a third aspect, an embodiment of the present application provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the microscope state detection method described in any optional implementation of the first aspect are performed.

[0064] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the microscope state detection method described in any optional implementation manner in the above-mentioned first aspect are executed.

[0065] The technical solution provided by this application includes but is not limited to the following beneficial effects:

[0066] In the present application, a sample containing multiple cells is scanned in partitions by a microscope to be detected to obtain multiple field of view images, an area scatter plot is drawn according to the area of ​​each single-cell sub-image in each field of view image, and then a target field of view image for microscope state detection is screened out according to the area scatter plot, so as to determine the state of the microscope to be detected according to the deflection angle of each target field of view image and the Z-axis value of each target field of view image obtained when the microscope to be detected scans the target field of view image, thereby achieving the reverse deduction of the state of the microscope from various data of the image scanned by the microscope without the need for the experimenter to observe the microscope by visual inspection, using objective quantitative data as the basis and foundation for microscope state detection, avoiding interference from human factors and the influence of subjective cognition, thereby avoiding waste of labor costs when detecting the state of the microscope, and improving the accuracy of the detected microscope state.

[0067] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0069] Figure 1 A flowchart of a microscope state detection method provided by Embodiment 1 of the present invention is shown;

[0070] Figure 2 A schematic diagram of rotating an image rectangular coordinate system provided by the first embodiment of the present invention is shown;

[0071] Figure 3 A schematic diagram showing the second type of image rectangular coordinate system rotation provided by the first embodiment of the present invention is shown;

[0072] Figure 4 A flow chart of a method for determining a deflection angle provided in Embodiment 1 of the present invention is shown;

[0073] Figure 5 A flow chart of a second method for determining a deflection angle provided in the first embodiment of the present invention is shown;

[0074] Figure 6 A flow chart of a method for determining a target visual field image provided by the first embodiment of the present invention is shown;

[0075] Figure 7 A flowchart of a method for determining a microscope state provided by Embodiment 1 of the present invention is shown;

[0076] Figure 8 A schematic diagram of a Z-axis scatter plot provided by Embodiment 1 of the present invention is shown;

[0077] Fig. 9 A schematic diagram of a second Z-axis scatter plot provided in the first embodiment of the present invention is shown;

[0078] Fig.10 A schematic structural diagram of a microscope state detection device provided in Embodiment 2 of the present invention is shown;

[0079] Fig.11 A schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention is shown. DETAILED DESCRIPTION

[0080] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.

[0081] Embodiment 1

[0082] To facilitate understanding of this application, Figure 1 The flowchart of a microscope state detection method provided in the first embodiment of the present invention is shown to describe the contents of the first embodiment of the present application in detail.

[0083] See also Figure 1 As stated, Figure 1 The flowchart of a microscope state detection method provided in the first embodiment of the present invention is shown, wherein the method comprises steps S101 to S105:

[0084] S101: Scanning a sample containing multiple cells in sections using a microscope to be detected to obtain multiple field of view images.

[0085] Specifically, a sample containing multiple cells is prepared in advance, ensuring that each area of ​​the sample contains at least one single cell, and each area of ​​the sample is scanned by the microscope to be detected to obtain multiple field of view images. Each field of view image includes a sub-image for indicating cells, a single-cell sub-image indicates a single cell, and a multi-cell sub-image indicates multiple cells.

[0086] It is worth noting that the samples in the microscope state detection method provided in the present application may also be other samples with similar volume (image area), such as magnetic beads, microspheres, microwells, etc.

[0087] S102: For each of the field of view images, an image rectangular coordinate system is established with the lower left corner of the field of view image as the origin, and an area scatter plot is drawn according to the pixel area occupied by each single-cell sub-image in the field of view image and the coordinate values ​​of the initial coordinate axes of their respective center points in the image rectangular coordinate system, wherein the single-cell sub-image is a sub-image indicating a single cell in the field of view image.

[0088] Specifically, before executing step S102, the method also includes: for each field of view image, performing threshold segmentation on the field of view image to obtain multiple cell sub-images indicating cells; judging whether the pixel area of ​​each cell sub-image in the field of view image is within a preset range; determining the cell sub-image in the field of view image whose pixel area is within the preset range is a single cell sub-image in the field of view image; and determining the cell sub-image in the field of view image whose pixel area is not within the preset range is a multi-cell sub-image in the field of view image.

[0089] Under different microscope detection conditions, the preset range for comparing the pixel area of ​​each cell sub-image is set differently, as follows: when the microscope lens magnification is 60 times, the preset range is 5000-7000; when the microscope lens magnification is 40 times, the preset range is 2000-3000; when the microscope lens magnification is 20 times, the preset range is 500-700.

[0090] The method for setting the correspondence between the preset cell area and the actual cell area is as follows:

[0091] A 细胞面积 =(A 像元面积 ×A 细胞图像 ) / (M 物镜 ×M 相机接口 ) 2 ;

[0092] Among them, A 细胞面积 is the actual area of ​​the cell; A 像元面积 is the camera CMOS unit area; A 细胞图像 M is the image area of ​​the identified cells; 物镜 M is the objective lens magnification; 相机接口 The camera interface magnification.

[0093] The field of view image is usually a rectangular image. For each field of view image, an image rectangular coordinate system is established with the lower left corner of the field of view image as the origin, and then the coordinates (x, y) of the center point of each single-cell sub-image in the field of view image are obtained, where x is the coordinate value of the single-cell sub-image on the X-axis of the image rectangular coordinate system, and y is the coordinate value of the single-cell sub-image on the Y-axis of the image rectangular coordinate system.

[0094] Select the initial coordinate axis. When the initial coordinate axis is the X coordinate axis, sort the X-axis coordinate values ​​of the center point of each single-cell sub-image from small to large, and then draw an area scatter plot based on the pixel area of ​​each single-cell sub-image after sorting. The coordinates of each scatter point in the area scatter plot are (x, s), where x is the coordinate value of the single-cell sub-image on the X-axis of the image rectangular coordinate system, and s is the pixel area of ​​the single-cell sub-image. When the initial coordinate axis is the Y coordinate axis, sort the Y-axis coordinate values ​​of the center point of each single-cell sub-image from small to large, and then draw an area scatter plot based on the pixel area of ​​each single-cell sub-image after sorting. The coordinates of each scatter point in the area scatter plot are (y, s), where y is the coordinate value of the single-cell sub-image on the Y-axis of the image rectangular coordinate system, and s is the pixel area of ​​the single-cell sub-image.

[0095] S103: Determine the deflection angle of the visual field image according to the area scatter plot drawn for the visual field image.

[0096] Specifically, a straight line is obtained by fitting each scattered point in the area scatter plot. If the state of the microscope is stable during scanning and the stage is stable, then the fitted straight line should be a straight line parallel to the X-axis of the scatter plot; if the state of the microscope is abnormal or the stage is tilted during scanning, then the fitted straight line is likely to be a straight line that is not parallel to the X-axis of the scatter plot. If the X-axis coordinates are sorted, and the fitted straight line is not parallel to the X-axis of the scatter plot, it means that the microscope state is abnormal or the stage is not stable in the left and right directions; if the Y-axis coordinates are sorted, and the fitted straight line is not parallel to the X-axis of the scatter plot, it means that the microscope state is abnormal or the stage is not stable in the front and back directions. If the x-axis coordinates and the y-axis coordinates are sorted from small to large, and the fitted straight line of the output cell area scatter plot is not parallel to the X-axis of the scatter plot, then the original rectangular coordinate system can be rotated a certain angle to obtain a new coordinate system.

[0097] The preset angle p for each rotation is set in advance. When the coordinate axis is rotated for the nth time, the rotation angle is , , is the number of rotations. When rotating the original image rectangular coordinate system, that is, rotating the X-axis and the Y-axis, assuming that in the unrotated image rectangular coordinate system, point A is the center point of a single cell sub-image, the coordinates of point A in the original image rectangular coordinate system are See also Figure 2 As stated, Figure 2 FIG. 1 shows a schematic diagram of rotating an image rectangular coordinate system provided by the first embodiment of the present invention, wherein after the image rectangular coordinate system is rotated, point A is located above the X' coordinate axis in the new image rectangular coordinate system (composed of the origin, the X' coordinate axis and the Y' coordinate axis), and the coordinates of point A in the new image rectangular coordinate system can be calculated as: ; See Figure 3 As stated, Figure 3 FIG. 1 is a schematic diagram of the second type of image rectangular coordinate system rotation provided by the first embodiment of the present invention, wherein, if point A is located below the X' coordinate axis in the new image rectangular coordinate system after the image rectangular coordinate system is rotated, the coordinates of point A in the new image rectangular coordinate system can be calculated as: Based on the above method, the new coordinates of the center point of each single-cell sub-image can be determined.

[0098] After obtaining the new coordinates of the center point of each single-cell sub-image, repeat the above steps, sort the coordinates and make a scatter plot of the pixel area, fit a straight line to it, and determine whether it is parallel to the X-axis of the scatter plot. If the fitted straight line is parallel to the X-axis of the scatter plot, it means that the microscope is stable during scanning and the stage is stable; if the fitted straight line is not parallel to the X-axis of the scatter plot, it means that the microscope is abnormal or the stage is left or right or front or back. The angle is not stable.

[0099] For example, when the preset angle p is 10 degrees, the above steps are repeated, and the rotation angle of the coordinate axis during the nth rotation is , output the slope of the scatter plot fitting line after each rotation respectively, and select the rotation angle when the slope is closest to zero as the overall deviation angle of this field of view.

[0100] S104: Filtering out a target field of view image for microscope state detection according to the deflection angle of each field of view image.

[0101] Specifically, due to experimental errors in cell staining, uneven staining may occur in the field of view, which will lead to different single cell areas in the field of view, that is, the straight line fitted by the cell area is not parallel to the X-axis. In order to avoid the impact of the above situation on the results, the deviation caused by uneven staining must be eliminated first. Output the angle of deviation of each field of view, analyze the field of view of the entire sample, and if there is a field of view with a deviation angle different from the deviation angle of the field of view with a larger proportion, it is considered that uneven staining occurs in this field of view, so this field of view is excluded. Then further confirm the status of the microscope for the remaining fields of view.

[0102] S105: Determine the state of the microscope to be detected according to the deflection angle of each target field of view image and the Z-axis value when the microscope to be detected scans each target field of view image.

[0103] Specifically, the state of the microscope is determined by analyzing the size of the Z axis when the microscope successfully refocuses during scanning. Parse the scanning log of the microscope to obtain the size of the Z axis when the microscope successfully refocuses during the scanning process. When the microscope scans smoothly without abnormalities, the size of the Z axis should also be stable with small fluctuations; when there are abnormalities during the microscope scanning process or the sample is contaminated, the Z axis will fluctuate violently. The number of times the microscope refocuses in a stable state is reasonable, about 20 times, and the size distribution of the Z axis is a straight line, without obvious abnormal fluctuations; while the number of times the microscope refocuses in an abnormal state is more, about 200 times, and the size distribution of the Z axis is random, with more abnormal fluctuations.

[0104] Under different microscope detection conditions, the statistical range of the Z axis is different, as described below:

[0105] The focus statistical range can be calculated from the objective lens working distance and the focus position, the formula is as follows:

[0106] Focus Range = Focus ± WD

[0107] Focus Range: It is the statistical range of the objective lens Z axis;

[0108] Focus adjusts the position of the object;

[0109] WD is the objective lens working distance.

[0110] For example: the working distance of a 60X objective lens is 150 , 40X objective lens working distance is 130 , 20X objective lens working distance is 800 , if the object is adjusted to focus at 19100.00 When the 60X objective lens focuses on 19250.00 ~18950.00 ; 40X objective lens focus statistics range is 19230.00 ~18970.00 ; 20X objective lens focus statistics range is 19900.00 ~18300.00 .

[0111] In one possible embodiment, see Figure 4 As shown, Figure 4A flow chart of a method for determining a deflection angle provided in the first embodiment of the present invention is shown, wherein the initial coordinate axis is the X-axis or the Y-axis of the rectangular coordinate system of the image, and the deflection angle of the field of view image is determined according to the area scatter diagram drawn for the field of view image, including steps S401 to S403:

[0112] S401: performing straight line fitting on each scattered point in the area scatter plot to obtain a straight line.

[0113] S402: Determine whether the straight line is parallel to the X-coordinate axis of the area scatter plot.

[0114] S403: If the straight line is parallel to the X-coordinate axis of the area scatter plot, the deflection angle of the field of view image is marked as zero.

[0115] Specifically, if the microscope is stable during scanning and the stage is stable, the fitted straight line should be a straight line parallel to the X-axis of the scatter plot; if the microscope is abnormal or the stage is tilted during scanning, the fitted straight line is likely to be a straight line that is not parallel to the X-axis of the scatter plot. When the microscope is stable during scanning and the stage is stable, the deflection angle of the field of view image obtained by scanning is zero.

[0116] In one possible embodiment, see Figure 5 As shown, Figure 5 A flow chart of a second method for determining a deflection angle provided in the first embodiment of the present invention is shown, wherein after determining whether the straight line is parallel to the X-axis of the area scatter plot, the method further includes steps S501 to S504:

[0117] S501: If the straight line is not parallel to the X-coordinate axis of the area scatter plot, the image rectangular coordinate system is rotated once at a preset angle, the area scatter plot is redrawn based on the coordinate values ​​of the initial coordinate axis of the center point of each single-cell sub-image in the rotated image rectangular coordinate system, and a straight line is fitted to each scatter point in the redrawn area scatter plot to obtain a redrawn straight line.

[0118] S502: Determine whether the redrawn straight line is parallel to the X-coordinate axis of the redrawn area scatter plot.

[0119] S503: If the redrawn straight line is parallel to the X-coordinate axis of the redrawn area scatter plot, the rotation angle of the image rectangular coordinate system is marked as the deflection angle of the field of view image.

[0120] S504: If the redrawn straight line is not parallel to the X-axis of the redrawn area scatter plot after rotation, the image rectangular coordinate system is rotated again at a preset angle until a target straight line is fitted after a preset number of rotations. The rotation angle of the image rectangular coordinate system is marked as the deflection angle of the field of view image, wherein the target straight line is a straight line whose slope is closest to zero during the preset number of rotations, and the slope is relative to the X-axis of the area scatter plot.

[0121] Exemplarily, based on the deviation of 90 degrees between the X-axis and the Y-axis in the rectangular coordinate system, the preset angle is set to 10 degrees, and the preset number of times is set to 8 times, so that after completing the maximum number of rotations, the X-axis and the Y-axis can alternate to achieve full coverage of the rectangular coordinate system.

[0122] In one possible embodiment, see Figure 6 As shown, Figure 6 A flow chart of a method for determining a target field of view image provided by the first embodiment of the present invention is shown, wherein the method for selecting a target field of view image for microscope state detection according to the deflection angle of each field of view image comprises steps S601-S602:

[0123] S601: For each of the field of view images, determine whether the deflection angle of the field of view image deviates from a standard deflection angle, or determine whether the deflection angle of the field of view image is zero, wherein the standard deflection angle is the deflection angle of the field of view image that accounts for the largest proportion among the field of view images having the same deflection angle.

[0124] Specifically, the deflection angle of each of the visual field images is counted, and the deflection angle of the visual field images that have the same deflection angle and account for the largest proportion is taken as the standard deflection angle.

[0125] S602: If the deflection angle of the visual field image does not deviate from the standard deflection angle, or the deflection angle of the visual field image is zero, then the visual field image is determined as the target visual field image.

[0126] Specifically, if the deflection angle of the field of view image does not deviate from the standard deflection angle, it means that the field of view image was collected when the lens or stage of the microscope was abnormal; if the deflection angle of the field of view image is zero, it means that the field of view image was collected when the microscope lens was abnormal but the stage was normal. Therefore, it is necessary to further analyze the above field of view images to determine the specific state of the microscope.

[0127] In a feasible implementation manner, after determining whether the deflection angle of the field of view image deviates from the standard deflection angle, the method further includes:

[0128] If the deflection angle of the visual field image deviates from the standard deflection angle, and the deflection angle of the visual field image is not zero, then the area indicated by the visual field image in the sample is marked as unevenly stained.

[0129] Specifically, in order to avoid the above situation from affecting the results, the deviation caused by uneven staining must be eliminated first. The deviation angle of each field of view is output, and the field of view of the entire sample is analyzed. If there is a field of view with a large difference in angle from other fields of view, it is considered that uneven staining occurs in this field of view, so this field of view is excluded, and the state of the microscope is further confirmed for the remaining fields of view.

[0130] In one possible embodiment, see Figure 7 As shown, Figure 7 A flowchart of a method for determining a microscope state provided by Embodiment 1 of the present invention is shown, wherein the state of the microscope to be detected is determined according to the deflection angle of each target field of view image and the Z-axis value when the microscope to be detected scans each target field of view image, including steps S701 to S704:

[0131] S701: Draw a Z-axis scatter plot according to the order and Z-axis value of each target field image obtained by scanning the microscope to be detected.

[0132] Specifically, the order of each target field of view image obtained by scanning the microscope to be detected is sorted from small to large, and a Z-axis scatter plot is drawn based on the Z-axis size of each target field of view image obtained by scanning the sorted microscope.

[0133] S702: Determine whether the fluctuation range of each scatter point in the Z-axis scatter diagram exceeds a preset range, and determine whether the deflection angle of each target field of view image is zero.

[0134] Specifically, determine whether the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, or determine whether each scatter point in the Z-axis scatter plot fluctuates. When the microscope scans smoothly without abnormalities, the size of the Z-axis should also be stable with small fluctuations; when there are abnormalities in the microscope scanning process or the sample is contaminated, the Z-axis will fluctuate violently. The number of times the microscope is refocused in a stable state is reasonable, about 20 times, and the Z-axis size distribution is a straight line, without obvious abnormal fluctuations; while the number of times the microscope is refocused in an abnormal state is more, about 200 times, and the Z-axis size distribution is random, with more abnormal fluctuations.

[0135] S703: If the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, and the deflection angle of each target field of view image is zero, the state of the microscope to be inspected is marked as normal.

[0136] For details, see Figure 8 As shown, Figure 8 A schematic diagram of a Z-axis scatter plot provided by Embodiment 1 of the present invention is shown, wherein the horizontal coordinate of the Z-axis scatter plot is the scanning order of the field of view image, the vertical coordinate is the size of the Z axis of the microscope during scanning, and the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range. The preset range is selected from the statistical range of the Z axis of the objective lens. If the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, and the deflection angle of each of the target field of view images is zero, it means that the stage and lens of the microscope are normal, and the state of the microscope to be tested is marked as normal.

[0137] S704: If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, or there is a target field of view image with a non-zero deflection angle, the state of the microscope to be inspected is marked as abnormal.

[0138] For details, see Fig. 9 As shown, Fig. 9 A schematic diagram of the second Z-axis scatter plot provided in the first embodiment of the present invention is shown, wherein the horizontal coordinate of the Z-axis scatter plot is the scanning order of the field of view image, the vertical coordinate is the size of the Z axis of the microscope during scanning, and the fluctuation range of the scatter points in the Z-axis scatter plot exceeds the preset range. If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, or there is a target field of view image with a non-zero deflection angle, it means that the stage and / or lens of the microscope is abnormal, and the state of the microscope to be tested is marked as abnormal.

[0139] In a feasible embodiment, after marking the state of the microscope to be inspected as abnormal, the method further includes:

[0140] If the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, but there is a target field of view image with a non-zero deflection angle, the abnormal cause of the microscope to be detected is marked as a stage abnormality.

[0141] If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, but the deflection angle of each target field of view image is zero, the abnormal cause of the microscope to be tested is marked as lens abnormality.

[0142] If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, and there is a target field of view image with a non-zero deflection angle, the abnormal cause of the microscope to be tested is marked as unknown.

[0143] Specifically, after the abnormal cause of the microscope to be detected is marked as unknown, the abnormal cause can be manually checked.

[0144] Embodiment 2

[0145] See also Fig.10 As shown, Fig.10 The structure diagram of a microscope state detection device provided by the second embodiment of the present invention is shown, wherein the device comprises:

[0146] The field of view image acquisition module 1001 is used to obtain multiple field of view images by performing partition scanning on a sample containing multiple cells through a microscope to be detected;

[0147] The area scatter plot drawing module 1002 is used to establish an image rectangular coordinate system for each field of view image with the lower left corner of the field of view image as the origin, and draw an area scatter plot according to the pixel area occupied by each single cell sub-image in the field of view image and the coordinate value of the initial coordinate axis of each center point in the image rectangular coordinate system, wherein the single cell sub-image is a sub-image indicating a single cell in the field of view image;

[0148] A deflection angle determination module 1003, configured to determine a deflection angle of the visual field image according to an area scatter plot drawn for the visual field image;

[0149] A field of view image screening module 1004, used for screening a target field of view image for microscope state detection according to the deflection angle of each field of view image;

[0150] The microscope state determination module 1005 is used to determine the state of the microscope to be detected according to the deflection angle of each target field of view image and the Z-axis value when the microscope to be detected scans each target field of view image.

[0151] In a feasible implementation manner, the initial coordinate axis is the X coordinate axis or the Y coordinate axis of the rectangular coordinate system of the image, and the deflection angle determination module is used to determine the deflection angle of the field of view image according to the area scatter plot drawn for the field of view image, specifically for:

[0152] Perform straight line fitting on each scattered point in the area scatter plot to obtain a straight line;

[0153] Determine whether the straight line is parallel to the X-coordinate axis of the area scatter plot;

[0154] If the straight line is parallel to the X-coordinate axis of the area scatter plot, the deflection angle of the field of view image is marked as zero.

[0155] In a feasible implementation manner, the deflection angle determination module is further used to:

[0156] After determining whether the straight line is parallel to the X-coordinate axis of the area scatter plot, if the straight line is not parallel to the X-coordinate axis of the area scatter plot, the image rectangular coordinate system is rotated once by a preset angle, the area scatter plot is redrawn based on the coordinate value of the initial coordinate axis of the center point of each single-cell sub-image in the rotated image rectangular coordinate system, and each scattered point in the redrawn area scatter plot is fitted with a straight line to obtain a redrawn straight line;

[0157] Determine whether the redrawn straight line is parallel to the X-axis of the redrawn area scatter plot;

[0158] If the redrawn straight line is parallel to the X-coordinate axis of the redrawn area scatter plot, the rotation angle of the rectangular coordinate system of the image is marked as the deflection angle of the visual field image;

[0159] If the redrawn straight line is not parallel to the X-axis of the redrawn area scatter plot after rotation, the image rectangular coordinate system is rotated again at a preset angle until a target straight line is fitted after a preset number of rotations. The rotation angle of the image rectangular coordinate system is marked as the deflection angle of the field of view image, wherein the target straight line is a straight line whose slope is closest to zero during the preset number of rotations, and the slope is relative to the X-axis of the area scatter plot.

[0160] In a feasible implementation, the field of view image screening module is used to screen out a target field of view image for microscope state detection according to the deflection angle of each field of view image, specifically for:

[0161] For each of the visual field images, determining whether the deflection angle of the visual field image deviates from the standard deflection angle, or determining whether the deflection angle of the visual field image is zero, wherein the standard deflection angle is the deflection angle of the visual field image with the largest proportion among the visual field images with the same deflection angle;

[0162] If the deflection angle of the field of view image does not deviate from the standard deflection angle, or the deflection angle of the field of view image is zero, then the field of view image is determined as the target field of view image.

[0163] In a feasible implementation manner, the visual field image screening module is further used for:

[0164] After determining whether the deflection angle of the field of view image deviates from the standard deflection angle, if the deflection angle of the field of view image deviates from the standard deflection angle and the deflection angle of the field of view image is not zero, the area indicated by the field of view image in the sample is marked as unevenly stained.

[0165] In a feasible implementation manner, the microscope state determination module is used to determine the state of the microscope to be detected according to the deflection angle of each target field of view image and the Z-axis value when the microscope to be detected scans each target field of view image, and is specifically used to:

[0166] Draw a Z-axis scatter plot according to the order and Z-axis value of each target field image obtained by scanning the microscope to be detected;

[0167] Determine whether the fluctuation range of each scatter point in the Z-axis scatter plot exceeds a preset range, and determine whether the deflection angle of each target field of view image is zero;

[0168] If the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, and the deflection angle of each target field of view image is zero, the state of the microscope to be tested is marked as normal;

[0169] If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, or there is a target field of view image with a non-zero deflection angle, the state of the microscope to be detected is marked as abnormal.

[0170] In a feasible implementation scheme, the microscope state determination module is further used for:

[0171] After the state of the microscope to be detected is marked as abnormal, if the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, but there is a target field of view image with a non-zero deflection angle, the abnormal cause of the microscope to be detected is marked as stage abnormality;

[0172] If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, but the deflection angle of each of the target field of view images is zero, the abnormal cause of the microscope to be tested is marked as lens abnormality;

[0173] If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, and there is a target field of view image with a non-zero deflection angle, the abnormal cause of the microscope to be tested is marked as unknown.

[0174] Embodiment 3

[0175] Based on the same application concept, see Fig.11 As shown, Fig.11 FIG. 4 shows a schematic diagram of the structure of a computer device provided by Embodiment 3 of the present invention, wherein: Fig.11 As shown, a computer device 1100 provided in Embodiment 3 of the present application includes:

[0176] A processor 1101, a memory 1102 and a bus 1103. The memory 1102 stores machine-readable instructions executable by the processor 1101. When the computer device 1100 is running, the processor 1101 communicates with the memory 1102 via the bus 1103. When the processor 1101 is running, the machine-readable instructions execute the steps of a microscope state detection method shown in the above-mentioned embodiment 1.

[0177] Embodiment 4

[0178] Based on the same application concept, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the microscope state detection method described in any one of the above embodiments are executed.

[0179] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0180] The computer program product for performing microscope state detection provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.

[0181] The microscope state detection device provided in the embodiment of the present invention can be specific hardware on the device or software or firmware installed on the device. The device provided in the embodiment of the present invention has the same implementation principle and technical effects as the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the device embodiment can refer to the corresponding contents in the aforementioned method embodiment. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.

[0182] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0183] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0184] In addition, each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0185] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0186] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0187] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions described in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or perform equivalent replacements on some of the technical features thereof; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. They should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A microscope state detection method, It is characterized in that The method comprises: A sample containing multiple cells is scanned in sections by a microscope to be detected to obtain multiple field of view images; For each of the field of view images, an image rectangular coordinate system is established with the lower left corner of the field of view image as the origin, and an area scatter plot is drawn according to the pixel area occupied by each single-cell sub-image in the field of view image and the coordinate value of the initial coordinate axis of each center point in the image rectangular coordinate system, wherein the single-cell sub-image is a sub-image indicating a single cell in the field of view image; Determine the deflection angle of the visual field image according to the area scatter plot drawn for the visual field image; Screening out a target field of view image for microscope state detection according to the deflection angle of each field of view image; Determine the state of the microscope to be detected according to the deflection angle of each target field of view image and the Z-axis value when the microscope to be detected scans each target field of view image; The initial coordinate axis is an X coordinate axis or a Y coordinate axis of the rectangular coordinate system of the image, and the step of determining the deflection angle of the visual field image according to the area scatter plot drawn for the visual field image includes: Perform straight line fitting on each scattered point in the area scatter plot to obtain a straight line; Determine whether the straight line is parallel to the X-coordinate axis of the area scatter plot; If the straight line is parallel to the X-coordinate axis of the area scatter plot, the deflection angle of the visual field image is marked as zero; The step of determining the state of the microscope to be detected according to the deflection angle of each target field image and the Z-axis value of each target field image obtained by scanning the microscope to be detected comprises: Draw a Z-axis scatter plot according to the order and Z-axis value of each target field image obtained by scanning the microscope to be detected; Determine whether the fluctuation range of each scatter point in the Z-axis scatter plot exceeds a preset range, and determine whether the deflection angle of each target field of view image is zero; If the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, and the deflection angle of each target field of view image is zero, the state of the microscope to be tested is marked as normal; If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, or there is a target field of view image with a non-zero deflection angle, the state of the microscope to be detected is marked as abnormal.

2. The method according to claim 1, It is characterized in that After determining whether the straight line is parallel to the X-coordinate axis of the area scatter plot, the method further includes: If the straight line is not parallel to the X-coordinate axis of the area scatter plot, the image rectangular coordinate system is rotated once at a preset angle, the area scatter plot is redrawn based on the coordinate values ​​of the initial coordinate axis of the center point of each single-cell sub-image in the rotated image rectangular coordinate system, and a straight line is fitted to each scattered point in the redrawn area scatter plot to obtain a redrawn straight line; Determine whether the redrawn straight line is parallel to the X-axis of the redrawn area scatter plot; If the redrawn straight line is parallel to the X-coordinate axis of the redrawn area scatter plot, the rotation angle of the rectangular coordinate system of the image is marked as the deflection angle of the visual field image; If the redrawn straight line is not parallel to the X-axis of the redrawn area scatter plot after rotation, the image rectangular coordinate system is rotated again at a preset angle until a target straight line is fitted after a preset number of rotations. The rotation angle of the image rectangular coordinate system is marked as the deflection angle of the field of view image, wherein the target straight line is a straight line whose slope is closest to zero during the preset number of rotations, and the slope is relative to the X-axis of the area scatter plot.

3. The method according to claim 1, It is characterized in that The step of selecting a target field of view image for microscope state detection according to the deflection angle of each field of view image comprises: For each of the visual field images, determining whether the deflection angle of the visual field image deviates from the standard deflection angle, or determining whether the deflection angle of the visual field image is zero, wherein the standard deflection angle is the deflection angle of the visual field image with the largest proportion among the visual field images with the same deflection angle; If the deflection angle of the visual field image does not deviate from the standard deflection angle, or the deflection angle of the visual field image is zero, the visual field image is determined as the target visual field image.

4. The method according to claim 3, It is characterized in that After determining whether the deflection angle of the visual field image deviates from the standard deflection angle, the method further includes: If the deflection angle of the visual field image deviates from the standard deflection angle, and the deflection angle of the visual field image is not zero, then the area indicated by the visual field image in the sample is marked as unevenly stained.

5. The method according to claim 1, It is characterized in that After marking the state of the microscope to be inspected as abnormal, the method further includes: If the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, but there is a target field of view image with a non-zero deflection angle, the abnormal cause of the microscope to be detected is marked as stage abnormality; If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, but the deflection angle of each of the target field of view images is zero, the abnormal cause of the microscope to be tested is marked as lens abnormality; If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, and there is a target field of view image with a non-zero deflection angle, the abnormal cause of the microscope to be tested is marked as unknown.

6. A microscope state detection device, It is characterized in that The device comprises: A field of view image acquisition module, used to obtain multiple field of view images by performing partition scanning on a sample containing multiple cells through a microscope to be detected; An area scatter plot drawing module is used to establish an image rectangular coordinate system for each field of view image with the lower left corner of the field of view image as the origin, and draw an area scatter plot according to the pixel area occupied by each single cell sub-image in the field of view image and the coordinate value of the initial coordinate axis of each center point in the image rectangular coordinate system, wherein the single cell sub-image is a sub-image indicating a single cell in the field of view image; A deflection angle determination module, used to determine the deflection angle of the visual field image according to the area scatter diagram drawn for the visual field image; A field of view image screening module, used to screen out a target field of view image for microscope state detection according to the deflection angle of each field of view image; A microscope state determination module, used to determine the state of the microscope to be detected according to the deflection angle of each target field of view image and the Z-axis value when the microscope to be detected scans each target field of view image; The initial coordinate axis is the X coordinate axis or the Y coordinate axis of the rectangular coordinate system of the image. When the deflection angle determination module is used to determine the deflection angle of the field of view image according to the area scatter diagram drawn for the field of view image, it is specifically used to: Perform straight line fitting on each scattered point in the area scatter plot to obtain a straight line; Determine whether the straight line is parallel to the X-coordinate axis of the area scatter plot; If the straight line is parallel to the X-coordinate axis of the area scatter plot, the deflection angle of the visual field image is marked as zero; The step of determining the state of the microscope to be detected according to the deflection angle of each target field image and the Z-axis value of each target field image obtained by scanning the microscope to be detected comprises: Draw a Z-axis scatter plot according to the order and Z-axis value of each target field image obtained by scanning the microscope to be detected; Determine whether the fluctuation range of each scatter point in the Z-axis scatter plot exceeds a preset range, and determine whether the deflection angle of each target field of view image is zero; If the fluctuation range of each scatter point in the Z-axis scatter plot does not exceed the preset range, and the deflection angle of each target field of view image is zero, the state of the microscope to be tested is marked as normal; If the fluctuation range of each scatter point in the Z-axis scatter plot exceeds the preset range, or there is a target field of view image with a non-zero deflection angle, the state of the microscope to be detected is marked as abnormal.

7. A computer device, It is characterized in that include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the microscope state detection method as described in any one of claims 1 to 5 are performed.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the microscope state detection method as described in any one of claims 1 to 5 are executed.